Skip to content

Commit

Permalink
PMM-12153 Upgrade mysqlq_exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Feb 5, 2025
1 parent 8d298f7 commit e535ea8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,11 @@ def check_deps(self):
else:
target_url = next(item for item in self.config['deps'] if item["name"] == dep['name'])['url']
repo_path = '/'.join(target_url.split('/')[-2:])
target_branch = dep['branch']
if '.git' in repo_path:
repo_path = repo_path.replace('.git', '')
repo = github_api.get_repo(repo_path)
org = repo.organization.name if repo.organization else repo.owner.login
target_branch = dep['branch']
head = f'{org}:{target_branch}'
pulls_list = repo.get_pulls('open', 'updated', 'asc', 'main', head)
if not pulls_list.totalCount:
Expand Down
4 changes: 4 additions & 0 deletions ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
deps:
- name: mysqld_exporter
branch: PMM-12153-upgrade-mysql-exporter
url: https://github.com/percona/mysqld_exporter

0 comments on commit e535ea8

Please sign in to comment.