mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-11 19:39:02 +00:00
Pushing a commit whose message mentions `owner/repo#1` adds a "referenced this issue from a commit" event to that issue, with the commit subject and a link into the pushed repository. The event never recorded that repository, so a commit in a private repository referencing a public issue showed its subject and repository path to anonymous visitors of the issue page and the timeline API. - The event now records the pushed repository in `RefRepoID`, and is only shown to viewers who can read that repository's code, including the issue's own. Older events have no recorded source and stay as they are. - As on GitHub, the event stays attributed to the repository the commit was first pushed to, even after the commit reaches another repository, and is removed when that repository is deleted. --------- Co-authored-by: silverwind <me@silverwind.io>