gitlab-org--gitlab-foss/danger
Sean McGivern 28531ab436 Pick reviewers based on branch name
Change reviewer roulette to always pick the same reviewers for the same
branch name. We do this by:

1. Making the branch name 'canonical' across CE and EE by stripping a
   leading 'ce-' or 'ee-' and a trailing '-ce' or '-ee'. If people are
   following our branch naming guidelines, this should give the same
   branch name in both repos.
2. Converting the branch name to a stable integer by taking the integer
   form of its MD5.
3. Passing that integer as a seed to Ruby's `Random` class, which 'may
   be used to ensure repeatable sequences of pseudo-random numbers
   between different runs of the program' (from the Ruby documentation).

The upshot is that the same branch name (in CE and EE) should always
pick the same reviewers, and those should be evenly distributed across
the set of possible reviewers due to the use of MD5.
2019-04-08 11:56:17 +01:00
..
changelog Move the ee? helper method into the helper 2019-02-13 16:30:02 +00:00
changes_size Autocorrect RuboCop violations in danger/**/Dangerfile 2018-07-11 14:44:35 -05:00
commit_messages Resolve "Fix danger commit messages check" 2019-02-22 11:56:45 +00:00
database Create helper to get all changed files 2018-10-22 11:04:55 +02:00
documentation Reduce dangerbot message to the essentials 2019-03-13 09:49:24 +00:00
duplicate_yarn_dependencies Add danger check for duplicate yarn dependencies 2018-12-17 09:58:39 +01:00
eslint Create helper to get all changed files 2018-10-22 11:04:55 +02:00
frozen_string Make the frozen_string Danger check more resilient 2018-07-25 14:32:44 -07:00
gemfile Remove rails 4 support in CI, Gemfiles, bin/ and config/ 2018-12-14 19:36:22 +01:00
gitlab_ui_wg Set specific reviewers for the GitLab UI WG effort 2019-03-29 11:56:18 +00:00
metadata Warn when MR titles are too long 2018-11-07 15:27:39 +01:00
plugins Reviewer roulette via Danger 2019-02-13 16:41:28 +00:00
prettier Create helper to get all changed files 2018-10-22 11:04:55 +02:00
roulette Pick reviewers based on branch name 2019-04-08 11:56:17 +01:00
single_codebase Set specific reviewers for single codebase effort 2019-03-11 10:42:19 +01:00
specs Also count specs in new files in Danger check 2018-10-23 15:45:05 +01:00