From 1bcc5cf5bdb7743829ab08333d937054fbfef63b Mon Sep 17 00:00:00 2001 From: inigo Date: Fri, 5 Sep 2025 09:19:30 -0700 Subject: [PATCH] msg --- .github/workflows/issue-notify.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/issue-notify.yml b/.github/workflows/issue-notify.yml index 245e5549..4551c228 100644 --- a/.github/workflows/issue-notify.yml +++ b/.github/workflows/issue-notify.yml @@ -19,23 +19,21 @@ jobs: ISSUE_NUMBER: ${{ github.event.issue.number }} ISSUE_TITLE: ${{ github.event.issue.title }} TARGET_REPO: ${{ secrets.ISSUE_NOTIFY_TARGET_REPO }} - TARGET_WORKFLOW: ${{ secrets.ISSUE_NOTIFY_TARGET_WORKFLOW || 'issue-detective.yml' }} - GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN || github.token }} + TARGET_WORKFLOW: ${{ secrets.ISSUE_NOTIFY_TARGET_WORKFLOW }} + GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN }} run: | # Check if internal processing is configured - if [ -z "$TARGET_REPO" ]; then - echo "Internal processing not configured" + if [ -z "$TARGET_REPO" ] || [ -z "$TARGET_WORKFLOW" ]; then + echo "Not configured" exit 0 fi - + echo "Processing issue #${ISSUE_NUMBER}" - + # Trigger internal workflow via workflow_dispatch gh workflow run ${TARGET_WORKFLOW} \ --repo ${TARGET_REPO} \ -f "issue_url=${ISSUE_URL}" 2>/dev/null || { - echo "Issue notification sent (dispatch may have failed due to permissions)" + echo "Issue notification sent" exit 0 } - - echo "✅ Issue processed and dispatched to ${TARGET_REPO}" \ No newline at end of file