Comments (3)
I'm having trouble reproducing this one. I assume this is a situation where you have viewing rights but not contributing rights. Probably what is happening is that the error message is communicated via stdout
instead of stderr
. I made error handling code a bit more robust for this:
d2c10df#diff-04186dccbae3e4068b23960111707533a0a45468dbd51a2000fd9a83ee46f6fdR170-R171
Will release shortly, then you can try and see if this fixes it. Update: try v1.0.1
from doing-cli.
Hmm this didn't quite do it, it would appear. I do believe it is exactly the situation which you describe (can view but can't contribute).
Actual error message (I've only copied the last bit since pasting the provided error messages doesn't work great, sadly, due to the formatting):
| /usr/local/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site │
│ -packages/doing/pr/create_pr.py:113 in cmd_create_pr │
│ │
│ 110 │ │ cmd = f"az repos ref create --name 'heads/{branch_name}' --repository '{repo_nam │
│ 111 │ │ cmd += f"--object-id '{master_branch_object_id}' -p '{project}' --org '{organiza │
│ 112 │ │ branch = run_command(cmd) │
│ ❱ 113 │ │ assert branch.get("success") │
│ 114 │ │ console.print(f"[dark_orange3]>[/dark_orange3] Created remote branch '[cyan]{bra │
│ 115 │ │
│ 116 │ # Create the PR
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AssertionError:
So interestingly enough, I think the issue is that the function itself doesn't error out - it only gives an info message. Then the branch.get assert fails, as we couldn't actually create the branch.
from doing-cli.
Thanks for this! I should have added a helpful error message there, which I did now:
doing-cli/src/doing/pr/create_pr.py
Line 115 in df135f0
Will be released in v1.1
in a bit. Thanks for reporting this stuff, really helps make doing
better!
from doing-cli.
Related Issues (20)
- config file format should be `.yaml` by default
- sort list items by parent-children
- add the option of passing arbitrary conditions to the search query, using wiql.
- We're missing tests for a lot of functions
- Add a good example of `doing-cli` to main github page HOT 1
- v1.5.0 not in __init__.py HOT 3
- mix of --story_points and --story-points HOT 2
- Fixup in docs
- Not all work items type are listed HOT 1
- `doing init` creates duplicate keys
- Add `doing pr open` HOT 1
- Bug in `doing issue close` HOT 7
- Add story_points filter in `doing list` HOT 1
- Add output_format parameter to `doing list` HOT 1
- Add how to on bulk editing work items
- `doing open sprint` is not working
- `doing open board` doesn't show the right iteration HOT 4
- `doing list --state`: add option for `active` HOT 5
- `doing issue create` doesn't attribute the default number of story points HOT 1
- Repository in One Project While Boards is In Another HOT 3
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 doing-cli.