Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Release v1.1.4 #98

Merged
merged 8 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,39 @@ jobs:
password: "${{ secrets.PYPI_API_TOKEN }}"
needs:
- "unittest"
slack-notify:
needs:
- "publish_gh"
- "publish_pypi"
name: "Send notification to the Slack"
runs-on: "ubuntu-20.04"
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_MESSAGE: >-
*NOTIFICATION: NEW-RELEASE-PUBLISHED*\n
Repository: <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}>\n
Release: <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}|${{ github.ref_name }}>\n
Published by: <${{ github.server_url }}/${{ github.actor }}|${{ github.actor }}>
steps:
- name: "Send a notification to Slack"
# ENVs cannot be used directly in job.if. This is a workaround to check
# if SLACK_WEBHOOK_URL is present.
if: "${{ env.SLACK_WEBHOOK_URL != '' }}"
uses: "slackapi/slack-github-action@v1.17.0"
with:
payload: |
{
"text": "${{ env.SLACK_MESSAGE }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ env.SLACK_MESSAGE }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_WEBHOOK_TYPE: "INCOMING_WEBHOOK"
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v1.1.4 - 2022-06-08

## Added

- #96 - Slack CI notification for build pipeline.

### Fixed

- #97 - Fix for pathlookup argument selection error when using dialog box.

## v1.1.3 - 2022-05-25

### Fixed
Expand All @@ -6,9 +16,6 @@
- #92 - Update plugin description.
- #91 - Fix for null WLAN SSIDs.

### Fixed


## v1.1.2 - 2022-05-11

### Added
Expand Down
12 changes: 6 additions & 6 deletions nautobot_chatops_ipfabric/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,6 @@ def pathlookup(
"type": "text",
"label": "Destination IP",
},
{
"type": "select",
"label": "Protocol",
"choices": protocols,
"default": protocols[0],
},
{
"type": "text",
"label": "Source Ports",
Expand All @@ -497,6 +491,12 @@ def pathlookup(
"label": "Destination Ports",
"default": "22",
},
{
"type": "select",
"label": "Protocol",
"choices": protocols,
"default": protocols[0],
},
]

if not all([src_ip, dst_ip, src_port, dst_port, protocol]):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautobot-chatops-ipfabric"
version = "1.1.3"
version = "1.1.4"
description = "Nautobot Plugin Chatops IPFabric"
authors = ["Network to Code, LLC <info@networktocode.com>"]

Expand Down