You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pr-Body-Labels plugin throws 404 error in GitHub Actions
Run npx auto pr-check \
npx auto pr-check \
--url ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} \
--pr $(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") \
--verbose -v -vv
shell: /usr/bin/bash -e {0}
env:
GH_TOKEN: ***
...
ℹ info Using command: 'pr-check' for 'https://github.com/bicstone/temp-auto-pr-body-labels/actions/runs/2220697485'
ℹ info Getting Pull Request: 1
ℹ info Getting pull request info using: { owner: 'bicstone', repo: 'temp-auto-pr-body-labels', pull_number: 1 }
ℹ info Got pull request data
...
ℹ info Got pull request info
ℹ info Creating "major" label to PR 1
ℹ info Removing "minor" from #1
ℹ info Removing "patch" from #1
ℹ info Got response from addLabels
...
ℹ info Added labels on Pull Request.
...
ℹ info Posting status to GitHub
{ description: 'Label does not exist', state: 'error' }
ℹ info Creating status using:
{
_all: {
context: 'ci/pr-check',
url: 'https://github.com/bicstone/temp-auto-pr-body-labels/actions/runs/2220697485',
pr: 1,
verbose: [ true, true, true, true ]
},
main: {
pr: 1,
url: 'https://github.com/bicstone/temp-auto-pr-body-labels/actions/runs/2220697485',
context: 'ci/pr-check'
},
context: 'ci/pr-check',
verbose: [ true, true, true, true ],
_command: 'pr-check',
description: 'Label does not exist',
state: 'error',
target_url: 'https://github.com/bicstone/temp-auto-pr-body-labels/actions/runs/2220697485',
sha: undefined,
owner: 'bicstone',
repo: 'temp-auto-pr-body-labels'
}
Error: Failed to post status to Pull Request with error code 404
at Auto.prCheck (/home/runner/work/temp-auto-pr-body-labels/temp-auto-pr-body-labels/node_modules/@auto-it/core/dist/auto.js:619:23)
at async execute (/home/runner/work/temp-auto-pr-body-labels/temp-auto-pr-body-labels/node_modules/auto/dist/run.js:50:17)
at async Object.runCli (/home/runner/work/temp-auto-pr-body-labels/temp-auto-pr-body-labels/node_modules/auto/dist/run.js:125:5)
Error: Process completed with exit code 1.
When add "removeStaleLabels": false option, process completed with exit code 0.
I think the problem in the processing of remove unchecked labels. #2173
bicstone
changed the title
Pr-Body-Labels Plugin exits with 404 error in GitHub Actions
Pr-Body-Labels Plugin throws 404 error in GitHub Actions
Apr 27, 2022
I am not sure which version this is due to, but I have confirmed that this bug has already been fixed, so this issue is closed. Please clone this issue if necessary.
Have a great new year!
Describe the bug
Pr-Body-Labels plugin throws 404 error in GitHub Actions
https://github.com/bicstone/temp-auto-pr-body-labels/runs/6158970503?check_suite_focus=true#step:5:1
To Reproduce
npm install @auto-it/pr-body-labels
"pr-body-labels"
to.autorc
.npx auto pr-check
in GitHub Actionsee https://github.com/bicstone/temp-auto-pr-body-labels/pull/1/files
Expected behavior
Process completed with exit code 0.
Environment information:
https://github.com/bicstone/temp-auto-pr-body-labels/runs/6158960840?check_suite_focus=true#step:5:1
Additional context
When add
"removeStaleLabels": false
option, process completed with exit code 0.I think the problem in the processing of remove unchecked labels.
#2173
https://github.com/bicstone/temp-auto-pr-body-labels/runs/6187531888?check_suite_focus=true#step:5:940
https://github.com/bicstone/temp-auto-pr-body-labels/pull/1/commits/54e5f651fc75f8ef28d6e0691eb51e4389114618
The text was updated successfully, but these errors were encountered: