Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ resources:
title: ".title"
blueprint: '"githubPullRequest"'
properties:
creator: ".user.login"
assignees: "[.assignees[].login]"
reviewers: "[.requested_reviewers[].login]"
creator: (.user.login | gsub("\\["; "-") | gsub("\\](?=[^$])"; "-") | gsub("\\]$"; ""))
assignees: '[.assignees[].login | gsub("\\](?=[^$])"; "-") | gsub("\\]$"; "")]'
reviewers: '[.requested_reviewers[].login | gsub("\\](?=[^$])"; "-") | gsub("\\]$"; "")]'
status: ".state" # merged, closed, opened
closedAt: ".closed_at"
updatedAt: ".updated_at"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Tabs from "@theme/Tabs"
import TabItem from "@theme/TabItem"

<details>

<summary><b> Port port-app-config.yml (click to expand)</b></summary>
Expand All @@ -20,14 +23,15 @@ resources:
url: .html_url
defaultBranch: .default_branch
relations:
admins: "[.__collaborators[] | select(.is_admin == true) | .login]"
admins: "[.__collaborators[] | select(.is_admin == true) | .login | gsub("\\["; "-") | gsub("\\](?=[^$])"; "-") | gsub("\\]$"; "")]"
- kind: user
selector:
query: "true"
includeBots: "false"
port:
entity:
mappings:
identifier: .login
identifier: .login | gsub("\\["; "-") | gsub("\\](?=[^$])"; "-") | gsub("\\]$"; "")
title: if (.name != "" and .name) then .name else .login end
blueprint: '"githubUser"'
relations:
Expand All @@ -46,3 +50,21 @@ resources:
```

</details>

<Tabs groupId="config" queryString="parameter">

<TabItem label="Include Bot Users" value="includeBots">

The `includeBots` selector is used to include bot users in the sync process. By default, it is set to `false`.

```yaml
- kind: user
selector:
query: 'true'
# highlight-next-line
includeBots: 'false'
```

</TabItem>

</Tabs>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<details>
<summary><b>Port port-app-config.yaml (click to expand)</b></summary>
<summary><b>Port port-app-config.yaml (click to expand)</b></summary>

```yaml showLineNumbers
- kind: team
Expand All @@ -19,7 +19,7 @@
permission: .permission
notification_setting: .notificationSetting
relations:
team_member: '[.members.nodes[].login]'
team_member: '[.members.nodes[].login | gsub("\\["; "-") | gsub("\\](?=[^$])"; "-") | gsub("\\]$"; "")]'
- kind: team
selector:
query: 'true'
Expand All @@ -28,7 +28,7 @@
itemsToParse: .members.nodes
entity:
mappings:
identifier: .login
identifier: .login | gsub("\\["; "-") | gsub("\\](?=[^$])"; "-") | gsub("\\]$"; "")
title: .login
blueprint: '"githubTeamMember"'
properties:
Expand Down