-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[auto release pipeline] Skip release pipeline comment when link is empty #45032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -329,9 +329,11 @@ def create_pr_proc(self): | |||||||||||
| pr_title = "[AutoRelease] {}(can only be merged by SDK owner)".format(self.new_branch) | ||||||||||||
| pr_head = "{}:{}".format(os.getenv("USR_NAME"), self.new_branch) | ||||||||||||
| pr_base = "main" | ||||||||||||
| pr_body = "{} \n{} \n After PR merged, trigger [release pipeline]({}) to release".format( | ||||||||||||
| self.issue_link, self.test_result, self.release_pipeline_link | ||||||||||||
| ) | ||||||||||||
| pr_body = "PR for release issue {}".format(self.issue_link) | ||||||||||||
| if self.release_pipeline_link: | ||||||||||||
| pr_body += " \n After PR merged, trigger [release pipeline]({}) to release".format( | ||||||||||||
| self.release_pipeline_link | ||||||||||||
| ) | ||||||||||||
| if self.has_multi_packages: | ||||||||||||
| pr_body += f"\nBuildTargetingString\n {self.whole_package_name}\nSkip.CreateApiReview" | ||||||||||||
|
||||||||||||
| pr_body += f"\nBuildTargetingString\n {self.whole_package_name}\nSkip.CreateApiReview" | |
| pr_body += f"\nBuildTargetingString\n {self.whole_package_name}\nSkip.CreateApiReview" | |
| test_result = getattr(self, "test_result", None) | |
| if test_result: | |
| pr_body += "\n\nTest result: {}".format(test_result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The space before the newline character (" \n") is inconsistent with the pattern used elsewhere in this method (lines 338-339 use "\n" without a space). Consider using "\n" instead of " \n" for consistency.