-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Change target branch for pull request #6488
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
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
f985e67
Adds functionality to change target branch of created pull requests
saitho 1c01294
Merge remote-tracking branch 'origin/master' into feature/choose_pull…
saitho a520c5e
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 6c48735
Use const instead of var in JavaScript additions
saitho be71ada
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 411f54e
Check if branches are equal and if PR already exists before changing …
saitho 4c8b956
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho b2f8777
Make sure to check all commits
saitho 2c02f4b
Print error messages for user as error flash message
saitho 06adcfd
Disallow changing target branch of closed or merged pull requests
saitho 7454709
Merge branch 'master' into feature/choose_pullreq_target
saitho bf60f41
Resolve conflicts after merge of upstream/master
saitho feade60
Change order of branch select fields
saitho ade1de9
Removes duplicate check
saitho 1094cc0
Use ctx.Tr for translations
saitho 425f631
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 7fa44f3
Recompile JS
saitho 139b7be
Use correct translation namespace
saitho 5d1091b
Remove redundant if condition
saitho 927c82a
Moves most change branch logic into pull service
saitho 8473385
Completes comment
saitho 0a559df
Add Ref to ChangesPayload for logging changed target branches
saitho 234dc2a
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 4104ce6
Revert changes to go.mod
saitho c2c54b7
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 93ce415
Directly use createComment method
saitho a040294
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 1566045
Return 404 if pull request is not found. Move written check up
saitho 4c2341a
Remove variable declaration
saitho 8007148
Return client errors on change pull request target errors
saitho e2d5d0d
Return error in commit.HasPreviousCommit
saitho 2666224
Adds blank line
saitho c25503a
Test patch before persisting new target branch
saitho b9c3368
Update patch before testing (not working)
saitho 1dcf6b6
Removes patch calls when changeing pull request target
saitho 6a81a97
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 7db6fc5
Removes unneeded check for base name
saitho 1860253
Moves ChangeTargetBranch completely to pull service. Update patch sta…
saitho 21e1c0b
Set webhook mode after errors were validated
saitho 79347b0
Update PR in one transaction
saitho 7ff8949
Move logic for check if head is equal with branch to pull model
saitho 3a30a60
Adds missing comment and simplify return
saitho 750ba50
Merge branch 'master' into feature/choose_pullreq_target
lunny 69a2926
Merge branch 'master' into feature/choose_pullreq_target
lunny 4e775c6
Merge branch 'master' into feature/choose_pullreq_target
zeripath cc39ac1
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho ded3b68
Merge branch 'master' into feature/choose_pullreq_target
zeripath 10cb3a5
Merge branch 'master' into feature/choose_pullreq_target
sapk 9c04491
Merge branch 'master' into feature/choose_pullreq_target
lunny 66de122
Merge remote-tracking branch 'upstream/master' into feature/choose_pu…
saitho 23bd8ac
Adjust CreateComment method call
saitho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2019 The Gitea Authors. All rights reserved. | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package migrations | ||
|
||
import ( | ||
"fmt" | ||
|
||
"xorm.io/xorm" | ||
) | ||
|
||
func featureChangeTargetBranch(x *xorm.Engine) error { | ||
type Comment struct { | ||
OldRef string | ||
NewRef string | ||
} | ||
|
||
if err := x.Sync2(new(Comment)); err != nil { | ||
return fmt.Errorf("Sync2: %v", err) | ||
} | ||
return nil | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.