Commit graph

8 commits

Author SHA1 Message Date
Max Beizer
dde46dc424
Add "Resource not accessible" to ProjectsV2IgnorableError
When a token (GitHub App, fine-grained PAT, or GITHUB_TOKEN) lacks the
project permission, querying projectItems on a PR or issue fails with
"Resource not accessible by integration" or "Resource not accessible by
personal access token". ProjectsV2IgnorableError did not match these
errors, causing commands like pr view, pr edit, and issue view to fail
entirely instead of gracefully omitting project data.

Add "Resource not accessible by" as an ignorable error prefix. This is
safe because ProjectsV2IgnorableError is only called in project-specific
code paths.

Closes #13280

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-24 17:16:00 -05:00
Andy Feller
1117477da2 Add test to ensure null values are skipped 2025-12-22 10:16:21 -05:00
William Martin
e775bc64b8 Fix PR and Issue list
Separate the GQL and JSON decoded types that we use for queries.
2023-11-27 17:00:10 +01:00
Sam Coe
e843349a13 Extract Project Status into fragment to fix unmarshal error 2023-11-27 15:01:22 +01:00
William Martin
65d63e1bc9 Add test for ProjectV2Item query Status column 2023-11-27 10:53:19 +01:00
Mislav Marohnić
d2f3e89ad3
Fix ignoring ProjectsV2-specific errors for GHES 2023-01-27 18:08:56 +01:00
Mislav Marohnić
d49e1ff021
Fix flakey TestUpdateProjectV2Items (#6909)
Restructure test to not depend on the order in which Go maps are iterated.
2023-01-24 18:01:25 +01:00
Ilya Yatsishin
179e9c256d
Add projectsV2 support to issue create, issue edit, pr create, and pr edit (#6735)
Co-authored-by: pshevche <pavel.shevchenko.95@gmail.com>
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2023-01-19 22:13:09 +00:00