Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional API functions for action runners #31416

Open
4 of 7 tasks
LukasSchulte1 opened this issue Jun 19, 2024 · 4 comments
Open
4 of 7 tasks

Additional API functions for action runners #31416

LukasSchulte1 opened this issue Jun 19, 2024 · 4 comments
Labels
modifies/api This PR adds API routes or modifies them topic/api Concerns mainly the API topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first. type/summary This issue aggregates a bunch of other issues

Comments

@LukasSchulte1
Copy link

LukasSchulte1 commented Jun 19, 2024

Feature Description

To make the gitea action runners even more useful, being able to interact with them though API would be great.
Here is small list of things that would help me in my use cases:
Repository:

Screenshots

No response

@LukasSchulte1 LukasSchulte1 added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jun 19, 2024
@kemzeb kemzeb added the topic/api Concerns mainly the API label Jun 19, 2024
@JokerQyou
Copy link

It was asked before: #25572 . Currently actions are not accessible via API AFAIK. I'd also like a way to trigger a workflow execution via API, much like an automated version of #28163 .

@lunny lunny added modifies/api This PR adds API routes or modifies them topic/gitea-actions related to the actions of Gitea labels Jan 8, 2025
@ChristopherHX
Copy link
Contributor

Just a small update, I would have checked the original post items, but I can't.

Gitea v1.24 nightly has the following items added

  • Get all workflows

  • Disable workflow

  • Enable workflow

  • workflow_dispatch can be used instead of rerun

@lunny
Copy link
Member

lunny commented Mar 4, 2025

Update the issue to add a reference of Github's action logs API

@lunny lunny added the type/summary This issue aggregates a bunch of other issues label Mar 11, 2025
@ChristopherHX
Copy link
Contributor

ChristopherHX commented Mar 18, 2025

I'm working on the following item right know

This makes the keda github runner scaling metric working for gitea actions by having api coverage with GitHub Actions.

My tests look promising.

Together with the PR from lunny for "Get logs for a job" this would makes the api set more complete here, to query the workflows and jobs that have logs.

lunny added a commit that referenced this issue Mar 26, 2025
Related to #33709, #31416

It's similar with
https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#download-job-logs-for-a-workflow-run--code-samples.

This use `job_id` as path parameter which is consistent with Github's
APIs.

---------

Co-authored-by: ChristopherHX <christopher.homberger@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modifies/api This PR adds API routes or modifies them topic/api Concerns mainly the API topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first. type/summary This issue aggregates a bunch of other issues
Projects
None yet
Development

No branches or pull requests

5 participants