-
Notifications
You must be signed in to change notification settings - Fork 63
Revert "feat: add support for deployment "task" and multi-deployments for a given environment" #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… for a given environment"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR reverts the feature that added support for deployment "task" and multi-deployments for a given environment (PR #410). The revert removes the ability to handle concurrent deployments to the same environment using task identifiers.
Key Changes
- Removed
unlock-on-closemode functionality and the entireunlock-on-close.jsfile - Removed
deployment_taskinput parameter and related validation logic - Removed
taskparameter from lock, unlock, deployment, and environment-targeting functions - Simplified lock ownership checking to only verify user (removed branch/PR-specific checks)
- Removed test files and test cases related to task functionality
- Updated the bundled
dist/index.jsto reflect all source changes
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main.js | Removed unlock-on-close mode, task validation logic, and task parameters from function calls |
| src/functions/lock.js | Removed task support from lock branch naming, lock file creation, and ownership checking |
| src/functions/unlock.js | Removed task parsing from unlock commands and branch name construction |
| src/functions/unlock-on-merge.js | Simplified to only handle single lock per environment (no task-based locks) |
| src/functions/unlock-on-close.js | Entire file deleted |
| src/functions/deployment.js | Removed task filtering from deployment queries |
| src/functions/valid-deployment-order.js | Removed task parameter from function signature |
| src/functions/post-deploy.js | Removed task parameter from lock/unlock function calls |
| src/functions/inputs.js | Removed deployment_task input processing |
| src/functions/environment-targets.js | Removed task parsing from command body |
| action.yml | Removed unlock_on_close_mode and deployment_task inputs/outputs |
| tests/* | Removed all task-related test cases and the unlock-on-close test file |
| dist/index.js | Updated bundle to reflect all source changes |
| } | ||
|
|
||
| // If it is a lock or lock info related request | ||
| // If it is a lock or lock info releated request |
Copilot
AI
Nov 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in comment: "releated" should be "related".
| // If it is a lock or lock info releated request | |
| // If it is a lock or lock info related request |
| // Use the 'sticky' flag to determine whether the lock is sticky or not | ||
| // Sticky locks will persist forever unless the 'unlock on merge' mode is being utilized | ||
| // non-sticky locks are temporary and only exist during the deployment process to prevent other deployments... | ||
| // non-sticky locks are tempory and only exist during the deployment process to prevent other deployments... |
Copilot
AI
Nov 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in comment: "tempory" should be "temporary".
| // non-sticky locks are tempory and only exist during the deployment process to prevent other deployments... | |
| // non-sticky locks are temporary and only exist during the deployment process to prevent other deployments... |
| // :param task: The deployment task to lock (if any) | ||
| // :param issue_number: The number of the issue being processed | ||
| // :returns: A lock response object | ||
| // :returns: A lock repsponse object |
Copilot
AI
Nov 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in comment: "repsponse" should be "response".
| // :returns: A lock repsponse object | |
| // :returns: A lock response object |
Reverts #410