-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Github API Client #95
Conversation
Generated by 🚫 dangerJS |
Dangerfile.swift
Outdated
group.leave() | ||
} | ||
|
||
group.wait() |
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.
cool, that worked, do we need the dispatch group? It should wait because danger waits till the end of the process
config = TokenConfiguration(settings.github.accessToken, url: baseURL) | ||
} else { | ||
config = TokenConfiguration(settings.github.accessToken) | ||
} |
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.
Cool, yep, this is what I expected 👍
@@ -28,7 +29,8 @@ public struct GitHub: Decodable, Equatable { | |||
public let reviews: [GitHubReview] | |||
|
|||
public let requestedReviewers: GitHubRequestedReviewers | |||
|
|||
|
|||
internal(set) public var api: Octokit! |
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.
internal? ( maybe I don't get how access rights work here)
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.
Just the set is internal (the api is set from DangerDSL, then it can not be private(set)
)
"gists_url": "https://api.github.com/users/ashfurrow/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/ashfurrow/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/ashfurrow/subscriptions", | ||
|
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.
^ - this might have got revoked (check your emails) - unless it is one of mine?
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.
Is the one on the fixtures, but anyway is just to test it parses it correctly, then shouldn't matter
Looks good - want to add a changelog entry then you can merge 👍 |
This should solve #17