"first-interaction" based on path or glob?

Is there a convenient way to have first-interaction only comment on PRs when the user first interacts with a given path? For example the first time a contribution is made to /document/**?

I have a documentation project where I want to be able to remind new content contributors that they should add themselves to the credits. (But if the first contribution is to edit a README typo, or tweak a workflow or something that’s out of scope…)