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

Add prune option #48

Merged
merged 2 commits into from
Oct 30, 2020
Merged

Add prune option #48

merged 2 commits into from
Oct 30, 2020

Conversation

slawekjaranowski
Copy link
Contributor

default behavior was preserved

fix #47

Copy link
Owner

@micnncim micnncim left a 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.

action.yml Outdated Show resolved Hide resolved
cmd/action-label-syncer/main.go Outdated Show resolved Hide resolved
cmd/action-label-syncer/main.go Outdated Show resolved Hide resolved
return c.deleteLabel(ctx, owner, repo, currentLabel.Name)
})
}
if deleteUnManaged {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use early return.

Copy link
Contributor Author

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

pkg/github/github.go Outdated Show resolved Hide resolved
@slawekjaranowski slawekjaranowski changed the title new option - deleteUnManaged Add prune option Oct 29, 2020
prune option indicate if unmanaged labels should be removed,
by default is set to true
Copy link
Owner

@micnncim micnncim left a 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!

action.yml Outdated Show resolved Hide resolved
@micnncim micnncim merged commit 0e9c510 into micnncim:master Oct 30, 2020
@micnncim
Copy link
Owner

Great work - I appreciate your contributions 😄

@micnncim
Copy link
Owner

Created the new tag v1.2.0 and release. Also, bound the tag with v1.

@slawekjaranowski slawekjaranowski deleted the fix-47 branch October 30, 2020 21:27
@slawekjaranowski
Copy link
Contributor Author

Thx for approve and new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't delete unmanaged labels
2 participants