-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Prevent creating empy PR (w/o commits) through API #32742
base: main
Are you sure you want to change the base?
Conversation
Well, I know some users ever requested to "allow to create empty PR" because they need an empty PR to start their work (different teams have different workflows) So, I guess it won't hurt without such check? 🤔 |
Understand, it hits me because it is different from GitHub API behaviour. Details in my issue #32743. |
A lot of Gitea's behaviors are different from GitHub, actually there is no compatibility guaranteed, Gitea is an independent project. And you see, the CI tests fail 😅 |
It's useful to create an empty pull request especially for #31899 |
Actually, IMO it is a feature in Gitea which is different from GitHub. |
Okey, is there any interest to make it configurable as an argument in the create PR API call? If not, then feel free to close this PR. Thank you all. |
I think it is feasible if there are tests to cover it. |
Check number of commits between head and base during PR creation, if not greater than zero return error.