Skip to content
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

Correct owner and repo in CLI message of gha_add_secret() #299

Merged
merged 1 commit into from
Dec 20, 2020

Conversation

gadenbuie
Copy link
Contributor

If you're in a project owner/repoA but adding a secret to another repository with repo_slug = "owner/repoB", the CLI alert message will always report having added the secret to owner/repoA.

Since owner and repo are already found at the start of the function, I changed the message to use those objects directly rather than calling get_owner(remote) etc again.

If you're in a project `owner/repoA` but adding a secret to another repository with `repo_slug = "owner/repoB"`, the CLI alert message will always report having added the secret to `owner/repoA`.

Since `owner` and `repo` are already found at the start of the function, I changed the message to use those objects directly rather than calling `get_owner(remote)` etc again.
@pat-s
Copy link
Member

pat-s commented Dec 20, 2020

Thanks for the explanation and the time for submitting the patch!

@pat-s pat-s merged commit 9b3e69a into ropensci:master Dec 20, 2020
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.

2 participants