Skip to content

Bump the all-actions group across 1 directory with 4 updates #540

Bump the all-actions group across 1 directory with 4 updates

Bump the all-actions group across 1 directory with 4 updates #540

Workflow file for this run

name: Check Pull Request
on:
pull_request_target:
types: [opened, edited, reopened, synchronize, ready_for_review, review_requested]
permissions:
contents: read
pull-requests: write
jobs:
check_commit_message:
name: Check Commit Message
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Check Commit Type"
uses: gsactions/commit-message-checker@v2
with:
pattern: '^(\[!!!\] )?(\[(WIP|POC)\] )?\[(BUGFIX|DOCS|FEATURE|TASK|RELEASE|DEVBOX)\] [A-Z].+'
flags: ''
error: 'Subject must start with [BUGFIX], [FEATURE], [TASK], [DOCS], [RELEASE], or [DEVBOX] (optionally prefixed with [!!!] or [WIP]/[POC]), followed by a capital letter. See https://docs.typo3.org/m/typo3/guide-contributionworkflow/main/en-us/Appendix/CommitMessage.html'
- name: "Check Subject Length"
uses: gsactions/commit-message-checker@v2
with:
pattern: '^.{1,72}$'
flags: ''
error: 'Subject line exceeds 72 characters.'
excludeDescription: 'true'
- name: "Check No Trailing Period"
uses: gsactions/commit-message-checker@v2
with:
pattern: '^[^.]*[^.]$'
flags: ''
error: 'Subject line must not end with a period.'
excludeDescription: 'true'
block_wip:
name: Block WIP/POC from merging
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Check for WIP/POC prefix"
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
if echo "$PR_TITLE" | grep -qE '^\[?(WIP|POC)\]?'; then
echo "::error::This PR is marked as [WIP] or [POC] and cannot be merged. Remove the prefix when ready."
exit 1
fi
assign_labels:
name: Assign Labels
needs: check_commit_message
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Assign and check labels"
uses: fuxingloh/multi-labeler@v5
with:
config-path: .github/pr-labeler.yml