Skip to content

Commit

Permalink
[v6.2] Trigger Assign workflow on opened and ready_for_review events. (
Browse files Browse the repository at this point in the history
  • Loading branch information
quinqu authored Dec 8, 2021
1 parent 27b3df2 commit a085327
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/assign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name: Assign
on:
pull_request_target:
types: [assigned, opened, reopened, ready_for_review]
types: [opened, ready_for_review]

# Limit the permissions on the GitHub token for this workflow to the subset
# that is required. In this case, the assign workflow only needs to be able
Expand All @@ -30,6 +30,7 @@ permissions:
jobs:
auto-request-review:
name: Auto Request Review
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
# Checkout master branch of Teleport repository. This is to prevent an
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
pull_request_review:
type: [submitted, edited, dismissed]
pull_request_target:
types: [assigned, opened, reopened, ready_for_review, synchronize]
types: [opened, ready_for_review]

# Limit the permissions on the GitHub token for this workflow to the subset
# that is required. In this case, the check workflow needs to invalidate
Expand All @@ -32,6 +32,7 @@ permissions:
jobs:
check-reviews:
name: Checking reviewers
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
# Checkout master branch of Teleport repository. This is to prevent an
Expand Down

0 comments on commit a085327

Please sign in to comment.