mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-23 09:48:14 +00:00
Change GitHub default weights (#1932)
By default, let's only mint Cred for pull requests and reviews. I'll follow on with a change so that only merged PRs mint Cred. I'll let all reviews mint 1 cred for now, though it is potentially abuse-able by adding tons of reviews to stale PRs, we'll want to keep an eye out for it. Test plan: Just a weight change. `yarn test`.
This commit is contained in:
parent
bb77ba28d1
commit
3ac90c3a98
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@ export const repoNodeType = deepFreeze({
|
||||
name: "Repository",
|
||||
pluralName: "Repositories",
|
||||
prefix: N.Prefix.repo,
|
||||
defaultWeight: 4,
|
||||
defaultWeight: 0,
|
||||
description: "NodeType for a GitHub repository",
|
||||
});
|
||||
|
||||
@ -18,7 +18,7 @@ const issueNodeType = deepFreeze({
|
||||
name: "Issue",
|
||||
pluralName: "Issues",
|
||||
prefix: N.Prefix.issue,
|
||||
defaultWeight: 2,
|
||||
defaultWeight: 0,
|
||||
description: "NodeType for a GitHub issue",
|
||||
});
|
||||
|
||||
@ -42,7 +42,7 @@ const commentNodeType = deepFreeze({
|
||||
name: "Comment",
|
||||
pluralName: "Comments",
|
||||
prefix: N.Prefix.comment,
|
||||
defaultWeight: 1,
|
||||
defaultWeight: 0,
|
||||
description: "NodeType for a GitHub comment",
|
||||
});
|
||||
|
||||
@ -50,7 +50,7 @@ const commitNodeType = deepFreeze({
|
||||
name: "Commit",
|
||||
pluralName: "Commits",
|
||||
prefix: N.Prefix.commit,
|
||||
defaultWeight: 1,
|
||||
defaultWeight: 0,
|
||||
description:
|
||||
"Represents a particular Git commit on GitHub, i.e. scoped to a particular repository",
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user