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

Make hub easier to use from GitHub Actions #2256

Merged
merged 3 commits into from
Sep 6, 2019
Merged

Conversation

mislav
Copy link
Owner

@mislav mislav commented Sep 6, 2019

Previously, hub enabled usage within Actions if GITHUB_USER was explicitly specified https://github.com/github/hub/releases/tag/v2.12.3

To make this step optional for the user, hub now infers GITHUB_USER from the first part of GITHUB_REPOSITORY which should be a value set by default within Action runs.

Ref. #2249

This allows hub to be easier used within GitHub Actions where GITHUB_REPOSITORY is pre-populated by default. If GITHUB_USER is not set in the environment, its value is inferred from the part of GITHUB_REPOSITORY value until the first slash character.
@mislav mislav merged commit 51ee76e into master Sep 6, 2019
@mislav mislav deleted the github-repository-env branch September 6, 2019 21:00
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