-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Conversation
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 Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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.
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 usergitea
commits a file that saysCloses gogs/gogs#1
to the repogitea/gitea
it will actually close issue#1
on the gitea repo