Skip to content

Throw an error if GITHUB_TOKEN isn't set#38

Merged
schlessera merged 2 commits into
mainfrom
improve/error-no-github-token
Oct 31, 2022
Merged

Throw an error if GITHUB_TOKEN isn't set#38
schlessera merged 2 commits into
mainfrom
improve/error-no-github-token

Conversation

@danielbachhuber

@danielbachhuber danielbachhuber commented Oct 13, 2022

Copy link
Copy Markdown
Member

I keep running into this error when I forget to set GITHUB_TOKEN:

$ wp maintenance release generate db-command
--- wp-cli/db-command ---
Checking milestone '2.0.23'...
Milestone '2.0.23' does not have a matching release, generating one...
Generating the following release:
-----
Version 2.0.23 (v2.0.23)
- Fix PHP 8.1 fatal error with `--orderby=size` and `--size_format=mb` [[#230](https://github.com/wp-cli/db-command/pull/230)]

-----
Is the above correct? [y/n] y
Creating release Version 2.0.23 v2.0.23...
Error: Failed request to https://api.github.com/repos/wp-cli/db-command/releases
GitHub API returned: {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#create-a-release"} (HTTP code 404)

@danielbachhuber danielbachhuber added this to the 2.0.1 milestone Oct 13, 2022
@danielbachhuber danielbachhuber self-assigned this Oct 28, 2022
@schlessera schlessera merged commit bca9093 into main Oct 31, 2022
@schlessera schlessera deleted the improve/error-no-github-token branch October 31, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants