Skip to content

Commit 2a7f937

Browse files
committed
api_local: minor renamed
Co-authored-by: Louis <[email protected]> fixup _ref uses
1 parent e502d3a commit 2a7f937

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/api_local.ml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ the member kind (pull, issue, commit, compare, etc),
2424
_ref (pr number, issue number, commit sha, compare basehead, etc),
2525
and its Github_j.<kind>_of_string function.
2626
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
2929
let url = Caml.Filename.concat cache_dir file in
3030
with_cache_file url of_string
3131

@@ -35,23 +35,23 @@ module Github : Api.Github = struct
3535
with_cache_file url Config_j.config_of_string
3636

3737
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
3939

4040
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
4242

4343
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
4545

4646
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
4848

4949
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)
5151
~of_string:Github_j.compare_of_string
5252

5353
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
5555

5656
let request_reviewers ~ctx:_ ~repo:_ ~number:_ ~reviewers:_ = Lwt.return @@ Error "undefined for local setup"
5757
end

0 commit comments

Comments
 (0)