Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

236
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!