Automate dependency updates with a scheduled Action
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- github-actions
- 領域
- ci-cd
調査の方向性
まず、リポジトリに既存する GitHub Actions の workflow と依存関係マニフェストを確認し、続いてそれらの権限とテストのトリガーを、提案されているスケジュール済み workflow と比較します。月次の workflow が指定された non-breaking 戦略と 14 日間の release age を使用し、更新用の pull request を作成し、必要な PAT 設定が maintainer によって確認されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
🚀 The feature, motivation and pitch
Hi, thanks for creating and maintaining this package. I use it in some of my own projects and wanted to help make sure it stays secure and well maintained with the least effort from maintainers.
Looking through the commit history, dependency bumps look like they're done manually right now, but I've recently created a new GitHub Action called Update Dependencies that might help here: https://github.com/marketplace/actions/update-dependencies
It scans your package manager(s), opens a PR with version bumps, and labels each change as breaking or non-breaking (Depending on which strategy we use).
Suggested setup for this repo:
- Run it monthly, non-breaking updates only, so not much manual review is needed.
- Set min-release-age-days to 14 (default is 3, similar to Github's Dependabot). That gives the community about two weeks to catch bugs or security issues in a new release before it lands here.
- If you already run tests on every PR (which it seems you do), no extra config needed; your CI just checks the update PR like any other PR.
One thing worth noting: the GitHub token should be a PAT rather than the default token, so your CI actually triggers on the PR it opens. That'd need an admin to create and maintain.
Example workflow:
name: Update Dependencies
on:
schedule:
- cron: '0 2 1 * *' # monthly, 1st of month at 02:00 UTC
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: yanovian/update-dependencies-action@v1
with:
update-strategy: non-breaking
min-release-age-days: 14
create-pull-request: true
github-token: ${{ secrets.PAT_TOKEN }}
What do you think? Happy to help set it up if useful.
Alternatives
Manual update or "custom scripts" but none of them actually check with the list of CVEs, and also it is not easy to check the update time for every single package.
Additional context
No response
RFC (Optional)
No response
- 主要言語
- Python
- スター
- 5k
- フォーク
- 1.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 595
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytorch/executorch のほかの issue
-
good first issue module: examples module: webgpu
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
pytorch/executorch#23099 ·
-
good first issue module: examples module: vulkan
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
pytorch/executorch#23098 ·
-
good first issue module: cuda module: examples
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
pytorch/executorch#23097 ·
-
module: qnn partner: qualcomm
pytorch/executorch#23096 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
-
pytorch/executorch#23058 · リアクション 1 件 · 担当者 1 名 ·
pytorch/executorch の issue をすべて見る
似ている issue
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-webui/open-webui#30750 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 90/100