Comments (5)
Hi @glasser
Thank you for reporting this issue.
I added the add-paths
feature in v3 and the stash and restore in v5. When I added those features I didn't fully consider that it would make the action a bit inconsistent in the way that it leaves git state. The stash/restore is only used when add-paths
is specified. For some state like git config/auth I've made an effort to revert all changes and leave the state as it was found. I think perhaps it makes sense to try and do that consistently for all git state.
I don't really want to add additional options to the action, unless it's unavoidable. I've made an effort to keep the interface simple and not bloated with config options. So I think reverting all state in every case is simple and intuitive.
I'll take a look at this change when I get a chance. It would require a major version bump, though, because potentially it would be a breaking change for some workflows that expect a particular git state after the action completes.
from create-pull-request.
I would certainly be happy if v6 let me do the thing I wanted with zero extra configuration :)
from create-pull-request.
I remember now why the non-config git state works this way. One of the features of this action is that you can make your own commits which get included in the PR. I think it's a bit too complicated (and probably undesirable) to try and restore those commits after the action completes, so I decided to just let the git state reflect anything that wasn't committed by add-paths
.
I think I would prefer to leave it the way it is for now. I might change my mind in future.
There is a pretty straightforward workaround, as an alternative to the one you are already doing. Just run the Create Pull Request for all
step in a separate job in parallel.
from create-pull-request.
Makes sense. The downside to parallelizing is that constructing the file changes can be slow, so ideally that is shared across jobs. Though GH Actions does provide various ways to share state across jobs...
from create-pull-request.
Closing for now.
from create-pull-request.
Related Issues (20)
- using with git-crypt HOT 4
- Deep fetch results in massive download HOT 2
- Question about Repository HOT 1
- Provide a 'commit-message-body' field? HOT 3
- Failing to create PR using example HOT 1
- Base branch being commited with changes from branch HOT 1
- Failing to create PR HOT 1
- Action does not seem to produce outputs when adding sleep step in between
- Telegram HOT 2
- Support for gitea pull request ? HOT 2
- Add permissions to example in README HOT 2
- PR Creation does not take place despite the step running with success HOT 5
- Unable to use pr number output HOT 1
- PR creation failing due to fetch failing HOT 43
- Add color to labels HOT 1
- push only with --force-with-lease HOT 2
- Breaking change with v6: Error: GitHub Actions is not permitted to create or approve pull requests. HOT 2
- Support converting PR back to draft HOT 1
- Change the authorship of pull requests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-pull-request.