-
Notifications
You must be signed in to change notification settings - Fork 1.4k
doc db to include types.* #6391
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
3 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
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.
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.
🧩 Analysis chain
🏁 Script executed:
find .github -name "update-doc-db.yml" -type fRepository: RustPython/RustPython
Length of output: 100
🏁 Script executed:
cat -n .github/workflows/update-doc-db.yml | head -120Repository: RustPython/RustPython
Length of output: 4365
🏁 Script executed:
ls -la .github/workflows/ | grep -i updateRepository: RustPython/RustPython
Length of output: 132
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 102
🏁 Script executed:
git ls-files .github/workflows/ | head -20Repository: RustPython/RustPython
Length of output: 264
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 887
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 287
🏁 Script executed:
rg -l "Commit and push (non-main branches only)" --type yamlRepository: RustPython/RustPython
Length of output: 47
🏁 Script executed:
rg "AUTO_COMMIT_PAT" --type yamlRepository: RustPython/RustPython
Length of output: 47
🏁 Script executed:
rg "Update doc DB for CPython" --type yamlRepository: RustPython/RustPython
Length of output: 47
🌐 Web query:
GitHub Actions sparse checkout git operations authentication💡 Result:
Summary + quick examples
Example:
with:
fetch-depth: 0
sparse-checkout: |
.github
src
sparse-checkout-cone-mode: true
(cite: actions/checkout). [1]
Example push with GITHUB_TOKEN:
permissions:
contents: write
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: true
fetch-depth: 0
sparse-checkout: |
README.md
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# make changes...
git add .
git commit -m "Update"
git push origin HEAD:main
If you need to use a PAT (for cross-repo write, finer scopes, or to trigger new workflows), store it as a secret and set actions/checkout.token or configure git remote HTTPS with that PAT. [1][2]
References
[1] actions/checkout README (sparse-checkout inputs & usage).
[2] GitHub Docs — GITHUB_TOKEN and using it for authentication in workflows.
[3] actions/checkout GitHub issues (sparse-checkout / git-version caveats).
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 509
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 509
Ensure the
AUTO_COMMIT_PATsecret is configured in repository settings with write access.The merge job requires the
AUTO_COMMIT_PATsecret to authenticate git push operations. Configure this secret in your repository settings with appropriate permissions to push commits to non-main branches. The workflow correctly uses the full repository checkout (without sparse checkout) for the merge and commit step, so git operations will work as expected.🤖 Prompt for AI Agents