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

Support configuration to automatically remove all files matching a list of paths #517

Open
afharo opened this issue Oct 29, 2024 · 1 comment

Comments

@afharo
Copy link

afharo commented Oct 29, 2024

I was wondering if we could add a feature where the project would provide a list of paths of files that shouldn't exist in the target branches (such as .github/ISSUE_TEMPLATES).

The typical recommendation is to avoid backporting PRs that have those changes (or manually update the created PR). However, in KIbana we've noticed that the auto-generated .github/CODEOWNERS file tends to be backported more often that we'd like to.

We could solve it separately, just raising the question here in case it makes sense for this tool to remove the listed files in a new config parameter and commit the changes.

@sorenlouv
Copy link
Owner

Hey @afharo

Thanks for raising this. Do you have suggestions for how it should be invoked, eg what would the cli or config option look like?
Also what would the resulting operation be (in pseudo-bash). How would you achieve this "manually" without the backport tool?

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

No branches or pull requests

2 participants