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:
Dandelion Mané 2020-07-06 14:56:21 -07:00 committed by GitHub
parent bb77ba28d1
commit 3ac90c3a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@ export const repoNodeType = deepFreeze({
name: "Repository", name: "Repository",
pluralName: "Repositories", pluralName: "Repositories",
prefix: N.Prefix.repo, prefix: N.Prefix.repo,
defaultWeight: 4, defaultWeight: 0,
description: "NodeType for a GitHub repository", description: "NodeType for a GitHub repository",
}); });
@ -18,7 +18,7 @@ const issueNodeType = deepFreeze({
name: "Issue", name: "Issue",
pluralName: "Issues", pluralName: "Issues",
prefix: N.Prefix.issue, prefix: N.Prefix.issue,
defaultWeight: 2, defaultWeight: 0,
description: "NodeType for a GitHub issue", description: "NodeType for a GitHub issue",
}); });
@ -42,7 +42,7 @@ const commentNodeType = deepFreeze({
name: "Comment", name: "Comment",
pluralName: "Comments", pluralName: "Comments",
prefix: N.Prefix.comment, prefix: N.Prefix.comment,
defaultWeight: 1, defaultWeight: 0,
description: "NodeType for a GitHub comment", description: "NodeType for a GitHub comment",
}); });
@ -50,7 +50,7 @@ const commitNodeType = deepFreeze({
name: "Commit", name: "Commit",
pluralName: "Commits", pluralName: "Commits",
prefix: N.Prefix.commit, prefix: N.Prefix.commit,
defaultWeight: 1, defaultWeight: 0,
description: description:
"Represents a particular Git commit on GitHub, i.e. scoped to a particular repository", "Represents a particular Git commit on GitHub, i.e. scoped to a particular repository",
}); });