Skip to content

chore(deps): update @atlaskit/badge to v17 #6

chore(deps): update @atlaskit/badge to v17

chore(deps): update @atlaskit/badge to v17 #6

Workflow file for this run

name: Triage PR
on:
pull_request_target:
types: [opened, reopened, edited, synchronize, ready_for_review]
branches: [main]
permissions:
contents: read # the config file
pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request)
statuses: write # to generate status
checks: write # to generate status
jobs:
pr-lint:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const title = context.payload.pull_request.title;
const regex = /^(?<type>build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|deps)(?<scope>\([\w\-\/]+\)?((?=:\s)|(?=!:\s)))?(?<breaking>!)?(?<subject>:\s.*)?/gm;
const match = regex.exec(title);
if (!match) {
core.setFailed('Invalid PR title');
}
if (!match.groups.type && !match.groups.subject) {
core.setFailed('Missing type and subject in PR title');
}
if (!match.groups.type) {
core.setFailed('Missing type in PR title');
}
if (!match.groups.subject) {
core.setFailed('Missing subject in PR title');
}
auto-labeler:
name: Auto-label PR
runs-on: ubuntu-latest
steps:
- uses: fuxingloh/multi-labeler@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}