Skip to content

Commit

Permalink
Enforce labels on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
avnes committed Dec 7, 2023
1 parent 54d30d4 commit 541621f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Enforce PR labels

on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]
branches: [main]
jobs:
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/[email protected]
with:
REQUIRED_LABELS_ANY: "release:minor,release:major,release:patch,norelease"
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['release:minor','release:major','release:patch', 'norelease']"
11 changes: 11 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,14 @@ jobs:
with:
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
slack_message: Test QA environment failed.

release:
runs-on: ubuntu-latest
needs: qa-up
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: patch
tag_prefix: ""

0 comments on commit 541621f

Please sign in to comment.