Manual GitHub Comment trigger

Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.

Description

I’m interested in using the Components feature to view coverage on a specific portion of the code, but the only way to use this feature is via GitHub PR comments. We’ve broadly disabled PR comments on our monorepo, but I would love to enable them for when specific files change or via a manual trigger on the PR.

Is there any way to hook the PR comments feature up so that it only triggers for specific use-cases? I see the require_changes: true flag, but I essentially want a combination of this flag and a path specification.

The other option here would be to allow users to manually trigger GitHub comments on some action. Is there an API we can hook into to trigger GH Comments?

@JennerF if I’m reading this correctly, you’re looking to get a PR comment when a particular file or directory changes. The best way, as you mentioned, would be if you could do this using Components.

Right now, this is on our product roadmap, but doesn’t exist. I would make a post on our feedback channel so that our product team can get the feedback.