From 1dcd85be0a89f3471bace7dd3cccb650415df559 Mon Sep 17 00:00:00 2001 From: Majira Date: Fri, 12 Jun 2026 03:14:15 +0200 Subject: [PATCH] fix: resolve #67654 [BUG] Claude autonomously ran background scripts c --- plugins/hookify/core/__init__.py | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/plugins/hookify/core/__init__.py b/plugins/hookify/core/__init__.py index e69de29bb2..3b99101adf 100644 --- a/plugins/hookify/core/__init__.py +++ b/plugins/hookify/core/__init__.py @@ -0,0 +1,34 @@ +upe script + uses: actions/claude-code-action@v1 + env: + CLAUDE_CODE_SCRIPT_PATH: "claude-code-plugin" + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE_NUMBER: "${ github_issue_number }" + + run: | + # Output to a new branch if needed + if [ ! -f "issues" ]; then + echo "Creating new branch for dedupe output" + mkdir issues + touch issues/DedupedIssue.md + fi + + # Run the dedupe script + echo "Starting Claude dedupe..." + ./claude-code-plugin/marketplace.sh "$$CI_COMMIT_SHA" \ + | tee -a issues/DedupedIssue.md \ + | grep -v '#' >> issues/DedupedIssue.md + echo "Dedupe complete!" + +# This script checks for duplicate issues in the GitHub repository using Claude Code and ensures no duplicates are present by creating a new issue branch with a markdown file containing the deduced information. The workflow automatically runs when an issue is opened or when a user requests a duplicate detection. +# File: .github/workflows/claude-dedupe-issues.yml +name: "Claude Dedupe Issues" +description: "Automatically detect and remove duplicate GitHub issues using Claude Code" + +on: + issues: + types: [opened] + workflow_dispatch: + inputs: + issue_number: + description \ No newline at end of file