eslint-annotate-action icon indicating copy to clipboard operation
eslint-annotate-action copied to clipboard

only-pr-files is not working

Open ricardovanlaarhoven opened this issue 4 years ago • 10 comments
trafficstars

I'm receiving the following warning: Warning: Unexpected input(s) 'only-pr-files', valid inputs are ['repo-token', 'report-json', 'fail-on-warning']

ricardovanlaarhoven avatar Oct 05 '21 06:10 ricardovanlaarhoven

Please check that you are using version ‘1.2.0’

ataylorme avatar Oct 05 '21 13:10 ataylorme

Yes uses: ataylorme/[email protected]

ricardovanlaarhoven avatar Oct 05 '21 13:10 ricardovanlaarhoven

For me either, got the warning "Warning: Unexpected input(s) 'only-pr-files', valid inputs are ['repo-token', 'report-json', 'fail-on-warning']"

ViktoriaKhaslarova avatar Oct 16 '21 18:10 ViktoriaKhaslarova

I don't see it anywhere in the code, to be honest. Only in the README.

oxc avatar Dec 09 '21 14:12 oxc

Sorry for the confusion here. Indeed this is in the README but not the code. I was planning to implement the feature until GitHub added it natively in the UI. PRs with annotations outside the changed files appear separately

ataylorme avatar Dec 09 '21 15:12 ataylorme

I see. What I had hoped for from that feature is that it ignores the many (legacy) errors we have in the project and only complains about the ones in the PR 😂 (I would not disagree if you said this was out of scope)

oxc avatar Dec 09 '21 15:12 oxc

That was more or less the goal with an option to make non-pr changed errors report as warnings (if possible) or not at all.

I haven’t been able to give this project much attention as real life has been a priority for me.

If someone wanted to add the feature and make a PR I can help with code review and testing of it

ataylorme avatar Dec 09 '21 15:12 ataylorme

I am making updates in a v2 refactor #44. Only PR files should now work. Can you test ataylorme/eslint-annotate-action@v2?

ataylorme avatar May 02 '22 16:05 ataylorme

Just wanted to say that only-pr-files is very useful option. I've recently tests v2 branch on my repo and it works as expected. Great thanks!

ascrazy avatar May 11 '22 10:05 ascrazy

@ascrazy thank you for testing! I’m glad v2 is working for you

ataylorme avatar May 12 '22 03:05 ataylorme

v2 is the default branch, closing this out as fixed

ataylorme avatar Jan 21 '23 23:01 ataylorme