[codex] emit outbound events for streamed results #18
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: Label PR | |
| on: | |
| pull_request: | |
| types: [opened, edited] | |
| jobs: | |
| label: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const body = context.payload.pull_request.body || ''; | |
| const labels = []; | |
| if (body.includes('[x] **Feature skill**')) { labels.push('PR: Skill'); labels.push('PR: Feature'); } | |
| else if (body.includes('[x] **Utility skill**')) labels.push('PR: Skill'); | |
| else if (body.includes('[x] **Operational/container skill**')) labels.push('PR: Skill'); | |
| else if (body.includes('[x] **Fix**')) labels.push('PR: Fix'); | |
| else if (body.includes('[x] **Simplification**')) labels.push('PR: Refactor'); | |
| else if (body.includes('[x] **Documentation**')) labels.push('PR: Docs'); | |
| if (body.includes('contributing-guide: v1')) labels.push('follows-guidelines'); | |
| 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, | |
| }); | |
| } |