Skip to content

Commit 20f9bb8

Browse files
committed
🤖 ci: rerun Codex gate on comment
Change-Id: I1614db4b11baf6113efb7ff98cfa3f3ff27518d6 Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 8719f49 commit 20f9bb8

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 }}

0 commit comments

Comments
 (0)