From 1bc7b7adcfd6cc7c7bf1b7cfa3a9d896f7fa7d01 Mon Sep 17 00:00:00 2001 From: makspll Date: Tue, 3 Dec 2024 12:23:16 +0000 Subject: [PATCH 1/2] add pr title workflow --- .github/workflows/pr-titles.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pr-titles.yml diff --git a/.github/workflows/pr-titles.yml b/.github/workflows/pr-titles.yml new file mode 100644 index 0000000000..16966c8475 --- /dev/null +++ b/.github/workflows/pr-titles.yml @@ -0,0 +1,25 @@ +name: "Lint PR" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + fix + feat \ No newline at end of file From 86835240acb013195da1f3016408055a05656ee3 Mon Sep 17 00:00:00 2001 From: makspll Date: Tue, 3 Dec 2024 12:34:38 +0000 Subject: [PATCH 2/2] allow chore --- .github/workflows/pr-titles.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-titles.yml b/.github/workflows/pr-titles.yml index 16966c8475..a55a70ffdb 100644 --- a/.github/workflows/pr-titles.yml +++ b/.github/workflows/pr-titles.yml @@ -22,4 +22,5 @@ jobs: with: types: | fix - feat \ No newline at end of file + feat + chore \ No newline at end of file