diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd3e846..ce3f659 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" diff --git a/CHANGELOG.md b/CHANGELOG.md index 981177f..7efb824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -6,9 +16,6 @@ - #92 - Update plugin description. - #91 - Fix for null WLAN SSIDs. -### Fixed - - ## v1.1.2 - 2022-05-11 ### Added diff --git a/nautobot_chatops_ipfabric/worker.py b/nautobot_chatops_ipfabric/worker.py index 266b1f4..b7640b0 100644 --- a/nautobot_chatops_ipfabric/worker.py +++ b/nautobot_chatops_ipfabric/worker.py @@ -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", @@ -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]): diff --git a/pyproject.toml b/pyproject.toml index 89fbf83..24263e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "]