gitlabform icon indicating copy to clipboard operation
gitlabform copied to clipboard

Support multiple approval rules

Open poffey21 opened this issue 4 years ago • 11 comments

With GitLab Premium and above, multiple approval rules are supported. Moreover, name-specific rules can be leveraged to create dynamic rules. This rule allows multiple rules to be created:

group_settings:
  'test-group':
    merge_requests:
      approvals:
        approvals_before_merge: 1
        reset_approvals_on_push: true
        disable_overriding_approvers_per_merge_request: true
      approvers:
        - poffey21
      approval_rules:
        Vulnerability-Check:
          approvers:
          - poffey21

or

group_settings:
  'test-group':
    merge_requests:
      approvals:
        approvals_before_merge: 1
        reset_approvals_on_push: true
        disable_overriding_approvers_per_merge_request: true
      approvers:
        - poffey21
      approval_rules:
        Vulnerability-Check:
          approvers:
          - poffey21

or

group_settings:
  'test-group':
    merge_requests:
      approvals:
        approvals_before_merge: 1
        reset_approvals_on_push: true
        disable_overriding_approvers_per_merge_request: true
      approval_rules:
        Vulnerability-Check:
          approvers:
          - poffey21

poffey21 avatar Feb 02 '21 03:02 poffey21

(This would implement #95.)

gdubicki avatar Feb 06 '21 10:02 gdubicki

Hey @poffey21 , thanks a lot for the contribution! 😊🙏

gdubicki avatar Feb 06 '21 10:02 gdubicki

Hey @poffey21 ! Is there a chance you will get back to this PR and continue working on it? Please answer honestly as maybe we can open this for other people to continue.

gdubicki avatar Jun 17 '21 09:06 gdubicki

@gdubicki I will pick this back up this upcoming week. Thanks for the ping!

poffey21 avatar Jun 26 '21 15:06 poffey21

@gdubicki @poffey21 when would this feature be available for use? We planning to use multi-approval rules for few of our repos. Thank you for your contribution :).

mahparaashley avatar Sep 02 '21 01:09 mahparaashley

Is there any more traction on this change? Would be good to see approvals_required and approver_groups added to this as well.

Siythrun avatar Nov 04 '21 11:11 Siythrun

Frankly we don't have a Premium GitLab license so we are not highly motivated to implement it ourselves, @Siythrun . We are open to PRs though!

gdubicki avatar Nov 05 '21 08:11 gdubicki

This was open for more than a year, I would be happy to test, since we use EE edition. Github shows me no changes though

vchepkov avatar May 10 '22 17:05 vchepkov

This was open for more than a year, I would be happy to test, since we use EE edition. Github shows me no changes though

I think you would have to go through each commit here, check its diff and possibly cherry-pick what is good to another branch.

gdubicki avatar Jun 15 '22 07:06 gdubicki

any timeline on when this feature would be available with gitlabform?

yashwanth-l avatar Aug 09 '22 15:08 yashwanth-l

@yashwanth-l: as mentioned in https://github.com/gitlabform/gitlabform/issues/388, in September I will have access to license that supports multiple approval rules. Then I can and most probably will implement this feature on my own as this is something that we would need ourselves at Egnyte. So it should be released in September/October.

gdubicki avatar Aug 15 '22 07:08 gdubicki

Closing as outdated, but thanks for your work on this anyway, @poffey21! I will create a new PR in its place.

gdubicki avatar Sep 05 '22 15:09 gdubicki