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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update branch if it exists #72

Open
simenandre opened this issue May 24, 2021 · 3 comments
Open

Update branch if it exists #72

simenandre opened this issue May 24, 2021 · 3 comments

Comments

@simenandre
Copy link

Hello 馃憢

Thank you for this awesome library! I am building a utility to improve the developer experience for those with many repositories, much like your Octoherd. Kopier is designed with templating in mind with using Github Actions, like in Tabetalt where we distribute some standardized files.

I recently started a full refactor of Kopier, and testing out this library for the pushing of files and creating pull request. One feature that I've been asked for a lot internally is being able to update a pull request with new changes. Imagine that there's one repository where we have an open pull request, (maybe because we're not ready for the changes yet in that repo), but we've pushed yet another update to the origin repository (in Tabetalt, it's named workflows). We don't want yet another pull request for those changes.

To track this, I opened bjerkio/kopier#31. I imagine we could take parts of this library, and implement this behaviour in Kopier. Or, better yet, maybe this is something that this library should support? Or is it supported?

@gr2m
Copy link
Owner

gr2m commented May 24, 2021

I wanted to create another plugin solely for creating the commits with multiple changes, and then use it as dependency in this PR. With the multi-file-update-per-commit plugin you'd be able to do that by checking if the branch already exists. You'd install both plugins, but it would deduplicate it internally so that shouldn't be a big problem

@mheap created such a plugin but I never got around to check it out and to see if I can use it, or if I have to create a separate one: https://github.com/mheap/octokit-commit-multiple-files

would that approach work for you?

@swain
Copy link

swain commented Feb 8, 2022

+1 for this feature :)

@saqimtiaz
Copy link

I would find this very helpful as well.

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

4 participants