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

Support for repository name and owner on the github context #45

Closed
wants to merge 2 commits into from

Conversation

ianlewis
Copy link
Contributor

@ianlewis ianlewis commented Jun 2, 2022

Adds support for getting the repository name and repository owner for the repository that triggered the Github Actions workflow.

  • The GITHUB_REPOSITORY environment variable is read into the Repository field on the GitHubContext.
  • The GITHUB_REPOSITORY_OWNER environment variable is read into the RepositoryOwner field on the GitHubContext.
  • A Repo method on the GitHubContext is added to retrieve the owner and repository name separately from the various places it can be retrieved (env vars and event payload).

@ianlewis
Copy link
Contributor Author

ianlewis commented Jun 2, 2022

Closing this in favor of #46

1 similar comment
@ianlewis
Copy link
Contributor Author

ianlewis commented Jun 2, 2022

Closing this in favor of #46

@ianlewis ianlewis closed this Jun 2, 2022
@ianlewis ianlewis closed this Jun 2, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant