From b999c048a1710a2951fbf0affce5642b710c2cf6 Mon Sep 17 00:00:00 2001 From: mikhail-klimko Date: Wed, 13 Mar 2024 20:23:26 +0300 Subject: [PATCH] feat: add pr-title workflow --- .github/PULL_REQUEST_TEMPLATE.md | 14 +++++++++++++- .github/workflows/validate-pr-title.yaml | 21 +++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/validate-pr-title.yaml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d52927c..45d2319 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,4 +3,16 @@ ## Why ## Notes - \ No newline at end of file + + +## Labels + +Assign the following labels to the PR: + +`security` - to trigger image scanning in CI build + +## PR Comments + +Add the following comments to the PR: + +`/e2e` - to trigger E2E build diff --git a/.github/workflows/validate-pr-title.yaml b/.github/workflows/validate-pr-title.yaml new file mode 100644 index 0000000..15ab72c --- /dev/null +++ b/.github/workflows/validate-pr-title.yaml @@ -0,0 +1,21 @@ +## Reference: https://github.com/amannn/action-semantic-pull-request +name: PR title + +on: + pull_request: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + validate-pr-title: + runs-on: ubuntu-latest + steps: + + - uses: amannn/action-semantic-pull-request@v5.4.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + requireScope: false \ No newline at end of file