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

Attachment support repository route #15580

Merged
merged 2 commits into from
Apr 23, 2021

Conversation

lunny
Copy link
Member

@lunny lunny commented Apr 22, 2021

The new route reuse old function to allow a new entry for easier reference from comments/issues .

Should fix #15550

@silverwind
Copy link
Member

The regression (#15088) was not backported so I think this one wouldn't need a backport.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 22, 2021
@silverwind
Copy link
Member

silverwind commented Apr 22, 2021

If the attachment ids are guaranteed to be uuids, I think I would still prefer a regex route so users can have ![](/attachments/file.png) working for a file in the repo.

@silverwind
Copy link
Member

Actually this is LGTM because it seems it's not possible to link a image from the repo in issue comments so there is no actual namespace conflict.

@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 22, 2021
@6543 6543 added this to the 1.15.0 milestone Apr 22, 2021
@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 Apr 23, 2021
@techknowlogick
Copy link
Member

🚀

@techknowlogick techknowlogick merged commit 1b3dbdb into go-gitea:master Apr 23, 2021
@lunny lunny deleted the lunny/repo_attachment_route branch April 23, 2021 15:46
@go-gitea go-gitea locked and limited conversation to collaborators Jun 4, 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.

Pasted images have wrong repo-based URL
6 participants