Skip to content

Commit 7a1c22e

Browse files
auto-generate opam file
1 parent 510e448 commit 7a1c22e

File tree

5 files changed

+120
-34
lines changed

5 files changed

+120
-34
lines changed

dune-project

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,77 @@
1-
(lang dune 2.7)
1+
(lang dune 3.9)
2+
23
(implicit_transitive_deps false)
34

5+
(generate_opam_files true)
6+
47
(formatting
58
(enabled_for ocaml reason))
69

710
(cram enable)
11+
12+
(name monorobot)
13+
14+
(using menhir 2.0)
15+
16+
(license "MIT")
17+
18+
(version "0.1")
19+
20+
(source
21+
(github ahrefs/monorobot))
22+
23+
(authors "Ahrefs Pte Ltd <[email protected]>")
24+
25+
(maintainers "Ahrefs Pte Ltd <[email protected]>")
26+
27+
(package
28+
(name monorobot)
29+
(synopsis "Notification bot for monorepos")
30+
(description
31+
"Notification bot to handle webhook events from monorepos and post notifications to Slack.")
32+
(depends
33+
(ocaml
34+
(>= 4.14.0))
35+
(atd
36+
(>= 2.14.0))
37+
(atdgen
38+
(>= 2.14.0))
39+
(atdgen-runtime
40+
(>= 2.14.0))
41+
(base64
42+
(>= 3.0.0))
43+
biniou
44+
(cmdliner
45+
(>= 1.1.0))
46+
(digestif
47+
(>= 1.2.0))
48+
(devkit
49+
(>= 1.20240429))
50+
(extlib
51+
(>= 1.7.8))
52+
(lwt
53+
(>= 5.7.0))
54+
(lwt_ppx
55+
(>= 2.0.0))
56+
(ptime
57+
(>= 1.2.0))
58+
(ocamldiff
59+
(>= 1.2))
60+
(sqlite3
61+
(>= 5.1.0))
62+
(sqlgg
63+
(>= 20231201))
64+
(re2
65+
(>= 0.16.0))
66+
uri
67+
(omd
68+
(< 2))
69+
yojson
70+
(ocamlformat
71+
(and
72+
:with-dev-setup
73+
(= 0.26.2)))
74+
(ocurl
75+
(>= 0.9.2))
76+
(sexplib0
77+
(>= v0.16.0))))

lib/database.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module Conn = struct
6060

6161
type t = {
6262
pool : connection Lwt_pool.t;
63-
mutable connections : connection list;
63+
connections : connection list;
6464
}
6565

6666
let create ~max_conn db_path =

monorobot.opam

Lines changed: 47 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,54 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
2-
name: "monorobot"
33
version: "0.1"
4-
license: "MIT"
54
synopsis: "Notification bot for monorepos"
6-
description: "Notification bot to handle webhook events from monorepos and post notifications to Slack."
7-
maintainer: "Ahrefs <[email protected]>"
8-
authors: "Ahrefs <[email protected]>"
5+
description:
6+
"Notification bot to handle webhook events from monorepos and post notifications to Slack."
7+
maintainer: ["Ahrefs Pte Ltd <[email protected]>"]
8+
authors: ["Ahrefs Pte Ltd <[email protected]>"]
9+
license: "MIT"
910
homepage: "https://github.com/ahrefs/monorobot"
1011
bug-reports: "https://github.com/ahrefs/monorobot/issues"
11-
dev-repo: "git+https://github.com/ahrefs/monorobot.git"
1212
depends: [
13-
"ocaml" {>= "4.14.0"}
14-
"dune" {>= "2.9.0"}
15-
"atd" {>= "2.14.0"}
16-
"atdgen" {>= "2.14.0"}
17-
"atdgen-runtime" {>= "2.14.0"}
18-
"base64" {>= "3.0.0"}
19-
"biniou"
20-
"cmdliner" {>= "1.1.0"}
21-
"digestif" {>= "1.2.0"}
22-
"devkit" {>= "1.20240429"}
23-
"extlib" {>= "1.7.8"}
24-
"lwt" {>= "5.7.0"}
25-
"lwt_ppx" {>= "2.0.0"}
26-
"ptime" {>= "1.2.0"}
27-
"ocamldiff" {>= "1.2"}
28-
"sqlite3" {>= "5.1.0"}
29-
"sqlgg" {>= "20231201"}
30-
"re2" {>= "0.16.0"}
31-
"uri"
32-
"omd" {< "2"}
33-
"yojson"
34-
"ocamlformat" { with-dev-setup & = "0.26.2" }
35-
"ocurl" {>= "0.9.2"}
36-
"sexplib0" {>= "v0.16.0"}
13+
"dune" {>= "3.9"}
14+
"ocaml" {>= "4.14.0"}
15+
"atd" {>= "2.14.0"}
16+
"atdgen" {>= "2.14.0"}
17+
"atdgen-runtime" {>= "2.14.0"}
18+
"base64" {>= "3.0.0"}
19+
"biniou"
20+
"cmdliner" {>= "1.1.0"}
21+
"digestif" {>= "1.2.0"}
22+
"devkit" {>= "1.20240429"}
23+
"extlib" {>= "1.7.8"}
24+
"lwt" {>= "5.7.0"}
25+
"lwt_ppx" {>= "2.0.0"}
26+
"ptime" {>= "1.2.0"}
27+
"ocamldiff" {>= "1.2"}
28+
"sqlite3" {>= "5.1.0"}
29+
"sqlgg" {>= "20231201"}
30+
"re2" {>= "0.16.0"}
31+
"uri"
32+
"omd" {< "2"}
33+
"yojson"
34+
"ocamlformat" {with-dev-setup & = "0.26.2"}
35+
"ocurl" {>= "0.9.2"}
36+
"sexplib0" {>= "v0.16.0"}
37+
"odoc" {with-doc}
3738
]
38-
build: ["dune" "build" "-p" name "-j" jobs]
39+
build: [
40+
["dune" "subst"] {dev}
41+
[
42+
"dune"
43+
"build"
44+
"-p"
45+
name
46+
"-j"
47+
jobs
48+
"@install"
49+
"@runtest" {with-test}
50+
"@doc" {with-doc}
51+
]
52+
]
53+
dev-repo: "git+https://github.com/ahrefs/monorobot.git"
54+
available: [ os-family != "windows" & os != "macos" & os != "openbsd"]

monorobot.opam.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
available: [ os-family != "windows" & os != "macos" & os != "openbsd"]

test/github_link_test.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ let mk_repo ?(owner = "ahrefs") ?(scheme = "https") prefix prefix_api : reposito
1717

1818
let enterprise_repo1 = mk_repo "example.org" "example.org/api/v3"
1919
let enterprise_repo2 = mk_repo "example.org/path/to/git" "example.org/path/to/git/api/v3"
20-
let enterprise_repo_insecure = mk_repo ~scheme:"http" "example.org" "example.org/api/v3"
2120
let github_repo = mk_repo "github.com" "api.github.com"
2221

2322
let pr_cases prefix repo =

0 commit comments

Comments
 (0)