Skip to content

Commit efb724b

Browse files
authored
merging PR #152: Voting threshold
#152: Voting threshold Description: There should be a voting threshold (it's actually a threshold on the votes _difference_). Set to 1% of repo followers (currently, that means the difference between 👍 and 👎 should be at least 12). Prevents things like #138 and #48. Maybe we can change this later to use a percentage of active contributors instead of (possibly passive) stargazers? Not sure how to calculate that atm though. :ok_woman: PR passed with a vote of 18 for and 2 against, with a weighted total of 16.0 and a threshold of 1.0. Vote record: @ECrownofFire: 1 @manawasp: -1 @Vad1mo: 1 @andrewda: 1 @bperson: 1 @chipironcin: 1 @davidak: 1 @frazr: 1 @hongaar: 1 @kurokikaze: 1 @lukeramsden: 1 @pivotal-avenkatesh: 1 @qgustavor: 1 @reddraggone9: 1 @rhengles: 1 @richardjonathonharris: 1 @rudehn: 1 @tarunbatra: -1 @viktorsec: 1 @xyproto: 1
2 parents 7fcad48 + 5b799d6 commit efb724b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

settings.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,17 @@
3131
# The hour when the after hours end
3232
AFTER_HOURS_END = 10
3333

34-
OWNER = "chaosbot"
35-
PROJECT = "Chaos"
34+
OWNER = GITHUB_USER
35+
PROJECT = "chaos"
3636
URN = OWNER + "/" + PROJECT
3737

38-
# voter controls below
39-
## how old do they have to be for their vote to count?
40-
MIN_VOTER_AGE = 1 * 30 * 24 * 60 * 60 # 1 month
41-
## at what follower count does a voter's social weight become 1.0?
42-
FOLLOWER_LOG_BASE = 30
38+
# how old do voters have to be for their vote to count?
39+
MIN_VOTER_AGE = 1 * 30 * 24 * 60 * 60 # 1 month
4340

4441
# for a pr to be merged, the vote total must have at least this fraction of the
4542
# number of watchers in order to pass. this is to prevent early manipulation of
46-
# the project by requiring some basic consensus. i'm not sure its necessary, so
47-
# it's 0
48-
MIN_VOTE_WATCHERS = 0
43+
# the project by requiring some basic consensus.
44+
MIN_VOTE_WATCHERS = 0.01
4945

5046
# unauthenticated api requests get 60 requests/hr, so we need to get as much
5147
# data from each request as we can. apparently 100 is the max number of pages

0 commit comments

Comments
 (0)