Add GitHub workflow, cron-based to update driverless (AirPrint, IPP Everywhere) printer list
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
調査の方向性
driverless/update-printer-list.sh と生成されたファイル public/assets/json/driverless.json から始め、スクリプトが sys と json を含めて curl と Python をどのように使用しているかを確認します。次に、CUPS Snap repo の更新およびバージョニングのワークフローと、GitHub create-pull-request action を調べます。cron workflow がスクリプトを実行し、更新されたプリンター データの pull request を作成すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
See issue #223, starting with this comment to the end.
@michaelrsweet said:
The current scripts merge the AirPrint and IPP Everywhere lists. Mopria does not provide a public list of printers (unfortunately), but the number of Mopria-ready printers that are not AirPrint or IPP Everywhere is probably close to (if not) 0.
I ran my scripts manually this time. I normally have them setup to run on one of my development systems once a month since the lists don't change that often. I don't think we could do this via GitHub CI directly - maybe we could create a PR but I'm not sure. The scripts can certainly be run from CI, it is just how to generate the PR with the changes? (I know I probably don't have the time to make that work right now, maybe later...)
... and to follow up on this, apparently there is a GitHub action for this. So it is possible we can do it fairly easily, but again I don't have time to write it up today...
From a clone of the repository:
cd driverless ./update-printer-list.shThe updated "public/assets/json/driverless.json" file is then ready to be committed and/or turned into a PR.
The script uses curl and python, with the python sys and json modules/libraries (in case they are not in the default CI running image...)
For generating PRs also have a look at the workflows for update and versioning automation in the CUPS Snap repo.
@rudra-iitm @gativarshney @rkt0209 could somebody of you have a look?
- 主要言語
- TypeScript
- スター
- 20
- フォーク
- 43
- 平均マージ
- 7時間 45分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenPrinting/openprinting.github.io のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
OpenPrinting/openprinting.github.io#240 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
OpenPrinting/openprinting.github.io#164 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
OpenPrinting/openprinting.github.io#159 · コメント 7 件 ·
OpenPrinting/openprinting.github.io の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
feature request needs triage
難易度 1/5 1〜3時間 初心者へのやさしさ 69/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
HarperFast/symphony#91 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
solidjs/solid-docs#1716 ·
メンテナーはふだん 1 日以内に返信