Skip to content

Commit 2c5721a

Browse files
feat: Add droid.yml workflow
1 parent 607f501 commit 2c5721a

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/droid.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Droid Tag
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
pull_request:
13+
types: [opened, edited]
14+
15+
jobs:
16+
droid:
17+
if: |
18+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@droid')) ||
19+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@droid')) ||
20+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@droid')) ||
21+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@droid') || contains(github.event.issue.title, '@droid'))) ||
22+
(github.event_name == 'pull_request' && (contains(github.event.pull_request.body, '@droid') || contains(github.event.pull_request.title, '@droid')))
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
pull-requests: write
27+
issues: write
28+
id-token: write
29+
actions: read
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v5
33+
with:
34+
fetch-depth: 1
35+
- name: Run Droid Exec
36+
uses: Factory-AI/droid-action@main
37+
with:
38+
factory_api_key: ${{ secrets.FACTORY_API_KEY }}

0 commit comments

Comments
 (0)