-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add prune option #48
Add prune option #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM though I left several comments.
One more thing; please follow the commit message convention and update your commit message and PR title like Add prune option
.
pkg/github/github.go
Outdated
return c.deleteLabel(ctx, owner, repo, currentLabel.Name) | ||
}) | ||
} | ||
if deleteUnManaged { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use early return.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to use early return here we need rest of this method
prune option indicate if unmanaged labels should be removed, by default is set to true
19660b4
to
8d4a77e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect other than a nitpick - thanks!
Great work - I appreciate your contributions 😄 |
Created the new tag |
Thx for approve and new release. |
default behavior was preserved
fix #47