Skip to content

Commit 1318c7e

Browse files
committed
chore: start the review bot on pull_request_target again
1 parent af8baa0 commit 1318c7e

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎.github/workflows/agent-review.yml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@
33
name: "Agent: review"
44

55
on:
6-
# A PR from a fork gets no secrets here, and the bot cannot push to a fork: the job skips it.
7-
pull_request:
6+
# Runs from the default branch, for PRs from forks too. It never checks out the PR.
7+
pull_request_target:
88
types: [labeled]
99

1010
permissions: {}
1111

1212
jobs:
1313
pr:
1414
name: Hand the PR to the bot
15-
if: >-
16-
github.repository_owner == 'microsoft' && github.event.label.name == 'agent-review'
17-
&& github.event.pull_request.head.repo.full_name == github.repository
15+
if: github.repository_owner == 'microsoft' && github.event.label.name == 'agent-review'
1816
runs-on: ubuntu-latest
1917
timeout-minutes: 5
2018
steps:

0 commit comments

Comments
 (0)