feat(dispatch): implement dispatch-workflow.sh with dispatch, poll, and timeout (#4)
CI — gitea-ci-library / feature (push) Failing after 1s
CI — gitea-ci-library / master (push) Has been skipped

Add dispatch-workflow.sh script that dispatches a Gitea workflow
in another repository and polls synchronously for completion.
Refactor mock-api.sh to use Python3 HTTP server with sequence
support, enabling stateful poll-response simulation in tests.

---------

Co-authored-by: moilanik <niko.moilanen@tietoevry.com>
Reviewed-on: #4
This commit is contained in:
2026-06-08 16:08:55 +03:00
parent dcc51f9f5c
commit 8f1bf7e347
8 changed files with 460 additions and 19 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Ticket 0002: `dispatch-workflow.sh`
**Vaihe:** 2/12
**Status:** pending
**Status:** done
**Feature branch:** `feature/0002-dispatch-workflow-sh`
**TDD required:** Yes
**Feature file required:** Yes