mirror of
https://github.com/vee1e/isscope.git
synced 2026-09-01 10:48:36 +00:00
fix vouch attempt 2
This commit is contained in:
parent
1247f3a9c8
commit
1971ca1853
1 changed files with 17 additions and 3 deletions
20
.github/workflows/vouch.yml
vendored
20
.github/workflows/vouch.yml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
manage-by-issue:
|
||||
manage-by-comment:
|
||||
if: github.event_name == 'issue_comment' && github.event.action == 'created'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
|
@ -50,14 +50,26 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Issue/PR Number
|
||||
id: get-number
|
||||
run: |
|
||||
if [ "${{ github.event.issue.pull_request }}" != "" ]; then
|
||||
echo "number=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
|
||||
echo "is_pr=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "number=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
|
||||
echo "is_pr=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- uses: mitchellh/vouch/action/manage-by-issue@v1
|
||||
with:
|
||||
issue-id: ${{ github.event.issue.number }}
|
||||
issue-id: ${{ steps.get-number.outputs.number }}
|
||||
comment-id: ${{ github.event.comment.id }}
|
||||
pull-request: true
|
||||
merge-immediately: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
manage-by-pr-comment:
|
||||
manage-by-pr-review-comment:
|
||||
if: github.event_name == 'pull_request_review_comment' && github.event.action == 'created'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
|
@ -71,5 +83,7 @@ jobs:
|
|||
with:
|
||||
issue-id: ${{ github.event.pull_request.number }}
|
||||
comment-id: ${{ github.event.comment.id }}
|
||||
pull-request: true
|
||||
merge-immediately: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue