Skip to content

Commit 0ce5788

Browse files
authored
fix: stop handling java repos - they are migrated to release-please/release-trigger (#362)
1 parent 7986ae4 commit 0ce5788

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

autorelease/tag.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
LANGUAGE_ALLOWLIST = [
2424
"dotnet",
25-
"java",
2625
"nodejs",
2726
"php",
2827
"python_tool",

autorelease/trigger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from autorelease import common, github, kokoro, reporter
2222

23-
LANGUAGE_ALLOWLIST = ["java", "nodejs"]
23+
LANGUAGE_ALLOWLIST = ["nodejs"]
2424
ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
2525

2626
# Whenever we add new languages to the allowlist, update this value as

tests/test_autorelease_tag.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def test_process_issue_skips_non_merged(run_releasetool_tag):
8181
run_releasetool_tag.assert_not_called()
8282

8383

84+
@patch("autorelease.tag.LANGUAGE_ALLOWLIST", ["java"])
8485
@patch("autorelease.kokoro.trigger_build")
8586
@patch("autorelease.tag.run_releasetool_tag")
8687
def test_process_issue_triggers_kokoro(run_releasetool_tag, trigger_build):
@@ -103,6 +104,7 @@ def test_process_issue_triggers_kokoro(run_releasetool_tag, trigger_build):
103104
trigger_build.assert_called_once()
104105

105106

107+
@patch("autorelease.tag.LANGUAGE_ALLOWLIST", ["java"])
106108
@patch("autorelease.kokoro.trigger_build")
107109
@patch("autorelease.tag.run_releasetool_tag")
108110
def test_process_issue_skips_kokoro_if_no_job_name(run_releasetool_tag, trigger_build):

tests/test_autorelease_trigger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def test_trigger_kokoro_build_for_pull_request_skips_kokoro_if_already_triggered
173173
trigger_build.assert_not_called()
174174

175175

176+
@patch("autorelease.trigger.LANGUAGE_ALLOWLIST", ["java"])
176177
@patch("autorelease.kokoro.make_authorized_session")
177178
@patch("autorelease.github.GitHub.get_issue")
178179
@patch("autorelease.github.GitHub.get_url")

0 commit comments

Comments
 (0)