-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Can't remove WIP from PR title #29997
Comments
Unfortunately this breaks all WIP PRs as there is no chance to remove the WIP and merge it |
Yup, it is broken (for unknown reason). I will take a look. Update: lunny said he is working on it. |
This stopped our development process. We have serious pull requests with WIP, which we now cannot remove and merge. How can we remove WIP in version 1.21.9 now while we wait for a fix? |
#29999 will fix this. |
Yes. Thank you. I have seen that. |
You can use 1.21 nightly after that PR is merged and backported. |
If you could build your own binary, here is a workaround patch (for both 1.22 and 1.21) If there is any difficulty, I could also help to build a binary with it (please provide your environment/OS/database requirement, for example: linux amd64 + mysql) (expand here to see the quick patch, only 2 lines) diff --git a/services/issue/issue.go b/services/issue/issue.go
index 81fa980b6b..0afae0c7ff 100644
--- a/services/issue/issue.go
+++ b/services/issue/issue.go
@@ -81,7 +81,7 @@ func ChangeTitle(ctx context.Context, issue *issues_model.Issue, doer *user_mode
var err error
reviewNotifers, err = PullRequestCodeOwnersReview(ctx, issue, issue.PullRequest)
if err != nil {
- return err
+ _ = err
}
}
return nil
diff --git a/services/pull/pull.go b/services/pull/pull.go
index 756e542c4d..b3ae63abb1 100644
--- a/services/pull/pull.go
+++ b/services/pull/pull.go
@@ -130,7 +130,7 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, issue *iss
if !pr.IsWorkInProgress(ctx) {
reviewNotifers, err = issue_service.PullRequestCodeOwnersReview(ctx, issue, pr)
if err != nil {
- return err
+ _ = err
}
}
return nil |
The trick is And thanks to Gr3q, there is an API workaround: #29999 (comment) |
Thank you! This is what I needed. |
That probably indicates that the codeowners logic is not triggered when changing WIP status via the API? |
For this bug:
|
It could be another bug, maybe it needs a new issue. |
The main reason for this release is to fix a bug #29997
Description
When creating a PR in WIP state it is not possible (1.21.9) to remove the WIP: prefix from title.
Steps to reproduce:
https://try.gitea.io/sebastian-sauer/test-wip-bug/pulls/1
Log output:
Gitea Version
1.21.9
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Binary from download site
Database
None
The text was updated successfully, but these errors were encountered: