From 06897c7f249c5e1070299dd582d88fc3a5900d62 Mon Sep 17 00:00:00 2001 From: Sanmarg Sandeep Paranjpe <50082154+sanmarg@users.noreply.github.com> Date: Wed, 29 May 2024 22:47:19 +0530 Subject: [PATCH] Create pr-title.yaml Added the main action yaml Signed-off-by: Sanmarg Sandeep Paranjpe <50082154+sanmarg@users.noreply.github.com> --- .github/workflows/pr-title.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-title.yaml diff --git a/.github/workflows/pr-title.yaml b/.github/workflows/pr-title.yaml new file mode 100644 index 000000000..2cf1d798a --- /dev/null +++ b/.github/workflows/pr-title.yaml @@ -0,0 +1,24 @@ +name: "PR" + +on: + pull_request_target: + types: [opened, edited, reopened, synchronize] + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + + +jobs: + validate: + permissions: + contents: read + pull-requests: read + name: Validate PR Title + runs-on: ubuntu-latest + steps: + - uses: thehanimo/pr-title-checker@1d8cd483a2b73118406a187f54dca8a9415f1375 # v1.4.2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + configuration_path: ".github/pr-title-checker-config.json"