Comments (7)
Hello,
your tool was exactly what I was looking for, sadly I got the same error:
[git-xargs] DEBU[2021-04-22T14:10:51+02:00] Local repository worktree no longer clean, will stage and add new files and commit changes Repo=room-management-example Found untracked file new-file.md. Adding to stage
[git-xargs] DEBU[2021-04-22T14:10:53+02:00] Successfully pushed local branch to remote origin Repo=room-management-example
[git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error opening Pull request Base=master Body="Testing git-xargs" Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Head=refs/heads/testing-git-xargs
[git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error encountered while processing repo Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Repo name=room-management-example
Looked into your source and found master
as base branch. We already use main
as default branch. Maybe thats the problem?
Can you make the default branch configurable?
Proposal:
Add the branch to the repo string in the repo file like:
gruntwork-io/infrastructure-as-code-training/tree/main
gruntwork-io/infrastructure-live-acme/tree/some-other-branch
This way you could use different base-branches for every repository and the user can copy the url from his browser.
Maybe you could ignore https://github.com in the beginning, then the user could just navigate to the branch and copy an paste the url.
from git-xargs.
Just realised that a few people have reported that. I had a stab at it to support the default branch #23
Not fully configurable but should help with most cases I believe. What do you think @zackproser?
from git-xargs.
Hello,
your tool was exactly what I was looking for, sadly I got the same error:
[git-xargs] DEBU[2021-04-22T14:10:51+02:00] Local repository worktree no longer clean, will stage and add new files and commit changes Repo=room-management-example Found untracked file new-file.md. Adding to stage [git-xargs] DEBU[2021-04-22T14:10:53+02:00] Successfully pushed local branch to remote origin Repo=room-management-example [git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error opening Pull request Base=master Body="Testing git-xargs" Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Head=refs/heads/testing-git-xargs [git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error encountered while processing repo Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Repo name=room-management-example
Looked into your source and found
master
as base branch. We already usemain
as default branch. Maybe thats the problem?
Can you make the default branch configurable?Proposal:
Add the branch to the repo string in the repo file like:gruntwork-io/infrastructure-as-code-training/tree/main gruntwork-io/infrastructure-live-acme/tree/some-other-branch
This way you could use different base-branches for every repository and the user can copy the url from his browser.
Maybe you could ignore https://github.com in the beginning, then the user could just navigate to the branch and copy an paste the url.
Thanks for the detailed report! Yes, making the base branch configurable is a pretty quick change. I'll look at it as soon as I can.
from git-xargs.
Just realised that a few people have reported that. I had a stab at it to support the default branch #23
Not fully configurable but should help with most cases I believe. What do you think @zackproser?
This would help in my case
from git-xargs.
This should have been fixed in #23 thanks to @jphuynh !
from git-xargs.
Thank you, that was fast.
My test was successful
from git-xargs.
Thank you, that was fast.
My test was successful
Awesome - so happy to hear it!
from git-xargs.
Related Issues (20)
- panic: runtime error: invalid memory address or nil pointer dereference HOT 2
- Set current repo as Env var HOT 2
- Binaries not included in assets for latest release (v0.1.4) HOT 1
- Error "reference delta not found" when cloning repositories HOT 3
- Incorrect Usage. flag provided but not defined: -version
- Always generate the a summary of pull requests even if ones exist for the branch
- latest release missing binaries HOT 1
- Allow pushing branches to forks HOT 1
- use SSH for operations HOT 1
- The script succeeds but no changes on the actual repo. HOT 1
- Question: can specify a different directory to /tmp to clone? HOT 1
- Add the option for label(s)
- Receiving "No repos found for the organization supplied" despite there being many repos HOT 1
- Rate limiting for repository cloning? HOT 1
- Force PR creation if the commits are made by the script
- Ability to Choose Format Used for Logging via CLI Flag
- GITHUB_HOSTNAME is ignored HOT 1
- provide an environment variable with the temp directory name HOT 3
- Feature Request - Support Azure Repos
- Feature Request - option flag with "--filter=blob:none" to clone repo 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 git-xargs.