Skip to content

Commit

Permalink
add pr labeling workflows to packit (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Wigmore authored Oct 28, 2021
1 parent 4287c36 commit fcbdcfd
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/.patch_files
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.github/.patch_files
.github/.syncignore
.github/CODEOWNERS
.github/dependabot.yml
.github/labels.yml
.github/workflows/check-pr-labels.yml
.github/workflows/codeql-analysis.yml
.github/workflows/label-pr.yml
.github/workflows/lint.yml
.github/workflows/synchronize-labels.yml
.github/workflows/test-pull-request.yml
.gitignore
LICENSE
NOTICE
README.md
24 changes: 24 additions & 0 deletions .github/workflows/check-pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate PR Labels
on:
pull_request:
branches:
- main
types:
- synchronize
- opened
- reopened
- labeled
- unlabeled

concurrency: pr_labels

jobs:
semver:
name: Ensure Minimal Semver Labels
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v1
with:
count: 1
labels: semver:major, semver:minor, semver:patch
mode: exactly
17 changes: 17 additions & 0 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Auto-label PR
on:
pull_request:
branches:
- main

concurrency: pr_labels

jobs:
semver-label:
name: Semver Auto-Label
runs-on: ubuntu-latest
steps:
- name: Auto-label Semver
uses: paketo-buildpacks/github-config/actions/pull-request/auto-semver-label@main
env:
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}

0 comments on commit fcbdcfd

Please sign in to comment.