3030from scriptworker .context import Context
3131from scriptworker .ed25519 import ed25519_public_key_from_string , verify_ed25519_signature
3232from scriptworker .exceptions import CoTError , BaseDownloadError , ScriptWorkerEd25519Error , ScriptWorkerGPGException
33- from scriptworker .github import GitHubRepository
33+ from scriptworker .github import (
34+ GitHubRepository ,
35+ extract_github_repo_owner_and_name ,
36+ extract_github_repo_full_name ,
37+ )
3438from scriptworker .gpg import get_body , GPG
3539from scriptworker .log import contextual_log_handler
3640from scriptworker .task import (
37- extract_github_repo_owner_and_name ,
3841 get_action_callback_name ,
3942 get_and_check_project ,
4043 get_and_check_tasks_for ,
@@ -1140,6 +1143,7 @@ async def _get_additional_github_releases_jsone_context(decision_link):
11401143 # This can't be done at the moment because some mobile projects still rely on the
11411144 # bad value
11421145 'clone_url' : repo_url ,
1146+ 'full_name' : extract_github_repo_full_name (repo_url ),
11431147 'html_url' : repo_url ,
11441148 },
11451149 'release' : {
@@ -1177,6 +1181,7 @@ def _get_additional_git_cron_jsone_context(decision_link):
11771181 # This can't be done at the moment because some mobile projects still rely on the
11781182 # bad value
11791183 'clone_url' : repo ,
1184+ 'full_name' : extract_github_repo_full_name (repo ),
11801185 'html_url' : repo ,
11811186 },
11821187 'release' : {
@@ -1220,6 +1225,11 @@ async def _get_additional_github_pull_request_jsone_context(decision_link):
12201225 'html_url' : pull_request_data ['head' ]['repo' ]['html_url' ],
12211226 },
12221227 'pull_request' : {
1228+ 'base' : {
1229+ 'repo' : {
1230+ 'full_name' : pull_request_data ['base' ]['repo' ]['full_name' ],
1231+ },
1232+ },
12231233 'head' : {
12241234 'ref' : pull_request_data ['head' ]['ref' ],
12251235 'sha' : pull_request_data ['head' ]['sha' ],
@@ -1230,7 +1240,7 @@ async def _get_additional_github_pull_request_jsone_context(decision_link):
12301240 # This becomes a problem if a staging release was kicked off and the PR got
12311241 # updated in the meantime.
12321242 'pushed_at' : get_push_date_time (task , source_env_prefix ),
1233- }
1243+ },
12341244 },
12351245 'title' : pull_request_data ['title' ],
12361246 'number' : pull_request_number ,
@@ -1263,6 +1273,7 @@ async def _get_additional_github_push_jsone_context(decision_link):
12631273 return {
12641274 'event' : {
12651275 'repository' : {
1276+ 'full_name' : extract_github_repo_full_name (repo_url ),
12661277 'html_url' : repo_url ,
12671278 'pushed_at' : get_push_date_time (task , source_env_prefix ),
12681279 },
0 commit comments