Skip to content

Commit 6d93085

Browse files
committed
feat: add support for 'task' deployment on 'unlock-on-merge' + implement auto unlock feature on pull request closure
- Update the `action.yml` file to include a new `unlock_on_close_mode` input - Add a new file `unlock-on-close.js` with a function to release locks when a pull request is closed - Update the `unlock-on-merge.js` file to include a reference to `lock metadata` and other related functions - Introduce a new function `unlockOnClose` in the `main.js` file to run auto-unlock logic in the `unlock on close` mode
1 parent 8ef7739 commit 6d93085

File tree

6 files changed

+501
-89
lines changed

6 files changed

+501
-89
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ inputs:
133133
description: This is an advanced option that is an alternate workflow bundled into this Action. You can optionally use this mode in a custom workflow to automatically release all locks that came from a pull request when the pull request is merged. This is useful if you want to ensure that locks are not left behind when a pull request is merged.
134134
required: false
135135
default: "false"
136-
skip_completing:
137-
description: 'If set to "true", skip the process of completing a deployment. You must manually create a deployment status after the deployment is complete. Default is "false"'
136+
unlock_on_close_mode:
137+
description: This is an advanced option that is an alternate workflow bundled into this Action. You can optionally use this mode in a custom workflow to automatically release all locks that came from a pull request when the pull request is closed. This is useful if you want to ensure that locks are not left behind when a pull request is closed.
138138
required: false
139139
default: "false"
140140
deploy_message_path:

dist/index.js

Lines changed: 250 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)