From 92e724de5607661c2e8ae666041282a7f882c4ab Mon Sep 17 00:00:00 2001 From: 0xthrpw <0xthrpw@gmail.com> Date: Fri, 5 Sep 2025 22:43:54 -0400 Subject: [PATCH] workflow --- .github/workflows/ai-on-demand.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/ai-review.yml | 21 +++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/ai-on-demand.yml create mode 100644 .github/workflows/ai-review.yml diff --git a/.github/workflows/ai-on-demand.yml b/.github/workflows/ai-on-demand.yml new file mode 100644 index 0000000..6102c1f --- /dev/null +++ b/.github/workflows/ai-on-demand.yml @@ -0,0 +1,30 @@ +name: AI On-Demand Assistant +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + pull_request_review: + types: [submitted] + issues: + types: [opened] + +permissions: + contents: read + issues: write + pull-requests: write + actions: read + +jobs: + ai-response: + uses: ethereumfollowprotocol/workflow-automation/.github/workflows/issue-response.yml@v1.0.9 + with: + config-profile: "default" + bot-mention: "@efp-dev-ops" + enable-auto-labeling: true + enable-escalation: true + secrets: + CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.DEV_OPS_BOT_CLAUDE_CODE_OAUTH_TOKEN }} + APP_ID: ${{ secrets.DEV_OPS_BOT_APP_ID }} + PRIVATE_KEY: ${{ secrets.DEV_OPS_BOT_PRIVATE_KEY }} + ALLOWED_USER_LIST: ${{ secrets.DEV_OPS_BOT_ALLOWED_USER_LIST }} diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml new file mode 100644 index 0000000..9762add --- /dev/null +++ b/.github/workflows/ai-review.yml @@ -0,0 +1,21 @@ +name: AI Code Review +on: + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + issues: write + actions: read + +jobs: + ai-review: + uses: ethereumfollowprotocol/workflow-automation/.github/workflows/pr-review.yml@v1.0.9 + with: + config-profile: "default" + secrets: + CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.DEV_OPS_BOT_CLAUDE_CODE_OAUTH_TOKEN }} + APP_ID: ${{ secrets.DEV_OPS_BOT_APP_ID }} + PRIVATE_KEY: ${{ secrets.DEV_OPS_BOT_PRIVATE_KEY }} + ALLOWED_USER_LIST: ${{ secrets.DEV_OPS_BOT_ALLOWED_USER_LIST }} \ No newline at end of file