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/modules
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>
9 months ago
..
actions Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
activitypub Upgrade to golangci-lint@v1.55.0 (#27756) 1 year ago
analyze Rename code_langauge.go to code_language.go (#26377) 2 years ago
assetfs Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
auth Replace deprecated `math/rand` functions (#30733) 10 months ago
avatar Use `crypto/sha256` (#29386) 12 months ago
badge Implement actions badge svgs (#28102) 12 months ago
base Refactor StringsToInt64s (#29967) 11 months ago
cache Refactor cache and disable go-chi cache (#30417) 10 months ago
charset Render embedded code preview by permlink in markdown (#30234) 10 months ago
container Add container.FilterSlice function (#30339) 10 months ago
csv Render embedded code preview by permlink in markdown (#30234) 10 months ago
dump Refactor "dump" sub-command (#30240) 10 months ago
emoji Update emoji set to Unicode 15 (#25595) 2 years ago
eventsource Final round of `db.DefaultContext` refactor (#27587) 1 year ago
generate Refactor JWT secret generating & decoding code (#29172) 12 months ago
git Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
gitgraph More `db.DefaultContext` refactor (#27265) 1 year ago
gitrepo Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 11 months ago
graceful Remove unused error in graceful manager (#29871) 11 months ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 2 years ago
highlight Add option to disable ambiguous unicode characters detection (#28454) 1 year ago
hostmatcher Support allowed hosts for webhook to work with proxy (#27655) 1 year ago
html Refactor backend SVG package and add tests (#26335) 2 years ago
httpcache Also match weakly validated ETags (#28957) 1 year ago
httplib Refactor external URL detection (#29973) 11 months ago
indexer Fix tautological conditions (#30735) 9 months ago
issue/template Extend issue template yaml engine (#29274) 11 months ago
json Replace `interface{}` with `any` (#25686) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs fix: close file in the Upload func (#30262) 10 months ago
log Add some tests to clarify the "must-change-password" behavior (#30693) 10 months ago
markup Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Reduce usage of `db.DefaultContext` (#27073) 1 year ago
migration Refactor locale&string&template related code (#29165) 12 months ago
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
optional Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Add support for npm bundleDependencies (#30751) 9 months ago
paginator Use more specific test methods (#24265) 2 years ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Performance optimization for git push (#30104) 10 months ago
process Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 10 months ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Refactor CORS handler (#28587) 1 year ago
queue Fix queue test (#30646) 10 months ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Fix issue link does not support quotes (#29484) (#29487) 11 months ago
regexplru Upgrade go dependencies (#25819) 2 years ago
repository Enable more `revive` linter rules (#30608) 10 months ago
secret Use `crypto/sha256` (#29386) 12 months ago
session Improve oauth2 client "preferred username field" logic and the error handling (#30622) 10 months ago
setting Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Remove SSH workaround (#27893) 1 year ago
storage Fix object storage path handling (#27024) 1 year ago
structs Add API endpoints for getting action jobs status (#26673) 9 months ago
svg Refactor markdown attention render (#29984) 11 months ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Replace more db.DefaultContext (#27628) 1 year ago
templates Fix issue label rendering in the issue popup (#30763) 9 months ago
test Move web/api context related testing function into a separate package (#26859) 1 year ago
testlogger Replace `interface{}` with `any` (#25686) 2 years ago
timeutil Refactor "dump" sub-command (#30240) 10 months ago
translation Render embedded code preview by permlink in markdown (#30234) 10 months ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Detect ogg mime-type as audio or video (#26494) 2 years ago
updatechecker Replace more db.DefaultContext (#27628) 1 year ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Enable more `revive` linter rules (#30608) 10 months ago
validation Check blocklist for emails when adding them to account (#26812) 1 year ago
web Use maintained gziphandler (#30592) 10 months ago
webhook Fix schedule tasks bugs (#28691) 1 year ago