Skip to content

Modify milestone search keywords to be case insensitive (#20266) #20497

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

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
36ccb88
Return 404 when tag is broken (#20024)
42wim Jun 18, 2022
a180d94
Dump should only copy regular files and symlink regular files (#20015…
6543 Jun 19, 2022
8733f4b
use quoted regexp instead of git fixed-value (#20030)
wxiaoguang Jun 19, 2022
a4b1967
Fix delete pull head ref for DeleteIssue (#20032) (#20034)
a1012112796 Jun 19, 2022
2a48833
Respond with a 401 on git push when password isn't changed yet (#20027)
42wim Jun 19, 2022
ab9fcb0
Backtick table name in generic orphan check (#20019) (#20037)
zeripath Jun 19, 2022
1823bfd
Alter hook_task TEXT fields to LONGTEXT (#20038) (#20041)
42wim Jun 19, 2022
2dc6571
Simplify and fix migration 216 (#20036)
zeripath Jun 20, 2022
761db4d
Disable federation by default (#20045) (#20046)
Jun 20, 2022
710a141
Changelog v1.17.0-rc1 (#20023)
6543 Jun 20, 2022
29ac316
Release page show all tags in compare dropdown (#20070) (#20072)
6543 Jun 21, 2022
dbafb4f
Use correct variable for issue count (#20086)
lunny Jun 22, 2022
05464ac
Dashboard feed respect setting.UI.FeedPagingNum again (#20094) (#20099)
jpraet Jun 23, 2022
764e75d
Catch the error before the response is processed by goth. (#20000) (#…
SteveTheEngineer Jun 24, 2022
fb5ca1b
Fix wrong login requirement routers (#20101) (#20104)
lunny Jun 24, 2022
0b7b342
Fix remove file on initial comment (#20127) (#20128)
Jun 25, 2022
0dab138
Show scrollbar when necessary (#20142) (#20143)
Jun 27, 2022
1ffc700
Update default allowed attachment types (#20193)
silverwind Jul 1, 2022
3e4fe00
Check if project has the same repository id with issue when assign pr…
lunny Jul 1, 2022
bf43db1
Fix cli command restore-repo: "units" should be parsed as cli.String …
wxiaoguang Jul 1, 2022
d22826a
Fix `dump-repo` git init, fix wrong error type for NullDownloader (#2…
wxiaoguang Jul 1, 2022
e321b40
Refix indices on actions table (#20158) (#20198)
zeripath Jul 2, 2022
35fd55c
Update Bluemonday to v1.0.19 (#20199) (#20209)
zeripath Jul 4, 2022
f42fc3b
Init popup for new code comment (#20234) (#20235)
Jul 5, 2022
01a4fb0
Bypass Firefox (iOS) bug (#20244) (#20250)
wxiaoguang Jul 5, 2022
c88a59b
Adjust max-widths for the repository file table (#20243) (#20247)
zeripath Jul 5, 2022
76ba23a
Display full name (#20171) (#20246)
zeripath Jul 5, 2022
42be548
EscapeFilter the group dn membership (#20200) (#20254)
zeripath Jul 6, 2022
a92d247
Only show Followers that current user can access (#20220) (#20252)
zeripath Jul 6, 2022
654c173
Fix NPE when using non-numeric (#20277) (#20278)
Jul 7, 2022
039a602
Make notification bell more prominent on mobile (#20108, #20236, #202…
zeripath Jul 7, 2022
5e5ff77
Use git.HOME_PATH for Git HOME directory (#20114) (#20293)
wxiaoguang Jul 8, 2022
d371ced
Store read access in access for team repo's (#20275) (#20276)
Jul 9, 2022
1d02a9c
Bump goldmark to v1.4.13 (#20300) (#20301)
Jul 9, 2022
317c565
Do not create empty ".ssh" directory when loading config (#20289) (#2…
wxiaoguang Jul 10, 2022
c556a83
Prevent "empty" scrollbars on Firefox (#20294) (#20308)
KN4CK3R Jul 10, 2022
54ef658
Refactor SSH init code, fix directory creation for TrustedUserCAKeys …
wxiaoguang Jul 11, 2022
b8ab929
Add write check for creating Commit status (#20332) (#20333)
Jul 12, 2022
26f4fe2
Correctly handle draft releases without a tag (#20314) (#20335)
zeripath Jul 12, 2022
66686f6
Hide notify mail setting ui if not enabled (#20138) (#20336)
lunny Jul 13, 2022
92a43d5
Fix checks in PR for empty commits (#20290) (#20352)
jedi7 Jul 13, 2022
f4e219f
Fix org label open count, including close count issue (#20364)
tyroneyeh Jul 14, 2022
780b198
Prevent context deadline error propagation in GetCommitsInfo (#20346)…
6543 Jul 14, 2022
4c1f4ee
update xorm.io/xorm v1.3.2-0.20220714055524-c3bce556200f (#20371) (#2…
6543 Jul 14, 2022
975a962
Make sure `repo_dir` is an empty directory or doesn't exist before 'd…
6543 Jul 15, 2022
c91b8c8
Initialize cron last (#20373) (#20384)
zeripath Jul 15, 2022
95a27eb
Set target on create release with existing tag (#20381) (#20382)
Jul 15, 2022
3f5d727
Fix commit status icon when in subdirectory (#20285) (#20385)
silverwind Jul 16, 2022
c16f0d2
Add missing return for when topic isn't found (#20351) (#20395)
zeripath Jul 18, 2022
90b4a9e
Allow RSA 2047 bit keys (#20272) (#20396)
zeripath Jul 18, 2022
2c93bd7
Changelog v1.17.0-rc2 (#20350)
6543 Jul 19, 2022
e930d66
Dismiss prior pull reviews if done via web in review dismiss (#20197)…
6543 Jul 19, 2022
2fe0dab
Add Cache-Control header to html and api responses, add no-transform …
silverwind Jul 23, 2022
435038b
fix enabling repo packages when projects are off (#20486) (#20488)
noerw Jul 26, 2022
d4d5ab5
Modify milestone search keywords to be case insensitive (#20266)
tyroneyeh Jul 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix delete pull head ref for DeleteIssue (#20032) (#20034)
Backport #20032 

In DeleteIssue the PR git head reference should be `/refs/pull/xxx/head` not `/refs/pull/xxx`

Fix #19655

Signed-off-by: a1012112796 <[email protected]>
  • Loading branch information
a1012112796 authored Jun 19, 2022
commit a4b1967ea31a5d957775fda8a18a020e77a55c15
5 changes: 5 additions & 0 deletions routers/web/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,11 @@ func DeleteIssue(ctx *context.Context) {
return
}

if issue.IsPull {
ctx.Redirect(fmt.Sprintf("%s/pulls", ctx.Repo.Repository.HTMLURL()), http.StatusSeeOther)
return
}

ctx.Redirect(fmt.Sprintf("%s/issues", ctx.Repo.Repository.HTMLURL()), http.StatusSeeOther)
}

Expand Down
2 changes: 1 addition & 1 deletion services/issue/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func DeleteIssue(doer *user_model.User, gitRepo *git.Repository, issue *issues_m

// delete pull request related git data
if issue.IsPull {
if err := gitRepo.RemoveReference(fmt.Sprintf("%s%d", git.PullPrefix, issue.PullRequest.Index)); err != nil {
if err := gitRepo.RemoveReference(fmt.Sprintf("%s%d/head", git.PullPrefix, issue.PullRequest.Index)); err != nil {
return err
}
}
Expand Down