Add GitHub workflow, cron-based to update driverless (AirPrint, IPP Everywhere) printer list
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 68/100
Piste de recherche
Commencez par driverless/update-printer-list.sh et son fichier généré public/assets/json/driverless.json ; examinez comment le script utilise curl et Python, notamment sys et json. Inspectez ensuite les workflows de mise à jour et de versioning dans le CUPS Snap repo ainsi que la GitHub create-pull-request action. C’est terminé lorsqu’un cron workflow exécute le script et ouvre une pull request pour les données d’imprimantes mises à jour.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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?
- Langage dominant
- TypeScript
- Étoiles
- 20
- Forks
- 43
- Merge moyen
- 7 h 45 min
- PR mergées (30 j)
- 8
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de OpenPrinting/openprinting.github.io
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
OpenPrinting/openprinting.github.io#240 · 3 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
OpenPrinting/openprinting.github.io#164 · 1 commentaire ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
OpenPrinting/openprinting.github.io#159 · 7 commentaires ·
Toutes les issues de OpenPrinting/openprinting.github.io
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
JSON parser fails on commentsOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
AloisSeckar/elrh-cosca#36 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
cursor/community-plugins#572 ·
Les mainteneurs répondent en général sous 1 jour
-
[Plugin] calendarOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
MUKE-coder/grit#228 ·
-
[BUG] Keyring unreachableOuvertebug status:needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
dongdongbh/Mindwtr#1587 ·
Les mainteneurs répondent en général sous 1 jour