Add GitHub workflow, cron-based to update driverless (AirPrint, IPP Everywhere) printer list
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Comienza con driverless/update-printer-list.sh y su archivo generado public/assets/json/driverless.json; revisa cómo el script utiliza curl y Python, incluidos sys y json. Después inspecciona los workflows de actualización y versionado en el CUPS Snap repo y la GitHub create-pull-request action. Se considera terminado cuando un cron workflow ejecuta el script y abre un pull request para los datos de impresoras actualizados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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?
- Lenguaje dominante
- TypeScript
- Estrellas
- 20
- Forks
- 43
- Merge medio
- 7 h 45 min
- PR fusionados (30 d)
- 8
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenPrinting/openprinting.github.io
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
OpenPrinting/openprinting.github.io#240 · 3 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
OpenPrinting/openprinting.github.io#164 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
OpenPrinting/openprinting.github.io#159 · 7 comentarios ·
Todos los issues de OpenPrinting/openprinting.github.io
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
feature request needs triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 69/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
HarperFast/symphony#91 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
solidjs/solid-docs#1716 ·
Los mantenedores suelen responder en 1 día