Default Branch Protection for New or Migrated Repositories? (OD-1933)
Kavish Prajapati opened 2 years ago

Is there a feature available that allows for the automatic addition of branch protection rules ((inside a group or parent project)) on the default branch when a new repository is created or an existing repository is migrated?

when creating a new repository or migrating an existing one into Onedev, there is no option to automatically set branch protection rules for the default branch. This feature would enhance security and workflow consistency by ensuring that default branch protection is applied uniformly across all repositories.

  • Robin Shen commented 2 years ago

    Branch/tag protection rules can be inherited from parent projects. Just define appropriate branch protection rules for a parent project, and then import/create other projects under that parent project.

  • Kavish Prajapati commented 2 years ago

    Actually, we are using the parent project as group and not adding any code or branches. Do we need to create the blank branches and create rules for it?

  • Robin Shen commented 2 years ago

    Just define branch protection rules will be fine. No need to create blank branches. The code management option can even be disabled.

  • Kavish Prajapati commented 2 years ago

    ok, Thanks for your response.

  • Kavish Prajapati changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • Kavish Prajapati commented 2 years ago

    .

issue 1/1
Type
Question
Priority
Major
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-1933
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover