actions: Add a PR best practices check
This pipeline tests: 1. If the PR description is not empty (blocking) 2. If the PR title follows our format (non-blocking) `component: This is the change (JIRA-001)` 3. If 1. and 2. are True, it adds a 'best practice' label to the PR
This commit is contained in:
parent
ea36e25b09
commit
b8e0253493
1 changed files with 14 additions and 0 deletions
14
.github/workflows/pr_best_practices.yml
vendored
Normal file
14
.github/workflows/pr_best_practices.yml
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
name: "Verify PR best practices"
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
pr-best-practices:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: PR best practice check
|
||||
uses: osbuild/pr-best-practices@main
|
||||
with:
|
||||
token: ${{ secrets.SCHUTZBOT_GITHUB_ACCESS_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue