[llvm] [Utils] Add new merge-release-pr.py script. (PR #101630)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 01:08:44 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 10df3207434e603be5f7e9b3036d821dd5623d3a...22fd991bcff56818a682238dd4398def83f665b7 llvm/utils/release/merge-release-pr.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- merge-release-pr.py	2024-08-02 08:01:13.000000 +0000
+++ merge-release-pr.py	2024-08-02 08:08:13.569202 +0000
@@ -25,11 +25,10 @@
 import time
 from typing import List
 
 
 class PRMerger:
-
     def __init__(self, args):
         self.pr = args.pr
         self.args = args
 
     def run_gh(self, gh_cmd: str, args: List[str]) -> str:
@@ -171,11 +170,12 @@
         )
 
     def push_upstream(self):
         print("> Pushing changes...")
         subprocess.run(
-            ["git", "push", self.args.upstream, "HEAD:" + self.target_branch], check=True
+            ["git", "push", self.args.upstream, "HEAD:" + self.target_branch],
+            check=True,
         )
 
     def delete_local_branch(self):
         print("> Deleting the old branch...")
         subprocess.run(["git", "switch", "main"])

``````````

</details>


https://github.com/llvm/llvm-project/pull/101630


More information about the llvm-commits mailing list