From 8c39970397b19a5b5f45898d664288ee37d6694f Mon Sep 17 00:00:00 2001 From: Anurag <81210977+kranurag7@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:18:21 +0530 Subject: [PATCH] add verifier action for pull requests This commit adds a verifier action that will check the title of the pull request. Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com> --- .github/PULL_REQUEST_TEMPLATE.md | 1 + .github/workflows/pr-verify.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/pr-verify.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 94bcaca5d6..3a9aecaab7 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -32,6 +32,7 @@ Fixes # - [ ] squashed commits - [ ] includes documentation +- [ ] includes [emojis](https://github.com/kubernetes-sigs/kubebuilder-release-tools?tab=readme-ov-file#kubebuilder-project-versioning) - [ ] adds unit tests - [ ] adds or updates e2e tests diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml new file mode 100644 index 0000000000..4dab7d719e --- /dev/null +++ b/.github/workflows/pr-verify.yml @@ -0,0 +1,16 @@ +name: PR verify + +on: + pull_request_target: + types: [opened, edited, synchronize, reopened] + +jobs: + verify: + runs-on: ubuntu-latest + name: verify PR contents + steps: + - name: Verifier action + id: verifier + uses: kubernetes-sigs/kubebuilder-release-tools@3c3411345eedc489d1022288aa844691e92a9c29 # tag=v0.4.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }}