From d7a8d09da013f14bf795fa8efc3a0eac7f259d02 Mon Sep 17 00:00:00 2001 From: jeremiepozzigithub <125282390+jeremiepozzigithub@users.noreply.github.com> Date: Thu, 20 Jul 2023 10:35:47 +0200 Subject: Add file status for API "Get a single commit from a repository" (#16205) (#25831) #16205 To obtain a closer behavior to the api from github, the status (added, modified, removed) of a file should be available in addition to the filename. See github doc : https://docs.github.com/fr/rest/commits/commits?apiVersion=2022-11-28#get-a-commit --- modules/structs/repo_commit.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/structs') diff --git a/modules/structs/repo_commit.go b/modules/structs/repo_commit.go index b3e98df195..fec7d97608 100644 --- a/modules/structs/repo_commit.go +++ b/modules/structs/repo_commit.go @@ -69,4 +69,5 @@ type CommitDateOptions struct { // CommitAffectedFiles store information about files affected by the commit type CommitAffectedFiles struct { Filename string `json:"filename"` + Status string `json:"status"` } -- cgit v1.2.3