1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-05-02 22:28:16 +00:00
forgejo/modules/structs
Gusted 23cc1fdbbe feat(api): add last_commit_when to contents response ()
- Add a new field `last_commit_when` to the `ContentResponse` type, which is populated with the last commit's commiter date. This can be used to determine when the last edit of the content was.
- This field is compatible with what Gitea will likely add, https://github.com/go-gitea/gitea/pull/32921. There's no field for this information in the Github API, so no way to be compatible with that (this API endpoint is otherwise fully compatible with Github's API).
- Ref: 
- Integration test adjusted. The API tests cannot test the actual output, as `testify` tries to 'deep equal' the `time.Time` structs which will differ due how the `time.Time` struct is created. Unit tests still verify the output.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7418
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-04-18 09:31:40 +00:00
..
action.go Add search action jobs for API routes, repo, org and global level () 2025-01-14 11:17:42 +00:00
activity.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
activitypub.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
admin_user.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
attachment.go chore: branding import path () 2025-03-27 19:40:14 +00:00
commit_status.go Restore warning commit status () 2023-10-08 22:16:06 +00:00
commit_status_test.go refactor improve NoBetterThan () 2023-07-26 08:52:07 +00:00
cron.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
doc.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fork.go feat: sync forks () 2025-04-07 07:00:38 +00:00
git_blob.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
git_hook.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
hook.go chore: branding import path () 2025-03-27 19:40:14 +00:00
issue.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
issue_comment.go [FEAT] allow setting the update date on issues and comments 2024-02-05 14:44:33 +01:00
issue_label.go Support using label names when changing issue labels () 2024-05-19 13:12:35 +02:00
issue_milestone.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
issue_reaction.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
issue_stopwatch.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
issue_test.go Add testifylint to lint checks () 2024-07-30 19:41:10 +00:00
issue_tracked_time.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
lfs_lock.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
mirror.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
miscellaneous.go fix: Preview picture not visible on Markdown file () 2024-11-23 15:00:18 +00:00
moderation.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
nodeinfo.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
notifications.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
org.go Inclusion of rename organization api () 2025-02-02 12:01:58 +01:00
org_member.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
org_team.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
package.go Fix package webhook () 2023-10-31 04:43:38 +00:00
pull.go fix(migrations): transfer PR flow information () 2025-04-03 06:47:37 +00:00
pull_review.go Fix invalid swagger syntax of $ref with sibling () 2025-02-21 14:09:21 +00:00
quota.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
release.go [FEAT]Add Option to hide Release Archive links () 2024-04-24 15:15:55 +00:00
repo.go fix: validate input for default_{merge,update}_style () 2025-03-31 03:33:18 +00:00
repo_actions.go Add API endpoints for getting action jobs status () 2024-05-05 12:15:40 +01:00
repo_branch.go [FEAT] Configure if protected branch rule should apply to admins 2024-03-29 00:21:49 +01:00
repo_collaborator.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
repo_commit.go Add file status for API "Get a single commit from a repository" () () 2023-07-20 16:35:47 +08:00
repo_compare.go feat: add files to compare () 2025-01-05 02:32:46 +00:00
repo_file.go feat(api): add last_commit_when to contents response () 2025-04-18 09:31:40 +00:00
repo_flags.go [FEAT] API support for repository flags 2024-02-05 16:09:42 +01:00
repo_key.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_note.go [FEAT]Allow changing git notes () 2024-11-18 22:56:17 +00:00
repo_refs.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_tag.go Add tag protection via rest api () 2024-06-16 13:42:59 +02:00
repo_topic.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_tree.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_watch.go Replace interface{} with any () 2023-07-04 18:36:08 +00:00
repo_wiki.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
secret.go refactor(API): refactor secret creation and update functionality () 2023-08-28 13:08:19 +08:00
settings.go Allow instance-wide disabling of forking 2024-02-25 12:00:17 +01:00
status.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
task.go style: reenable switch check 2024-08-18 15:19:01 +02:00
user.go chore: branding import path () 2025-03-27 19:40:14 +00:00
user_app.go Add scopes to API to create token and display them () 2023-02-20 15:28:44 -06:00
user_email.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
user_gpgkey.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
user_key.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
variable.go Add API for Variables () 2024-04-07 10:57:53 +02:00
visible_type.go change org_type.go to visible_type.go and fix the notes () 2023-02-09 06:40:34 +00:00
workflow.go feat(api): return run_number in workflow dispatch () 2025-03-25 21:22:32 +00:00