30
30
from scriptworker .context import Context
31
31
from scriptworker .ed25519 import ed25519_public_key_from_string , verify_ed25519_signature
32
32
from 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
+ )
34
38
from scriptworker .gpg import get_body , GPG
35
39
from scriptworker .log import contextual_log_handler
36
40
from scriptworker .task import (
37
- extract_github_repo_owner_and_name ,
38
41
get_action_callback_name ,
39
42
get_and_check_project ,
40
43
get_and_check_tasks_for ,
@@ -1140,6 +1143,7 @@ async def _get_additional_github_releases_jsone_context(decision_link):
1140
1143
# This can't be done at the moment because some mobile projects still rely on the
1141
1144
# bad value
1142
1145
'clone_url' : repo_url ,
1146
+ 'full_name' : extract_github_repo_full_name (repo_url ),
1143
1147
'html_url' : repo_url ,
1144
1148
},
1145
1149
'release' : {
@@ -1177,6 +1181,7 @@ def _get_additional_git_cron_jsone_context(decision_link):
1177
1181
# This can't be done at the moment because some mobile projects still rely on the
1178
1182
# bad value
1179
1183
'clone_url' : repo ,
1184
+ 'full_name' : extract_github_repo_full_name (repo ),
1180
1185
'html_url' : repo ,
1181
1186
},
1182
1187
'release' : {
@@ -1220,6 +1225,11 @@ async def _get_additional_github_pull_request_jsone_context(decision_link):
1220
1225
'html_url' : pull_request_data ['head' ]['repo' ]['html_url' ],
1221
1226
},
1222
1227
'pull_request' : {
1228
+ 'base' : {
1229
+ 'repo' : {
1230
+ 'full_name' : pull_request_data ['base' ]['repo' ]['full_name' ],
1231
+ },
1232
+ },
1223
1233
'head' : {
1224
1234
'ref' : pull_request_data ['head' ]['ref' ],
1225
1235
'sha' : pull_request_data ['head' ]['sha' ],
@@ -1230,7 +1240,7 @@ async def _get_additional_github_pull_request_jsone_context(decision_link):
1230
1240
# This becomes a problem if a staging release was kicked off and the PR got
1231
1241
# updated in the meantime.
1232
1242
'pushed_at' : get_push_date_time (task , source_env_prefix ),
1233
- }
1243
+ },
1234
1244
},
1235
1245
'title' : pull_request_data ['title' ],
1236
1246
'number' : pull_request_number ,
@@ -1263,6 +1273,7 @@ async def _get_additional_github_push_jsone_context(decision_link):
1263
1273
return {
1264
1274
'event' : {
1265
1275
'repository' : {
1276
+ 'full_name' : extract_github_repo_full_name (repo_url ),
1266
1277
'html_url' : repo_url ,
1267
1278
'pushed_at' : get_push_date_time (task , source_env_prefix ),
1268
1279
},
0 commit comments