Skip to content

fix(build): staple notarization ticket to .app and DMG #160

fix(build): staple notarization ticket to .app and DMG

fix(build): staple notarization ticket to .app and DMG #160

Workflow file for this run

name: Auto-label PRs
on:
pull_request:
types: [opened, edited]
jobs:
label:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Label PR from conventional commit title
uses: actions/github-script@v8
with:
script: |
const title = context.payload.pull_request.title;
const labels = [];
if (/^feat[\s(:|!]/.test(title)) labels.push('enhancement');
else if (/^fix[\s(:|!]/.test(title)) labels.push('bug');
else if (/^docs[\s(:|!]/.test(title)) labels.push('documentation');
else if (/^(ci|build|chore)[\s(:|!]/.test(title)) labels.push('chore');
else if (/^(refactor|perf|test)[\s(:|!]/.test(title)) labels.push('chore');
if (labels.length > 0) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels
});
}