-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Auto merge pull requests when all checks succeeded via WebUI #19648
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
42 commits
Select commit
Hold shift + click to select a range
abfeefe
Revert "remove webUI part for another pull"
6543 daf146a
Revert "remove more WebUI only parts"
6543 f1037f3
ajust to #19649
6543 847919d
Merge branch 'main' into auto-merge_webUI
6543 efad877
Merge branch 'master' into auto-merge_webUI
6543 c810cc9
Merge branch 'main' into auto-merge_webUI
wxiaoguang 1c11584
UI part for auto merge
wxiaoguang 916e4bb
disable unnecessary eslint
wxiaoguang 346c545
Merge branch 'main' into auto-merge_webUI
6543 2bc2215
refactor and add comments
wxiaoguang 69b2ff7
make merge form work for writers
wxiaoguang 05317de
Merge branch 'master' into auto-merge_webUI
6543 935ab7b
fine tune button colors
wxiaoguang 0991637
hide the auto merge if this PR can be merged now
wxiaoguang 5f6f1c9
Merge branch 'main' into auto-merge_webUI
6543 a078ba8
UX: hide delete_branch_after_merge for auto-merge
6543 53a8b04
UX: dont hide auto-merge schedule for admins
6543 3e204ee
UX: make scheduled auto-merges be overwritten from webUI
6543 4880009
Merge branch 'main' into auto-merge_webUI
6543 40f7796
Merge branch 'main' into auto-merge_webUI
wxiaoguang 3fdc599
add comment for testing
wxiaoguang 8dfe1eb
Merge branch 'main' into auto-merge_webUI
6543 c614ffa
add comment for testing
wxiaoguang 837add8
fine tune css style
wxiaoguang 6dfe7d6
Merge branch 'main' into auto-merge_webUI
6543 d9c36da
Merge branch 'main' into auto-merge_webUI
6543 ccd50c6
Merge branch 'main' into auto-merge_webUI
6543 fd93997
Merge branch 'main' into auto-merge_webUI
6543 402b6a0
Merge branch 'main' into auto-merge_webUI
6543 ba0173a
Merge branch 'main' into auto-merge_webUI
6543 78e1174
Merge branch 'main' into auto-merge_webUI
6543 6bef922
Merge branch 'main' into auto-merge_webUI
6543 6305f52
Merge branch 'main' into auto-merge_webUI
6543 8edb5c2
Update templates/repo/issue/view_content/pull.tmpl
wxiaoguang eb33a2f
Merge branch 'main' into auto-merge_webUI
6543 0502a21
Merge branch 'main' into auto-merge_webUI
wxiaoguang 9bd5f97
UI adjuestment
wxiaoguang 6303b2b
Merge branch 'main' into auto-merge_webUI
6543 0e2f19d
Merge branch 'main' into auto-merge_webUI
6543 81af3ba
Update web_src/js/components/PullRequestMergeForm.vue
wxiaoguang 5dd9e56
Merge branch 'main' into auto-merge_webUI
6543 4f12809
Merge branch 'main' into auto-merge_webUI
lunny 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
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
19 changes: 19 additions & 0 deletions
19
templates/repo/issue/view_content/pull_merge_instruction.tmpl
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,19 @@ | ||
<div class="instruct-toggle mt-3"> {{$.i18n.Tr "repo.pulls.merge_instruction_hint" | Safe}} </div> | ||
<div class="instruct-content" style="display:none"> | ||
<div class="ui divider"></div> | ||
<div><h3 class="di">{{$.i18n.Tr "step1"}} </h3>{{$.i18n.Tr "repo.pulls.merge_instruction_step1_desc"}}</div> | ||
<div class="ui secondary segment"> | ||
{{if eq $.Issue.PullRequest.Flow 0}} | ||
<div>git checkout -b {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{$.Issue.PullRequest.HeadRepo.OwnerName}}-{{end}}{{$.Issue.PullRequest.HeadBranch}} {{$.Issue.PullRequest.BaseBranch}}</div> | ||
<div>git pull {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{$.Issue.PullRequest.HeadRepo.HTMLURL}}{{else}}origin{{end}} {{$.Issue.PullRequest.HeadBranch}}</div> | ||
{{else}} | ||
<div>git fetch origin {{$.Issue.PullRequest.GetGitRefName}}:{{$.Issue.PullRequest.HeadBranch}}</div> | ||
{{end}} | ||
</div> | ||
<div><h3 class="di">{{$.i18n.Tr "step2"}} </h3>{{$.i18n.Tr "repo.pulls.merge_instruction_step2_desc"}}</div> | ||
<div class="ui secondary segment"> | ||
<div>git checkout {{$.Issue.PullRequest.BaseBranch}}</div> | ||
<div>git merge --no-ff {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{$.Issue.PullRequest.HeadRepo.OwnerName}}-{{end}}{{$.Issue.PullRequest.HeadBranch}}</div> | ||
<div>git push origin {{$.Issue.PullRequest.BaseBranch}}</div> | ||
</div> | ||
</div> |
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.