gitea/routers/api/v1/repo
Chester 6709e28da7
Add API endpoints for getting action jobs status (#26673)
Sample of response, it is similar to Github actions

ref
https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository

``` json
{
    "workflow_runs": [
        {
            "id": 3,
            "name": "Explore-Gitea-Actions",
            "head_branch": "main",
            "head_sha": "6d8d29a9f7a01ded8f8aeb64341cb31ee1ab5f19",
            "run_number": 3,
            "event": "push",
            "display_title": "More job",
            "status": "success",
            "workflow_id": "demo2.yaml",
            "url": "/chester/test/actions/runs/3",
            "created_at": "2023-08-22T13:41:33-04:00",
            "updated_at": "2023-08-22T13:41:37-04:00",
            "run_started_at": "2023-08-22T13:41:33-04:00"
        },
        {
            "id": 2,
            "name": "Explore-Gitea-Actions",
            "head_branch": "main",
            "head_sha": "6d8d29a9f7a01ded8f8aeb64341cb31ee1ab5f19",
            "run_number": 2,
            "event": "push",
            "display_title": "More job",
            "status": "success",
            "workflow_id": "demo.yaml",
            "url": "/chester/test/actions/runs/2",
            "created_at": "2023-08-22T13:41:30-04:00",
            "updated_at": "2023-08-22T13:41:33-04:00",
            "run_started_at": "2023-08-22T13:41:30-04:00"
        },
        {
            "id": 1,
            "name": "Explore-Gitea-Actions",
            "head_branch": "main",
            "head_sha": "e5369ab054cae79899ba36e45ee82811a6e0acd5",
            "run_number": 1,
            "event": "push",
            "display_title": "Add job",
            "status": "failure",
            "workflow_id": "demo.yaml",
            "url": "/chester/test/actions/runs/1",
            "created_at": "2023-08-22T13:15:21-04:00",
            "updated_at": "2023-08-22T13:18:10-04:00",
            "run_started_at": "2023-08-22T13:15:21-04:00"
        }
    ],
    "total_count": 3
}
```

---------

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
2024-05-01 09:40:23 +08:00
..
action.go feat(api): enhance Actions Secrets Management API for repository (#30656) 2024-04-26 21:11:49 +08:00
actions.go Add API endpoints for getting action jobs status (#26673) 2024-05-01 09:40:23 +08:00
avatar.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
blob.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
branch.go Fix branch_protection api shows users/teams who has no readAccess (#30291) 2024-04-17 15:24:07 +02:00
collaborators.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
commits.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
compare.go Fix compare api swagger (#30648) 2024-04-23 02:22:43 +00:00
file.go Remove repetitive words (#30091) 2024-03-26 15:48:53 +08:00
fork.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
git_hook.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
git_ref.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
hook.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
hook_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +00:00
issue_attachment.go Fix missed doer (#30231) 2024-04-08 21:26:41 +00:00
issue_comment.go Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
issue_comment_attachment.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
issue_dependency.go Fix missed doer (#30231) 2024-04-08 21:26:41 +00:00
issue_label.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_pin.go Fix missed doer (#30231) 2024-04-08 21:26:41 +00:00
issue_reaction.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
issue_stopwatch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_subscription.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_tracked_time.go Fix missed doer (#30231) 2024-04-08 21:26:41 +00:00
key.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
label.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
language.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
migrate.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-04-29 08:47:56 +00:00
milestone.go remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
mirror.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +00:00
notes.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
patch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
pull.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +00:00
pull_review.go Prevent allow/reject reviews on merged/closed PRs (#30686) 2024-04-27 11:55:03 +00:00
release.go Fix 500 when pushing release to an empty repo (#29554) 2024-03-03 16:49:05 +00:00
release_attachment.go Add support for API blob upload of release attachments (#29507) 2024-03-02 17:02:01 +00:00
release_tags.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
repo.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +00:00
repo_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
star.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
status.go Cache repository default branch commit status to reduce query on commit status table (#29444) 2024-03-06 12:17:19 +00:00
subscriber.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
tag.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
teams.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
topic.go Refactor topic Find functions and add more tests for pagination (#30127) 2024-03-29 11:38:16 +08:00
transfer.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
tree.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
wiki.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +00:00