-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
186 lines (186 loc) · 4.74 KB
/
package.json
File metadata and controls
186 lines (186 loc) · 4.74 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"name": "git-persona",
"displayName": "Git Persona",
"description": "A VS Code extension that lets you customize your commit identity per repository.",
"version": "1.0.4",
"publisher": "ugi-dev",
"license": "MIT",
"homepage": "https://ugi.dev",
"repository": {
"type": "git",
"url": "https://github.com/ugi-dev/git-persona"
},
"icon": "icon.png",
"keywords": [
"git",
"identity",
"commit",
"user.name",
"user.email",
"author",
"per-repo",
"persona",
"scm",
"multiple identities"
],
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"SCM Providers",
"Other"
],
"activationEvents": [
"onStartupFinished",
"onCommand:gitPersona.configureRepoIdentity",
"onCommand:gitPersona.openRepoSettings",
"onCommand:gitPersona.toggleRepositoryIgnore",
"onCommand:gitPersona.fixActiveRepository"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "gitPersona.configureRepoIdentity",
"title": "Git Persona: Configure Repository Identity"
},
{
"command": "gitPersona.openRepoSettings",
"title": "Git Persona: Open Workspace Identity Settings"
},
{
"command": "gitPersona.toggleRepositoryIgnore",
"title": "Git Persona: Toggle Ignore Repository"
},
{
"command": "gitPersona.fixActiveRepository",
"title": "Git Persona: Fix Active Repository Identity"
}
],
"configuration": {
"title": "Git Persona",
"properties": {
"gitPersona.enabled": {
"type": "boolean",
"default": true,
"description": "Enable identity checks when opening repositories."
},
"gitPersona.blockUntilConfigured": {
"type": "boolean",
"default": false,
"description": "When true, keep prompting until identity is configured for each repository."
},
"gitPersona.autoApplyBestMatch": {
"type": "boolean",
"default": true,
"description": "When true, auto-apply the best matching identity preset when identity is missing or invalid."
},
"gitPersona.statusBarEnabled": {
"type": "boolean",
"default": true,
"description": "Show current repository identity status in the status bar."
},
"gitPersona.checkIntervalMs": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "If > 0, periodically re-check repository identities at this interval in milliseconds."
},
"gitPersona.maxRecentIdentities": {
"type": "number",
"default": 8,
"minimum": 1,
"maximum": 30,
"description": "Maximum number of recently used identities to remember in workspace settings."
},
"gitPersona.allowedDomains": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Optional email domain allow-list (for example: company.com). Empty means any domain."
},
"gitPersona.ignoredRepositories": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Absolute repository paths ignored by Git Persona checks."
},
"gitPersona.identities": {
"type": "array",
"default": [],
"items": {
"type": "object",
"required": [
"name",
"email"
],
"properties": {
"label": {
"type": "string",
"description": "Optional display label for this identity preset."
},
"name": {
"type": "string",
"description": "Git user.name value."
},
"email": {
"type": "string",
"description": "Git user.email value."
},
"match": {
"description": "Optional match string or list. If it appears in repo path/name/remote URL, this preset can be auto-selected.",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
},
"description": "Identity presets shown when configuring a repository. Example: [{\"label\":\"Work\",\"name\":\"Jane Dev\",\"email\":\"jane@company.com\",\"match\":[\"github.com/work-org\",\"/work/\"]}]."
},
"gitPersona.recentIdentities": {
"type": "array",
"default": [],
"items": {
"type": "object",
"required": [
"name",
"email"
],
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"description": "Automatically maintained list of recently used identities."
}
}
}
},
"scripts": {
"build": "tsc -p ./",
"vscode:prepublish": "npm run build",
"watch": "tsc -watch -p ./",
"lint": "tsc --noEmit -p ./"
},
"devDependencies": {
"@types/node": "^20.14.9",
"@types/vscode": "^1.90.0",
"typescript": "^5.5.4"
}
}