Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 52,587
    • Issues 52,587
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,547
    • Merge requests 1,547
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #297638
Closed
Open
Issue created Jan 13, 2021 by Igor Drozdov@igor.drozdov🔴Maintainer

Allow direct push to default branch if code owners section is optional

In #232995 (closed) we've allowed designating code owners sections as optional. When a section is marked with ^:

[Documentation]
*.md @root

[Ruby]
*.rb @root

^[Go]
*.go @root

It's considered optional: MR widget

However, when a user pushes with changes to a file protected by code owners, the push won't be allowed. Marking a section as optional doesn't affect pushing.

Proposal

Consider respecting optional code owners rules, when a user pushes to a file

Edited Jan 13, 2021 by Daniel Gruesso
Assignee
Assign to
Time tracking