Add GitHub workflow, cron-based to update driverless (AirPrint, IPP Everywhere) printer list

オープン
#229 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

@hissamshar がすでに取り組んでいます。

2026年8月18日 から。

  • #234 @hissamshar による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
github-actions, python, shell
領域
ci-cd, devops, tooling

調査の方向性

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.sh

The 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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenPrinting/openprinting.github.io のほかの issue

OpenPrinting/openprinting.github.io の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。