Skip to content

Commit d56b260

Browse files
Merge pull request #3115 from shiftstack/hold
actions: Add a label to hold merging
2 parents da87790 + e734b3b commit d56b260

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/labels.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
- color: 'EC0101'
2626
description: Unable to figure out the semver type
2727
name: semver:unknown
28+
- color: 'D73A4A'
29+
description: Do not merge
30+
name: hold
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Ready
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- labeled
7+
8+
jobs:
9+
hold:
10+
if: github.event.pull_request.merged == false
11+
runs-on: ubuntu-latest
12+
steps:
13+
- if: >
14+
contains(github.event.pull_request.labels.*.name, 'hold')
15+
run: 'false'
16+
- if: >
17+
!contains(github.event.pull_request.labels.*.name, 'hold')
18+
run: 'true'

0 commit comments

Comments
 (0)