-
Notifications
You must be signed in to change notification settings - Fork 0
chore: automate library updates #129
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
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
| name: Auto Update Libraries | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 3 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| update: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'npm' | ||
|
|
||
| - name: Refresh libraries | ||
| run: npm run update:libs | ||
|
|
||
| - name: Create pull request | ||
| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| branch: chore/auto-library-update | ||
| delete-branch: true | ||
| commit-message: 'chore: automated library refresh' | ||
| title: 'chore: automated library refresh' | ||
| body: | | ||
| Automated update generated by `npm run update:libs`. | ||
|
|
||
| - Ensures Codex/Claude Code toolchain definitions stay current | ||
| - Refreshes npm devDependencies and global CLI manifest | ||
| labels: dependencies |
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
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,26 @@ | ||
| import js from '@eslint/js'; | ||
| import globals from 'globals'; | ||
| import eslintConfigPrettier from 'eslint-config-prettier'; | ||
|
|
||
| export default [ | ||
| { | ||
| ignores: ['node_modules/', 'dist/', 'coverage/', '*.min.js'], | ||
| }, | ||
| js.configs.recommended, | ||
| eslintConfigPrettier, | ||
| { | ||
| files: ['**/*.{js,jsx}'], | ||
| languageOptions: { | ||
| ecmaVersion: 2022, | ||
| sourceType: 'module', | ||
| globals: { | ||
| ...globals.node, | ||
| ...globals.jest, | ||
| }, | ||
| }, | ||
| rules: { | ||
| 'no-console': 'off', | ||
| 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], | ||
| }, | ||
| }, | ||
| ]; |
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.
🧩 Analysis chain
Pin versions of
typescript,eslint, andvercelfor reproducible DevContainer builds.Global npm CLI tools are installed without version constraints for
typescript,eslint, andvercel, which means the image will have different tool versions depending on when it's rebuilt. This breaks reproducibility and contradicts the PR's intent to automate and standardize library updates. The PR explicitly upgrades to ESLint 9, but the Dockerfile doesn't pin it.Pin all three tools to specific versions to ensure consistent image builds. Based on the PR description, at minimum use
eslint@9. Verify target versions fortypescriptandvercelfromnpm/global.json:Then update line 46 to match:
🏁 Script executed:
Length of output: 870
🏁 Script executed:
Length of output: 324
🏁 Script executed:
Length of output: 695
🏁 Script executed:
Length of output: 630
Pin
eslint@9.39.1to match project configuration; verify and pintypescriptandvercelversions.The Dockerfile installs global npm tools without version constraints. The project's
package.jsonpinseslint@9.39.1, but line 46 installs globaleslintwithout a version, creating reproducibility issues and a mismatch with the project's dev environment.Update line 46 to:
Replace
<VERSION>placeholders fortypescriptandvercelbased on your intended versions (neither is documented inpackage.jsonornpm/global.json).🤖 Prompt for AI Agents