chore(github): run issue claims as dbx bot

This commit is contained in:
t8y2 2026-07-21 19:52:51 +08:00
parent 9421a1156e
commit 1b94534558
1 changed files with 11 additions and 2 deletions

View File

@ -16,14 +16,23 @@ jobs:
claim:
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v5
- name: Create DBX bot token
id: app-token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.DBX_BOT_APP_ID }}
private-key: ${{ secrets.DBX_BOT_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: dbx
permission-issues: write
- name: Handle /claim command
run: node .github/scripts/issue-claim.mjs
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
COMMENT_BODY: ${{ github.event.comment.body }}
COMMENT_USER: ${{ github.event.comment.user.login }}