From 9299e2032069bcbfe0bb22c0029a509c1a932e0d Mon Sep 17 00:00:00 2001 From: Simon Pistache Date: Mon, 14 Apr 2025 13:23:54 +0200 Subject: [PATCH] feat: Ajoute un Conventional Commit --- .gitea/workflow/pc-cc.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflow/pc-cc.yml diff --git a/.gitea/workflow/pc-cc.yml b/.gitea/workflow/pc-cc.yml new file mode 100644 index 0000000..f600564 --- /dev/null +++ b/.gitea/workflow/pc-cc.yml @@ -0,0 +1,20 @@ +name: Conventional Commit +run-name: Enforce that PR name follow Conventional Commits + +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +jobs: + Validate: + runs-on: ubuntu-latest + steps: + - run: echo "Here is the Token ${{ gitea.token }}" + - run: echo "Here is the Event that triggered this workflow ${{ gitea.event_name }}" + - run: echo "Here is a secret ${{ secrets.RELEABOT_TOKEN }}" + - name: PR Conventional Commit Validation + uses: ytanikin/pr-conventional-commits@1.4.1 + with: + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' + add_label: 'false' +