-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Change Comments On Fork-based PRs (#1303)
- Loading branch information
Showing
2 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: covector comment | ||
on: | ||
workflow_run: | ||
workflows: [covector status] # the `name` of the workflow run on `pull_request` running `status` with `comment: true` | ||
types: | ||
- completed | ||
|
||
# note all other permissions are set to none if not specified | ||
# and these set the permissions for `secrets.GITHUB_TOKEN` | ||
permissions: | ||
# to read the action artifacts on `covector status` workflows | ||
actions: read | ||
# to write the comment | ||
pull-requests: write | ||
|
||
jobs: | ||
download: | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion == 'success' && | ||
(github.event.workflow_run.head_repository.full_name != github.repository || github.actor == 'dependabot[bot]') | ||
steps: | ||
- name: covector status | ||
# note we are using the release branch temporarily awaiting a publish of these versions: https://github.com/jbolda/covector/pull/317 | ||
# those changes include updates to support commenting from forks | ||
uses: jbolda/covector/packages/action@release | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
command: "status" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters