Commit dcd49c9
committed
opencode: distinguish PR Review vs Issue in run-name
The run-name was hardcoded to 'Issue #N' even when the trigger was a
pull_request_review_comment (e.g. /oc review on a PR). The number is
the same in both cases (PRs are issues in GH's data model), but the
label was misleading.
Make the run-name conditional on github.event_name:
- pull_request_review_comment -> 'PR Review #N - title'
- issue_comment -> 'Issue #N - title'
Also switched em-dash to hyphen-minus for US-ASCII safety (AGENTS.md).
Updated the orchestrator's run-title regex to match both formats:
/(?:Issue|PR Review) #(\d+)/
so the orchestrator can still extract the issue/PR number from the
workflow_run display_title and decide whether to advance.1 parent 958b433 commit dcd49c9
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments