Add PR verify action (#171)

Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
Jian Qiu
2023-06-08 00:51:55 +08:00
committed by GitHub
parent 83152d4adb
commit 3105fbfc5b
2 changed files with 44 additions and 0 deletions

21
.github/pull_request_template.md vendored Normal file
View File

@@ -0,0 +1,21 @@
<!--
Thanks for creating a pull request!
If this is your first time, please make sure to review CONTRIBUTING.MD.
Please copy the appropriate `:text:` or icon to the beginning of your PR title:
:sparkles: ✨ feature
:bug: 🐛 bug fix
:book: 📖 docs
:memo: 📝 proposal
:warning: ⚠️ breaking change
:seedling: 🌱 other/misc
:question: ❓ requires manual review/categorization
-->
## Summary
## Related issue(s)
Fixes #

23
.github/workflows/pr-verify.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: PR Verifier
on:
# NB: using `pull_request_target` runs this in the context of
# the base repository, so it has permission to upload to the checks API.
# This means changes won't kick in to this file until merged onto the
# main branch.
pull_request_target:
types: [opened, edited, reopened, synchronize]
jobs:
verify:
name: verify PR contents
permissions:
checks: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Verifier action
id: verifier
uses: kubernetes-sigs/kubebuilder-release-tools@v0.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}