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

[API] Add modified/created time to contents #32886

Open
mmarif4u opened this issue Dec 18, 2024 · 2 comments · May be fixed by #32921
Open

[API] Add modified/created time to contents #32886

mmarif4u opened this issue Dec 18, 2024 · 2 comments · May be fixed by #32921
Labels
proposal/accepted We have reviewed the proposal and agree that it should be implemented like that/at all. topic/api Concerns mainly the API type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@mmarif4u
Copy link

Feature Description

It would be nice if the API for files (contents) return the modified/created time too.

API ref: https://codeberg.org/api/swagger#/repository/repoGetContentsList
Ref link: https://codeberg.org/gitnex/GitNex/issues/1225

cc @6543 if you are still active here. :)

Screenshots

No response

@mmarif4u mmarif4u added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Dec 18, 2024
@lunny
Copy link
Member

lunny commented Dec 19, 2024

Hi, I think the last modified/created time can be read from the last commit.

+ LastCommitWhen : lastCommit.Author.When,

@lunny lunny added topic/api Concerns mainly the API proposal/accepted We have reviewed the proposal and agree that it should be implemented like that/at all. labels Dec 19, 2024
@mmarif4u
Copy link
Author

Hi @lunny, I guess you are referring to the code implementation that needs to be done.

A date object can be added from the lastCommit.Author.When to the json output.

@lunny lunny linked a pull request Dec 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal/accepted We have reviewed the proposal and agree that it should be implemented like that/at all. topic/api Concerns mainly the API 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