-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat: add weekly cn task to check documentation #8076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Run Continue Agent | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| prompt: | ||
| description: "The prompt to send to the Continue agent" | ||
| required: true | ||
| type: string | ||
| agent: | ||
| description: "The agent to use (e.g., continuedev/default-background-agent)" | ||
| required: false | ||
| type: string | ||
| default: "continuedev/default-background-agent" | ||
| branch_name: | ||
| description: "The base branch name to work from" | ||
| required: false | ||
| type: string | ||
| default: "main" | ||
| secrets: | ||
| CONTINUE_API_KEY: | ||
| required: true | ||
|
|
||
| jobs: | ||
| run-agent: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Call agents endpoint | ||
| run: | | ||
| response=$(curl -f -X POST https://api.continue.dev/agents \ | ||
| -H "Content-Type: application/json" \ | ||
| -H "Authorization: Bearer ${{ secrets.CONTINUE_API_KEY }}" \ | ||
| -d '{ | ||
| "prompt": "${{ inputs.prompt }}", | ||
| "agent": "${{ inputs.agent }}", | ||
| "branchName": "${{ inputs.branch_name }}", | ||
| "repoUrl": "https://github.com/${{ github.repository }}" | ||
| }') | ||
| id=$(echo $response | jq -r '.id') | ||
| echo "https://hub.continue.dev/agents/$id" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Weekly CN Task | ||
|
|
||
| on: | ||
| schedule: | ||
| # Runs at 8/9:30 AM PST (16:30 UTC) every Monday so PR shows up at beginning of week | ||
| - cron: "30 16 * * 1" | ||
| workflow_dispatch: # Allows manual triggering | ||
|
|
||
| jobs: | ||
| run-cn-task: | ||
| uses: ./.github/workflows/run-continue-agent.yml | ||
| with: | ||
| prompt: "Review every Markdown documentation file and verify that descriptions, examples, or behavior outlines accurately reflect the current code. Only update documentation; do not modify code. Check the corresponding code to confirm behavior before making changes. Correct any inaccuracies or outdated information in descriptions, examples, or behavior outlines. Preserve existing Markdown formatting, style, and structure. Do not add new sections, speculative explanations, or details not present in the code. Only update statements that are clearly incorrect or misleading; do not rewrite text for style or preference. Keep edits minimal and focused, ensuring that the Markdown matches what the code actually does. If verification against the code is ambiguous, leave the documentation unchanged. Use branch name bot/cleanup-<YYMMDD>-<HHMM>" | ||
| agent: continuedev/default-background-agent | ||
| branch_name: main | ||
| secrets: | ||
| CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like there was duplicate text in the spec?