File tree Expand file tree Collapse file tree 6 files changed +6
-12
lines changed Expand file tree Collapse file tree 6 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
open Common
2
2
open Devkit
3
3
open Printf
4
- module Filename = Stdlib. Filename
5
- module Sys = Stdlib. Sys
6
4
7
5
let cwd = Sys. getcwd ()
8
6
let github_cache_dir = Filename. concat cwd " github-api-cache"
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ module Slack : Api.Slack = struct
127
127
(* must read whole response to update lexer state *)
128
128
ignore (Slack_j. read_ok_res s l)
129
129
130
- let lookup_user_cache = Stdlib. Hashtbl. create 50
130
+ let lookup_user_cache = Hashtbl. create 50
131
131
132
132
let lookup_user' ~(ctx : Context.t ) ~(cfg : Config_t.config ) ~email () =
133
133
(* Check if config holds the Github to Slack email mapping *)
@@ -140,15 +140,15 @@ module Slack : Api.Slack = struct
140
140
with
141
141
| Error _ as e -> Lwt. return e
142
142
| Ok user ->
143
- Stdlib. Hashtbl. replace lookup_user_cache email user;
143
+ Hashtbl. replace lookup_user_cache email user;
144
144
Lwt. return_ok user
145
145
146
146
(* * [lookup_user cfg email] queries slack for a user profile with [email] *)
147
147
let lookup_user ?(cache : [ `Use | `Refresh ] = `Use ) ~(ctx : Context.t ) ~(cfg : Config_t.config ) ~email () =
148
148
match cache with
149
149
| `Refresh -> lookup_user' ~ctx ~cfg ~email ()
150
150
| `Use ->
151
- match Stdlib. Hashtbl. find_opt lookup_user_cache email with
151
+ match Hashtbl. find_opt lookup_user_cache email with
152
152
| Some user -> Lwt. return_ok user
153
153
| None -> lookup_user' ~ctx ~cfg ~email ()
154
154
Original file line number Diff line number Diff line change 1
1
open Common
2
2
open Devkit
3
- module Sys = Stdlib. Sys
4
3
5
4
let log = Log. from " context"
6
5
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ let repo_of_notification = function
25
25
| Status n -> n.repository
26
26
27
27
let commits_branch_of_ref ref =
28
- match Stdlib. String. split_on_char '/' ref with
28
+ match String. split_on_char '/' ref with
29
29
| "refs" :: "heads" :: l -> String. concat " /" l
30
30
| _ -> ref
31
31
Original file line number Diff line number Diff line change 1
1
open Devkit
2
2
open Lib
3
3
open Cmdliner
4
- module Filename = Stdlib. Filename
5
4
6
5
let log = Log. from " monorobot"
7
6
8
7
(* entrypoints *)
9
8
10
9
let http_server_action addr port config secrets state logfile loglevel =
11
10
Daemon. logfile := logfile;
12
- Stdlib. Option.iter Log. set_loglevels loglevel;
11
+ Option. may Log. set_loglevels loglevel;
13
12
Log. reopen ! Daemon. logfile;
14
13
Signal. setup_lwt () ;
15
14
Daemon. install_signal_handlers () ;
@@ -145,4 +144,4 @@ let default, info =
145
144
let () =
146
145
let cmds = [ run; check_gh; check_slack ] in
147
146
let group = Cmd. group ~default info cmds in
148
- Stdlib. exit @@ Cmd. eval group
147
+ exit @@ Cmd. eval group
Original file line number Diff line number Diff line change 1
1
open Devkit
2
2
open Lib
3
- module Filename = Stdlib. Filename
4
- module Sys = Stdlib. Sys
5
3
6
4
let log = Log. from " test"
7
5
let mock_payload_dir = Filename. concat Filename. parent_dir_name " mock_payloads"
You can’t perform that action at this time.
0 commit comments