24
24
"dotnet" ,
25
25
]
26
26
27
+ # This is only used in the autorelease/tag workflows.
28
+ # Direct, explicit triggering on repos in this list is still possible.
29
+ REPO_DENYLIST = [
30
+ "googleapis/google-cloudevents-dotnet" ,
31
+ ]
32
+
27
33
28
34
ORGANIZATIONS_TO_SCAN = ["googleapis" , "GoogleCloudPlatform" ]
29
35
@@ -48,16 +54,24 @@ def process_issue(
48
54
# is necessary because github gives us back an issue object, but it
49
55
# doesn't contain all of the PR info.
50
56
pull = gh .get_url (issue ["pull_request" ]["url" ])
57
+ repo_full_name = pull ["base" ]["repo" ]["full_name" ]
51
58
52
59
# Determine language.
53
- lang = common .guess_language (gh , pull [ "base" ][ "repo" ][ "full_name" ] )
60
+ lang = common .guess_language (gh , repo_full_name )
54
61
55
62
# As part of the migration to release-please tagging, cross-reference the
56
63
# language against an allowlist to allow migrating language-by-language.
57
64
if lang not in LANGUAGE_ALLOWLIST :
58
65
result .skipped = True
59
66
result .print (f"Language { lang } not in allowlist, skipping." )
60
67
return
68
+ # As part of the migration to release-please tagging, cross-reference the
69
+ # repository against a denylist to allow migrating repo-by-repo.
70
+ for denied_repo in REPO_DENYLIST :
71
+ if denied_repo == repo_full_name :
72
+ result .skipped = True
73
+ result .print (f"Repo { denied_repo } in denylist, skipping." )
74
+ return
61
75
62
76
# Before doing any processing, check to make sure the PR was actually merged.
63
77
# "closed" PRs can be merged or just closed without merging.
0 commit comments