Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Detect if branch is protected #2125

Open
NiklasBuchfink opened this issue Jan 26, 2024 · 0 comments
Open

[feat] Detect if branch is protected #2125

NiklasBuchfink opened this issue Jan 26, 2024 · 0 comments
Assignees
Labels
scope: lix Related to source-code/git-sdk. type: feature New feature or request

Comments

@NiklasBuchfink
Copy link
Contributor

Problem

We do not know whether a branch is protected or not. Therefore, users try to push changes to a protected branch, get an error message and lose their changes.

Proposal

Extend the Repository type of lix with a isProtected: boolean type.

With isProtected Users can then be prompted to:

  • work on a fork and open a PR or
  • switch to another branch
@NiklasBuchfink NiklasBuchfink added the scope: lix Related to source-code/git-sdk. label Jan 26, 2024
@maige-app maige-app bot added the type: feature New feature or request label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: lix Related to source-code/git-sdk. type: feature New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants