Skip to content

Refactor create push_rule for project

What does this MR do and why?

_ simplify creating push rule for project _

graph TD
    G[Create project] --> A[has group]
    A -->|false| B(create rule from global)
    A -->|true| C(Search predefined rule in group)
    C -->|rule exist| D(create rule from group)
    C -->|can not find any rules| B
    B --> *
    D --> *

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Yongbo li

Merge request reports