From 3105fbfc5b67d53dc5e8b087f3be20f1172a3d70 Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Thu, 8 Jun 2023 00:51:55 +0800 Subject: [PATCH] Add PR verify action (#171) Signed-off-by: Jian Qiu --- .github/pull_request_template.md | 21 +++++++++++++++++++++ .github/workflows/pr-verify.yml | 23 +++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/pr-verify.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..3ff9f69a1 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,21 @@ + +## Summary + +## Related issue(s) + +Fixes # \ No newline at end of file diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml new file mode 100644 index 000000000..bf1790638 --- /dev/null +++ b/.github/workflows/pr-verify.yml @@ -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 }}