You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #3172 from port-labs/PORT-16969-bug-github-ocean-docs-are-busy-and-not-easily-consumed
Merging the changes done so far, there is still work to be done in regards to the structural changes, Iv'e discussed this with Maya Margalit, Matan Geva and Hadar Cohen. Will follow up in the next couple of weeks for further changes.
Copy file name to clipboardExpand all lines: docs/build-your-software-catalog/sync-data-to-catalog/git/github-ocean/examples.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
sidebar_position: 2
2
+
sidebar_position: 4
3
3
---
4
4
5
5
import RepositoryBlueprint from './examples/\_github_exporter_example_repository_blueprint.mdx'
@@ -55,9 +55,11 @@ import OrganizationBlueprint from './examples/example-organization/\_github_expo
55
55
import OrganizationAppConfig from './examples/example-organization/\_github_exporter_example_organization_port_app_config.mdx'
56
56
57
57
58
-
# Resource mapping examples
58
+
# Examples
59
59
60
-
## Map organizations and repositories
60
+
This page provides practical examples for mapping various GitHub resources to Port.
61
+
62
+
## Organizations and repositories
61
63
62
64
:::info Available from v3.0.0-beta
63
65
The `organization` kind is available from version `v3.0.0-beta` onwards.
@@ -82,7 +84,7 @@ You can use the following Port blueprint definitions and `port-app-config.yml`:
82
84
83
85
After creating the blueprints and committing the `port-app-config.yml` file, you will see new entities in Port matching your organizations and their repositories. The repositories will have a relation to their parent organization.
84
86
85
-
## Map repositories and pull requests
87
+
## Repositories and pull requests
86
88
87
89
The following example demonstrates how to ingest your GitHub repositories, their README.md file contents and open pull requests to Port.
88
90
You can use the following Port blueprint definitions and `port-app-config.yml`:
@@ -116,7 +118,7 @@ Additionally, you can configure your selector to limit the number of closed pull
116
118
```
117
119
118
120
119
-
## Map repositories and issues
121
+
## Repositories and issues
120
122
121
123
The following example demonstrates how to ingest your GitHub repositories and their issues to Port, you may use the following Port blueprint definitions and `port-app-config.yml`:
122
124
@@ -136,7 +138,7 @@ The following example demonstrates how to ingest your GitHub repositories and th
The following example demonstrates how to ingest your GitHub repositories and their branches to Port, you may use the following Port blueprint definitions and `port-app-config.yml`:
142
144
@@ -146,7 +148,7 @@ The following example demonstrates how to ingest your GitHub repositories and th
146
148
147
149
<PortBrAppConfig/>
148
150
149
-
## Map files and file contents
151
+
## Files and file contents
150
152
151
153
The following example demonstrates ingestion of dependencies from a `package.json` file in your repository into Port:
152
154
@@ -157,15 +159,15 @@ The example will parse the `package.json` file in your repository and extract th
157
159
For more information about ingesting files and file contents, click [here](/build-your-software-catalog/sync-data-to-catalog/git/github-ocean/#ingest-files-from-your-repositories).
158
160
159
161
160
-
## Map files and repositories
162
+
## Files and repositories
161
163
162
164
The following example demonstrates mapping files to repository.
163
165
164
166
<RepositoryBlueprint />
165
167
<FileBlueprint />
166
168
<RepoFileAppConfig />
167
169
168
-
## Map repositories and monorepos
170
+
## Repositories and monorepos
169
171
170
172
The following example demonstrates how to ingest your GitHub repositories and their folders to Port. By following this example you can map your different services, packages and libraries from your monorepo into separate entities in Port. You may use the following Port blueprint definitions and `port-app-config.yml`:
171
173
@@ -205,7 +207,7 @@ Use `path` and `repositoryType` to scope results and improve performance.
205
207
:::
206
208
207
209
208
-
## Map repositories, workflows and workflow runs
210
+
## Repositories, workflows and workflow runs
209
211
210
212
The following example demonstrates how to ingest your GitHub repositories, their workflows and workflow runs to Port, you may use the following Port blueprint definitions and `port-app-config.yml`:
211
213
@@ -223,7 +225,7 @@ The following example demonstrates how to ingest your GitHub repositories, their
223
225
224
226
:::
225
227
226
-
## Map repositories and teams
228
+
## Repositories and teams
227
229
228
230
The following example demonstrates how to ingest your GitHub repositories and their teams to Port.
229
231
You can use the following Port blueprint definitions and `port-app-config.yml`:
@@ -235,7 +237,7 @@ You can use the following Port blueprint definitions and `port-app-config.yml`:
235
237
<PortRepositoryTeamMappingAppConfig/>
236
238
237
239
238
-
## Map repositories with multiple relationships
240
+
## Repositories with multiple relationships
239
241
240
242
You can now include multiple relationship types in a single repository configuration. For example, to include both teams and collaborators:
241
243
@@ -279,7 +281,7 @@ While you can include multiple relationship types in a single configuration, thi
279
281
:::
280
282
281
283
282
-
## Map teams and team members
284
+
## Teams and team members
283
285
284
286
The following shows how we can map teams and team members using the "members" selector.
285
287
@@ -288,7 +290,7 @@ The following shows how we can map teams and team members using the "members" se
288
290
<TeamMemberConfig />
289
291
290
292
291
-
## Map repositories, repository admins and users
293
+
## Repositories, repository admins and users
292
294
293
295
The following example demonstrates how to ingest your GitHub repositories, their admins and related users to Port.
294
296
You can use the following Port blueprint definitions and `port-app-config.yml`:
@@ -315,7 +317,7 @@ For the `user` kind, only the following fields are supported: `.name`, `.login`,
315
317
Other fields from the [GitHub User API](https://docs.github.com/en/rest/users/users#get-a-user) are not available.
316
318
:::
317
319
318
-
## Map repositories and collaborators
320
+
## Repositories and collaborators
319
321
320
322
The following example demonstrates how to ingest your GitHub repositories and their collaborators to Port.
321
323
You can use the following Port blueprint definitions and `port-app-config.yml`:
@@ -324,7 +326,7 @@ You can use the following Port blueprint definitions and `port-app-config.yml`:
324
326
<CollaboratorBlueprint />
325
327
<PortRepositoryCollaboratorAppConfig />
326
328
327
-
## Map repositories, dependabot alerts, code and secrets scan alerts
329
+
## Repositories, dependabot alerts, code and secrets scan alerts
328
330
329
331
The following example shows how to ingest your GitHub repositories and their alerts (Dependabot and Code scan alerts) into Port. You can use the following Port blueprint definitions and `port-app-config.yml`:
330
332
@@ -338,7 +340,7 @@ The following example shows how to ingest your GitHub repositories and their ale
338
340
339
341
<PortRepositoryDependabotAlertMappingAppConfig/>
340
342
341
-
## Map repositories, deployments and environments
343
+
## Repositories, deployments and environments
342
344
343
345
The following example demonstrates how to ingest your GitHub repositories, their deployments and environments to Port, you may use the following Port blueprint definitions and `port-app-config.yml`:
344
346
@@ -350,7 +352,7 @@ The following example demonstrates how to ingest your GitHub repositories, their
350
352
351
353
<PortRepoDeploymentAndEnvironmentAppConfig/>
352
354
353
-
## Map repositories, repository releases and tags
355
+
## Repositories, repository releases and tags
354
356
355
357
The following example demonstrates how to ingest your GitHub repositories, their releases and tags to Port, you may use the following Port blueprint definitions and `port-app-config.yml`:
356
358
@@ -362,7 +364,7 @@ The following example demonstrates how to ingest your GitHub repositories, their
362
364
363
365
<RepositoryTagReleaseAppConfig/>
364
366
365
-
## Map supported resources
367
+
## Supported resources
366
368
367
369
The examples above show specific use cases, but Port's GitHub integration supports the ingestion of many other GitHub objects.
368
370
To adapt the examples above, use the GitHub API reference to learn about the available fields for the different supported objects:
0 commit comments