Skip to content

Commit 5463c1e

Browse files
authored
add next PR label
1 parent d87c88e commit 5463c1e

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

open-bot.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,27 @@ rules:
311311

312312

313313

314-
# add non-master label to pull request to other branch
314+
# add non-master and next label to pull request to other branch
315+
- filters:
316+
pull_request:
317+
base_ref: "^master$"
318+
actions:
319+
label:
320+
remove: "PR: non-master"
315321
- filters:
316322
pull_request:
317-
base_ref: "^(?!master)"
323+
base_ref: "^next$"
318324
actions:
319-
label: "PR: non-master"
325+
label:
326+
add: "PR: next"
327+
remove: "PR: non-master"
328+
- filters:
329+
pull_request:
330+
base_ref: "^(?!master$)(?!next$)"
331+
actions:
332+
label:
333+
add: "PR: non-master"
334+
remove: "PR: next"
320335

321336

322337

0 commit comments

Comments
 (0)