diff --git a/.github/workflows/droid-review.yml b/.github/workflows/droid-review.yml new file mode 100644 index 0000000..31a1f6d --- /dev/null +++ b/.github/workflows/droid-review.yml @@ -0,0 +1,31 @@ +name: Droid Auto Review + +on: + pull_request: + types: [opened, ready_for_review, reopened] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + droid-review: + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + issues: write + id-token: write + actions: read + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 1 + + - name: Run Droid Auto Review + uses: Factory-AI/droid-action@v3 + with: + factory_api_key: ${{ secrets.FACTORY_API_KEY }} + automatic_review: true diff --git a/.github/workflows/droid.yml b/.github/workflows/droid.yml new file mode 100644 index 0000000..c034f4c --- /dev/null +++ b/.github/workflows/droid.yml @@ -0,0 +1,39 @@ +name: Droid Tag + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + issues: + types: [opened, assigned] + pull_request_review: + types: [submitted] + pull_request: + types: [opened, edited] + +jobs: + droid: + if: | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@droid')) || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@droid')) || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@droid')) || + (github.event_name == 'issues' && (contains(github.event.issue.body, '@droid') || contains(github.event.issue.title, '@droid'))) || + (github.event_name == 'pull_request' && (contains(github.event.pull_request.body, '@droid') || contains(github.event.pull_request.title, '@droid'))) + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + issues: write + id-token: write + actions: read + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 1 + + - name: Run Droid Exec + uses: Factory-AI/droid-action@v3 + with: + factory_api_key: ${{ secrets.FACTORY_API_KEY }}