Skip to content

Conversation

@GrantBirki
Copy link
Contributor

Reverts #410

Copilot AI review requested due to automatic review settings November 26, 2025 19:24
@GrantBirki GrantBirki merged commit 4ccace6 into main Nov 26, 2025
8 checks passed
@GrantBirki GrantBirki deleted the revert-410-feat/deployment-task branch November 26, 2025 19:24
Copilot finished reviewing on behalf of GrantBirki November 26, 2025 19:25
Copy link
Contributor

Copilot AI left a 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-close mode functionality and the entire unlock-on-close.js file
  • Removed deployment_task input parameter and related validation logic
  • Removed task parameter 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.js to 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
Copy link

Copilot AI Nov 26, 2025

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".

Suggested change
// If it is a lock or lock info releated request
// If it is a lock or lock info related request

Copilot uses AI. Check for mistakes.
// 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...
Copy link

Copilot AI Nov 26, 2025

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".

Suggested change
// 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...

Copilot uses AI. Check for mistakes.
// :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
Copy link

Copilot AI Nov 26, 2025

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".

Suggested change
// :returns: A lock repsponse object
// :returns: A lock response object

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants