Skip to content

Tell apart the two GitHub issue errors devnull sends, so a refused issue doesn't say to check upstream - #233

Open
sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:fix/issue-error-codes
Open

sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:fix/issue-error-codes

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

a /bug or /feature that GitHub refuses comes back from POST /api/v1/issues as a 502 with github_issue_refused and one GitHub never answered comes back as a 502 with github_issue_unanswered (IssueController on devnull since dev-null-sh/dev-null.sh#1543)
the app only knew github_issue_failed which devnull never sends so code() was null for both and DraftsIssues took them for a proxy's error page

  • a refused issue said GitHub did not confirm the issue. Check upstream before retrying. when nothing was opened and trying again is safe
  • both codes are in ErrorCode now with no wording of their own so the sheet shows devnull's own message for each
  • a proxy's 502 page with no code still gets the check upstream line

the IssueCommandsTest dataset faked the old code with a 503 so it sends what devnull sends now and both cases fail on main

Screenshots

only the error line under the draft changes and only when GitHub says no which a local devnull can't make it do

  • No visible change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant