labeler icon indicating copy to clipboard operation
labeler copied to clipboard

Add logging to show why a label gets assigned or not.

Open ob1dev opened this issue 4 years ago • 5 comments

It would be handy if the action logged statements when a given path in PR match or doesn't rules in the file .github/labeler.yml.

For example, the action got kicked out, but no label was assigned, and based on this 👇 it's hard to understand why.

Labeler

ob1dev avatar Sep 19 '19 19:09 ob1dev

Same here. A label was added, but another one was not, but I have no way to debug this.

pvinis avatar Oct 17 '19 03:10 pvinis

+1

CsatariGergely avatar Oct 21 '19 06:10 CsatariGergely

Have you tried enabling Step debugging logs?

Skimming through the source of this Action, there seems to be quite a lot of valuable information dumped with those logs enabled.

phillipj avatar Feb 27 '21 15:02 phillipj

+! for this. Enabling Step Debugging Logs is not a viable option as we have over 10 workflows and we don't want all of them to output debug logs. Even for the labeler we don't really want/need debug logs for everything. We would like to have some simple log lines for each PR assigned label(s) or having label(s) removed so we can a) see the action is working b) debug any missing or superfluous labels.

valentijnscholten avatar Sep 30 '21 18:09 valentijnscholten

+1

eloisetaylor5693 avatar Mar 10 '23 14:03 eloisetaylor5693