Skip to content

Commit 1581d4c

Browse files
authored
Merge pull request #2 from openai/codex/lock-prs
Automatically lock new PR conversations
2 parents fd4aeeb + 2710f99 commit 1581d4c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎.github/workflows/lock-prs.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lock pull requests
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
lock:
12+
if: github.repository == 'openai/math'
13+
runs-on: ubuntu-24.04
14+
timeout-minutes: 2
15+
steps:
16+
- name: Lock the pull request conversation
17+
run: gh api --method PUT "repos/$GITHUB_REPOSITORY/issues/$PR_NUMBER/lock"
18+
env:
19+
GH_TOKEN: ${{ github.token }}
20+
PR_NUMBER: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)