fix: add pull_request trigger to CI workflow (#204) #207

Merged
AI-Manager merged 1 commits from fix/ci-pull-request-trigger-204 into master 2026-04-20 17:05:22 +00:00
Owner

Summary

  • Add pull_request trigger to .gitea/workflows/build.yaml so go vet and go test -race run on every PR targeting master
  • Restrict Docker build+push job to push events only via if: gitea.event_name == 'push'

Test plan

  • Open a PR and verify the test job runs
  • Verify the build job is skipped on PRs
  • Verify push to master still triggers both test and build jobs

Closes #204

## Summary - Add `pull_request` trigger to `.gitea/workflows/build.yaml` so `go vet` and `go test -race` run on every PR targeting master - Restrict Docker build+push job to `push` events only via `if: gitea.event_name == 'push'` ## Test plan - [ ] Open a PR and verify the test job runs - [ ] Verify the build job is skipped on PRs - [ ] Verify push to master still triggers both test and build jobs Closes #204
AI-Manager added 1 commit 2026-04-20 15:05:12 +00:00
fix: add pull_request trigger to CI workflow so tests gate all PRs
Build and Push / test (pull_request) Successful in 3m33s
Build and Push / build (pull_request) Has been skipped
02a108a58e
The CI workflow previously only triggered on push to master, meaning PRs
were not tested before merge. Add pull_request trigger for the test job
while restricting the Docker build+push job to push events only.

Closes leeworks-agents/gitea-mobile#204

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager merged commit fa63d56e43 into master 2026-04-20 17:05:22 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#207