From face92593de9c09753e938641713f41626a7d215 Mon Sep 17 00:00:00 2001 From: lml2468 Date: Sat, 27 Jun 2026 15:19:50 +0800 Subject: [PATCH] feat(octo-issue-notify): add enable_im_notify input to allow callers to skip IM push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the reusable workflow always pushes to Octo IM AND fires the triage webhook (if TRIAGE_WEBHOOK_URL is set). For repos that have moved to a richer external triage agent (e.g. an autopilot creating a tracked issue), the IM push becomes a duplicate ping. Adds an `enable_im_notify` boolean input (default `true`) that, when set to `false`, makes the Send step pass an empty `im-message` to the `octo-notify` composite action. Per the action's contract: > IM mode — set `im-message` (+ `im-token`, `im-group-id`): wraps the > message in the Octo IM bot envelope and POSTs it to the allowlisted > IM API. An empty `im-message` therefore disables IM mode entirely; webhook mode remains unaffected. Backward compat: default `true` preserves existing behavior for all current callers. Repos that want webhook-only triage opt in by passing `enable_im_notify: false`. --- .github/workflows/octo-issue-notify.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/octo-issue-notify.yml b/.github/workflows/octo-issue-notify.yml index b6c6258..7b7f37d 100644 --- a/.github/workflows/octo-issue-notify.yml +++ b/.github/workflows/octo-issue-notify.yml @@ -52,6 +52,15 @@ on: required: false default: '151a45970e1546afa9e947ac36a5c4e5' description: 'Octo IM group ID for the central issue feed channel.' + enable_im_notify: + type: boolean + required: false + default: true + description: >- + When false, skip the Octo IM push and only fire the triage webhook. + Default true preserves existing behavior for all current callers; opt + in by passing `enable_im_notify: false` when a repo has already moved + to an external triage agent and no longer wants duplicate IM pings. secrets: OCTO_BOT_TOKEN: required: true @@ -147,7 +156,7 @@ jobs: if: steps.build.outputs.skip != 'true' uses: Mininglamp-OSS/.github/.github/actions/octo-notify@v1 with: - im-message: ${{ steps.build.outputs.im_message }} + im-message: ${{ inputs.enable_im_notify && steps.build.outputs.im_message || '' }} im-token: ${{ secrets.OCTO_BOT_TOKEN }} im-group-id: ${{ inputs.feed_group_id }} im-api-base: ${{ inputs.api_base_url }}