Skip to content

Commit

Permalink
Comment only on PRs submitted from other repos
Browse files Browse the repository at this point in the history
  • Loading branch information
julio-lopez committed Jul 22, 2023
1 parent a9a3687 commit 7b7c232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
column: To Be Triaged
pull-requests-comment:
name: Triage Pull Request
if: github.repository == 'kanisterio/kanister' && github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot'
if: github.repository == 'kanisterio/kanister' && github.event_name == 'pull_request' && github.actor != 'dependabot'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/[email protected]
# Avoid adding a comment when the PR is on the same repo.
if: github.event.action == 'opened'
if: github.event.action == 'opened' && github.event.pull_request.head.repo.fork
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand Down

0 comments on commit 7b7c232

Please sign in to comment.