Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39,511
    • Issues 39,511
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,223
    • Merge requests 1,223
  • Requirements
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #297638

Closed
Open
Created Jan 13, 2021 by Igor Drozdov@igor.drozdovMaintainer

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