Skip to content

Conversation

@ChristopherHX
Copy link
Contributor

adds new repo rest api based on https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event

  • /workflows/{workflow_id}/dispatches
  • moves dispatch logic into actions_service package
  • adds tests for the rest api
  • a PAT with repo:write might be required

Closes #32041

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 6, 2025
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code labels Feb 6, 2025
@lunny
Copy link
Member

lunny commented Feb 6, 2025

Looks like a duplication of #32059

@ChristopherHX
Copy link
Contributor Author

Oh, the tests could be copied to the other much bigger change that lacks them.

I will test the existing PR now

Gitea is a big project :), thanks for letting me know

@ChristopherHX
Copy link
Contributor Author

Closing changes fully migrated to the change #32059

@go-gitea go-gitea locked as resolved and limited conversation to collaborators May 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trigger workflow B in a repo from workflow A in another repo

3 participants