Skip to content

Commit d9befc5

Browse files
committed
chore: add dependabot
1 parent 70c1701 commit d9befc5

4 files changed

Lines changed: 76 additions & 2 deletions

File tree

.github/dependabot.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
updates:
3+
#######################################################
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
open-pull-requests-limit: 25
9+
versioning-strategy: increase
10+
allow:
11+
- dependency-name: "@agentica/*"
12+
- dependency-name: "openai"
13+
- dependency-name: "typia"
14+
- dependency-name: "typescript"
15+
- dependency-name: "ts-patch"
16+
- dependency-name: "@wrtnlabs/connector*"
17+
groups:
18+
Agent:
19+
patterns:
20+
- "@agentica/*"
21+
- "openai"
22+
- "typia"
23+
Connector:
24+
patterns:
25+
- "@wrtnlabs/connector*"
26+
TypeScript:
27+
patterns:
28+
- "typescript"
29+
- "ts-patch"

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: build
2+
on:
3+
pull_request:
4+
paths:
5+
- "src/**"
6+
- "package.json"
7+
- "package-lock.json"
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20.x
17+
18+
- name: Install dependencies
19+
run: npm install
20+
21+
- name: Build
22+
run: npm run build
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Dependabot Automerge"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: [opened, synchronize]
8+
paths:
9+
- "package.json"
10+
- "package-lock.json"
11+
jobs:
12+
build-and-merge:
13+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
steps:
19+
- name: Comment on PR
20+
run: |
21+
gh pr comment "$PR_URL" --body "@dependabot merge"
22+
env:
23+
PR_URL: ${{ github.event.pull_request.html_url }}
24+
GH_TOKEN: ${{ secrets.DEPENDABOT_AUTOMERGE_GITHUB_TOKEN }}

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ export const agent = new Agentica({
2121
protocol: "class",
2222
application: typia.llm.application<GithubService, "chatgpt">(),
2323
execute: new GithubService({
24-
secret: process.env.GITHUB_ACCESS_TOKEN!,
25-
aws: {},
24+
githubRefreshToken: process.env.GITHUB_ACCESS_TOKEN!,
2625
}),
2726
},
2827
],

0 commit comments

Comments
 (0)