Certain project push rules cannot be updated via API

Summary

There is no way to edit the push rules bellowed : A25B6EE2-E9D8-469C-A4EC-6DA50473DCCA

The following push rules cannot be set via the API

  • Committer restriction
  • Reject unsigned commits

Steps to reproduce

Compare 11.5 docs for push rules to the API counterpart and notice the push rules are missing:

  • https://docs.gitlab.com/ee/push_rules/push_rules.html
  • https://docs.gitlab.com/ee/api/projects.html#add-project-push-rule

Example Project

N/A

What is the current bug behavior?

Parameters for:

  • Committer restriction
  • Reject unsigned commits

Are not accepted

  • https://gitlab.com/gitlab-org/gitlab-ee/blob/cab246ad0d6804c65aab362b51e94545dd46f2e6/ee/lib/api/project_push_rule.rb#L13-21

What is the expected correct behavior?

Parameters for:

  • Committer restriction
  • Reject unsigned commits

Should be accepted

Possible fixes

  • https://gitlab.com/gitlab-org/gitlab-ee/blob/cab246ad0d6804c65aab362b51e94545dd46f2e6/ee/lib/api/project_push_rule.rb#L13-21
Edited Sep 02, 2020 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading