Skip to content

Commit af5c943

Browse files
committed
chore: claude-renovate-review.yml -> claude-renovate-review.ts
1 parent ead636d commit af5c943

File tree

2 files changed

+40
-33
lines changed

2 files changed

+40
-33
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { action, Workflow } from "ghats";
2+
import { setupJob } from "./_helpers";
3+
4+
const workflow = new Workflow("Claude Renovate Review", {
5+
on: {
6+
pullRequest: { types: ["opened", "edited"] },
7+
},
8+
concurrency: {
9+
group: "${{ github.workflow }}-${{ github.ref }}",
10+
cancelInProgress: true,
11+
},
12+
});
13+
14+
workflow.addJob(
15+
setupJob("claude-code-review", {
16+
if: "github.event.pull_request.user.login == 'renovate[bot]'",
17+
timeoutMinutes: 30,
18+
permissions: {
19+
contents: "read",
20+
pullRequests: "write",
21+
},
22+
}).uses(
23+
action("koki-develop/claude-renovate-review", {
24+
with: {
25+
"claude-code-oauth-token": "${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}",
26+
"allowed-tools": [
27+
"WebFetch(domain:github.com)",
28+
"WebFetch(domain:raw.githubusercontent.com)",
29+
"WebFetch(domain:www.npmjs.com)",
30+
].join("\n"),
31+
},
32+
}),
33+
),
34+
);
35+
36+
export default workflow;
Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,4 @@
1-
name: Claude Renovate Review
2-
3-
permissions: {}
4-
5-
on:
6-
pull_request:
7-
types:
8-
- opened
9-
- edited
10-
11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: true
14-
15-
jobs:
16-
claude-renovate-review:
17-
if: github.event.pull_request.user.login == 'renovate[bot]'
18-
timeout-minutes: 30
19-
runs-on: ubuntu-latest
20-
permissions:
21-
contents: read
22-
pull-requests: write
23-
steps:
24-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25-
with:
26-
persist-credentials: false
27-
- uses: koki-develop/claude-renovate-review@cda94ca660ec4eb22dc7808745e6e511b98b6ebc # v1.0.7
28-
with:
29-
claude-code-oauth-token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
30-
allowed-tools: |
31-
WebFetch(domain:github.com)
32-
WebFetch(domain:raw.githubusercontent.com)
33-
WebFetch(domain:www.npmjs.com)
1+
# DO NOT EDIT THIS FILE
2+
# This file is automatically generated by ghats (https://www.npmjs.com/package/ghats)
3+
# Edit the workflow in .github/workflows/claude-renovate-review.ts instead, and run `ghats build` to update this file.
4+
{"name":"Claude Renovate Review","on":{"pull_request":{"types":["opened","edited"]}},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":true},"jobs":{"claude-code-review":{"runs-on":"ubuntu-latest","permissions":{"contents":"read","pull-requests":"write"},"timeout-minutes":30,"if":"github.event.pull_request.user.login == 'renovate[bot]'","steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"with":{"claude-code-oauth-token":"${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}","allowed-tools":"WebFetch(domain:github.com)\nWebFetch(domain:raw.githubusercontent.com)\nWebFetch(domain:www.npmjs.com)"},"uses":"koki-develop/claude-renovate-review@cda94ca660ec4eb22dc7808745e6e511b98b6ebc"}]}}}

0 commit comments

Comments
 (0)