Skip to content

Commit

Permalink
Port 6791 onboarding adjusting default blueprints and actions when in…
Browse files Browse the repository at this point in the history
…stalling the git hub integration (#95)
  • Loading branch information
Tankilevitch authored Mar 27, 2024
1 parent cc8c281 commit 446f513
Show file tree
Hide file tree
Showing 3 changed files with 330 additions and 21 deletions.
263 changes: 243 additions & 20 deletions integrations/github/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,202 @@
},
"invocationMethod": {
"type": "GITHUB",
"omitPayload": false,
"org": "<GITHUB_ORG_NAME>",
"repo": "<GITHUB_REPO_NAME>",
"workflow": "port-create-repo.yml",
"omitUserInputs": true,
"reportWorkflowStatus": true,
"org": "Fill here your org name",
"repo": "Fill here your repo name",
"workflow": "Fill here your workflow name"
"omitPayload": false,
"reportWorkflowStatus": true
},
"trigger": "CREATE",
"description": "To complete setting up this action, please refer to the following guide: [Setup scaffold service action ->](https://docs.getport.io/guides-and-tutorials/scaffold-a-new-service?git-provider=github)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "github_send_scorecard_reminder",
"icon": "Slack",
"title": "Send scorecard reminder",
"identifier": "create_github_secret",
"title": "Create GitHub Secret",
"icon": "Github",
"userInputs": {
"properties": {
"secret_key": {
"icon": "DefaultProperty",
"title": "Secret Key",
"type": "string",
"pattern": "^[^a-z]*$"
},
"secret_value": {
"icon": "DefaultProperty",
"title": "Secret Value",
"type": "string",
"encryption": "aes256-gcm"
}
},
"required": [
"secret_key",
"secret_value"
],
"order": [
"secret_key",
"secret_value"
]
},
"invocationMethod": {
"type": "GITHUB",
"org": "<GITHUB_ORG_NAME>",
"repo": "<GITHUB_REPO_NAME>",
"workflow": "create-repo-secret.yml",
"omitUserInputs": false,
"omitPayload": false,
"reportWorkflowStatus": true
},
"trigger": "CREATE",
"description": "To complete setting up this action, please refer to the following guide: [Setup create github secret action ->](https://docs.getport.io/create-self-service-experiences/setup-backend/github-workflow/examples/create-github-secret)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "promote_to_production",
"title": "Promote to Production",
"icon": "Argo",
"userInputs": {
"properties": {},
"required": []
},
"invocationMethod": {
"type": "GITHUB",
"org": "<GITHUB-ORG>",
"repo": "<GITHUB-REPO-NAME>",
"workflow": "promote-production.yml",
"omitUserInputs": true,
"omitPayload": false,
"reportWorkflowStatus": true
},
"trigger": "DAY-2",
"description": "To complete setting up this action, please refer to the following guide: [Setup Promote to production action ->](https://docs.getport.io/create-self-service-experiences/setup-backend/github-workflow/examples/promote-to-production)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "lock_service",
"title": "Lock Service",
"icon": "Lock",
"userInputs": {
"properties": {
"reason": {
"title": "Reason",
"type": "string"
},
"environment": {
"icon": "DefaultProperty",
"title": "Environment",
"type": "string",
"enum": [
"Production",
"Development",
"Staging"
],
"enumColors": {
"Production": "lightGray",
"Development": "lightGray",
"Staging": "lightGray"
}
}
},
"required": [
"environment",
"reason"
],
"order": [
"environment",
"reason"
]
},
"invocationMethod": {
"type": "GITHUB",
"org": "<GITHUB-ORG>",
"repo": "<GITHUB-REPO-NAME>",
"workflow": "lock-service.yml",
"omitUserInputs": false,
"reportWorkflowStatus": true,
"org": "Fill here your org name",
"repo": "Fill here your repo name",
"workflow": "Fill here your workflow name"
"omitPayload": false,
"reportWorkflowStatus": true
},
"trigger": "CREATE",
"description": "To complete setting up this action, please refer to the following guide: [Setup send scorecard reminder action ->](https://docs.getport.io/guides-and-tutorials/setup-slack-reminders?git-provider=github)",
"trigger": "DAY-2",
"description": "To complete setting up this action, please refer to the following guide: [Setup lock service in Port ->](https://docs.getport.io/create-self-service-experiences/setup-backend/github-workflow/examples/lock-and_unlock-service-in-port)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "unlock_service",
"title": "Unlock Service",
"icon": "Unlock",
"userInputs": {
"properties": {
"reason": {
"title": "Reason",
"type": "string"
},
"environment": {
"icon": "DefaultProperty",
"title": "Environment",
"type": "string",
"enum": [
"Production",
"Development",
"Staging"
],
"enumColors": {
"Production": "lightGray",
"Development": "lightGray",
"Staging": "lightGray"
}
}
},
"required": [
"environment",
"reason"
],
"order": [
"environment",
"reason"
]
},
"invocationMethod": {
"type": "GITHUB",
"org": "<GITHUB-ORG>",
"repo": "<GITHUB-REPO-NAME>",
"workflow": "unlock-service.yml",
"omitUserInputs": false,
"omitPayload": false,
"reportWorkflowStatus": true
},
"trigger": "DAY-2",
"description": "To complete setting up this action, please refer to the following guide: [Setup unlock service in Port ->](https://docs.getport.io/create-self-service-experiences/setup-backend/github-workflow/examples/lock-and_unlock-service-in-port)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "nudge_reviewers",
"title": "Nudge Reviewers",
"icon": "Slack",
"userInputs": {
"properties": {},
"required": []
},
"invocationMethod": {
"type": "GITHUB",
"org": "<GITHUB-ORG>",
"repo": "<GITHUB-REPO-NAME>",
"workflow": "nudge-pr-reviewers.yml",
"omitUserInputs": true,
"omitPayload": false,
"reportWorkflowStatus": true
},
"trigger": "DAY-2",
"description": "To complete setting up this action, please refer to the following guide: [Setup Remind reviewers about PR ->](https://docs.getport.io/create-self-service-experiences/setup-backend/github-workflow/examples/nudge-pr-reviewers)",
"requiredApproval": false,
"blueprint": "githubPullRequest"
},
{
"identifier": "github_enrich_service",
"title": "Enrich service",
Expand Down Expand Up @@ -104,15 +266,37 @@
"omitPayload": false,
"omitUserInputs": false,
"reportWorkflowStatus": true,
"org": "Fill here your org name",
"repo": "Fill here your repo name",
"workflow": "Fill here your workflow name"
"org": "<GITHUB_ORG_NAME>",
"repo": "<GITHUB_REPO_NAME>",
"workflow": "port-enrich-service.yaml"
},
"trigger": "DAY-2",
"description": "To complete setting up this action, please refer to the following guide: [Setup enrich service action ->](https://docs.getport.io/guides-and-tutorials/let-developers-enrich-services-using-gitops?git-provider=github)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "github_send_scorecard_reminder",
"icon": "Slack",
"title": "Send scorecard reminder",
"userInputs": {
"properties": {},
"required": []
},
"invocationMethod": {
"type": "GITHUB",
"omitPayload": false,
"omitUserInputs": false,
"reportWorkflowStatus": true,
"org": "<GITHUB_ORG_NAME>",
"repo": "<GITHUB_REPO_NAME>",
"workflow": "port-slack-reminder.yml"
},
"trigger": "CREATE",
"description": "To complete setting up this action, please refer to the following guide: [Setup send scorecard reminder action ->](https://docs.getport.io/guides-and-tutorials/setup-slack-reminders?git-provider=github)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "github_create_s3_bucket",
"icon": "S3",
Expand Down Expand Up @@ -152,13 +336,52 @@
"omitPayload": false,
"omitUserInputs": false,
"reportWorkflowStatus": true,
"org": "Fill here your org name",
"repo": "Fill here your repo name",
"workflow": "Fill here your workflow name"
"org": "<GITHUB_ORG_NAME>",
"repo": "<GITHUB_REPO_NAME>",
"workflow": "port-create-bucket.yml"
},
"trigger": "DAY-2",
"description": "To complete setting up this action, please refer to the following guide: [Setup create s3 bucket ->](https://docs.getport.io/guides-and-tutorials/create-cloud-resource-using-iac?git-provider=github)",
"requiredApproval": false,
"blueprint": "service"
},
{
"identifier": "delete_repo",
"title": "Delete Repo",
"icon": "Github",
"userInputs": {
"properties": {
"org_name": {
"icon": "Github",
"title": "Organisation Name",
"type": "string",
"default": "default-org"
},
"delete_dependents": {
"icon": "Github",
"title": "Delete Dependent Items",
"type": "boolean",
"default": false
}
},
"required": [],
"order": [
"org_name",
"delete_dependents"
]
},
"invocationMethod": {
"type": "GITHUB",
"org": "<GITHUB-ORG>",
"repo": "<GITHUB-REPO-NAME>",
"workflow": "delete-repo.yml",
"omitUserInputs": false,
"omitPayload": false,
"reportWorkflowStatus": true
},
"trigger": "DELETE",
"description": "To complete setting up this action, please refer to the following guide: [Setup delete a repository action ->](https://docs.getport.io/create-self-service-experiences/setup-backend/github-workflow/examples/delete-repository/)",
"requiredApproval": false,
"blueprint": "service"
}
]
65 changes: 65 additions & 0 deletions integrations/github/blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,70 @@
"calculationProperties": {},
"aggregationProperties": {},
"relations": {}
},
{
"identifier": "githubPullRequest",
"title": "Pull Request",
"icon": "Github",
"schema": {
"properties": {
"creator": {
"title": "Creator",
"type": "string"
},
"assignees": {
"title": "Assignees",
"type": "array"
},
"reviewers": {
"title": "Reviewers",
"type": "array"
},
"status": {
"title": "Status",
"type": "string",
"enum": [
"merged",
"open",
"closed"
],
"enumColors": {
"merged": "purple",
"open": "green",
"closed": "red"
}
},
"closedAt": {
"title": "Closed At",
"type": "string",
"format": "date-time"
},
"updatedAt": {
"title": "Updated At",
"type": "string",
"format": "date-time"
},
"mergedAt": {
"title": "Merged At",
"type": "string",
"format": "date-time"
},
"link": {
"format": "url",
"type": "string"
}
},
"required": []
},
"mirrorProperties": {},
"calculationProperties": {},
"relations": {
"service": {
"title": "Service",
"target": "service",
"required": false,
"many": false
}
}
}
]
Loading

0 comments on commit 446f513

Please sign in to comment.