diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-31 17:49:19 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-31 17:49:19 -0300 |
commit | fb6bcf3f91b0297f218a91cedabfbed875c1b432 (patch) | |
tree | 1b1106c7de57802aa7284f78c8f8292afd645077 /git.h | |
parent | 2cce8f101f772105244405667b9ba15ac2933146 (diff) |
git: Add support for specifying the name of a repo when getting, and
creating PRs
This allows for repos to have their own set of PRs, rather than only
having a global set of PRs.
Although, if you leave the repo name empty, then it will treat it as a
global PR, rather than a repo specific PR.
Diffstat (limited to 'git.h')
-rw-r--r-- | git.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,9 +53,9 @@ struct pull_request { extern void cleanup_git(git_repo **repos); extern void cleanup_pull_request(pull_request *pr); extern git_repo **init_git(config *cfg); -extern pull_request *get_pull_request(index_t *idx, const char *root); +extern pull_request *get_pull_request(index_t *idx, const char *root, const char *repo); extern int add_comment(comment *comment, const char *pr_root); -extern int create_pull_request_dir(pull_request *pr, index_t *idx, const char *root); +extern int create_pull_request_dir(pull_request *pr, index_t *idx, const char *root, const char *repo); int parse_patch_list(void *ctx, void *ret, const keyword *key, keyword_val val); int parse_comment_reply(void *ctx, void *ret, const keyword *key, keyword_val val); |