Adds actions for pr and issue labeler, adds templates for issues and pr #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will be verify that all PRs have at | |
# least on the label: 'bugs', 'enhancement' before | |
# they can be merged. | |
name: Verify PR labels | |
on: | |
pull_request: | |
types: [opened, labeled, unlabeled, synchronize] | |
jobs: | |
check_pr_labels: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
name: Verify that the PR has a valid label | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Change Reason label exists | |
if: github.base_ref == 'main' | |
uses: jesusvasquez333/[email protected] | |
id: verify-change-label | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
valid-labels: 'bug, enhancement, chore' | |
pull-request-number: '${{ github.event.pull_request.number }}' | |
disable-reviews: true | |
- name: Verify PR label | |
if: github.base_ref == 'main' | |
uses: jesusvasquez333/[email protected] | |
id: verify-pr-label | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
valid-labels: 'major, minor, patch' | |
pull-request-number: '${{ github.event.pull_request.number }}' | |
disable-reviews: true |