File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Codex Comment Watch
2+
3+ on :
4+ issue_comment :
5+ types :
6+ - created
7+ pull_request_review_comment :
8+ types :
9+ - created
10+ pull_request_review :
11+ types :
12+ - submitted
13+
14+ permissions :
15+ contents : read
16+ pull-requests : read
17+
18+ concurrency :
19+ group : codex-comment-watch-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}
20+ cancel-in-progress : true
21+
22+ jobs :
23+ check-codex-comments :
24+ name : Check Codex Comments
25+ runs-on : ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
26+ if : >
27+ contains(fromJson('["chatgpt-codex-connector","chatgpt-codex-connector[bot]"]'), github.event.sender.login)
28+ && (github.event_name != 'issue_comment' || github.event.issue.pull_request != null)
29+ steps :
30+ - name : Checkout code
31+ uses : actions/checkout@v4
32+ with :
33+ fetch-depth : 0 # Required for git describe to find tags
34+
35+ - name : Determine PR number
36+ id : determine-pr
37+ run : |
38+ if [[ "${{ github.event_name }}" == "issue_comment" ]]; then
39+ echo "value=${{ github.event.issue.number }}" >> "$GITHUB_OUTPUT"
40+ else
41+ echo "value=${{ github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
42+ fi
43+
44+ - name : Check for unresolved Codex comments
45+ env :
46+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+ run : ./scripts/check_codex_comments.sh ${{ steps.determine-pr.outputs.value }}
You can’t perform that action at this time.
0 commit comments