Skip to content

Add Factory Droid GitHub Actions workflows#12

Merged
sathergate merged 1 commit into
mainfrom
setup/factory-droid-workflows
Apr 4, 2026
Merged

Add Factory Droid GitHub Actions workflows#12
sathergate merged 1 commit into
mainfrom
setup/factory-droid-workflows

Conversation

@sathergate
Copy link
Copy Markdown
Owner

Summary

This PR adds two GitHub Actions workflows for the Factory Droid integration:

@droid Workflow (.github/workflows/droid.yml)

Responds to @droid mentions in:

  • Issue comments
  • Pull request comments
  • Pull request reviews
  • Issue descriptions and titles

Droid Auto Review (.github/workflows/droid-review.yml)

Runs automated code review on new pull requests when they are opened, reopened, or marked ready for review.

Setup Required

Before merging, you need to add the FACTORY_API_KEY secret:

  1. Go to Factory API Keys and generate a new key
  2. In this repo, go to Settings > Secrets and variables > Actions
  3. Add a new repository secret named FACTORY_API_KEY with the generated key
  4. Merge this PR

- Add @droid workflow for responding to @droid mentions in issues and PRs
- Add Droid Auto Review workflow for automated code review on new PRs

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@factory-droid
Copy link
Copy Markdown
Contributor

factory-droid Bot commented Apr 4, 2026

Droid encountered an error —— View job


Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83b863a367

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- name: Run Droid Auto Review
uses: Factory-AI/droid-action@v3
with:
factory_api_key: ${{ secrets.FACTORY_API_KEY }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Guard auto-review when API key secret is unavailable

This workflow is triggered by pull_request, which includes PRs from forks where GitHub does not provide repository secrets; in that context secrets.FACTORY_API_KEY resolves empty, so the Droid step will fail instead of reviewing the PR. If this check is required, external contributor PRs will be blocked by a permanent red run. Add a fork/secret guard (or move to a safe pull_request_target design) so the job skips cleanly when the secret is not available.

Useful? React with 👍 / 👎.

@sathergate sathergate merged commit 5545639 into main Apr 4, 2026
10 of 12 checks passed
@sathergate sathergate deleted the setup/factory-droid-workflows branch April 4, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant