mirror of
https://github.com/tauri-apps/tao.git
synced 2026-01-31 00:35:16 +01:00
Enable Change Comments On Fork-based PRs (#946)
This commit is contained in:
28
.github/workflows/covector-comment-on-fork.yml
vendored
Normal file
28
.github/workflows/covector-comment-on-fork.yml
vendored
Normal file
@@ -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"
|
||||
9
.github/workflows/covector-status.yml
vendored
9
.github/workflows/covector-status.yml
vendored
@@ -10,9 +10,10 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: covector status
|
||||
uses: jbolda/covector/packages/action@covector-v0
|
||||
id: covector
|
||||
# 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:
|
||||
command: 'status'
|
||||
command: "status"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
comment: true
|
||||
comment: true
|
||||
|
||||
Reference in New Issue
Block a user