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:
Simon Steinbeiss 2024-03-04 14:57:20 +01:00 committed by Achilleas Koutsou
parent ea36e25b09
commit b8e0253493

14
.github/workflows/pr_best_practices.yml vendored Normal file
View 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 }}