We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b8a01 commit 56a75c8Copy full SHA for 56a75c8
1 file changed
autorelease/trigger.py
@@ -14,8 +14,9 @@
14
15
"""This module handles triggering Kokoro release jobs for merged release pull requests."""
16
17
+import importlib
18
+
19
from autorelease import common, github, kokoro, reporter
-from releasetool.commands import tag
20
21
LANGUAGE_ALLOWLIST = ["java"]
22
ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
@@ -56,7 +57,7 @@ def trigger_kokoro_build_for_pull_request(
56
57
result.print(f"Language {lang} not in allowlist, skipping.")
58
return
59
- language_module = getattr(tag, lang)
60
+ language_module = importlib.import_module(f"releasetool.commands.tag.{lang}")
61
package_name = language_module.package_name(pull)
62
kokoro_job_name = language_module.kokoro_job_name(
63
pull["base"]["repo"]["full_name"], package_name
0 commit comments