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

Improve issue reference on commit #6694

Merged
merged 5 commits into from
May 1, 2019

Conversation

mrsdizzie
Copy link
Member

Allow commits to properly reference issues in other repositories and also to close/reopen those issues if user has code permission. Should match Github behavior described here: https://help.github.com/en/articles/closing-issues-using-keywords

Fixes #6664

This also fixes a bug I noticed where if you reference another repo in the form of user/repo#1 Gitea will currently just match the #1 so if the user giteacommits a file that says Closes gogs/gogs#1to the repo gitea/giteait will actually close issue #1 on the gitea repo

Allow commits to properly reference issues in other repositories and also to
close/reopen those issues if user has code permission. Should match
Github behavior described here: https://help.github.com/en/articles/closing-issues-using-keywords

Fixes 6664
@codecov-io
Copy link

codecov-io commented Apr 20, 2019

Codecov Report

Merging #6694 into master will decrease coverage by <.01%.
The diff coverage is 40.9%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #6694      +/-   ##
=========================================
- Coverage   41.21%   41.2%   -0.01%     
=========================================
  Files         421     421              
  Lines       58059   58118      +59     
=========================================
+ Hits        23930   23949      +19     
- Misses      30963   30996      +33     
- Partials     3166    3173       +7
Impacted Files Coverage Δ
models/action.go 59.07% <40.9%> (-1.91%) ⬇️
modules/process/manager.go 76.81% <0%> (-4.35%) ⬇️
models/repo_list.go 66.84% <0%> (-1.06%) ⬇️

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 5be1780...e2d0bdb. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 20, 2019
Copy link
Contributor

@zeripath zeripath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, just a comment that you could have already had the regexp do the splitting for you.

Finally, just make certain that usernames and repository names don't have different first letter requirements from the rest of their names - I don't think they do but it might be reasonable to check.

models/action.go Outdated Show resolved Hide resolved
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 20, 2019
@lafriks lafriks added the type/enhancement An improvement of existing functionality label Apr 20, 2019
@lafriks lafriks added this to the 1.9.0 milestone Apr 20, 2019
@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 May 1, 2019
@lafriks lafriks merged commit caba282 into go-gitea:master May 1, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Cross-link commits mentioning other repos
6 participants