@@ -24,8 +24,8 @@ the member kind (pull, issue, commit, compare, etc),
24
24
_ref (pr number, issue number, commit sha, compare basehead, etc),
25
25
and its Github_j.<kind>_of_string function.
26
26
NB: please save the cache file in the same format *)
27
- let get_repo_member_cache ~(repo : Github_t.repository ) ~kind ~_ref ~of_string =
28
- let file = clean_forward_slashes (sprintf " %s_%s_%s" repo.full_name kind _ref ) in
27
+ let get_repo_member_cache ~(repo : Github_t.repository ) ~kind ~ref_ ~of_string =
28
+ let file = clean_forward_slashes (sprintf " %s_%s_%s" repo.full_name kind ref_ ) in
29
29
let url = Caml.Filename. concat cache_dir file in
30
30
with_cache_file url of_string
31
31
@@ -35,23 +35,23 @@ module Github : Api.Github = struct
35
35
with_cache_file url Config_j. config_of_string
36
36
37
37
let get_branch ~ctx :_ ~(repo : Github_t.repository ) ~name =
38
- get_repo_member_cache ~repo ~kind: " branch" ~_ref :name ~of_string: Github_j. branch_of_string
38
+ get_repo_member_cache ~repo ~kind: " branch" ~ref_ : name ~of_string: Github_j. branch_of_string
39
39
40
40
let get_api_commit ~ctx :_ ~repo ~sha =
41
- get_repo_member_cache ~repo ~kind: " commit" ~_ref :sha ~of_string: Github_j. api_commit_of_string
41
+ get_repo_member_cache ~repo ~kind: " commit" ~ref_ : sha ~of_string: Github_j. api_commit_of_string
42
42
43
43
let get_pull_request ~ctx :_ ~(repo : Github_t.repository ) ~number =
44
- get_repo_member_cache ~repo ~kind: " pull" ~_ref :(Int. to_string number) ~of_string: Github_j. pull_request_of_string
44
+ get_repo_member_cache ~repo ~kind: " pull" ~ref_ : (Int. to_string number) ~of_string: Github_j. pull_request_of_string
45
45
46
46
let get_issue ~ctx :_ ~(repo : Github_t.repository ) ~number =
47
- get_repo_member_cache ~repo ~kind: " issue" ~_ref :(Int. to_string number) ~of_string: Github_j. issue_of_string
47
+ get_repo_member_cache ~repo ~kind: " issue" ~ref_ : (Int. to_string number) ~of_string: Github_j. issue_of_string
48
48
49
49
let get_compare ~ctx :_ ~(repo : Github_t.repository ) ~basehead :(base , merge ) =
50
- get_repo_member_cache ~repo ~kind: " compare" ~_ref :(sprintf " %s...%s" base merge)
50
+ get_repo_member_cache ~repo ~kind: " compare" ~ref_ : (sprintf " %s...%s" base merge)
51
51
~of_string: Github_j. compare_of_string
52
52
53
53
let get_release_tag ~ctx :_ ~(repo : Github_t.repository ) ~release_tag =
54
- get_repo_member_cache ~repo ~kind: " release_tag" ~_ref :release_tag ~of_string: Github_j. release_tag_of_string
54
+ get_repo_member_cache ~repo ~kind: " release_tag" ~ref_ : release_tag ~of_string: Github_j. release_tag_of_string
55
55
56
56
let request_reviewers ~ctx :_ ~repo :_ ~number :_ ~reviewers :_ = Lwt. return @@ Error " undefined for local setup"
57
57
end
0 commit comments