SABER
update_webhook_branchname Namespace Reference

Variables

 branchName = sys.argv[1]
 
 commitId = sys.argv[2]
 
list repoList = ["atlas", "oops", "ioda", "ufo", "soca", "fv3-jedi", "mpas-jedi"]
 
 token = os.getenv('GIT_PASS', '...')
 
 g = Github(token)
 
list ownerList = ["JCSDA", "jcsda-internal"]
 
 saberRepo = g.get_repo("jcsda/saber")
 
bool branchExists = True
 
 repo = g.get_repo(f"{owner}/{repoName}")
 
 branchList = list(repo.get_branches())
 
string stageDescription = branchName+" exists in "+owner+'/'+ repoName
 
 commitStatus
 

Variable Documentation

◆ branchExists

bool update_webhook_branchname.branchExists = True

Definition at line 37 of file update_webhook_branchname.py.

◆ branchList

update_webhook_branchname.branchList = list(repo.get_branches())

Definition at line 39 of file update_webhook_branchname.py.

◆ branchName

update_webhook_branchname.branchName = sys.argv[1]

Definition at line 22 of file update_webhook_branchname.py.

◆ commitId

update_webhook_branchname.commitId = sys.argv[2]

Definition at line 23 of file update_webhook_branchname.py.

◆ commitStatus

update_webhook_branchname.commitStatus
Initial value:
1 = saberRepo.get_commit(sha=commitId).create_status(
2  state="pending",
3  description=stageDescription,
4  context="Branch Check-"+owner+'/'+repoName)

Definition at line 49 of file update_webhook_branchname.py.

◆ g

update_webhook_branchname.g = Github(token)

Definition at line 30 of file update_webhook_branchname.py.

◆ ownerList

list update_webhook_branchname.ownerList = ["JCSDA", "jcsda-internal"]

Definition at line 31 of file update_webhook_branchname.py.

◆ repo

update_webhook_branchname.repo = g.get_repo(f"{owner}/{repoName}")

Definition at line 38 of file update_webhook_branchname.py.

◆ repoList

list update_webhook_branchname.repoList = ["atlas", "oops", "ioda", "ufo", "soca", "fv3-jedi", "mpas-jedi"]

Definition at line 27 of file update_webhook_branchname.py.

◆ saberRepo

update_webhook_branchname.saberRepo = g.get_repo("jcsda/saber")

Definition at line 33 of file update_webhook_branchname.py.

◆ stageDescription

string update_webhook_branchname.stageDescription = branchName+" exists in "+owner+'/'+ repoName

Definition at line 48 of file update_webhook_branchname.py.

◆ token

update_webhook_branchname.token = os.getenv('GIT_PASS', '...')

Definition at line 29 of file update_webhook_branchname.py.