Delete branch after merge (#496)
delete branch API call Add fork repo info for branch Check if pr is mergeable, show message if not. Use checkbox instead of button make ripple effects work for buttons with enable/disable introduce viewbinding Co-authored-by: 6543 <6543@noreply.gitea.io> Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/496 Reviewed-by: 6543 <6543@noreply.gitea.io>
This commit is contained in:
committed by
6543
co-authored by
6543
parent
1b213783bc
commit
d06f5353c6
@@ -287,4 +287,7 @@ public interface ApiInterface {
|
||||
|
||||
@DELETE("teams/{teamId}/members/{username}") // remove team member
|
||||
Call<JsonElement> removeTeamMember(@Header("Authorization") String token, @Path("teamId") int teamId, @Path("username") String username);
|
||||
|
||||
@DELETE("repos/{owner}/{repo}/branches/{branch}") // delete branch
|
||||
Call<JsonElement> deleteBranch(@Header("Authorization") String token, @Path("owner") String ownerName, @Path("repo") String repoName, @Path("branch") String branchName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user