From ae1ecfc87c8f52e46e9ca38dc5107082addf191c Mon Sep 17 00:00:00 2001 From: Lucas Machado Date: Sun, 8 Mar 2026 16:10:14 +0100 Subject: [PATCH 1/2] fix: update action binary name to match goreleaser output --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 48edc24..c824e1e 100644 --- a/action.yml +++ b/action.yml @@ -95,8 +95,9 @@ runs: # Download and extract the specific binary (Public asset, no token needed) URL="https://github.com/AxeForging/reviewforge/releases/download/${VERSION}/reviewforge-${OS}-${ARCH}.tar.gz" echo "Downloading $URL..." - curl -sSL "$URL" | tar -xz - mv "reviewforge-${OS}-${ARCH}" reviewforge_bin + curl -sSL "$URL" -o /tmp/reviewforge.tar.gz + tar -xzf /tmp/reviewforge.tar.gz -C /tmp + mv /tmp/reviewforge reviewforge_bin chmod +x reviewforge_bin - name: Run ReviewForge From 91baec2fe59a5e497d847e645c405310e4611c34 Mon Sep 17 00:00:00 2001 From: Lucas Machado Date: Sun, 8 Mar 2026 16:29:34 +0100 Subject: [PATCH 2/2] chore: remove reusable workflow and pass github-token to release notes --- .github/workflows/release.yml | 1 + .github/workflows/reviewforge.yml | 66 ------------------------------- .gitignore | 1 + 3 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/reviewforge.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8098fa5..a60ec60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,6 +50,7 @@ jobs: with: command: generate api-key: ${{ secrets.GEMINI_API_KEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Create and push tag run: | diff --git a/.github/workflows/reviewforge.yml b/.github/workflows/reviewforge.yml deleted file mode 100644 index 86b00be..0000000 --- a/.github/workflows/reviewforge.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: ReviewForge - -on: - workflow_call: - inputs: - ai-provider: - description: "AI provider: openai, anthropic, gemini" - type: string - default: "gemini" - ai-model: - description: "AI model to use" - type: string - default: "gemini-2.5-flash" - incremental: - description: "Only review new changes since last bot review" - type: boolean - default: false - show-token-usage: - description: "Append AI token usage metrics to the review summary" - type: boolean - default: false - persona: - description: "Reviewer persona: bob, robert, maya, eli" - type: string - default: "" - review-rules: - description: "Built-in comment rules preset: concise, thorough" - type: string - default: "concise" - max-comments: - description: "Maximum number of line comments (0 = unlimited)" - type: string - default: "5" - exclude-patterns: - description: "Comma-separated glob patterns to exclude" - type: string - default: "**/*.lock,**/*.json,**/*.md" - secrets: - ai_api_key: - description: "API key for the chosen AI provider" - required: true - github_token: - description: "GitHub token for API access" - required: false - -permissions: - contents: read - pull-requests: write - -jobs: - review: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: AxeForging/reviewforge@main - with: - GITHUB_TOKEN: ${{ secrets.github_token || github.token }} - AI_PROVIDER: ${{ inputs.ai-provider }} - AI_MODEL: ${{ inputs.ai-model }} - AI_API_KEY: ${{ secrets.ai_api_key }} - INCREMENTAL: ${{ inputs.incremental }} - SHOW_TOKEN_USAGE: ${{ inputs.show-token-usage }} - PERSONA: ${{ inputs.persona }} - REVIEW_RULES: ${{ inputs.review-rules }} - MAX_COMMENTS: ${{ inputs.max-comments }} - EXCLUDE_PATTERNS: ${{ inputs.exclude-patterns }} diff --git a/.gitignore b/.gitignore index 16b81dc..eb39ab9 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ Thumbs.db # Test coverage.out +reviewforge_bin