This repository was archived by the owner on Sep 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +58
-0
lines changed Expand file tree Collapse file tree 3 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ # qiita-items-reporter
You can’t perform that action at this time.
0 commit comments