summaryrefslogtreecommitdiff
path: root/testdata/DOMAINS.star
blob: 5f3946a7bf7950fbafc94972939ee5b4dc6c3f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
load("@svgu/git.star", "git")
load("@svgu/svn.star", "svn")
load("@svgu/hg.star", "hg")
load("@svgu/bzr.star", "bzr")
load("@svgu/fossil.star", "fossil")

index(domain = "example.com")

module(
    name = "foo",
    vcs = git.GIT,
    repo = "https://example.com",
    dir = "https://example.com{/dir}",
    file = "https://example.com{/dir}/{file}",
)

git.github(
    name = "github/bar",
    user = "example",
    repo = "bar.git",
)

git.gitlab(
    name = "gitlab/bar",
    user = "example",
    repo = "bar.git",
)

git.sourcehut(
    name = "sourcehut/bar",
    user = "example",
    repo = "bar.git",
    ref = "trunk",
)

git.bitbucket(
    name = "bitbucket/bar",
    workspace = "example",
    repo = "bar.git",
    ref = "default",
    instance = "https://root@bitbucket.org",
)

git.gitiles(
    name = "gitiles/bar",
    repo = "example/bar.git",
    ref = "master",
    instance = "https://gerrit.googlesource.com",
)