Skip to content

Commit 0ab2b5d

Browse files
authored
Merge pull request #2467 from shiftstack/fix_semver
tooling: Fix semver tooling issues
2 parents 323ea7b + 5663105 commit 0ab2b5d

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/semver-labels.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
color: '9E1957'
44
- name: semver:minor
55
description: Backwards-compatible change
6-
color: 'D6FC76'
6+
color: 'FBCA04'
77
- name: semver:patch
88
description: No API change
9-
color: 'DBF568'
9+
color: '6E7624'
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
name: Semver labels
1+
name: Ensure labels
22
on:
33
push:
44
branches:
55
- master
66
paths:
77
- .github/semver-labels.yaml
8+
- .github/workflows/semver-labels.yaml
89
jobs:
9-
build:
10+
semver:
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v2
1314
- uses: micnncim/action-label-syncer@v1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1417
with:
1518
manifest: .github/semver-labels.yaml

.github/workflows/semver-require.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pull Request Labels
1+
name: Verify PR Labels
22
on:
33
pull_request:
44
types:
@@ -7,7 +7,7 @@ on:
77
- unlabeled
88
- synchronize
99
jobs:
10-
label:
10+
semver:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: mheap/github-action-required-labels@v2
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Reset semver labels on PR push'
1+
name: Reset PR labels on push
22

33
# **What it does**: When the content of a PR changes, this workflow removes the semver label
44
# **Why we have it**: To make sure semver labels are up-to-date.
@@ -10,12 +10,12 @@ on:
1010
- synchronize
1111

1212
jobs:
13-
remove-semver-label:
14-
permissions:
15-
pull-requests: write
13+
semver:
1614
runs-on: ubuntu-latest
1715
steps:
1816
- name: Remove the semver label
1917
uses: andymckay/labeler@1.0.4
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:
2121
remove-labels: "semver:patch, semver:minor, semver:major"

0 commit comments

Comments
 (0)