Skip to content

Commit

Permalink
Make a Github action workflow to enforce a semver PR label is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouball committed Dec 30, 2023
1 parent c8e4c88 commit 678c401
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/check_for_semver_pr_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check for semver PR label

on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
check_for_semver_pr_label:
runs-on: ubuntu-latest

steps:
- name: Check that a semver label is present on the PR
if: github.event_name == 'pull_request'
uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: major,minor,patch,trivial
repo_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

pull_request:
branches: [main]
types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
build:
Expand Down

0 comments on commit 678c401

Please sign in to comment.