mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
Add gitWebhook method to Application model and fix
Dockerfile input display
This commit is contained in:
1 parent
36d65ad5a8
commit
3a3c9448a4
2 files changed
+15
-1
No files matched your search
@@ -85,6 +85,18 @@ class Application extends BaseModel
|
||||
);
|
||||
}
|
||||
|
||||
public function gitWebhook(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: function () {
|
||||
if (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {
|
||||
return "{$this->source->html_url}/{$this->git_repository}/settings/hooks";
|
||||
}
|
||||
return $this->git_repository;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public function gitCommits(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
|
||||
Reference in new issue
Block a user