You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/convert
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>
3 weeks ago
..
activity.go For API attachments, use API URL (#25639) 10 months ago
attachment.go Fix attachment download bug (#27486) 7 months ago
convert.go Add API endpoints for getting action jobs status (#26673) 3 weeks ago
git_commit.go Move context from modules to services (#29440) 3 months ago
git_commit_test.go Adjust object format interface (#28469) 5 months ago
issue.go Fix tautological conditions (#30735) 3 weeks ago
issue_comment.go Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 3 weeks ago
issue_test.go Move `convert` package to services (#22264) 1 year ago
main_test.go make writing main test easier (#27270) 8 months ago
mirror.go Even more `db.DefaultContext` refactor (#27352) 8 months ago
notification.go Performance improvements for pull request list page (#29900) 2 months ago
package.go Clarify permission "HasAccess" behavior (#30585) 4 weeks ago
pull.go Fix missed doer (#30231) 1 month ago
pull_review.go Fix possible NPE in ToPullReviewList (#29759) 2 months ago
pull_review_test.go Fix possible NPE in ToPullReviewList (#29759) 2 months ago
pull_test.go Fix `Permission` in API returned repository struct (#25388) 11 months ago
release.go add Upload URL to release API (#26663) 9 months ago
release_test.go add Upload URL to release API (#26663) 9 months ago
repository.go Allow everyone to read or write a wiki by a repo unit setting (#30495) 1 month ago
secret.go feat: implement organization secret creation API (#26566) 9 months ago
status.go refactor improve NoBetterThan (#26126) 10 months ago
user.go Allow everyone to read or write a wiki by a repo unit setting (#30495) 1 month ago
user_test.go Add context cache as a request level cache (#22294) 1 year ago
utils.go Move `convert` package to services (#22264) 1 year ago
utils_test.go Rewrite queue (#24505) 1 year ago
wiki.go Fix an actions schedule bug (#28942) 4 months ago