Add POST /apps/{id}/deployments/cancel endpoint that allows users to
cancel in-progress deployments via the web UI.
Changes:
- Add CancelDeploy() and HasActiveDeploy() public methods to deploy service
- Add HandleCancelDeploy handler
- Wire route in routes.go
- Add cancel button to app detail template (shown during active deployments)
- Add handler tests for cancel endpoint
fixes#66
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds a
POST /apps/{id}/deployments/cancelendpoint and UI cancel button for user-facing deployment cancellation.Changes
deploy.Service.CancelDeploy()andHasActiveDeploy()public methodsHandleCancelDeployhandlerroutes.goCloses #66
Add POST /apps/{id}/deployments/cancel endpoint that allows users to cancel in-progress deployments via the web UI. Changes: - Add CancelDeploy() and HasActiveDeploy() public methods to deploy service - Add HandleCancelDeploy handler - Wire route in routes.go - Add cancel button to app detail template (shown during active deployments) - Add handler tests for cancel endpoint fixes #66CI Results
Tests: ✅ All passing
Lint: ✅ 0 issues