[llvm] [GitHub] Run format job on stacked PRs (PR #102957)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 12:10:01 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Tobias Stadler (tobias-stadler)
<details>
<summary>Changes</summary>
Currently the formatter only runs on the main branch, which prevents the formatter from running for stacked PRs, which have to target user branches instead of main.
Disclaimer: I have never touched GH actions before and I don't know if this is correct, but this seemed like a simple fix. If this is completely wrong, feel free to close and I can file an issue instead.
---
Full diff: https://github.com/llvm/llvm-project/pull/102957.diff
1 Files Affected:
- (modified) .github/workflows/pr-code-format.yml (+1)
``````````diff
diff --git a/.github/workflows/pr-code-format.yml b/.github/workflows/pr-code-format.yml
index 22357e5d99e4c..6b588f19e307b 100644
--- a/.github/workflows/pr-code-format.yml
+++ b/.github/workflows/pr-code-format.yml
@@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
+ - 'users/**'
jobs:
code_formatter:
``````````
</details>
https://github.com/llvm/llvm-project/pull/102957
More information about the llvm-commits
mailing list