diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 5de8e2f3..8df82e5e 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -53,8 +53,6 @@ jobs: starts with an uppercase character. wip: true validateSingleCommit: ${{ inputs.validateSingleCommit }} - scopes: | - * - name: ๐Ÿท๏ธ Check PR labels if: ${{ inputs.checkLabels }} @@ -79,6 +77,5 @@ jobs: - name: ๐Ÿงพ Validate Commit Messages uses: webiny/action-conventional-commits@v1.3.1 with: - subject_case: false - types: ${{ inputs.types }} + allowed-commit-types: ${{ inputs.types }} ... diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml new file mode 100644 index 00000000..91e1435e --- /dev/null +++ b/.github/workflows/pr_checks.yml @@ -0,0 +1,31 @@ +--- +name: '๐Ÿ” PR Validation (compat alias)' +on: + workflow_call: + inputs: + types: + required: false + type: string + requireScope: + required: false + type: boolean + subjectPattern: + required: false + type: string + validateSingleCommit: + required: false + type: boolean + checkLabels: + required: false + type: boolean + +jobs: + delegate: + uses: ./.github/workflows/pr-checks.yml + with: + types: ${{ inputs.types }} + requireScope: ${{ inputs.requireScope }} + subjectPattern: ${{ inputs.subjectPattern }} + validateSingleCommit: ${{ inputs.validateSingleCommit }} + checkLabels: ${{ inputs.checkLabels }} + secrets: inherit