docs(llma): add Claude Agent SDK installation page #1376
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Inkeep Feedback Collector | |
| on: | |
| pull_request: | |
| types: [closed] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| collect-feedback: | |
| # Only run if PR was merged, not closed | |
| if: github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check for Inkeep interactions | |
| id: check_inkeep | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const prNumber = context.payload.pull_request.number; | |
| // Get all comments on the PR | |
| const issueComments = await github.rest.issues.listComments({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: prNumber | |
| }); | |
| // Get all review comments | |
| const reviewComments = await github.rest.pulls.listReviewComments({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: prNumber | |
| }); | |
| // Get all reviews | |
| const reviews = await github.rest.pulls.listReviews({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: prNumber | |
| }); | |
| // Check if any comment/review mentioned @inkeep | |
| const hadInkeepMentions = | |
| issueComments.data.some(c => c.body.includes('@inkeep')) || | |
| reviewComments.data.some(c => c.body.includes('@inkeep')) || | |
| reviews.data.some(r => (r.body || '').includes('@inkeep')); | |
| console.log(`PR #${prNumber} had Inkeep mentions: ${hadInkeepMentions}`); | |
| return hadInkeepMentions; | |
| - name: Post feedback request | |
| if: steps.check_inkeep.outputs.result == 'true' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const prNumber = context.payload.pull_request.number; | |
| const author = context.payload.pull_request.user.login; | |
| const feedbackComment = `How was the Inkeep-generated draft? | |
| [](https://us.posthog.com/external_surveys/019c7216-5ce5-0000-d164-5511f6b1340e?q0=1) [](https://us.posthog.com/external_surveys/019c7216-5ce5-0000-d164-5511f6b1340e?q0=2)`; | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: prNumber, | |
| body: feedbackComment | |
| }); | |
| console.log(`Posted feedback request on PR #${prNumber}`); |