We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70bc9d6 commit 9f03a43Copy full SHA for 9f03a43
src/request_handler.ml
@@ -6,9 +6,7 @@ let log = Log.from "request_handler"
6
let update_config (ctx : Lib.Context.t) = function
7
| Lib.Github.Push n ->
8
let is_config_file f = String.equal f ctx.data.cfg_filename in
9
- let commit_contains_config_file (c : Lib.Github_t.commit) =
10
- List.exists (List.exists is_config_file) [ c.added; c.modified ]
11
- in
+ let commit_contains_config_file (c : Lib.Github_t.commit) = List.exists is_config_file (c.added @ c.modified) in
12
( match List.exists commit_contains_config_file n.commits with
13
| true -> Lib.Context.refresh_config ctx
14
| false -> Lwt.return_unit
0 commit comments