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

Commit 0da2e14

Browse files
author
Noah Hanjun Lee
authored
Lock the repository to block deploying. (#84)
* Add `locked` field to Repo * Add validate locked in deployments API * Add lock & unlock button in settings
1 parent 6de8aa6 commit 0da2e14

30 files changed

+646
-86
lines changed

docs/concepts/deployment.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ With approval, Gitploy waits until it matches the required approving approvals.
1010

1111
## Rollback
1212

13-
Rollback is the best way to recover while you fix the problems. Gitploy supports the rollback. You can choose one of the successful deployments to rollback.
13+
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.
14+
15+
For best practice, you should lock the repository to block deploying by others. And the admin user has to take care of the repository until finishing to fix the problems.
1416

1517
*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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Here are capabilities for each permission:
1313

1414
* **Write** - Users can deploy and rollback for the `REF`.
1515

16-
* **Admin** - Users can modify repository settings, including activate and deactivate.
16+
* **Admin** - Users can configures the repository, such as activating and locking.
1717

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

ent/migrate/schema.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/mutation.go

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

ent/repo.go

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

ent/repo/repo.go

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

ent/repo/where.go

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

ent/repo_create.go

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

ent/repo_update.go

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

ent/runtime.go

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

0 commit comments

Comments
 (0)