Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/concepts/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ With approval, Gitploy waits until it matches the required approving approvals.

## Rollback

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

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.

*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.*
2 changes: 1 addition & 1 deletion docs/concepts/permission.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Here are capabilities for each permission:

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

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

Of course, write and admin permission cover the ability of read permission.
1 change: 1 addition & 0 deletions ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 55 additions & 1 deletion ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion ent/repo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ent/repo/repo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions ent/repo/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions ent/repo_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions ent/repo_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions ent/runtime.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ent/schema/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ func (Repo) Fields() []ent.Field {
field.String("description"),
field.String("config_path").
Default("deploy.yml"),
// Activated repo has the webhook to update the deployment status.
field.Bool("active").
Default(false),
field.Int64("webhook_id").
Optional(),
field.Bool("locked").
Default(false),
Comment on lines +31 to +32
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note. It depends on the context of the word to prepend is_ for the boolean field.

field.Time("created_at").
Default(time.Now),
field.Time("updated_at").
Expand Down
Loading