diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2019-08-15 20:27:03 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2019-08-16 10:28:14 +0300 |
commit | abd5190cf42b14d35b9a41df65c91af10f9c7cc3 (patch) | |
tree | d10bc24ee42dd6109045f131922ec015aed81a9c /danger | |
parent | e091fb7fe40d97c7eecba9d9dded027393261e7e (diff) |
Update the automatic labels
Includes `@zj-gitlab` in the Gitaly team, and removes the Gitaly label
in favour of `devops::create` and `group::gitaly`.
Diffstat (limited to 'danger')
-rw-r--r-- | danger/labels/Dangerfile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/danger/labels/Dangerfile b/danger/labels/Dangerfile index 6770b718c..06ee0df8c 100644 --- a/danger/labels/Dangerfile +++ b/danger/labels/Dangerfile @@ -10,13 +10,10 @@ def changelog_entry end end -required_labels = [] +required_labels = %w[devops::create] -GITALY_TEAM = %w[jacobvosmaer-gitlab johncai pokstad1 zj] - -if GITALY_TEAM.include?(gitlab.mr_author) && !gitlab.mr_labels.include?("Gitaly") - required_labels << "Gitaly" -end +GITALY_TEAM = %w[jacobvosmaer-gitlab johncai pokstad1 zj-gitlab] +required_labels << "group::gitaly" if GITALY_TEAM.include?(gitlab.mr_author) TYPE_TO_LABEL = { 'added' => ['feature'], @@ -43,7 +40,7 @@ end required_labels.concat(TYPE_TO_LABEL[changelog_entry["type"]]) -mr_labels = gitlab.mr_labels | required_labels |inherited_labels +mr_labels = gitlab.mr_labels | required_labels | inherited_labels gitlab.api.update_merge_request( gitlab.mr_json['project_id'], gitlab.mr_json['iid'], |