Skip to content

Commit 9a43956

Browse files
authored
ci: Post issues for miri check fails instead of messaging slack (#1662)
Requires the new `create-issue` workflow to be merged (CQCL/hugrverse-actions#24).
1 parent f0bd678 commit 9a43956

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/unsoundness.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,17 @@ jobs:
4040
run: cargo miri test
4141

4242

43-
notify-slack:
44-
uses: CQCL/hugrverse-actions/.github/workflows/slack-notifier.yml@main
43+
create-issue:
44+
uses: CQCL/hugrverse-actions/.github/workflows/create-issue.yml@main
4545
needs: miri
4646
if: always() && needs.miri.result == 'failure' && github.event_name == 'push'
47-
with:
48-
channel-id: 'C04SHCL4FKP'
49-
slack-message: |
50-
💥 The unsoundness check for `CQCL/hugr` failed.
51-
<https://github.com/CQCL/hugr/actions/runs/${{ github.run_id }}|Please investigate>.
52-
# Rate-limit the message to once per day
53-
timeout-minutes: 1440
54-
# A repository variable used to store the last message timestamp.
55-
timeout-variable: "UNSOUNDNESS_MSG_SENT"
5647
secrets:
57-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
5848
GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }}
49+
with:
50+
title: "💥 Unsoundness check failed on main"
51+
body: |
52+
The unsoundness check for `CQCL/hugr` failed.
53+
54+
[https://github.com/CQCL/hugr/actions/runs/${{ github.run_id }}](Please investigate).
55+
unique-label: "unsoundness-checks"
56+
other-labels: "bug"

0 commit comments

Comments
 (0)