-
Notifications
You must be signed in to change notification settings - Fork 327
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
Use JIRA_ISSUE env var for issue specific commands #204
Comments
Hey, yeah, it looks like a bug. We are loading the On option might be to provide a custom command to view your branch issue:
then |
That’s definitely a solution but it would be nice to move the ticket into other state via the normal command. I could totally setup other custom commands to do that but you can see the pain that would be. |
Yeah, it is not ideal. The |
More than happy to work on a fix or work on a patch in kingpin that adds params that could bypass the required attribute (probably harder to get a PR through) |
The current code follows this pattern:
I tried using the
since kingpin does not allow
But since I will have to do that about 40 times in the code, I want a better abstraction to encapsulate this logic. Not sure if you are comfortable hacking on Go and/or have any better ideas for this sort of thing. |
I’ve done some Go CLI stuff at previous gigs. Agreed that it should be consolidated logic. I’ll give it a whack and open a PR. |
btw, I was apparently wrong about the configs being loaded. They are configured to load when the command is finalized (via callback registered in poorly named
to:
We could have some helper function to make this check for us to make it slightly more palatable. None of the options that come to mind are great. |
Cool feature! I'm interested too. I'm currently doing |
Glad I found this ticket, I was hoping for some functionality like |
My "extra curricular" time has been gobbled up these past few months. I'll probably have some free time over the holidays. |
I‘m also interested. Automatically setting Did someone work on a fix in the meantime? If I find time, I could try fixing it with the information described in the previous comments, but I‘ve never worked with Go so far. |
I'm setting up a dynamic config that looks at the current git branch, parses out the issue id and sets that in the config as
issue: ISSUE-XYZ
. If I dump the env I seeJIRA_ISSUE=ISSUE-XZY
but it seems that sinceISSUE
is a required parameter, the command fails.My config looks like:
The text was updated successfully, but these errors were encountered: