suzuki-shunsuke / auto-ready-for-review-action

GitHub Action to make draft pull requests ready for review when CI succeeds
MIT License
2 stars 0 forks source link

`GITHUB_TOKEN` secret seems to be unavailable `API call failed: GraphQL: Resource not accessible by integration (markPullRequestReadyForReview)` #3

Open suzuki-shunsuke opened 7 months ago

suzuki-shunsuke commented 7 months ago

https://github.com/suzuki-shunsuke/test-github-action/actions/runs/8515835270/job/23324001889#step:2:30

      - uses: suzuki-shunsuke/auto-ready-for-review-action@main
Run while read -r pr_number author; do
===> Update PR 215 (author: suzuki-shunsuke)
API call failed: GraphQL: Resource not accessible by integration (markPullRequestReadyForReview)
Error: Process completed with exit code 1.

https://github.com/suzuki-shunsuke/auto-ready-for-review-action/blob/b0d1fb653be1b824a4cc8c282a6152ce1f42cb89/action.yaml#L28

suzuki-shunsuke commented 7 months ago

For now, a generated GITHUB_TOKEN is not allowed to mark a PR as ready to review

Update: the above has now changed on the platform and doing gh pr ready to mark a PR as ready or gh pr ready --undo to convert a PR back to draft now works with the generated GITHUB_TOKEN in GitHub Actions.

It seems not to work. 🤔

suzuki-shunsuke commented 7 months ago

I reported the issue.