From 9abaad3e0d34d22997e1ce69ca5b0034efc61f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Fri, 30 May 2025 12:49:57 +0530 Subject: [PATCH] Add Lint PR workflow --- .github/pull_request_template.md | 13 ------------- .github/workflows/lint-pr.yaml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/lint-pr.yaml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 6ae2fd2fa5..692ba9a8ea 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -30,19 +30,6 @@ Detail the steps to test your changes. This helps reviewers verify your work. - Include relevant testing environment details if applicable. --> -### Type of Change - - - -- [ ] ๐Ÿ› **Bug Fix**: Non-breaking change that fixes an issue. -- [ ] โœจ **New Feature**: Non-breaking change that adds functionality. -- [ ] ๐Ÿ’ฅ **Breaking Change**: Fix or feature that would cause existing functionality to not work as expected. -- [ ] โ™ป๏ธ **Refactor**: Code change that neither fixes a bug nor adds a feature. -- [ ] ๐Ÿ’… **Style**: Changes that do not affect the meaning of the code (white-space, formatting, etc.). -- [ ] ๐Ÿ“š **Documentation**: Updates to documentation files. -- [ ] โš™๏ธ **Build/CI**: Changes to the build process or CI configuration. -- [ ] ๐Ÿงน **Chore**: Other changes that don't modify `src` or test files. - ### Pre-Submission Checklist diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml new file mode 100644 index 0000000000..142e52249a --- /dev/null +++ b/.github/workflows/lint-pr.yaml @@ -0,0 +1,19 @@ +name: "Lint PR" + +on: + pull_request_target: + types: + - opened + - edited + - reopened + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}