Skip to content
This repository was archived by the owner on Sep 14, 2025. It is now read-only.

Commit 20f387c

Browse files
author
soukadao
committed
first commit
0 parents  commit 20f387c

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Auto Qiita Items Report
2+
3+
on:
4+
schedule:
5+
- cron: '0 * * * *' # Run every hour at 0 minutes
6+
workflow_dispatch: # Allow manual execution
7+
8+
jobs:
9+
report:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
issues: write
14+
id-token: write
15+
env:
16+
TZ: 'Asia/Tokyo'
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 1
22+
23+
- name: Run Claude Code
24+
id: claude
25+
uses: anthropics/claude-code-action@v1
26+
env:
27+
QIITA_API_ACCESS_TOKEN: ${{ secrets.QIITA_API_ACCESS_TOKEN }}
28+
with:
29+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
30+
mcp_config: ".mcp.json"
31+
claude_args: |
32+
--allowedTools Bash(gh:*),Bash(date:*),mcp__qiita__get_items
33+
prompt: |
34+
Qiitaの記事を20件取得して出力してください。
35+
出力先はIssueを作成してコンテンツに記載してください。
36+
37+
Issueのタイトルは「XXXX年XX月XX日 XX時 Qiita記事」としてください。
38+
日時は date "+%Y年%m月%d日 %H時" を実行した結果を使用してください。
39+
40+
コンテンツのフォーマットは以下のようになります。
41+
42+
```
43+
# XXXX年XX月XX日 XX時 Qiita記事
44+
45+
- [タイトル](URL)
46+
```

.mcp.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"qiita": {
3+
"command": "npx",
4+
"args": [
5+
"qiita-api-mcp"
6+
],
7+
"env": {
8+
"QIITA_API_ACCESS_TOKEN": "QIITA_API_ACCESS_TOKEN"
9+
}
10+
}
11+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# qiita-items-reporter

0 commit comments

Comments
 (0)