Explorar o código

add webhook column (#3745)

Co-authored-by: jose-fully-ported <141160579+jose-fully-ported@users.noreply.github.com>
ianedwards %!s(int64=2) %!d(string=hai) anos
pai
achega
1bb603a6a0

+ 1 - 1
dashboard/src/main/home/app-dashboard/new-app-flow/GithubActionModal.tsx

@@ -51,7 +51,7 @@ const GithubActionModal: React.FC<Props> = ({
   const [isChecked, setIsChecked] = React.useState<boolean>(false);
 
   const actionYamlContents = useMemo(() => {
-    if (!projectId || !clusterId || !stackName || !branch || !porterYamlPath) {
+    if (!projectId || !clusterId || !stackName || !branch) {
       return "";
     }
     if (type === "preview") {

+ 4 - 3
internal/models/porter_app.go

@@ -18,9 +18,10 @@ type PorterApp struct {
 	ImageRepoURI string
 
 	// Git repo information (optional)
-	GitRepoID uint
-	RepoName  string
-	GitBranch string
+	GitRepoID       uint
+	RepoName        string
+	GitBranch       string
+	GithubWebhookID int64 `gorm:"-"` // do not use in read/writes. this is temporary until migrations are run
 
 	BuildContext   string
 	Builder        string