Add Factory Droid GitHub Actions workflows#12
Conversation
|
Droid encountered an error —— View job |
There was a problem hiding this comment.
💡 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 }} |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
This PR adds two GitHub Actions workflows for the Factory Droid integration:
@droid Workflow (
.github/workflows/droid.yml)Responds to
@droidmentions in: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_KEYsecret:FACTORY_API_KEYwith the generated key