Hy folks! I'm looking for some guidance :motorway:...
# help
w
Hy folks! I'm looking for some guidance 🛣️ We're using infracost with github app which run on our repos whenever there is a new open PR. Is there a way to exclude PRs which have some specific label? Or maybe I'm thinking in the wrong way an I need to stop the job with some sort of API call? Thanks in advance for your help! 🙏
a
Hey @worried-autumn-93807 - just want to clarify the ask. You want to have repos in the app because they have terraform but you don't want the check to run on all PRs for whatever reason and you want to know if you add a label to the PR could we skip the infracost check based on that label?
If that's correct, we don't support conditional checks based on anything in the PR - if the App is connected to the repo then we'll catch all PRs
w
Thanks @adventurous-nail-5992! That's correct. Thanks for the feedback. Can I skip or stop the infracost check in any other way?
a
Not right now. Can you give me a bit of insight into the use case?
w
Our understanding is that we run the check on our machines and we wanted to save execution time
Is it correct that the job which does the check runs in our github runner?
a
no the check runs on our infrastructure. Generally, we have pretty quick turn around on the check, are you seeing delays waiting for Infracost to run?
w
Hi Owen, there was some confusion on our side as we thought it was running on our side. Thanks for answering
BTW, filtering could be a good feature to reduce the runs on your side
a
I think it would be an interesting option but would need lots of thought. One of the uses is to block PRs that breach cost increase guardrails and label based suppression would be open to abuse to bypass checks. Something to think about though