Patch GitHub integration for organization repos by including correct owner

This commit is contained in:
Tuan Dang
2023-01-18 16:33:24 +07:00
parent 2235069e78
commit 3a6b2084bc
7 changed files with 35 additions and 22 deletions
+6
View File
@@ -15,6 +15,7 @@ export interface IIntegration {
target: string;
context: string;
siteId: string;
owner: string;
integration: 'heroku' | 'vercel' | 'netlify' | 'github';
integrationAuth: Types.ObjectId;
}
@@ -54,6 +55,11 @@ const integrationSchema = new Schema<IIntegration>(
type: String,
default: null
},
owner: {
// github-specific repo owner-login
type: String,
default: null
},
integration: {
type: String,
enum: [