Azure DevOps - Github status checks

–1 vote

I have n+ GitHub repositories that I would like to connect to 2 separate Azure DevOps pipelines.

  • I do not want to use azure-pipelines.YAML per repo as it would be the same for all of them. In case of any changes, I would prefer to change in a single repo than in n+ of them.
  • My goal is to have GitHub status checks for commits and PRs for all my n+ repos.
  • The pipelines themselves are hosted in GitHub 

My current setup to trigger on push is to use resources in the following manner:

resources: 
  repositories:
  - repository: self
    type: git
    name: woohoo/validation1
    trigger: none  # to avoid triggering the build for pipeline itself
  - repository: repo1
    type: githubenterprise
    name: woohoo/repo1
    endpoint: myendpoint
    trigger:  
      branches:
        include:
         - test/*
    pr: 
     branches:
      include:
       - '*' 
  - repository: repo2
    type: githubenterprise
    name: woohoo/repo2
    endpoint: myendpoint
    trigger:  
      branches:
        include:
         - test/*
    pr: 
     branches:
      include:
       - '*' 
  ...

This works well for triggering the builds and running them correctly but status checks are still missing. Also, I do not see the pipeline when editing the Branch protection rule in Require status checks to pass before merging section.

I suspect that I'm missing some triggers/hooks configuration, any help would be appreciated.

Mar 18, 2022 in Other DevOps Questions by Kichu
• 19,040 points
861 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
1 answer

How to configure and execute Azure Devops classic editor pipeline after commit in Github?

If you're looking for CI/CD triggers, all ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,089 views
0 votes
0 answers
0 votes
1 answer

How to show Azure DevOps wiki attachment that has been created by API

This doesn't appear to be an issue ...READ MORE

answered Feb 8, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,440 views
0 votes
1 answer
0 votes
1 answer

Azure DevOps yaml passing variable using "##vso[task.setvariable" not working

You can stop the pipeline from running ...READ MORE

answered Feb 8, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,890 views
0 votes
1 answer

Azure DevOps - Github status checks

To use the GitHub Status check, first ...READ MORE

answered Mar 25, 2022 in Azure by Edureka
• 13,620 points
1,093 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP