Commit Graph

24 Commits

Author SHA1 Message Date
Jamie Tanna 0bc5849acd ci(mend-slack): pass discussion timestamp to script via env
To avoid potentially expanding a `discussion.created_at` event, we can
make sure we don't interpolate it, by injecting it in via `env`.

Co-authored-by: Claude Fable 5 <jamie.tanna+claude-code@mend.io>
2026-08-18 11:04:13 +01:00
Michael Kriese 6d4a5d38a0 ci(workflows): switch select workflows to ubuntu-slim runner (#45247)
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 14:02:07 +00:00
renovate[bot] 0fb9ca8982 chore(deps): update slackapi/slack-github-action action to v4 (main) (#45107)
chore(deps): update slackapi/slack-github-action action to v4

| datasource  | package                      | from   | to     |
| ----------- | ---------------------------- | ------ | ------ |
| github-tags | slackapi/slack-github-action | v3.0.5 | v4.0.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-06 10:03:08 +00:00
renovate[bot] 51bd40b3bb chore(deps): update slackapi/slack-github-action action to v3.0.5 (main) (#44493)
chore(deps): update slackapi/slack-github-action action to v3.0.5

| datasource  | package                      | from   | to     |
| ----------- | ---------------------------- | ------ | ------ |
| github-tags | slackapi/slack-github-action | v3.0.4 | v3.0.5 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-11 07:29:52 +00:00
renovate[bot] cf22314b78 chore(deps): update slackapi/slack-github-action action to v3.0.4 (main) (#44487)
chore(deps): update slackapi/slack-github-action action to v3.0.4

| datasource  | package                      | from   | to     |
| ----------- | ---------------------------- | ------ | ------ |
| github-tags | slackapi/slack-github-action | v3.0.3 | v3.0.4 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-10 22:36:47 +00:00
Jamie Tanna 25631fe94c ci(mend-slack): don't re-send messages if another label is added (#44042)
As it may lead to re-Slacking when there's a new label added to an
already `mend-app`'d Discussion.

Co-authored-by: Claude Opus 4.7 <jamie.tanna+claude-code@mend.io>
2026-06-16 18:13:18 +00:00
Jamie Tanna e6f983f2d8 ci(mend-slack): correctly escape discussion inputs (#44007)
The existing text concatenation doesn't correctly handle more complex
escaping i.e. of `'` characters inside the `title`.

We can instead wrap it all in a JSON string to prevent this breaking.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-06-15 12:51:19 +00:00
Jamie Tanna ea01552765 ci(mend-slack): correctly notify on new Discussions (#43621)
Changes we introduced in 3189198177
doesn't seem to correctly trigger, as the `github.event.label.name`
isn't part of event we're receiving for a new Discussion, as it's a
`github.event.discussion`.

As a follow-up to 3189198177, we can
correct this by making sure that we handle both event types.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-05-27 10:10:06 +00:00
renovate[bot] dd7c8750f9 chore(deps): update slackapi/slack-github-action action to v3.0.3 (main) (#43053)
chore(deps): update slackapi/slack-github-action action to v3.0.3

| datasource  | package                      | from   | to     |
| ----------- | ---------------------------- | ------ | ------ |
| github-tags | slackapi/slack-github-action | v3.0.2 | v3.0.3 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 22:25:41 +00:00
renovate[bot] a5d2832ef9 chore(deps): update slackapi/slack-github-action action to v3.0.2 (main) (#42833)
chore(deps): update slackapi/slack-github-action action to v3.0.2

| datasource  | package                      | from   | to     |
| ----------- | ---------------------------- | ------ | ------ |
| github-tags | slackapi/slack-github-action | v3.0.1 | v3.0.2 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-23 07:32:23 +00:00
renovate[bot] d2d8297148 chore(deps): update slackapi/slack-github-action action to v3 (main) (#42619)
chore(deps): update slackapi/slack-github-action action to v3

| datasource  | package                      | from   | to     |
| ----------- | ---------------------------- | ------ | ------ |
| github-tags | slackapi/slack-github-action | v2.1.1 | v3.0.1 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-14 10:04:40 +00:00
Jamie Tanna df74ff5302 style: fix actionlint errors (#41296)
* style: remove unnecessary echo

Via `actionlint`.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>

* style: add deployment step id for page_url reference

Via `actionlint`.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>

* style: quote `GITHUB_OUTPUT` variable

Via `actionlint`, this is a `shellcheck` warning.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>

* style: replace deprecated `set-output` with `GITHUB_OUTPUT`

Via `actionlint`

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>

* style: fix `shellcheck` issues

Via `actionlint`.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>

* style: quote `GITHUB_WORKSPACE`

Via `actionlint`, via `shellcheck`.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>

* style: add description field to `calculate-prefetch-matrix` action

Via `actionlint`.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>

---------

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>
2026-02-18 16:09:06 +00:00
Jamie Tanna 3189198177 ci(mend-slack): run on new Discussions (#39776)
Now we've got the new Discussion form
(4c889f88fd) we need to make sure that the
Action triggers on creation events.
2025-12-04 09:52:36 +00:00
Jamie Tanna 8132e10a3c ci(mend-slack): remove extra parenthesis (#39412)
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
2025-12-03 19:43:40 +00:00
Jamie Tanna a75dc8c402 ci: add an "ago" note to the notification (#39161)
For additional context, for a point-in-time view of age of the
Discussion, alongside the full timestamp.

Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>
2025-11-07 17:50:36 +00:00
renovate[bot] cd240aa305 chore(deps): update slackapi/slack-github-action action to v2 (main) (#38774)
chore(deps): update slackapi/slack-github-action action to v2

| datasource  | package                      | from    | to     |
| ----------- | ---------------------------- | ------- | ------ |
| github-tags | slackapi/slack-github-action | v1.27.1 | v2.1.1 |

This requires handling breaking changes as part of the release:

- moving to the `method` and `token` inputs
- moving to the `payload` body creation with `text`
- explicitly reporting failures for `errors`

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 10:40:25 +00:00
Jamie Tanna 14e5f86b49 ci: add the created_at to Slack notifications (#38772)
To help provide more context around whether the age of the request.
2025-10-21 10:09:10 +00:00
renovate[bot] 7877afc205 chore(deps): update slackapi/slack-github-action action to v1.27.1 (#32554)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 22:17:01 +00:00
renovate[bot] 36f66cf888 chore(deps): update slackapi/slack-github-action action to v1.27.0 (#31088)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 22:49:13 +00:00
renovate[bot] f4d41779cf chore(deps): update slackapi/slack-github-action action to v1.26.0 (#28520)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 06:01:02 +00:00
renovate[bot] 5beb61febf chore(deps): update slackapi/slack-github-action action to v1.25.0 (#26878)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-27 01:43:35 +00:00
renovate[bot] 7134487e93 chore(deps): pin slackapi/slack-github-action action to e28cf16 (#23881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 20:29:07 +00:00
Rhys Arkins c89daa7418 chore: prettier-fix 2023-08-15 21:27:33 +02:00
Rhys Arkins 0437b27b75 chore: post to mend slack when labeled (#23880)
Co-authored-by: Tobias <tobias.gabriel@sap.com>
2023-08-15 20:57:30 +02:00