-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be7bdc2
commit b13a047
Showing
7 changed files
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -17,15 +17,16 @@ Action to send a scorecard report to a Slack channel about the current metrics o | |
|
||
### Usage | ||
|
||
| Input | Description | Required | Default | | ||
| ----- |-----------------------------------------------------------------------------------------------------------|----------| ------- | | ||
| `port_client_id` | Port Client ID | true | | | ||
| `port_client_secret` | Port Client Secret | true | | | ||
| `slack_webhook_url` | Slack Webhook URL | true | | | ||
| `blueprint` | Blueprint identifier | true | | | ||
| `scorecard` | Scorecard identifier | true | | | ||
| `message_kind` | Message kind to send, to send Scorecard Report, pass - `scorecard_report` | true | | | ||
| `filter_rule` | The [rule filter](https://docs.getport.io/search-and-query/#rules) to apply on the data queried from Port | false | | | ||
| Input | Description | Required | Default | | ||
|----------------------|----------------------------------------------------------------------------------------------------------|----------| ------- | | ||
| `port_client_id` | Port Client ID | true | | | ||
| `port_client_secret` | Port Client Secret | true | | | ||
| `port_region` | Port Region to use, if not provided will use the default region of the Port | false | | | ||
| `slack_webhook_url` | Slack Webhook URL | true | | | ||
| `blueprint` | Blueprint identifier | true | | | ||
| `scorecard` | Scorecard identifier | true | | | ||
| `message_kind` | Message kind to send, to send Scorecard Report, pass - `scorecard_report` | true | | | ||
| `filter_rule` | The [rule filter](https://docs.getport.io/search-and-query/#rules) to apply on the data queried from Port | false | | | ||
|
||
```yaml | ||
- uses: port-labs/[email protected] | ||
|
@@ -48,15 +49,16 @@ A call to action to remind the team that some of their services didn't reach Gol | |
### Usage | ||
| Input | Description | Required | Default | | ||
| ----- |-------------------------------------------------------------------------------|----------| ------- | | ||
| `port_client_id` | Port Client ID | true | | | ||
| Input | Description | Required | Default | | ||
|----------------------|-------------------------------------------------------------------------------|----------| ------- | | ||
| `port_client_id` | Port Client ID | true | | | ||
| `port_client_secret` | Port Client Secret | true | | | ||
| `slack_webhook_url` | Slack Webhook URL | true | | | ||
| `blueprint` | Blueprint identifier | true | | | ||
| `scorecard` | Scorecard identifier | true | | | ||
| `message_kind` | Message kind to send, to send Scorecard Reminder, pass - `scorecard_reminder` | true | | | ||
| `filter_rule` | The [rule filter](https://docs.getport.io/search-and-query/#rules) to apply on the data queried from Port | false | | | ||
| `port_region` | Port Region to use, if not provided will use the default region of the Port | false | | | ||
| `slack_webhook_url` | Slack Webhook URL | true | | | ||
| `blueprint` | Blueprint identifier | true | | | ||
| `scorecard` | Scorecard identifier | true | | | ||
| `message_kind` | Message kind to send, to send Scorecard Reminder, pass - `scorecard_reminder` | true | | | ||
| `filter_rule` | The [rule filter](https://docs.getport.io/search-and-query/#rules) to apply on the data queried from Port | false | | | ||
|
||
In this example you can see how we filter for specific team and send a reminder to them. | ||
|
||
|
This file contains 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 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 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 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 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 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,5 @@ | ||
|
||
def get_port_url(region: str, kind: str = "app"): | ||
if region != "eu": | ||
return f"https://{kind}.{region}.getport.io" | ||
return f"https://{kind}.getport.io" |