diff --git a/.github/workflows/check-pull-request-convention.yml b/.github/workflows/check-pull-request-convention.yml new file mode 100644 index 000000000000..40a9f8f925ad --- /dev/null +++ b/.github/workflows/check-pull-request-convention.yml @@ -0,0 +1,19 @@ +name: "Check Pull Request title convention" +on: + pull_request: + branches: [master] + types: [opened, edited, reopened, ready_for_review, synchronize] +permissions: + contents: read +jobs: + check-pr-title-convention: + name: Check that title follows convention + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: Slashgear/action-check-pr-title@161cede0311ec624ae3ee76a2c27522f7b6fa2d8 + with: + regexp: '^\[[a-z]+.+\].+\((#[0-9]+)\)$|^\[deps\].+' + flags: "gm" + helpMessage: "Format: '[component] Message (#issuenumber)', see https://github.com/OpenCTI-Platform/opencti/blob/master/CONTRIBUTING.md#how-can-you-contribute" \ No newline at end of file