Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/agent-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
name: "Agent: review"

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

permissions: {}

jobs:
pr:
name: Hand the PR to the bot
if: github.repository_owner == 'microsoft' && github.event.label.name == 'agent-review'
if: >-
github.repository_owner == 'microsoft' && github.event.label.name == 'agent-review'
&& github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand Down
Loading