When integrating pull request triggers in GitHub with path filters, the build is never started, which prevents the required status check from passing.
If the branch policy includes a required pipeline status check, then it'll be impossible for the pull request to be completed because the build is never triggered and status is never updated.



⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi @StephenHodgson. Thank you for reporting this and apologies for the trouble of it. We just began a new sprint in which we plan to address this by reporting a status of Neutral when the pipeline is skipped because of branch/path filters. However, GitHub only supports the Neutral status when your pipeline uses the Azure Pipelines GitHub App. If your pipeline is based on your identity's OAuth or a personal access token, the Neutral status isn't supported. Please let me know if we can help ensure you're set up to use the GitHub App. This improvement should be available once it reaches all rings of production in mid-April.
@DavidStaheli any update on this?
This work has been completed. Please reopen if there are any additional concerns.
How can you make an Azure DevOps pipeline publish a neutral status when it's not triggered because of path filter ? Actually my pipeline is just not only triggered and none status is published back to GitHub.
Hi @davidstaheli
I am having the same issue, even worse - the builds configured as "Required" are not started at all and remain with "Expected — Waiting for status to be reported" status if there a PR path filter in the build YAML file.
I've double verified that the pipeline uses Azure Pipelines GitHub App connection.
Can you please advise?
@davidstaheli
The Neutral status does not appear to be working for me. The project has a service connection using the Pipelines app. I have the following path filters on a PR validation trigger:
.github/README.mdThe pipeline is correctly not triggered, but the status remains Expected — Waiting for status to be reported in GitHub, blocking the merge.
@davidstaheli I have a bunch of existing "classic" pipelines. I have just installed the DevOps app for GitHub. How do I hook up my existing pipelines to use the app so I can get the neutral status integration? Thanks in advance
Update: I think I found how to convert existing classic pipelines to use the GH app, however it is still not working for me. When I push to my PR branch a change that gets filtered out (by my "Path Filters") it never reports back. Whats even more strange is in this scenario I see no activity under the "Usage history" tab of my "Azure pipelines app" service connection. its like somehow DevOps knows the pipeline should not run, but its not using my GH app connection and even worse its not reporting back a status of Neutral.
Note: If I manually kick off this pipeline from DevOps it uses the connection.
Here is my config (again I'm using classic)

Pipeline trigger:


This still doesn't work. Status remains as Expected — Waiting for status to be reported when PR pipeline is configured not to run on specified paths.
Same problem here, using Azure Pipelines App and yml pipeline files. Whould be a useful feature though.
@davidstaheli can you clarify what how I should need to configure things to make it send "neutral"? I'm using the app, but my PRs are showing "Expected - waiting for status to be reported" for the builds that don't run due to the PR not containing any changes to the paths the build is triggered on.
Most helpful comment
Hi @StephenHodgson. Thank you for reporting this and apologies for the trouble of it. We just began a new sprint in which we plan to address this by reporting a status of
Neutralwhen the pipeline is skipped because of branch/path filters. However, GitHub only supports theNeutralstatus when your pipeline uses the Azure Pipelines GitHub App. If your pipeline is based on your identity's OAuth or a personal access token, theNeutralstatus isn't supported. Please let me know if we can help ensure you're set up to use the GitHub App. This improvement should be available once it reaches all rings of production in mid-April.