Skip to content
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

Fix panic bug in handling multiple references in commit #13486

Merged

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Nov 9, 2020

The issue lay in determining the position of matches on a second run round
a commit message in FindAllIssueReferences.

Fix #13483

Signed-off-by: Andrew Thornton art27@cantab.net

The issue lay in determining the position of matches on a second run round
a commit message in FindAllIssueReferences.

Fix go-gitea#13483

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added type/bug issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP backport/v1.13 labels Nov 9, 2020
@zeripath zeripath added this to the 1.14.0 milestone Nov 9, 2020
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 9, 2020
6543 pushed a commit to 6543-forks/gitea that referenced this pull request Nov 9, 2020
The issue lay in determining the position of matches on a second run round
a commit message in FindAllIssueReferences.

Fix go-gitea#13483

Signed-off-by: Andrew Thornton <art27@cantab.net>
@6543 6543 added the backport/done All backports for this PR have been created label Nov 9, 2020
@6543
Copy link
Member

6543 commented Nov 9, 2020

Backport: #13487

@codecov-io
Copy link

codecov-io commented Nov 9, 2020

Codecov Report

Merging #13486 (dfd5174) into master (8bae34c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13486      +/-   ##
==========================================
+ Coverage   42.18%   42.20%   +0.01%     
==========================================
  Files         694      694              
  Lines       76330    76334       +4     
==========================================
+ Hits        32201    32213      +12     
+ Misses      38859    38846      -13     
- Partials     5270     5275       +5     
Impacted Files Coverage Δ
modules/references/references.go 85.03% <100.00%> (+5.43%) ⬆️
modules/util/timer.go 42.85% <0.00%> (-42.86%) ⬇️
models/repo_mirror.go 2.38% <0.00%> (-11.91%) ⬇️
modules/cron/tasks_basic.go 87.35% <0.00%> (-3.45%) ⬇️
services/mirror/mirror.go 15.98% <0.00%> (-1.17%) ⬇️
services/pull/check.go 51.09% <0.00%> (-0.73%) ⬇️
services/pull/pull.go 41.27% <0.00%> (+0.49%) ⬆️
modules/queue/workerpool.go 58.77% <0.00%> (+0.81%) ⬆️
modules/log/event.go 59.90% <0.00%> (+0.94%) ⬆️
services/mailer/mail.go 61.29% <0.00%> (+1.07%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ffa712e...e36643f. Read the comment docs.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 9, 2020
@6543
Copy link
Member

6543 commented Nov 9, 2020

🚀

@lafriks lafriks merged commit 77e5081 into go-gitea:master Nov 9, 2020
@zeripath zeripath deleted the fix-13483-error-in-reference-munching branch November 9, 2020 23:15
techknowlogick pushed a commit that referenced this pull request Nov 10, 2020
)

* Fix panic bug in handling multiple references in commit (#13486)

The issue lay in determining the position of matches on a second run round
a commit message in FindAllIssueReferences.

Fix #13483

Signed-off-by: Andrew Thornton <art27@cantab.net>

* CI.restart()

Co-authored-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] gitea crash while squash-merging
5 participants