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
14 lines
308 B
YAML
14 lines
308 B
YAML
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 }}
|