-
Notifications
You must be signed in to change notification settings - Fork 60
Port 14552 deployment environment tags releases #2557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sivanel97
merged 21 commits into
main
from
PORT-14552-deployment-environment-tags-releases
Aug 11, 2025
Merged
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f6195ae
Add documentation examples for release, tags, deployments, and
melodyogonna ac205c0
Updated supported resources
melodyogonna 43c0163
Update supported events
melodyogonna bed0370
Update required permissions
melodyogonna de5ea2e
Tiny correction to the event triggers
melodyogonna 8d2dec6
Update repository key in deployment
melodyogonna 523c11b
Update tag relation
melodyogonna b52001f
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 323c977
Change release-tag order
melodyogonna 72303a6
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna ab9b385
Use double quotation in identifier
melodyogonna 46f7e06
Merge branch 'main' into PORT-14552-deployment-environment-tags-releases
hadar-co 11945c4
Merge branch 'main' into PORT-14552-deployment-environment-tags-releases
hadar-co 82122af
Merge branch 'main' into PORT-14552-deployment-environment-tags-releases
mk-armah aef6ccf
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 2b0e6de
Merge branch 'PORT-14552-deployment-environment-tags-releases' of git…
melodyogonna 0fe5072
Add missing showlinenumbers and improve consistency
melodyogonna 0f74da2
Fix claude suggestions
melodyogonna b25e3fd
Merge branch 'main' into PORT-14552-deployment-environment-tags-releases
hadar-co 28c74a6
Update docs/build-your-software-catalog/sync-data-to-catalog/git/gith…
sivanel97 46acf22
Update docs/build-your-software-catalog/sync-data-to-catalog/git/gith…
sivanel97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
.../sync-data-to-catalog/git/github-ocean/_github_exporter_supported_resources.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
- [`repository`](https://docs.github.com/en/rest/repos/repos#get-a-repository) | ||
- [`pull-request`](https://docs.github.com/en/rest/pulls/pulls#get-a-pull-request) | ||
- [`file`](/build-your-software-catalog/sync-data-to-catalog/git/github/#ingest-files-from-your-repositories) | ||
|
||
- [`environment`](https://docs.github.com/en/rest/deployments/environments#get-an-environment) | ||
- [`deployment`](https://docs.github.com/en/rest/deployments/deployments#get-a-deployment) | ||
- [`releases`](https://docs.github.com/en/rest/releases/releases#list-releases) | ||
- [`tags`](https://docs.github.com/en/rest/repos/repos#list-repository-tags) |
58 changes: 58 additions & 0 deletions
58
...mple-deployments-environments/_github_exporter_example_deployment_blueprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<details> | ||
<summary>Deployment blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "githubDeployment", | ||
"title": "Deployment", | ||
"icon": "Deployment", | ||
"schema": { | ||
"properties": { | ||
"description": { | ||
"title": "Description", | ||
"type": "string" | ||
}, | ||
"ref": { | ||
"title": "Ref", | ||
"type": "string" | ||
}, | ||
"sha": { | ||
"title": "Sha", | ||
"type": "string" | ||
}, | ||
"transientEnvironment": { | ||
"title": "Transient Running Service", | ||
"type": "boolean" | ||
}, | ||
"productionEnvironment": { | ||
"title": "Production Running Service", | ||
"type": "boolean" | ||
}, | ||
"createdAt": { | ||
"title": "Created At", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"url": { | ||
"title": "URL", | ||
"type": "string", | ||
"icon": "Link", | ||
"format": "url" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"relations": { | ||
"runningService": { | ||
"title": "Running Service", | ||
"target": "githubRepoEnvironment", | ||
"required": false, | ||
"many": false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
59 changes: 59 additions & 0 deletions
59
...ments/_github_exporter_example_deployments_and_environments_port_app_config.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<details> | ||
|
||
<summary> Port port-app-config.yml </summary> | ||
|
||
```yaml | ||
createMissingRelatedEntities: true | ||
resources: | ||
- kind: repository | ||
selector: | ||
query: "true" # JQ boolean query. If evaluated to false - skip syncing the object. | ||
port: | ||
entity: | ||
mappings: | ||
identifier: ".name" # The Entity identifier will be the repository name. | ||
title: ".name" | ||
blueprint: '"githubRepository"' | ||
properties: | ||
readme: file://README.md | ||
url: .html_url | ||
defaultBranch: .default_branch | ||
- kind: environment | ||
selector: | ||
query: "true" | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .__repository + "-" + .name | ||
title: .name | ||
blueprint: '"githubRepoEnvironment"' | ||
properties: | ||
url: .html_url | ||
customBranchesPolicies: .deployment_branch_policy.custom_branches_policies | ||
protectedBranches: .deployment_branch_policy.protected_branches | ||
createdAt: .created_at | ||
updatedAt: .updated_at | ||
relations: | ||
repository: .__repository | ||
- kind: deployment | ||
selector: | ||
query: "true" | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .__repository + "-" + (.id|tostring) | ||
title: .task + "-" + .environment | ||
blueprint: '"githubDeployment"' | ||
properties: | ||
description: .description | ||
ref: .ref | ||
sha: .sha | ||
productionEnvironment: .production_environment | ||
transientEnvironment: .transient_environment | ||
createdAt: .created_at | ||
url: .url | ||
relations: | ||
environment: .__repository + "-" + .environment | ||
``` | ||
|
||
</details> |
51 changes: 51 additions & 0 deletions
51
...ple-deployments-environments/_github_exporter_example_environment_blueprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<details> | ||
<summary>Running Service blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "githubRepoEnvironment", | ||
"title": "Running Service", | ||
"icon": "Environment", | ||
"schema": { | ||
"properties": { | ||
"url": { | ||
"icon": "DefaultProperty", | ||
"title": "URL", | ||
"type": "string", | ||
"format": "url" | ||
}, | ||
"createdAt": { | ||
"title": "Created At", | ||
"type": "string", | ||
"format": "date-time", | ||
"icon": "DefaultProperty" | ||
}, | ||
"updatedAt": { | ||
"title": "Updated At", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"protectedBranches": { | ||
"title": "Protected Branches", | ||
"type": "boolean" | ||
}, | ||
"customBranchPolicies": { | ||
"title": "Custom Branch Policies", | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"relations": { | ||
"repository": { | ||
"target": "githubRepository", | ||
"required": true, | ||
"many": false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
48 changes: 48 additions & 0 deletions
48
...s/example-repository-release-tag/_github_exporter_example_release_blueprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<details> | ||
<summary>Release blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "githubRelease", | ||
"title": "Release", | ||
"icon": "Github", | ||
"schema": { | ||
"properties": { | ||
"release_creation_time": { | ||
"icon": "DefaultProperty", | ||
"type": "string", | ||
"title": "Release creation time", | ||
"format": "date-time" | ||
}, | ||
"author": { | ||
"type": "string", | ||
"title": "Author" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"title": "Description" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"aggregationProperties": {}, | ||
"relations": { | ||
"repository": { | ||
"title": "Repository", | ||
"target": "githubRepository", | ||
"required": false, | ||
"many": false | ||
}, | ||
"tag": { | ||
"title": "Tag", | ||
"target": "githubTag", | ||
"required": false, | ||
"many": false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
51 changes: 51 additions & 0 deletions
51
...repository-release-tag/_github_exporter_example_release_tag_port_app_config.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<details> | ||
|
||
<summary> Port port-app-config.yml </summary> | ||
|
||
```yaml showLineNumbers | ||
resources: | ||
- kind: repository | ||
selector: | ||
query: "true" # JQ boolean query. If evaluated to false - skip syncing the object. | ||
port: | ||
entity: | ||
mappings: | ||
identifier: ".name" # The Entity identifier will be the repository name. | ||
title: ".name" | ||
blueprint: '"githubRepository"' | ||
properties: | ||
readme: file://README.md | ||
url: .html_url | ||
defaultBranch: .default_branch | ||
- kind: tag | ||
selector: | ||
query: 'true' | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .name | ||
title: .name | ||
blueprint: '"githubTag"' | ||
properties: | ||
commit_sha: .commit.sha | ||
relations: | ||
repository: .__repository | ||
- kind: release | ||
selector: | ||
query: 'true' | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .name | ||
title: .name | ||
blueprint: '"githubRelease"' | ||
properties: | ||
author: .author.login | ||
description: .body | ||
release_creation_time: .created_at | ||
relations: | ||
tag: .tag_name | ||
repository: .__repository | ||
``` | ||
|
||
</details> |
34 changes: 34 additions & 0 deletions
34
...mples/example-repository-release-tag/_github_exporter_example_tag_blueprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<details> | ||
<summary>Tag blueprint</summary> | ||
|
||
```json showLineNumbers | ||
|
||
{ | ||
"identifier": "githubTag", | ||
"title": "Tag", | ||
"icon": "Github", | ||
"schema": { | ||
"properties": { | ||
"commit_sha": { | ||
"icon": "DefaultProperty", | ||
"type": "string", | ||
"title": "Commit sha" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"aggregationProperties": {}, | ||
"relations": { | ||
"repository": { | ||
"title": "Repository", | ||
"target": "githubRepository", | ||
"required": false, | ||
"many": false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.