Replies: 2 comments 3 replies
-
Hey again @dpavicic ! Having the Octo client seems useful. I've ended up using it in a few other projects myself! I don't see an issue with GitHub depending on Git. If you're using GitHub, you're using Git surely! I've added a couple of comments around running async code to initialise a class. Because I think I'd like to avoid a dependency on Lib2GitSharp. Let me know what you think. Thanks 😄 |
Beta Was this translation helpful? Give feedback.
-
Cheers looks good! Just added two more places where I think we should make lazy |
Beta Was this translation helpful? Give feedback.
-
Hey Tom,
I was fiddling with ModularPipelines.GitHub to add support for the (auto authenticated)
IGitHubClient
and GitHub repository information regarding owner, repo name, etc.Here's the commit:
https://github.com/six-tech/ModularPipelines/commit/4bdf3393dbf49c17098f926c86016d7b190f62df
The GitHub API is now extended with Client and RepositryInfo, so it looks like this:
context.GitHub().Client <- gets the reference to IGitHubClient and full OctoKit API
context.GitHub().RepositoryInfo.Owner (and other props)
What do you think about this approach?
Some benefits:
Some downs:
Beta Was this translation helpful? Give feedback.
All reactions