wow-actions / auto-comment

💬 Automatically comment issues or PRs on events triggered
MIT License
36 stars 13 forks source link

Auto-comment when a PR touches unowned code paths #31

Open chai-unitary opened 1 year ago

chai-unitary commented 1 year ago

I want to use Auto-comment Github action but I want to trigger it based on a unique use-case

Unique because it doesn't seem to be available off-the-shelf: https://github.com/marketplace/actions/auto-comment

I am using CODEOWNERS.md to define which code paths are owned by which teams within our org.

I now want to configure a GH action that would comment something like

Alert/Warning ⚠️: You're touching 's codebase. Have you confirmed this change with them? Do they have knowledge of this?

Is it possible to tie in codeowners with auto-comment. If yes, can you recommend how? Thanks

Expected Behavior

Trigger auto-comment based on PR touching files in codeowners [created by author outside the owning team]

Possible Solution

Not sure

github-actions[bot] commented 1 year ago

👋 @chai-unitary Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.

chai-unitary commented 1 year ago

@bubkoo or @urish if you've some context