-
Notifications
You must be signed in to change notification settings - Fork 118
Add types for GitHub plugin. #35
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
Conversation
wchargin
left a comment
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.
LGTM modulo small comments below.
| subpayload: PullRequestPayload | IssuePayload | CommentPayload | UserPayload, | ||
| }; | ||
|
|
||
| export type EdgeType = "AUTHOR" | "REFERENCE"; |
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.
As discussed: inclusion and co-inclusion will both fall under the REFERENCE type. That is, an issue REFERENCEs its comments, and the comments also REFERENCE their enclosing issues (resp. PR). We don’t see any reason why this should cause ambiguity, because an issue cannot otherwise reference a comment: it has no body in which to do so.
We’re punting on close/reopen actions for now.
backend/githubPlugin.js
Outdated
| @@ -0,0 +1,45 @@ | |||
| // @flow | |||
|
|
|||
| import type {ID, GraphNode, GraphEdge} from "./graph"; | |||
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.
Unused imports.
backend/githubPlugin.js
Outdated
|
|
||
| import type {ID, GraphNode, GraphEdge} from "./graph"; | ||
|
|
||
| export const GITHUB_PLUGIN_NANE = "sourcecred/github-beta"; |
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.
s/nane/name
wchargin
left a comment
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.
Thanks!
Paired with @wchargin
Based on discussion at #29