Re: trying to automate rbt post
On Friday, January 26, 2018 at 5:10:42 PM UTC-8, David Trowbridge wrote: > > It is possible to run `rbt post` from outside of a source tree, but it > requires manually specifying the server and repository in your command > line. This is what it's trying to detect when it fails looking at the cwd. > > I have a .reviewboardrc file in that directory. It contains server, username, and password declarations. With --debug rbt does not tell me it is reading the file, but I know it is because I get syntax errors if it has syntax problems. If it is reading it, it is presumably using it. There doesn't seem to be a command line option to just give a repository name. There are: –repository-type –repository-url Should I use the URL one to specify type? I had been leaving both out since, like I said, I already had the diffs. The docs for post: https://www.reviewboard.org/docs/rbtools/0.7/rbt/commands/post/ (My version, but the later one is the same on this point.) Just say I need username and password with a "--diff-filename=-". If that's wrong, it would be good to have it corrected. -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "Review Board Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: trying to automate rbt post
It is possible to run `rbt post` from outside of a source tree, but it requires manually specifying the server and repository in your command line. This is what it's trying to detect when it fails looking at the cwd. You will also need to provide *some* authentication. Whether that's loaded from ~/.rbtools-cookies, a username/password on the command line, or an API key on the command line is your choice. -David On Fri, Jan 26, 2018 at 4:54 PMwrote: > I'd like to automatically open review requests when people commit to > particular branch names. > > I've got hooks in place that can start a process on any commit, compare > the branch name against a regular expression and then proceed from there. > > My code knows how to create a diff itself and does so already. I'd thought > that with a diff I could just > >diffgenerator | rbt post --submit-as=USER --diff-filename=- > > I get an error though: > >ERROR: The current directory does not contain a checkout from a > supported source code repository. > > That's right. Many of the repos have a .reviewboardrc file checked in, so > I'm not running the command from those directories because I want my > .reviewboardrc file with my "special" user for sending --submit-as commits. > I'd rather not have to put the user/password on the command line. > > Is this doable? What do I need to change to get this to work? > > I'm not running latest and greatest, I could upgrade if needed, but I'd > rather wait a little longer. > > RBTools 0.7.10 > Review Board 2.5.10 > > -- > Supercharge your Review Board with Power Pack: > https://www.reviewboard.org/powerpack/ > Want us to host Review Board for you? Check out RBCommons: > https://rbcommons.com/ > Happy user? Let us know! https://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "Review Board Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "Review Board Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
trying to automate rbt post
I'd like to automatically open review requests when people commit to particular branch names. I've got hooks in place that can start a process on any commit, compare the branch name against a regular expression and then proceed from there. My code knows how to create a diff itself and does so already. I'd thought that with a diff I could just diffgenerator | rbt post --submit-as=USER --diff-filename=- I get an error though: ERROR: The current directory does not contain a checkout from a supported source code repository. That's right. Many of the repos have a .reviewboardrc file checked in, so I'm not running the command from those directories because I want my .reviewboardrc file with my "special" user for sending --submit-as commits. I'd rather not have to put the user/password on the command line. Is this doable? What do I need to change to get this to work? I'm not running latest and greatest, I could upgrade if needed, but I'd rather wait a little longer. RBTools 0.7.10 Review Board 2.5.10 -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "Review Board Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.