-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ghr.example.toml
70 lines (56 loc) · 1.96 KB
/
ghr.example.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Example configuration for ghr.
#
[defaults]
# Sets the default owner of repositories.
# You can pass only repository name to 'ghr clone' when this is set.
owner = "siketyan"
[git]
# Chooses the strategy to use on Git clones.
# 'Cli' is the default and only supported.
strategy.clone = "Cli"
[platforms.github]
# Default configuration for GitHub.com.
type = "github"
[platforms.ghe-acme]
# If you are using a GitHub Enterprise Server instance,
# Specify here to enable `--fork` working with repositories on the GHE server.
type = "github"
host = "ghe.example.com"
[[patterns]]
# You can use additional patterns to specify where the repository is cloned from.
# For details of regular expression syntax, see https://docs.rs/regex/latest/regex/index.html .
regex = "^(?P<scheme>https)://(?P<host>git\\.kernel\\.org)/pub/scm/linux/kernel/git/(?P<owner>.+)/(?P<repo>.+)\\.git"
# You can override parameters if those are not in or different from the pattern.
vcs = "git"
scheme = "https"
user = ""
host = "git.kernel.org"
owner = "torvalds"
# Composes URL different from the input.
# This does not work when inferring is enabled.
url = "{{scheme}}://{{host}}/pub/scm/linux/kernel/git/{{owner}}/{{repo}}.{{vcs}}"
# Turn off inferring URL to use the raw input to clone.
infer = false
[profiles.work]
# Overrides Git profile using the profile.
# You need to add rule(s) to attach this profile onto a repository.
user.name = "My Working Name"
user.email = "[email protected]"
# Adds entries to .git/info/exclude (not .gitignore).
excludes = [
"/.idea/",
".DS_Store",
]
[applications.vscode]
# You can open a repository in VS Code using `ghr open <repo> vscode`.
cmd = "code"
args = ["%p"]
[[rules]]
# 'work' profile declared above is attached on this rule.
profile.name = "work"
# This rule is applied when the repository is owned by your company on GitHub.
host = "github.com"
owner = "my-company-org"
# Optionally you can apply the rule onto a specific repo.
#repo = "company-repo"