0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-20 12:55:47 -05:00
forgejo/services/actions
Zettat123 06dfcc1a45
Move some Actions related functions from routers to services (#33280)
Move the main logic of `generateTaskContext` and `findTaskNeeds` to the
`services` layer.

This is a part of #32751, since we need the git context and `needs` to
parse the concurrency expressions.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit d0962ce3da424f0a1df2acf595b20066d6e55128)

Conflicts:
	routers/api/actions/runner/main_test.go
	routers/api/actions/runner/utils.go
	services/actions/context_test.go
	services/actions/init_test.go
	tests/integration/actions_job_test.go
  simple conflicts related to

  ref_type":          string(refName.RefType()),                            // string, The type of ref that triggered the workflow run. Valid values are branch or tag.

  Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946)
2025-01-19 11:52:09 +01:00
..
auth.go allow the actions user to login via the jwt token (#32527) 2024-11-24 10:41:56 +00:00
auth_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
cleanup.go fix: clean up log files that no longer exist 2024-12-03 05:09:47 +01:00
cleanup_test.go fix: clean up log files that no longer exist 2024-12-03 05:09:47 +01:00
clear_tasks.go Add search action jobs for API routes, repo, org and global level (#6300) 2025-01-14 11:17:42 +00:00
commit_status.go fix: Actions PR workflows must update the commit status 2024-11-04 11:27:14 +01:00
context.go Move some Actions related functions from routers to services (#33280) 2025-01-19 11:52:09 +01:00
context_test.go Move some Actions related functions from routers to services (#33280) 2025-01-19 11:52:09 +01:00
init.go
interface.go Add search action jobs for API routes, repo, org and global level (#6300) 2025-01-14 11:17:42 +00:00
job_emitter.go
job_emitter_test.go
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
notifier.go fix: add label to issues and PR labeled/unlabeled events 2024-11-04 10:41:11 +01:00
notifier_helper.go Update scheduled tasks even if changes are pushed by "ActionsUser" (#32246) 2024-10-20 09:24:58 +02:00
notifier_helper_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
rerun.go
rerun_test.go
schedule_tasks.go
variables.go
workflows.go style: reenable switch check 2024-08-18 15:19:01 +02:00