-
Notifications
You must be signed in to change notification settings - Fork 60
PORT-14552 - Docs for Github ocean integration #2494
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
Merged
Changes from 30 commits
Commits
Show all changes
231 commits
Select commit
Hold shift + click to select a range
09f7849
Initial setup for Github-v2 documentation
melodyogonna 2989109
Rename documentation directory to Github ocean
melodyogonna afdba40
Add updated example for file
melodyogonna 4cf3344
Remove unnecessary examples for now
melodyogonna f8260d4
Replace Github app references
melodyogonna beb98ad
Merge branch 'main' into PORT-14552-document-github-ocean
mk-armah 7644f0d
Replace gitlab references in docs
melodyogonna bec998d
Update docker image examples
melodyogonna 18eb311
Continue updating file references
melodyogonna 6b328b8
Rename examples
melodyogonna 120c3ee
Update port exposure
melodyogonna dd539d9
Merge branch 'main' into PORT-14552-document-github-ocean
mk-armah 7103fe2
revert: examples name
melodyogonna dc3afbb
Merge branch 'PORT-14552-document-github-ocean' of github.com:port-la…
melodyogonna 1661758
Enable live event support in installation method
melodyogonna 52912bc
Add monitored pr events
melodyogonna aa46d92
Add more supported live events
melodyogonna 0139327
Modify organization param
melodyogonna d0f61e4
Add code scanning to list of app required permissions
melodyogonna c141d5d
Clean up document
melodyogonna 4a2c338
Update branch mapping details
melodyogonna 1c5d388
Update image name in the self-hosted-installation guide
melodyogonna a5c9d19
Update example file
melodyogonna e3db760
Correct docker run command
melodyogonna 5a21ea9
small corrections
melodyogonna 069590b
Correct link to Github documentation
melodyogonna b25be57
Update docker parameters
melodyogonna 358386d
correct naming convention for integration in argocd
melodyogonna c464ad5
Case correction
melodyogonna c2c50db
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 1d28ecc
Trim down documentation to only documented examples
melodyogonna 9497739
Update limitations
melodyogonna dc68bd4
clarify app installation page
melodyogonna b70e911
Fix broken link
melodyogonna 2331752
Bump github integration version
melodyogonna f3a2f3e
fix: complete title with "installation" word
melodyogonna 9d709ae
Remove hosted by port installation method
melodyogonna 8670c82
Remove health check section
melodyogonna 3bffbb3
Remove validation check section
melodyogonna 32b84c3
Simplify to just "Github organization" rather than "self-hosted Github"
melodyogonna fbd195a
Move app installation to a subdirectory
melodyogonna e2986b5
Fix repository name example
melodyogonna 8620c10
Remove setup url from app setup step
melodyogonna 3e0024f
Add markings to two images in docs
melodyogonna 9079e3e
Redo change to settings image
melodyogonna 233a333
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna c3dc362
Update integration name in helm installation
melodyogonna bc0ca4a
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 384bf74
Add more relevant information to app creation processes
melodyogonna 8cdb72b
Modify sample api link
melodyogonna 71d78cb
docs: Remove cloud app permissions warning, clarify repositoryType info
melodyogonna 4ed9aab
docs: Clarify repositoryType options in GitHub mapping example
melodyogonna 2bd0fcb
Document repository type
melodyogonna 7ff155f
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 7b8477c
Tiny correction on pull request example
melodyogonna 51dde55
Update docker versions
melodyogonna 5866f48
Merge branch 'main' of github.com:port-labs/port-docs into github-tea…
melodyogonna 4a60248
Hide docs from sidebar
melodyogonna 8bb4ffc
Merge branch 'main' into PORT-14552-document-github-ocean
mk-armah 532a4a2
Merge branch 'PORT-14552-document-github-ocean' of github.com:port-la…
melodyogonna 012bc41
docs: Clarify GitHub App name uniqueness in installation
melodyogonna 82e0a47
docs: Enhance github app name description
melodyogonna 343024c
docs: improve formatting and update permissions
melodyogonna e08489d
docs: Improve webhook explanation in GitHub App docs
melodyogonna 206f557
Fix some documentation wordings
melodyogonna b10c2a2
Hide sidebar
melodyogonna 64a7a49
Add workflow actions link
melodyogonna 4278c87
docs: Add GITHUB_HOST env var and credentials tip
melodyogonna 65d18bf
docs: Clarify GITHUB_HOST env var for GitHub Enterprise
melodyogonna bf189fb
Add default config
melodyogonna 1edaea1
docs: Update description for INTEGRATION__IDENTIFIER
melodyogonna 97a7391
docs: Improve description and remove duplicate for OCEAN__INTEGRATION…
melodyogonna 1e2a5b7
Improve navigation order
melodyogonna f886627
Merge branch 'main' into PORT-14552-document-github-ocean
mk-armah 44afc46
docs: Add Helm install steps and clarify ArgoCD placeholders in GitHu…
melodyogonna ed977cd
docs: Improve Helm installation steps and fix release name
melodyogonna 8143a5b
docs: Refine placeholders in GitHub Ocean installation docs
melodyogonna b5e2eae
docs: Enhance note for GitHub integration ArgoCD values.yaml
melodyogonna 4957a55
Merge branch 'PORT-14552-document-github-ocean' of github.com:port-la…
melodyogonna 7c241fd
docs: Add Port API region tip to github app install
melodyogonna 83a88fb
docs: Improve Docker parameters tip in GitHub App installation
melodyogonna f54ef54
docs: Fix placeholders and update link in GitHub App docs
melodyogonna e1c055b
docs: Clarify SSA requirement for GitHub App installation
melodyogonna bec9ae2
Improve self-service action instruction
melodyogonna a9a21e8
Add sample to installation guide for argocd
melodyogonna 5e0a272
Tiny correction in wording
melodyogonna fa68fb3
Update image versions
melodyogonna 9017db7
Explicitly set integration version
melodyogonna 86ba76f
Move slash
melodyogonna 7e4bad6
docs: Clarify webhook secret in GitHub App docs
melodyogonna d080d30
docs: Improve GitHub App webhook documentation
melodyogonna e8bc19e
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 2be5c88
Clarify requirements in docker parameters
melodyogonna 6015ae1
Make the doc options and descriptions more consistent
melodyogonna aefc953
Update docker image versions
melodyogonna 011e2fd
Merge branch 'main' into PORT-14552-document-github-ocean
mk-armah 1cc3e03
Show an example of getting base64 encoded private key
melodyogonna 539ac28
Correct the powershell command
melodyogonna d9409d1
chore: Add AI improvement note to GitHub token description
melodyogonna 48c356a
docs: Specify GitHub token type and scopes
melodyogonna 4f19d9e
Other fixes
melodyogonna c4e7507
Clarify baseurl
melodyogonna 72d3532
Rearrange webhook secret to be closer to base_url
melodyogonna 590903f
Tiny adjustment to token requirement
melodyogonna f3317dd
Correct word relationship placement
melodyogonna 9b896bf
docs: Add GitHub Ocean installation methods docs
melodyogonna 3e14989
docs: Hide Scheduled (CI) install method for app setup
melodyogonna eb8906f
Consolidate installation step in one component
melodyogonna 42352ef
docs: Add docs for github app installation params
melodyogonna 0aa5632
docs: Improve GitHub App parameter descriptions and fix typo
melodyogonna 11f7585
docs: Add AI instruction comment for table refactor
melodyogonna c163b7f
refactor: Refactor parameters table into JSX component
melodyogonna 2bb43e2
docs: add parameters table import
melodyogonna ad171ae
docs: Add AI task marker for table component
melodyogonna 318b476
refactor: Move Docker parameters table to JSX component
melodyogonna 7b298e9
docs: Conditionally show GitHub env vars in docker install table
melodyogonna abafe98
docs: Conditionally show env vars for docker install
melodyogonna bbbe142
docs: Conditionally show GitHub Ocean install parameters
melodyogonna 2d56634
docs: Conditionally show GitHub App/PAT params in Helm install docs
melodyogonna 1699694
fix: Correct MDX/JSX indentation in list item
melodyogonna 6d9380b
docs: Conditionally render GitHub App/PAT params in docs table
melodyogonna 6045596
fix(docs): Refactor conditional rendering in JSX component
melodyogonna 3e3038e
fix: Fix broken link to github-app.md in docs
melodyogonna 40a72a6
docs: Fix link and formatting in GitHub Ocean install docs
melodyogonna 61bf3f2
fix: Correct MDX indentation and fix broken links
melodyogonna 7a9ffd1
fix: Adjust highlighting comments in argocd yaml block
melodyogonna 4d533f9
Decompose the install step into a general component
melodyogonna e270497
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 0700c7c
docs: Add live-events section to GitHub Ocean docs
melodyogonna 23afe58
docs: Add K8s Ingress guide for GitHub Ocean live events
melodyogonna a7a6257
docs: Clarify GitHub webhook setup post-install
melodyogonna 8288069
docs: Update GitHub Ocean ingress guide to use Helm chart config
melodyogonna 3ff7b55
docs: Add Docker tab for GitHub Ocean live events setup
melodyogonna bd9d2ac
docs: Add Nginx reverse proxy guide for Docker install
melodyogonna f33365a
docs: Update Docker port mapping example in GitHub Ocean docs
melodyogonna bd39045
docs: Refine Docker live event docs (Ngrok/Nginx)
melodyogonna e646714
fix: Fix CodeBlock indentation in list to resolve MDX build error
melodyogonna 5ca1c64
docs: Instruct AI to change code block style
melodyogonna 05bafe5
docs: Replace CodeBlock components with markdown fences
melodyogonna 74cafd3
Add docker run deploy step with nginx as the reverse proxy
melodyogonna a36988e
Add supported live event triggers
melodyogonna c0daf09
Link to enabling webhook section
melodyogonna ceb3172
Remove baseurl
melodyogonna c5d079c
fix: Correct helm command formatting in GitHub Ocean docs
melodyogonna 8ecefd5
fix: Improve helm command copy-paste in docs
melodyogonna fe16327
docs: Add placeholders for Helm values.yaml examples in docs
melodyogonna bc2e662
docs: refactor GitHub Ocean Helm installation examples
melodyogonna 07ef227
docs: Improve code block formatting in GitHub Ocean installation guide
melodyogonna e374b0d
docs: Refactor code blocks in GitHub Ocean installation methods
melodyogonna 3e8d237
Make helm example use a values.yaml rather than setting all commands in
melodyogonna 6a5eb95
Final update to webhook setup
melodyogonna 6751899
Add an example domain
melodyogonna ee7d9ba
Add required permissions in PAT
melodyogonna 2b18e92
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna dc707b5
Merge branch 'main' into PORT-14552-document-github-ocean
mk-armah 6b32afc
Make supporting live-event section much smaller, remove unncessary steps
melodyogonna 2ffd012
Merge branch 'PORT-14552-document-github-ocean' of github.com:port-la…
melodyogonna f7eb674
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 10602e7
Update image versions
melodyogonna 734d548
docs: Unfold values.yaml code blocks
melodyogonna ced3dfc
docs: Add values.yaml title to Helm installation code blocks
melodyogonna 0a15eda
docs: Add OCEAN_BASE_URL config for GitHub Ocean live events
melodyogonna 552df67
docs: Clarify OCEAN_BASE_URL explanation
melodyogonna 1e2cff6
docs: Clarify OCEAN_BASE_URL and add Ngrok tip for debugging
melodyogonna 73dd824
docs: Improve clarity and conciseness of base URL tip
melodyogonna 03d18b9
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 4a9f5f4
Remove members from list of repository types
melodyogonna 4e5a9b1
Move tip
melodyogonna 548c5f7
Correct ocean__base_url
melodyogonna 6716207
Take out actions permission from app
melodyogonna c028036
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna b670003
Update documentation for live events
melodyogonna f97b297
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna b483f52
Add some more clarification
melodyogonna 6d5d67e
Make it obvious that subdomain is a variable in Github enterprise cloud
melodyogonna b540f3e
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 9d4f23b
Double-quote all docker params
melodyogonna dae2b04
Add helm values in double quotes
melodyogonna 471b16e
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 55dc008
Show an example of mapping file to repositories
melodyogonna a6def5b
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna b8f1c7a
Use glob in example file mapping
melodyogonna b7219a8
Quote globstar in selector example
melodyogonna 1034a62
Improve structure consistency
melodyogonna 2ff3c5b
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 81a85b7
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 2f809d2
Attend to pr comments
melodyogonna bbbaff5
docs: Change position of live-events and other elements
melodyogonna dd26efe
Update docker image versions
melodyogonna 62792ff
Merge branch 'main' into PORT-14552-document-github-ocean
mk-armah 4b3e4f3
Remove unneeded static assets
melodyogonna 4be537f
Merge branch 'PORT-14552-document-github-ocean' of github.com:port-la…
melodyogonna dfa57ef
Move type example to integration homepage
melodyogonna 59ccbd2
Update version number to 1.0.9-beta for Github integration
melodyogonna 1957439
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna dc7f385
Clarification on JQ processor
melodyogonna 7e0b96b
Change heading text for ingesting capability
melodyogonna 383f384
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna b2f3c54
Update docker image version
melodyogonna d8179e1
Merge branch 'PORT-14552-document-github-ocean' of github.com:port-la…
melodyogonna 62fc22e
Add some clarifications on the github app page
melodyogonna d29e7e6
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 059004d
docs: Refactor custom GitHub App installation guide
melodyogonna 0aed618
docs: Clarify GitHub app permission prerequisite
melodyogonna 952e865
Create a more consistent page structure between pat and app installation
melodyogonna 6e50896
docs: Clarify GitHub App doc purpose and token rotation
melodyogonna 1ef8771
docs: Improve clarity and conciseness of GitHub App docs intro
melodyogonna 68703ed
docs: Update GitHub App intro to focus on fine-grained control
melodyogonna 540140e
docs: Clarify GitHub App benefit for automated token rotation
melodyogonna 0f3caf5
docs: Clarify GitHub App installation guide introduction
melodyogonna e716e80
docs: Improve GitHub App installation intro sentence
melodyogonna 31c81d2
docs: Reintroduce page context in GitHub App installation guide
melodyogonna bece41c
Use more consistent list in the content outline
melodyogonna f9a7a3d
docs: Clarify alternative Github App installation method
melodyogonna d1478c1
docs: Improve GitHub App installation explanation and capitalization
melodyogonna dac93e7
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna ce36749
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 10cc327
Bump image version
melodyogonna eeb5925
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna 40a0fa3
docs: Add note to improve token option clarity
melodyogonna 5b67536
docs: Organize GitHub authentication methods into tabs
melodyogonna bf9f2a1
Change call-out to a plain header
melodyogonna ce0d624
Update image version in Docker install
melodyogonna 3e2f1ab
Bump image version in CI instructions
melodyogonna 55c4160
Change default permission call-out from info to note
melodyogonna 4ecbf17
Reorganize tab import
melodyogonna f3d0f77
Update baseurl description
melodyogonna 3050c4f
Merge branch 'main' of github.com:port-labs/port-docs into PORT-14552…
melodyogonna eb09b96
Update docs/build-your-software-catalog/sync-data-to-catalog/git/gith…
hadar-co 5b3977e
Update docs/build-your-software-catalog/sync-data-to-catalog/git/gith…
hadar-co 851b459
Merge branch 'main' into PORT-14552-document-github-ocean
hadar-co 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
4 changes: 4 additions & 0 deletions
4
docs/build-your-software-catalog/sync-data-to-catalog/git/github-ocean/_category_.json
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,4 @@ | ||
{ | ||
"label": "GitHub Ocean", | ||
"position": 1 | ||
} |
11 changes: 11 additions & 0 deletions
11
...are-catalog/sync-data-to-catalog/git/github-ocean/_github_docker_parameters.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,11 @@ | ||
| Parameter | Description | Example | Required | | ||
| --------- | ----------- | ------- | -------- | | ||
| `OCEAN__INTEGRATION__CONFIG__GITHUB_TOKEN` | The Github access token used to authenticate with your Github Organization | | ✅ | | ||
| `OCEAN__INTEGRATION__CONFIG__GTIHUB_HOST` | The URL of your Github organization (will default to https://api.github.com, pass your self-hosted URL) | | ❌ | | ||
| `OCEAN__INTEGRATION__CONFIG__GTIHUB_ORGANIZATION` | The name of your Github organization | | ✅ | | ||
| `OCEAN__BASE_URL` | The URL of your GitHub integration instance, used for real-time updates | | ❌ | | ||
| `OCEAN__PORT__CLIENT_ID` | Your Port client ([How to get the credentials](https://docs.port.io/build-your-software-catalog/custom-integration/api/#find-your-port-credentials)) id | | ✅ | | ||
| `OCEAN__PORT__CLIENT_SECRET` | Your Port client ([How to get the credentials](https://docs.port.io/build-your-software-catalog/custom-integration/api/#find-your-port-credentials)) secret | | ✅ | | ||
| `OCEAN__PORT__BASE_URL` | Your Port API URL - `https://api.getport.io` for EU, `https://api.us.getport.io` for US | | ✅ | | ||
| `OCEAN__INITIALIZE_PORT_RESOURCES` | Default true, When set to true the integration will create default blueprints and the port App config Mapping. Read more about [initializePortResources](https://ocean.getport.io/develop-an-integration/integration-configuration/#initializeportresources---initialize-port-resources) | | ❌ | | ||
| `OCEAN__INTEGRATION__IDENTIFIER` | The identifier of the integration that will be installed | | ❌ | | ||
17 changes: 17 additions & 0 deletions
17
.../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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- [`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) | ||
- [`environment`](https://docs.github.com/en/rest/deployments/environments#get-an-environment) | ||
- [`deployment`](https://docs.github.com/en/rest/deployments/deployments#get-a-deployment) | ||
- [`workflow`](https://docs.github.com/en/rest/actions/workflows#get-a-workflow) | ||
- [`workflow-run`](https://docs.github.com/en/rest/actions/workflow-runs#get-a-workflow-run) | ||
- [`issue`](https://docs.github.com/en/rest/issues/issues#get-an-issue) | ||
- [`folder`](https://docs.github.com/en/rest/git/trees#get-a-tree) | ||
- [`file`](/build-your-software-catalog/sync-data-to-catalog/git/github/#ingest-files-from-your-repositories) | ||
- [`user`](https://docs.github.com/en/rest/users/users#get-a-user) | ||
- [`team`](https://docs.github.com/en/rest/teams/teams#get-a-team-by-name) | ||
- [`dependabot-alert`](https://docs.github.com/en/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository) | ||
- [`branches`](https://docs.github.com/en/rest/branches/branches#get-a-branch) | ||
- [`code-scanning`](https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository) | ||
- [`releases`](https://docs.github.com/en/rest/releases/releases#list-releases) | ||
- [`tags`](https://docs.github.com/en/rest/repos/repos#list-repository-tags) | ||
|
4 changes: 4 additions & 0 deletions
4
...uild-your-software-catalog/sync-data-to-catalog/git/github-ocean/examples/_category_.json
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,4 @@ | ||
{ | ||
"label": "Examples", | ||
"position": 2 | ||
} |
52 changes: 52 additions & 0 deletions
52
...-catalog/git/github-ocean/examples/_github_exporter_example_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,52 @@ | ||
<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 # fetching the README.md file that is within the root folder of the repository and ingesting its contents as a markdown property | ||
url: .html_url | ||
defaultBranch: .default_branch | ||
- kind: pull-request | ||
selector: | ||
query: "true" # JQ boolean query. If evaluated to false - skip syncing the object. | ||
port: | ||
entity: | ||
mappings: | ||
identifier: ".head.repo.name + (.id|tostring)" # The Entity identifier will be the repository name + the pull request ID. | ||
title: ".title" | ||
blueprint: '"githubPullRequest"' | ||
properties: | ||
creator: ".user.login" | ||
assignees: "[.assignees[].login]" | ||
reviewers: "[.requested_reviewers[].login]" | ||
status: ".status" # merged, closed, opened | ||
closedAt: ".closed_at" | ||
updatedAt: ".updated_at" | ||
mergedAt: ".merged_at" | ||
createdAt: ".created_at" | ||
prNumber: ".id" | ||
link: ".html_url" | ||
leadTimeHours: >- | ||
(.created_at as $createdAt | .merged_at as $mergedAt | | ||
($createdAt | sub("\\..*Z$"; "Z") | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime) as $createdTimestamp | | ||
($mergedAt | if . == null then null else sub("\\..*Z$"; "Z") | | ||
strptime("%Y-%m-%dT%H:%M:%SZ") | mktime end) as $mergedTimestamp | | ||
if $mergedTimestamp == null then null else | ||
(((($mergedTimestamp - $createdTimestamp) / 3600) * 100 | floor) / 100) end) | ||
|
||
relations: | ||
repository: .__repository | ||
``` | ||
|
||
</details> |
84 changes: 84 additions & 0 deletions
84
...g/git/github-ocean/examples/_github_exporter_example_pull_request_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,84 @@ | ||
<details> | ||
<summary>Pull request blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"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" | ||
}, | ||
"createdAt": { | ||
"title": "Created At", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"link": { | ||
"format": "url", | ||
"type": "string" | ||
}, | ||
"leadTimeHours": { | ||
"title": "Lead Time in hours", | ||
"type": "number" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": { | ||
"days_old": { | ||
"title": "Days Old", | ||
"icon": "DefaultProperty", | ||
"calculation": "(now / 86400) - (.properties.createdAt | capture(\"(?<date>\\\\d{4}-\\\\d{2}-\\\\d{2})\") | .date | strptime(\"%Y-%m-%d\") | mktime / 86400) | floor", | ||
"type": "number" | ||
} | ||
}, | ||
"relations": { | ||
"repository": { | ||
"title": "Repository", | ||
"target": "githubRepository", | ||
"required": false, | ||
"many": false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
34 changes: 34 additions & 0 deletions
34
...log/git/github-ocean/examples/_github_exporter_example_repository_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>Repository blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "githubRepository", | ||
"title": "Repository", | ||
"icon": "Microservice", | ||
"schema": { | ||
"properties": { | ||
"readme": { | ||
"title": "README", | ||
"type": "string", | ||
"format": "markdown" | ||
}, | ||
"url": { | ||
"title": "Repository URL", | ||
"type": "string", | ||
"format": "url" | ||
}, | ||
"defaultBranch": { | ||
"title": "Default branch", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"relations": {} | ||
} | ||
``` | ||
|
||
</details> |
34 changes: 34 additions & 0 deletions
34
...alog/git/github-ocean/examples/example-file-kind/_example_package_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>Package blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "package", | ||
"title": "Package", | ||
"icon": "Package", | ||
"schema": { | ||
"properties": { | ||
"package": { | ||
"icon": "DefaultProperty", | ||
"type": "string", | ||
"title": "Package" | ||
}, | ||
"version": { | ||
"icon": "DefaultProperty", | ||
"type": "string", | ||
"title": "Version" | ||
} | ||
}, | ||
"required": [ | ||
"package", | ||
"version" | ||
] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"aggregationProperties": {}, | ||
"relations": {} | ||
} | ||
``` | ||
|
||
</details> |
28 changes: 28 additions & 0 deletions
28
...atalog/git/github-ocean/examples/example-file-kind/_package_json_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,28 @@ | ||
<details> | ||
|
||
<summary>Port config YAML</summary> | ||
|
||
```yaml showLineNumbers | ||
- kind: file | ||
selector: | ||
query: 'true' | ||
files: | ||
- path: package.json | ||
repos: | ||
- name: vscode | ||
branch: main | ||
port: | ||
itemsToParse: .content.dependencies | to_entries | ||
entity: | ||
mappings: | ||
identifier: >- | ||
.item.key + "_" + if (.item.value | startswith("^")) then | ||
.item.value[1:] else .item.value end | ||
title: .item.key + "@" + .item.value | ||
blueprint: '"package"' | ||
properties: | ||
package: .item.key | ||
version: .item.value | ||
``` | ||
|
||
</details> |
38 changes: 38 additions & 0 deletions
38
...ory-admins/_github_export_example_repository_with_admins_relation_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,38 @@ | ||
<details> | ||
<summary>Repository blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "githubRepository", | ||
"title": "Repository", | ||
"icon": "Microservice", | ||
"schema": { | ||
"properties": { | ||
"readme": { | ||
"title": "README", | ||
"type": "string", | ||
"format": "markdown" | ||
}, | ||
"url": { | ||
"title": "Repository URL", | ||
"type": "string", | ||
"format": "url" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"aggregationProperties": {}, | ||
"relations": { | ||
"admins": { | ||
"title": "Admins", | ||
"target": "githubUser", | ||
"required": false, | ||
"many": true | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
48 changes: 48 additions & 0 deletions
48
...ple-repository-admins/_github_exporter_example_admins_users_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,48 @@ | ||
<details> | ||
|
||
<summary> Port port-app-config.yml </summary> | ||
|
||
```yaml showLineNumbers | ||
createMissingRelatedEntities: true | ||
resources: | ||
- kind: repository | ||
selector: | ||
query: "true" | ||
collaborators: true | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .name | ||
title: .name | ||
blueprint: '"githubRepository"' | ||
properties: | ||
readme: file://README.md | ||
url: .html_url | ||
defaultBranch: .default_branch | ||
relations: | ||
admins: "[.collaborators[] | select(.is_admin == true) | .login]" | ||
- kind: user | ||
selector: | ||
query: "true" | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .login | ||
title: .login | ||
blueprint: '"githubUser"' | ||
relations: | ||
user: .email | ||
- kind: user | ||
selector: | ||
query: "true" | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .email | ||
title: .email | ||
blueprint: '"user"' | ||
relations: | ||
user: .email | ||
``` | ||
|
||
</details> |
32 changes: 32 additions & 0 deletions
32
...s/example-repository-admins/_github_exporter_example_github_users_blueprint.mdx
melodyogonna marked this conversation as resolved.
Show resolved
Hide resolved
|
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,32 @@ | ||
<details> | ||
<summary>Github Users blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "githubUser", | ||
"title": "Github User", | ||
"icon": "Microservice", | ||
"schema": { | ||
"properties": { | ||
"email": { | ||
"title": "Email", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"aggregationProperties": {}, | ||
"relations": { | ||
"user": { | ||
"title": "User", | ||
"target": "user", | ||
"required": false, | ||
"many": false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
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.