1
Answered

How can I watch Pull Request builds?

In my Action list, I would like to be able to watch any PR builds that I triggered. However, I can't seem to find a configuration that will allow me to do this. Here's what I have in my Action list:image-1671550137273.png

It looks like the "Only my builds" option includes branch builds, but not PR builds. Is that expected?

  • Build server: Azure DevOps
  • Repo: GitHub Enterprise
  • Catlight v3.0.27
  • OS: Win10

4 replies

Can you collect the metadata for a problematic build and attach it to the private support ticket ( https://support.catlight.io/add-ticket )?

In your browser, open the following URL, replacing things in {} with your settings. You can find the buildId in the browser address bar when you open that build in Azure DevOps UI.

https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}?api-version=4.1 

CatLight is looking at triggerInfo.pr.sender.name to match your GitHub account login name.

Also, please let us know what is your GitHub username and what username is shown as a PR owner in GitHub UI.

A couple of questions:

1. Do pull request builds in Azure DevOps have a direct link that opens a Github PR? The pipelines page should show "PR Automated for" block for the build. And the pull request number should open Github page with your PR.

image-1672767520821.png

2. Is the PR created by the same Github user that you have connected with in CatLight?

3. Can you double-check that Azure DevOps  pipeline is selected in item group that you're using (default list)?

4. Does this build match other filter conditions? (looks like you have a filter to show the build only since the last day)

BH

1. The build correctly shows the PR that triggered it, although it's not a clickable link

image-1672775770772.png

2. The PR was created by me and the GitHub connection is using my PAT

3. The pipeline is included in Default List

4. I created the PR today, so the 1d filter should catch it. For good measure, I've increased it to 7d.

The builds that I trigger on the main branch do show up, so I think the pipeline connection is working.

I don't know how CatLight tries to associate my ADO user with my GitHub user, but maybe that's the issue?

BH

I upgraded to CatLight 3.0.29 and have both the ADO and GitHub connections configured, but my PR triggered builds are still not showing up in the Action list.

This happens because PR build is triggered by the service account, and not by the current user in Azure DevOps. 

We've made some improvements to link GitHub PRs to correct Azure DevOps user in v3.0.28. Let me know if it works for you - https://catlight.io/downloads 

For this linking to work, make sure to have both - Azure DevOps and GitHub connections in CatLight.

BH

As of v3.0.35, I can now see my PR builds in CatLight, provided I have the following set:
1. GitHub Enterprise service connection configured

2. ADO builds monitored with "Only my builds" enabled