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
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>
11 months ago
..
actions feat(api): enhance Actions Secrets Management API for repository (#30656) 11 months ago
agit Performance optimization for git push (#30104) 12 months ago
asymkey Fix some pending problems (#29985) 1 year ago
attachment Add support for API blob upload of release attachments (#29507) 1 year ago
auth Fix tautological conditions (#30735) 11 months ago
automerge Simplify how git repositories are opened (#28937) 1 year ago
context Resolve lint for unused parameter and unnecessary type arguments (#30750) 11 months ago
contexttest Improve oauth2 client "preferred username field" logic and the error handling (#30622) 11 months ago
convert Add API endpoints for getting action jobs status (#26673) 11 months ago
cron Move some asymkey functions to service layer (#28894) 1 year ago
doctor Resolve lint for unused parameter and unnecessary type arguments (#30750) 11 months ago
externalaccount Revert "Support SAML authentication (#25165)" (#29358) 1 year ago
feed More `db.DefaultContext` refactor (#27265) 2 years ago
forms Initial support for colorblindness-friendly themes (#30625) 11 months ago
gitdiff Enable more `revive` linter rules (#30608) 11 months ago
indexer Fix missing issue search index update when changing status (#28325) 1 year ago
issue Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 11 months ago
lfs Move context from modules to services (#29440) 1 year ago
mailer Use relative links for commits, mentions, and issues in markdown (#29427) 1 year ago
markup Enable more `revive` linter rules (#30608) 11 months ago
migrations Resolve lint for unused parameter and unnecessary type arguments (#30750) 11 months ago
mirror Resolve lint for unused parameter and unnecessary type arguments (#30750) 11 months ago
notify Clean up log messages (#30313) 12 months ago
org Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 11 months ago
packages remove util.OptionalBool and related functions (#29513) 1 year ago
pull Resolve lint for unused parameter and unnecessary type arguments (#30750) 11 months ago
release Use repo object format name instead of detecting from git repository (#29702) 1 year ago
repository Resolve lint for unused parameter and unnecessary type arguments (#30750) 11 months ago
secrets Refactor deletion (#28610) 1 year ago
task Fix incorrect ctx usage in defer function (#27740) 1 year ago
uinotification Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
user Resolve lint for unused parameter and unnecessary type arguments (#30750) 11 months ago
webhook Enable more `revive` linter rules (#30608) 11 months ago
webtheme Initial support for colorblindness-friendly themes (#30625) 11 months ago
wiki Avoid showing `Failed to change the default wiki branch` if repo has no wiki when saving repo settings (#30329) 12 months ago