-
Notifications
You must be signed in to change notification settings - Fork 207
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
Include a log when creating a new labels about what those labels are #121
Include a log when creating a new labels about what those labels are #121
Conversation
Alternative take: also print out a url like: |
Awesome! I like the idea of printing the URL also. I'll merge once you add that 👍
|
Codecov Report
@@ Coverage Diff @@
## master #121 +/- ##
=======================================
Coverage 75.02% 75.02%
=======================================
Files 14 14
Lines 973 973
Branches 137 137
=======================================
Hits 730 730
Misses 214 214
Partials 29 29
Continue to review full report at Codecov.
|
def3e0e
to
6dcb3d3
Compare
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.
Looks great! Just one typedef is a little off
src/git.ts
Outdated
|
||
return Promise.resolve(); | ||
} | ||
|
||
// Looks like: https://developer.github.com/v3/repos/#get | ||
public async getRepoMetadata(): Promise<any> { |
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.
it looks like this.ghub.repos.get
return a type of GHub.Response<GHub.ReposGetResponse>
so the return type for this function should probably be Promise<GHub.Response<GHub.ReposGetResponse>>
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.
public async getRepoMetadata(): Promise<any> { | |
public async getRepoMetadata(): Promise<GHub.Response<GHub.ReposGetResponse>> { |
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.
Good point, if I remove the return type annotation it'll be inferred correctly - I've removed that 👍
6dcb3d3
to
f171ebf
Compare
What Changed
->
Why
I didn't know what the labels would be, and even after creating them I didn't.
I couldn't find any other uses of the
logger.log
which makes me think this is the wrong way to do it?Todo: