Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 9647706

Browse files
author
Noah Hanjun Lee
authored
feat: add environment lock (#116)
* Add Lock entity * Add APIs for Lock * Add lock validation in API and slack * Add Lock tab * Fix the document for the locking system
1 parent dabd31d commit 9647706

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+5783
-607
lines changed

docs/concepts/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ With approval, Gitploy waits until it matches the required approving approvals.
1212

1313
Rollback is the best way to recover while you fix the problems. Gitploy supports the rollback, and you can choose one of the successful deployments to rollback.
1414

15-
For best practice, you should lock the repository to block deploying by others until finishing to fix the problems. Gitploy provide the 'lock' feature in UI and Chatops.
15+
For best practice, you should lock the environment to block deploying by others until finishing to fix the problems. Gitploy provide the 'lock' feature in UI and Chatops.
1616

1717
*Note that if the ref of the selected deployment is a branch, Gitploy automatically references the commit SHA to prevent deploying the head of the branch.*

docs/concepts/permission.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Here are capabilities for each permission:
1111

1212
* **Read** - Users can read all activities that happened in the repository, such as deployments, approvals. And users are also capable of responding to the approval.
1313

14-
* **Write** - Users can deploy and rollback for the `REF`.
14+
* **Write** - Users can lock, deploy, and rollback for the `REF`.
1515

16-
* **Admin** - Users can configures the repository, such as activating and locking.
16+
* **Admin** - Users can configures the repository, such as activating.
1717

1818
Of course, write and admin permission cover the ability of read permission.

ent/client.go

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

ent/config.go

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

ent/ent.go

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

ent/hook/hook.go

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

0 commit comments

Comments
 (0)