feat(actions): add get_job to read a single Actions job (#211)

Adds a read-only `get_job` method to the `actions_run_read` tool. `actions_run_read` could already `list_jobs` / `list_run_jobs` (slimmed lists) and read job logs by `job_id`, but there was no way to fetch the full detail of one job. `get_job` closes that gap.Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/211
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni
2026-07-21 00:39:49 +00:00
committed by Lunny Xiao
parent a998cc3389
commit b1a6ed9f6b
4 changed files with 100 additions and 2 deletions
+7
View File
@@ -76,6 +76,13 @@ func slimActionRuns(raw any) any {
return slimPaginated(raw, slimRun)
}
func slimActionJob(raw any) any {
if m, ok := raw.(map[string]any); ok {
return slimJob(m)
}
return raw
}
func slimActionJobs(raw any) any {
return slimPaginated(raw, slimJob)
}