![]() Hub is very useful as a post_cmd, since it lets you open pull requests. Use git diff HEAD^ HEAD as a post_cmd to see the commit that your change generated. ![]() This lets you examine the side effects of the change command without any consequences. Start with a single no-op post_cmd and run gitbot with GITBOT_LEAVE_TEMPDIRS=1.Start small: run on a single repository to start.# post_cmds are run with the same environment variables as `gitbot` itself. # post_cmds can assume that the change has been committed to HEAD. # post_cmds are only run if the change command makes a change. # post_cmds are run within the directory where a repository has been cloned. # use post_cmds to do things like pushing branches to github, opening PRs, etc. path: "/path/to/the/program " args: # post_cmds is a list of programs to run on each repo if changes have been made. # command paths can either be absolute paths, or paths relative to the configuration file. # a change command must conform to the following rules: # - it takes in one positional argument: the path to a repo to examine # - it either # (a) makes changes to files within the repo, outputs a commit message to stdout, and exits with code 0 # (b) exits with a nonzero exit code change_cmds: Not including this option is okay and the program will assume "" base_path: "path/to/prepend/tmpdir " # change_cmds describes the programs that will be invoked on each repo. # Basepath to prepend temp directories. # the format of each value here must be passable to `git clone` repos: ![]() # repos is a list of repositories to examine, e.g.
0 Comments
Leave a Reply. |