Skip to content

Commit 8a8ed91

Browse files
committed
opt-in with the commit-rustfmt-changes label
1 parent b1a5ef0 commit 8a8ed91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/rustfmt-auto.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: Rustfmt Auto
22
on:
33
pull_request:
4+
types: [opened, synchronize, reopened, labeled]
45

56
jobs:
67
rustfmt:
78
runs-on: ubuntu-latest
8-
if: ${{ !startsWith(github.head_ref, 'mq-working-branch') }}
9+
if: >-
10+
contains(github.event.pull_request.labels.*.name, 'commit-rustfmt-changes') &&
11+
!startsWith(github.head_ref, 'mq-working-branch')
912
permissions:
1013
contents: write
1114
steps:

0 commit comments

Comments
 (0)