Skip to content

Commit 51d77a6

Browse files
committed
github: Adjust watchdog run logic
1 parent d25b619 commit 51d77a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎.github/workflows/aiwatchdog.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ name: AI Detection
22
on:
33
# Use pull_request_target instead of pull_request (we need the secrets.OPENAI_API_KEY to be available for forks)
44
pull_request_target:
5-
types: [ready_for_review]
5+
types: [open, ready_for_review]
66
permissions:
77
contents: read
88
pull-requests: write
99
jobs:
1010
detect-ai:
1111
runs-on: ubuntu-latest
12+
if: ${{ !github.event.pull_request.draft }}
1213
steps:
1314
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
1415
- name: AI Watchdog

0 commit comments

Comments
 (0)