From 98d6b2ff07a1f4ab3e38d5fa8e21c17d7350ab49 Mon Sep 17 00:00:00 2001 From: Tom Tankilevitch <59158507+Tankilevitch@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:21:56 +0300 Subject: [PATCH] Revert "remove default actions and remove demo links" (#105) --- integrations/bitbucket/actions.json | 168 +++++++++++++ integrations/github/actions.json | 363 ++++++++++++++++++++++++++++ 2 files changed, 531 insertions(+) diff --git a/integrations/bitbucket/actions.json b/integrations/bitbucket/actions.json index 32960f8..2996c5c 100644 --- a/integrations/bitbucket/actions.json +++ b/integrations/bitbucket/actions.json @@ -1,2 +1,170 @@ [ + { + "identifier": "bitbucket_scaffold_service", + "title": "Scaffold Service", + "icon": "Microservice", + "userInputs": { + "properties": { + "service_name": { + "title": "Service Name", + "description": "The new service's name", + "type": "string" + }, + "bitbucket_workspace_name": { + "title": "Bitbucket Workspace Name", + "description": "The workspace to create the new service in", + "type": "string" + }, + "bitbucket_project_key": { + "title": "Bitbucket Project Key", + "description": "Bitbucket project key symbol", + "type": "string" + } + }, + "required": [ + "service_name", + "bitbucket_workspace_name", + "bitbucket_project_key" + ], + "order": [ + "service_name", + "bitbucket_workspace_name", + "bitbucket_project_key" + ] + }, + "invocationMethod": { + "type": "WEBHOOK", + "agent": true, + "url": "https://example.com", + "synchronized": false, + "method": "POST" + }, + "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=bitbucket)", + "requiredApproval": false, + "blueprint": "service" + }, + { + "identifier": "bitbucket_send_scorecard_reminder", + "icon": "Slack", + "title": "Send scorecard reminder", + "userInputs": { + "properties": {}, + "required": [] + }, + "invocationMethod": { + "type": "WEBHOOK", + "agent": true, + "url": "https://example.com", + "synchronized": true, + "method": "POST" + }, + "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=bitbucket)", + "requiredApproval": false, + "blueprint": "service" + }, + { + "identifier": "bitbucket_enrich_service", + "title": "Enrich service", + "icon": "Git", + "userInputs": { + "properties": { + "type": { + "icon": "BlankPage", + "title": "Type", + "description": "The service's type", + "type": "string", + "enum": [ + "backend", + "frontend", + "integration" + ], + "enumColors": { + "backend": "lightGray", + "frontend": "lightGray", + "integration": "lightGray" + } + }, + "lifecycle": { + "icon": "CICD", + "title": "Lifecycle", + "description": "The service's lifecycle state", + "type": "string", + "enum": [ + "Production", + "Experimental", + "Deprecated" + ], + "enumColors": { + "Production": "green", + "Experimental": "orange", + "Deprecated": "red" + } + } + }, + "required": [], + "order": [ + "type", + "lifecycle" + ] + }, + "invocationMethod": { + "type": "WEBHOOK", + "agent": true, + "url": "https://example.com", + "synchronized": true, + "method": "POST" + }, + "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=bitbucket)", + "requiredApproval": false, + "blueprint": "service" + }, + { + "identifier": "bitbucket_create_s3_bucket", + "icon": "S3", + "title": "Create s3 bucket", + "userInputs": { + "properties": { + "name": { + "title": "Name", + "description": "The name of the cloud resource", + "type": "string" + }, + "visibility": { + "title": "Visibility", + "description": "The resource's public/private visibility", + "type": "string", + "enum": [ + "public", + "private" + ], + "enumColors": { + "public": "green", + "private": "red" + } + } + }, + "required": [ + "name", + "visibility" + ], + "order": [ + "name", + "visibility" + ] + }, + "invocationMethod": { + "type": "WEBHOOK", + "agent": true, + "url": "https://example.com", + "synchronized": true, + "method": "POST" + }, + "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=bitbucket)", + "requiredApproval": false, + "blueprint": "service" + } ] \ No newline at end of file diff --git a/integrations/github/actions.json b/integrations/github/actions.json index 2c3f948..26ffd78 100644 --- a/integrations/github/actions.json +++ b/integrations/github/actions.json @@ -1,4 +1,199 @@ [ + { + "identifier": "github_scaffold_service", + "title": "Scaffold Service", + "icon": "Microservice", + "userInputs": { + "properties": { + "service_name": { + "title": "Service Name", + "description": "The new service's name", + "type": "string" + } + }, + "required": [ + "service_name" + ], + "order": [ + "service_name" + ] + }, + "invocationMethod": { + "type": "GITHUB", + "org": "", + "repo": "", + "workflow": "port-create-repo.yml", + "omitUserInputs": true, + "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": "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": "", + "repo": "", + "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": "", + "repo": "", + "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": "", + "repo": "", + "workflow": "lock-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 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": "", + "repo": "", + "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", @@ -20,5 +215,173 @@ "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", + "icon": "Git", + "userInputs": { + "properties": { + "type": { + "icon": "BlankPage", + "title": "Type", + "description": "The service's type", + "type": "string", + "enum": [ + "backend", + "frontend", + "integration" + ], + "enumColors": { + "backend": "lightGray", + "frontend": "lightGray", + "integration": "lightGray" + } + }, + "lifecycle": { + "icon": "CICD", + "title": "Lifecycle", + "description": "The service's lifecycle state", + "type": "string", + "enum": [ + "Production", + "Experimental", + "Deprecated" + ], + "enumColors": { + "Production": "green", + "Experimental": "orange", + "Deprecated": "red" + } + } + }, + "required": [], + "order": [ + "type", + "lifecycle" + ] + }, + "invocationMethod": { + "type": "GITHUB", + "omitPayload": false, + "omitUserInputs": false, + "reportWorkflowStatus": true, + "org": "", + "repo": "", + "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": "", + "repo": "", + "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", + "title": "Create s3 bucket", + "userInputs": { + "properties": { + "name": { + "title": "Name", + "description": "The name of the cloud resource", + "type": "string" + }, + "visibility": { + "title": "Visibility", + "description": "The resource's public/private visibility", + "type": "string", + "enum": [ + "public", + "private" + ], + "enumColors": { + "public": "green", + "private": "red" + } + } + }, + "required": [ + "name", + "visibility" + ], + "order": [ + "name", + "visibility" + ] + }, + "invocationMethod": { + "type": "GITHUB", + "omitPayload": false, + "omitUserInputs": false, + "reportWorkflowStatus": true, + "org": "", + "repo": "", + "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": "", + "repo": "", + "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" } ] \ No newline at end of file