Skip to content

[GitHub] Run format job on stacked PRs #102957

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

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

tobias-stadler
Copy link
Contributor

@tobias-stadler tobias-stadler commented Aug 12, 2024

Currently the formatter only runs for 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, but this seemed like a simple fix. If this is completely wrong, feel free to close and I can file an issue instead.

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.
@llvmbot
Copy link
Member

llvmbot commented Aug 12, 2024

@llvm/pr-subscribers-github-workflow

Author: Tobias Stadler (tobias-stadler)

Changes

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 --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:

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tobias-stadler tobias-stadler merged commit 9811971 into llvm:main Aug 14, 2024
8 checks passed
@tobias-stadler tobias-stadler deleted the workflow-stackedpr-format branch August 14, 2024 12:11
qiaojbao pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Aug 29, 2024
…f3eb12095

Local branch amd-gfx a22f3eb Merged main:6de04e6fe8b1520ef3e4073ff222e623b7dc9cb9 into amd-gfx:697d8fbeaade
Remote branch main 9811971 [GitHub] Run format job on stacked PRs (llvm#102957)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants