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
Update GitHub pull request blueprint setup instructions in the documentation, clarifying the automatic creation of blueprints after installing Port's GitHub App and removing outdated steps for manual blueprint creation.
Copy file name to clipboardExpand all lines: docs/guides/all/map-prs-to-services-in-monorepo.md
+1-161Lines changed: 1 addition & 161 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,171 +25,11 @@ This guide assumes that the sub-components are organized in directories with a `
25
25
26
26
## Set up data model
27
27
28
-
If you haven't installed the [GitHub integration](/build-your-software-catalog/sync-data-to-catalog/git/github), you'll need to create a blueprint for GitHub pull requests in Port.
29
-
However, we highly recommend you install the GitHub integration to have the blueprint automatically set up for you.
28
+
After installing Port's [GitHub App](/build-your-software-catalog/sync-data-to-catalog/git/github/github.md), several blueprints are automatically created in your portal, including the `githubPullRequest` blueprint. However you need to update the blueprint with some additional properties in this setup.
30
29
31
-
If you've already installed the GitHub integration you have to [update the pull request blueprint](#update-the-pull-request-blueprint) to include the
32
-
`file_change_url` property.
33
-
34
-
### Create the repository blueprint
35
-
36
-
1. Go to the [blueprints](https://app.getport.io/settings/blueprints) page of your portal.
37
-
38
-
2. Click on `+ Blueprint`.
39
-
40
-
3. Click on the `Edit JSON` button in the top right corner.
41
-
42
-
4. Copy and paste the following JSON schema:
43
-
44
-
<details>
45
-
<summary><b>Repository blueprint (Click to expand)</b></summary>
46
-
47
-
```json showLineNumbers
48
-
{
49
-
"identifier": "githubRepository",
50
-
"title": "Repository",
51
-
"icon": "Github",
52
-
"schema": {
53
-
"properties": {
54
-
"readme": {
55
-
"title": "README",
56
-
"type": "string",
57
-
"format": "markdown"
58
-
},
59
-
"url": {
60
-
"title": "Repository URL",
61
-
"type": "string",
62
-
"format": "url"
63
-
},
64
-
"defaultBranch": {
65
-
"title": "Default branch",
66
-
"type": "string"
67
-
}
68
-
},
69
-
"required": []
70
-
},
71
-
"mirrorProperties": {},
72
-
"calculationProperties": {},
73
-
"relations": {}
74
-
}
75
-
76
-
```
77
-
</details>
78
-
79
-
5. Click "Save" to create the blueprint.
80
-
81
-
82
-
### Create the pull request blueprint
83
-
84
-
1. Go to the [blueprints](https://app.getport.io/settings/blueprints) page of your portal.
85
-
86
-
2. Click on `+ Blueprint`.
87
-
88
-
3. Click on the `Edit JSON` button in the top right corner.
89
-
90
-
4. Copy and paste the following JSON schema:
91
-
92
-
<details>
93
-
<summary><b>GitHub pull request blueprint (Click to expand)</b></summary>
0 commit comments