Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

231
Vistas
Is there a way to pass a github actions workflow job on addition of a PR label?

I am using danger to check for specific label being added, and on that check being true I then want to pass a workflow job which was previously failing e.g.

 const gitHubLabels = danger.github.issue.labels.map((label) => label.name.trim());
 const codeOwnerLabel = gitHubLabels.find((label) => label === 'CODE OWNER APPROVED');
 
 if (codeOwnerLabel) {
   // pass/ignore specific workflow job here
 }

There is this github endpoint https://docs.github.com/en/rest/reference/actions#list-jobs-for-a-workflow-run which lists all jobs and I can then use this to check for specific job but there is no endpoint to then pass that job somehow.

Does anyone have any other ideas?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Nevermind, the listForRef API (https://octokit.github.io/rest.js/v18#checks) gives information on the particular job check run so now I have the information to write my logic.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda