fix(build): staple notarization ticket to .app and DMG #160
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| }); | |
| } |