Skip to content

Commit ba8c65a

Browse files
committed
chore: add dependabot
1 parent fa3b8ac commit ba8c65a

4 files changed

Lines changed: 78 additions & 3 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export const agent = new Agentica({
2424
"chatgpt"
2525
>(),
2626
execute: new GoogleDocsService({
27-
clientId: process.env.GOOGLE_DOCS_CLIENT_ID!,
28-
clientSecret: process.env.GOOGLE_DOCS_CLIENT_SECRET!,
29-
secret: process.env.GOOGLE_DOCS_REFRESH_TOKEN!,
27+
googleClientId: process.env.GOOGLE_DOCS_CLIENT_ID!,
28+
googleClientSecret: process.env.GOOGLE_DOCS_CLIENT_SECRET!,
29+
googleRefreshToken: process.env.GOOGLE_DOCS_REFRESH_TOKEN!,
3030
}),
3131
},
3232
],

0 commit comments

Comments
 (0)