From 0aa9d8e64c08a5f338d3a924951dcaf5f43b2467 Mon Sep 17 00:00:00 2001 From: Ollie <43674967+outdooracorn@users.noreply.github.com> Date: Wed, 21 Jan 2026 09:57:39 +0000 Subject: [PATCH 1/4] Fix Mattermost notification GitHub Action configuration action-mattermost-notify@2.0.0 now uses `with` instead of `env` to pass in the Mattermost webhook URL secret --- .github/workflows/mattermost.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mattermost.yml b/.github/workflows/mattermost.yml index f854ae01e..68f1447a6 100644 --- a/.github/workflows/mattermost.yml +++ b/.github/workflows/mattermost.yml @@ -15,5 +15,5 @@ jobs: jq -n --arg t "Pull request opened: [${TITLE}](${HTML_LINK})" '{text: $t}' > mattermost.json - uses: mattermost/action-mattermost-notify@2.0.0 - env: + with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} From 94069b90d483cdd30ae12e8a8a7bbba74a7ffde7 Mon Sep 17 00:00:00 2001 From: Ollie <43674967+outdooracorn@users.noreply.github.com> Date: Wed, 21 Jan 2026 10:03:02 +0000 Subject: [PATCH 2/4] Refactor Mattermost notification message creation --- .github/workflows/mattermost.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/mattermost.yml b/.github/workflows/mattermost.yml index 68f1447a6..6e9adcc90 100644 --- a/.github/workflows/mattermost.yml +++ b/.github/workflows/mattermost.yml @@ -7,13 +7,7 @@ jobs: runs-on: ubuntu-latest if: ${{ github.actor != 'dependabot[bot]' }} steps: - - name: Create the Mattermost Message - env: - TITLE: ${{ github.event.pull_request.title }} - HTML_LINK: ${{ github.event.pull_request.html_url }} - run: > - jq -n --arg t "Pull request opened: [${TITLE}](${HTML_LINK})" '{text: $t}' - > mattermost.json - uses: mattermost/action-mattermost-notify@2.0.0 with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + TEXT: Pull request opened: [${{ github.event.pull_request.title }}}](${{ github.event.pull_request.html_url }}) From a6c89ff894417f11174afb4b8176719acde65caa Mon Sep 17 00:00:00 2001 From: Ollie <43674967+outdooracorn@users.noreply.github.com> Date: Wed, 21 Jan 2026 10:38:31 +0000 Subject: [PATCH 3/4] Fix syntax error in Mattermost notification text --- .github/workflows/mattermost.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mattermost.yml b/.github/workflows/mattermost.yml index 6e9adcc90..ef9e49762 100644 --- a/.github/workflows/mattermost.yml +++ b/.github/workflows/mattermost.yml @@ -10,4 +10,4 @@ jobs: - uses: mattermost/action-mattermost-notify@2.0.0 with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - TEXT: Pull request opened: [${{ github.event.pull_request.title }}}](${{ github.event.pull_request.html_url }}) + TEXT: Pull request opened: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) From e6034b57cd2f2e231d60075c95d49a905dc49785 Mon Sep 17 00:00:00 2001 From: Ollie <43674967+outdooracorn@users.noreply.github.com> Date: Wed, 21 Jan 2026 10:39:34 +0000 Subject: [PATCH 4/4] Fix quotes in Mattermost notification text --- .github/workflows/mattermost.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mattermost.yml b/.github/workflows/mattermost.yml index ef9e49762..6a994f2e4 100644 --- a/.github/workflows/mattermost.yml +++ b/.github/workflows/mattermost.yml @@ -10,4 +10,4 @@ jobs: - uses: mattermost/action-mattermost-notify@2.0.0 with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - TEXT: Pull request opened: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) + TEXT: "Pull request opened: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"