actions: Add pr-best-practices workflow

This commit adds the pr-best-practices check, which prevents pull
requests without descriptions being merged and which allows developers
to quickly create Jira Tasks based on the /jira-epic command in pull
request descriptions or comments.
This commit is contained in:
Simon Steinbeiss 2024-12-20 14:04:12 +01:00 committed by Michael Vogt
parent 69b6ed5857
commit 51e4171caf

18
.github/workflows/pr_best_practices.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: "Verify PR best practices"
on:
pull_request_target:
branches: [main]
types: [opened, synchronize, reopened, edited]
issue_comment:
types: [created]
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 }}
jira_token: ${{ secrets.IMAGEBUILDER_BOT_JIRA_TOKEN }}