-
Notifications
You must be signed in to change notification settings - Fork 127
Remove code related to Package Storage v1 and update README #1021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Readme updated without the promote and publish commands. Removed also the reference to Github Authorization tokens since there is no need to communicate from elastic-package to Github to create Pull Requests.
| changelogTable = append(changelogTable, formatChangelogEntry(change)) | ||
| } | ||
| table := tablewriter.NewWriter(os.Stdout) | ||
| table := tablewriter.NewWriter(w) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to use the same writer as the other table, so it can be tested in cmd/status_test.go
| ### GitHub authorization | ||
|
|
||
| The `promote` and `publish` commands require access to the GitHub API to open pull requests or check authorized account data. | ||
| The tool uses the GitHub token to authorize user's call to API. The token can be stored in the `~/.elastic/github.token` | ||
| file or passed via the `GITHUB_TOKEN` environment variable. | ||
|
|
||
| Here are the instructions on how to create your own personal access token (PAT): | ||
| https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token | ||
|
|
||
| Make sure you have enabled the following scopes: | ||
| * `public_repo` — to open pull requests on GitHub repositories. | ||
| * `read:user` and `user:email` — to read your user profile information from GitHub in order to populate pull requests appropriately. | ||
|
|
||
| After creating or modifying your personal access token, authorize the token for | ||
| use of the Elastic organization: https://docs.github.com/en/github/authenticating-to-github/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As elastic-package should not create any PRs, I think this section is not needed anymore. Is there any other usage for this token ? @elastic/ecosystem
🌐 Coverage report
|
Added promote and publish commands again with all the flags so commands will not fail by unknown command or unknown flag. Instead these commands will show a deprecated message
This PR removes the references to Package Storage V1:
This PR also adds some tests to the status command about the local environment and pending changes not merged yet.
Example of output for the status subcommand:
To be merged after the switch to Package Storage V2.