Skip to content

Commit

Permalink
merging PR #152: Voting threshold
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
chaosbot authored May 24, 2017
2 parents 7fcad48 + 5b799d6 commit efb724b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,17 @@
# The hour when the after hours end
AFTER_HOURS_END = 10

OWNER = "chaosbot"
PROJECT = "Chaos"
OWNER = GITHUB_USER
PROJECT = "chaos"
URN = OWNER + "/" + PROJECT

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

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

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

0 comments on commit efb724b

Please sign in to comment.