Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The logs about the close label removal are not clear/complete #462

Closed
C0ZEN opened this issue May 24, 2021 · 0 comments · Fixed by #463
Closed

The logs about the close label removal are not clear/complete #462

C0ZEN opened this issue May 24, 2021 · 0 comments · Fixed by #463
Labels
bug Something isn't working

Comments

@C0ZEN
Copy link
Contributor

C0ZEN commented May 24, 2021

Describe your issue

From this issue #451, we can see these logs:

2021-05-21T03:20:03.5532488Z [#11710] The issue is not closed nor locked. Trying to remove the close label...
2021-05-21T03:20:03.5532994Z [#11710] This issue has a stale label

There is nothing following the log about the close label removal.
It's since the option is not configured.
Having a better log to explain this would be nice.
Now, when the option is configured and that the label is not present, no log will appear.
Having a log saying that the label is not in the issue/PR would be better as well.

I will provide a PR.

@C0ZEN C0ZEN added the bug Something isn't working label May 24, 2021
C0ZEN added a commit to C0ZEN/stale that referenced this issue May 24, 2021
A log was missing when the option was configured but the close label was not present on the issue/PR
Change the log about not removing the close label to explicitly mention that this behaviour occur because the option is not configured
Fixes actions#462
C0ZEN added a commit to C0ZEN/stale that referenced this issue May 25, 2021
A log was missing when the option was configured but the close label was not present on the issue/PR
Change the log about not removing the close label to explicitly mention that this behaviour occur because the option is not configured
Fixes actions#462
C0ZEN added a commit to C0ZEN/stale that referenced this issue Jun 3, 2021
A log was missing when the option was configured but the close label was not present on the issue/PR
Change the log about not removing the close label to explicitly mention that this behaviour occur because the option is not configured
Fixes actions#462
luketomlinson pushed a commit that referenced this issue Jun 7, 2021
* feat(logs): improve the logs when removing the close label

A log was missing when the option was configured but the close label was not present on the issue/PR
Change the log about not removing the close label to explicitly mention that this behaviour occur because the option is not configured
Fixes #462

* feat(dry-run): display the logs and count the operations

the dry-run checks were cancelling way sooner the workflow
the logs and the count of operations could not occur in dry run due to this
the goal of the dry run is just to skip some logic regarding the api calls to avoid altering the repos but the goal IMO is to also make them reflect the real world run so this change allow this
BTW it also allow now to test the consumed operations
Fixes #461

* feat(logs): add more logs to debug the stale label removal

* chore(index): update index

* chore(dry-run): fix bad dry-run conditions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant