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 review request notification email links when external issue tracker is enabled #13723

Merged

Conversation

jpraet
Copy link
Member

@jpraet jpraet commented Nov 27, 2020

Fixes #13720

Use !%d issue notation instead of #%d in review request notification when external issue tracker is enabled.

Or would it be preferrable to just always use the !%d notation here?
I noticed in other places like the default squash commit messages the choice between ! and # is also done based on whether external issue tracker is enabled. So I did it here as well.

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 27, 2020
@zeripath zeripath added the topic/ui Change the appearance of the Gitea UI label Nov 27, 2020
@zeripath zeripath added this to the 1.14.0 milestone Nov 27, 2020
@codecov-io
Copy link

codecov-io commented Nov 27, 2020

Codecov Report

Merging #13723 (22ba810) into master (e7b47c5) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13723      +/-   ##
==========================================
- Coverage   42.19%   42.18%   -0.01%     
==========================================
  Files         697      697              
  Lines       76825    76825              
==========================================
- Hits        32418    32412       -6     
- Misses      39059    39064       +5     
- Partials     5348     5349       +1     
Impacted Files Coverage Δ
modules/notification/mail/mail.go 39.08% <100.00%> (ø)
modules/charset/charset.go 68.53% <0.00%> (-4.50%) ⬇️
models/unit.go 46.57% <0.00%> (-2.74%) ⬇️
modules/process/manager.go 72.50% <0.00%> (-2.50%) ⬇️
modules/queue/workerpool.go 58.77% <0.00%> (-1.23%) ⬇️
routers/repo/view.go 37.47% <0.00%> (-0.65%) ⬇️
services/pull/pull.go 40.68% <0.00%> (-0.50%) ⬇️
services/pull/check.go 48.90% <0.00%> (ø)
modules/log/event.go 59.90% <0.00%> (+0.94%) ⬆️
modules/queue/unique_queue_disk_channel.go 55.38% <0.00%> (+1.53%) ⬆️
... and 2 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 e7b47c5...22ba810. Read the comment docs.

@mrsdizzie
Copy link
Member

I think this could be fixed to pass the fact that we know it is a PR in the metas so we aren't sending users the weird ! workaround (since we know it is a PR already and that is just for the case when a user is typing and we can't possibly know if they mean an issue or PR by just a number).

…r is enabled

The issue.HTMLURL() automatically gets converted to the expected #issue format by the post processors
@jpraet jpraet force-pushed the 13720-review-request-notification-issue branch from 84a6498 to 22ba810 Compare November 28, 2020 10:23
@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 28, 2020
@lafriks lafriks merged commit 48c9865 into go-gitea:master Nov 28, 2020
@lafriks lafriks added type/bug and removed topic/ui Change the appearance of the Gitea UI labels Nov 28, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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.

Review request email notification links to external issue tracker
6 participants