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

How can i get a file or dir commit infomation by the API? #16703

Closed
yayiyo opened this issue Aug 16, 2021 · 0 comments · Fixed by #17652
Closed

How can i get a file or dir commit infomation by the API? #16703

yayiyo opened this issue Aug 16, 2021 · 0 comments · Fixed by #17652
Labels
modifies/api This PR adds API routes or modifies them type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@yayiyo
Copy link

yayiyo commented Aug 16, 2021

  • Gitea version (or commit ref): SDK v0.14.1

Description

I can not find the API what can get a file or dir commit infomation, so what should i do to get the contents list with commit infomaion? Look forward reply, thanks!

@lunny lunny added modifies/api This PR adds API routes or modifies them type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Aug 18, 2021
zeripath pushed a commit that referenced this issue Dec 22, 2021
Adds an API endpoint `api/v1/repos/{owner}/{repo}/git/history/{filepath}` to get the commits affecting the given file or directory.

Closes #16206 and closes #16703
Chianina pushed a commit to Chianina/gitea that referenced this issue Mar 28, 2022
Adds an API endpoint `api/v1/repos/{owner}/{repo}/git/history/{filepath}` to get the commits affecting the given file or directory.

Closes go-gitea#16206 and closes go-gitea#16703
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants