Open Pull Requests metric not populating from GitHub

Patrick Smyrl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2024

Evaluating Compass for use generating DORA and other metrics.  I have created a sandbox repo in GitHub and linked a component in Compass.  The GitHub app is installed and if I understand correctly, metrics around pull requests should be populating automatically.

Deployments to production and staging are showing up in the activity feed and the deployment frequency metric is populating, but Open Pull Requests is not populating.

I know the webhook is working as I am getting deploy and workflow events in compass.  I have the webhook triggering on deployment status, pushes, and workflow runs per the documentation.   When I add Pull Requests, the delivery gets a 400 response.

Any direction would be greatly appreciated, thanks. 

 

2 answers

2 votes
Enrique Serrano Valle
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2024

Hi, @Patrick Smyrl !

Currently the Compass GraphQL and the Rest APIs don't allow to directly push PR events - the documentation should be updated shortly to reflect this. Is this when you were receiving 400s?

Otherwise, installing the GitHub app in Compass following these steps, and adding a repository link to your Compass component should be updating PR metrics. PR events don't currently show in the activity feed but you would know that the setup has worked because you'd see the data connection next to the repository link added to your sidebar, the "open pull requests" metric populating and a link to the source repository just at the bottom of that metric.

Screenshot 2024-05-24 at 3.09.52 PM.pngScreenshot 2024-05-24 at 3.10.03 PM.png

Let me know whether that worked! If for any reason that still didn't solve it, please let us know - providing the site that is used for these tests could also help us narrow down other factors.

Patrick Smyrl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2024

I am getting the deployment frequency, so I know there is connectivity between the repo and Compass, but the Open PR's still are not populating.  Any thoughts?

Enrique Serrano Valle
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 31, 2024

You can verify that you're using the latest version of the Compass GitHub app in your Compass instance as `https://yoursite/compass/marketplace/discover/app/compass.github` and update it if necessary.

Otherwise it may be related to something specific to your configuration. If the issue persists, either sharing your site name here, or opening a support ticket with Atlassian and providing more installation information there may help triage this situation.

Like Steffen Opel _Utoolity_ likes this
ivan.simanenka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2024

@Enrique Serrano Valle I did configure webhooks in repositories for github connection. Github app is installed in Compass. Repositories are added to the components. However I don't see "Data connection" label next to the repository and metrics are not coming.

In github I see successful deliveries for the webhook.

How can I debug what is wrong?

ivan.simanenka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2024

Ok, I found what was causing the issue. It seems there is no way to properly connect a github repo to Compass without being administrator of organization in github. So webhook stuff just adds events in compass, not PR metrics.

0 votes
xhammer
Contributor
July 25, 2024

I have a similar issue which is that I can see an open pull request on the components and the components are assigned to my teams. But in my team on the pull requests tab I'm showing 0 pull requests. 

Enrique Serrano Valle
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 26, 2024

Hi, @xhammer ! The Open PR metric count that you see in the component is populated based on the connection to the repository associated with that component (the repository link that you have added to the right sidebar) so that means that the data connection is successful.

The pull requests tab under Teams would aggregate PR information at the Team level. The first thing I'd confirm is whether the Team assigned to the Component where you're seeing the PR count (in the top-right sidebar) is exactly the same Team that you're checking the pull requests information for, in the Teams > (Your team) > Pull requests section.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events