go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.06k stars 5.49k forks source link

Add API routes to manage Actions #25572

Open 5fxKu8VV8n opened 1 year ago

5fxKu8VV8n commented 1 year ago

Feature Description

If possible, could you add some API routes to list, get status, get informations of Actions on repositories ? Something like that : /repos/{owner}/{repo}/actions.

Screenshots

No response

lyz-code commented 1 year ago

It will be also useful to have the possibility to enable the Actions in the repository settings API PATCH method.

Benjamin-Loison commented 1 year ago

As a temporary workaround I established a web-scraper that you can complete in terms of features.

chesteripz commented 1 year ago

It will be also useful to have the possibility to enable the Actions in the repository settings API PATCH method.

You can do it with the endpoint PATCH /repos/{owner}/{repo}

{
    "has_actions": true
}
lyz-code commented 1 year ago

It would be nice also to be able to create and delete repository secrets through the API.

Not sure if this request belongs to this issue, I can create another if needed.

henrygoodman commented 1 year ago

@lyz-code you can :) https://try.gitea.io/api/swagger#/repository/updateRepoSecret

PUT/DELETE implemented for endpoint: /repos/{owner}/{repo}/actions/secrets/{secretname}

lyz-code commented 1 year ago

Thanks @henrygoodman can't wait for 1.22 to be released ᕕ( ᐛ )ᕗ

Alirexaa commented 3 months ago

Also, it is useful to add an API route to run ci (actions).

I need an API to run actions for specific PR.

matmair commented 2 months ago

An API to trigger actions (similar to the workflow dispatch event) would be nice