@@ -1457,7 +1457,7 @@ def post_pr_labels(pr, labels):
14571457 return True
14581458
14591459
1460- def add_pr_labels (pr , branch = 'develop' ):
1460+ def add_pr_labels (pr , branch = GITHUB_DEVELOP_BRANCH ):
14611461 """
14621462 Try to determine and add labels to PR.
14631463 :param pr: pull request number in easybuild-easyconfigs repo
@@ -1986,7 +1986,7 @@ def check_github():
19861986 branch_name = 'test_branch_%s' % '' .join (random .choice (ascii_letters ) for _ in range (5 ))
19871987 try :
19881988 git_repo = init_repo (git_working_dir , GITHUB_EASYCONFIGS_REPO , silent = not debug )
1989- remote_name = setup_repo (git_repo , github_account , GITHUB_EASYCONFIGS_REPO , GITHUB_BRANCH_MAIN ,
1989+ remote_name = setup_repo (git_repo , github_account , GITHUB_EASYCONFIGS_REPO , GITHUB_DEVELOP_BRANCH ,
19901990 silent = not debug , git_only = True )
19911991 git_repo .create_head (branch_name )
19921992 res = getattr (git_repo .remotes , remote_name ).push (branch_name )
@@ -2168,7 +2168,8 @@ def validate_github_token(token, github_user):
21682168 # try and determine sha of latest commit in easybuilders/easybuild-easyconfigs repo through authenticated access
21692169 sha = None
21702170 try :
2171- sha = fetch_latest_commit_sha (GITHUB_EASYCONFIGS_REPO , GITHUB_EB_MAIN , github_user = github_user , token = token )
2171+ sha = fetch_latest_commit_sha (GITHUB_EASYCONFIGS_REPO , GITHUB_EB_MAIN ,
2172+ branch = GITHUB_DEVELOP_BRANCH , github_user = github_user , token = token )
21722173 except Exception as err :
21732174 _log .warning ("An exception occurred when trying to use token for authenticated GitHub access: %s" , err )
21742175
@@ -2185,7 +2186,8 @@ def find_easybuild_easyconfig(github_user=None):
21852186
21862187 :param github_user: name of GitHub user to use when querying GitHub
21872188 """
2188- dev_repo = download_repo (GITHUB_EASYCONFIGS_REPO , branch = 'develop' , account = GITHUB_EB_MAIN , github_user = github_user )
2189+ dev_repo = download_repo (GITHUB_EASYCONFIGS_REPO , branch = GITHUB_DEVELOP_BRANCH ,
2190+ account = GITHUB_EB_MAIN , github_user = github_user )
21892191 eb_parent_path = os .path .join (dev_repo , 'easybuild' , 'easyconfigs' , 'e' , 'EasyBuild' )
21902192 files = os .listdir (eb_parent_path )
21912193
0 commit comments