-
Notifications
You must be signed in to change notification settings - Fork 2
/
options.html
86 lines (85 loc) · 3.55 KB
/
options.html
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
<!DOCTYPE html>
<html>
<head>
<title>JiGit Extension Options</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
</head>
<body style="display: flex; justify-content: center; align-self: center;">
<div class="content" style="padding: 30px 0;">
<h2 class="mb-3">Hello fellow developer!</h2>
<p class="mb-3">Below you find some useful customizations for JiGit plugin that converts Jira issue title <br/> to branch name in the format you need and puts it to clipboard.</p>
<div class="mb-3">
<div class="mb-1">Branch name scheme:</div>
<select id="flow" class="form-control">
<option value="simple" selected="selected">Simple Flow</option>
<option value="gitlab">GitLab Flow</option>
<option value="short">Short Flow</option>
<option value="id">ID Flow</option>
</select>
<small>Simple flow: {issueKey}-{formated name}</small>, <small>Short flow: {issueKey}</small>, <small>ID flow: {issueId} </small> <br />
<small>GitLab flow: {GitLab flow issue type}/{issueKey}-{formated name}</small>
</div>
<div class="checkbox mb-3">
<div>
Copy with command
<input
class="ml-1"
type="checkbox"
id="copy-with-command"
name="copy-with-command"
value="command"
/>
</div>
<div><small>Copy to clipboard comand: git checkout -b "branch name"</small></div>
</div>
<label for="regexp-exclude" class="control-label"
>Exclude text from issue title (regexp)</label
>
<div class="form-row">
<div class="form-group col-md-10">
<div>
<input type="text" class="form-control" id="regexp-exclude-pattern" placeholder="pattern" />
</div>
<small
>Examle: \[.*?\] with flag g - Removing all brackets with content inside
</small>
</div>
<div class="form-group col-md-2">
<input type="text" class="form-control" id="regexp-exclude-flag" placeholder="flag">
</div>
</div>
<div class="mb-2">Branch key registry:</div>
<div class="form-row mb-3">
<div class="form-group col-md-4">
<select id="key-registry" class="form-control">
<option value="default" selected="selected">Default</option>
<option value="lowercase">Lowercase</option>
</select>
<small>Lowercase: ars-1-{name}</small>
</div>
<div class="form-group col-md-8">
<select id="name-registry" class="form-control">
<option value="default" selected="selected">Default</option>
<option value="uppercase">Uppercase</option>
<option value="lowercase">Lowercase</option>
</select>
<small>Uppercase: {key}-BRANCH-NAME, Lowercase: {key}-branch-name</small>
</div>
</div>
<button id="save" class="btn btn-outline-primary col-md-7" type="submit">Save</button>
<a class="btn btn-outline-primary col-md-4 ml-4" target="_blank" href="https://github.com/VeritasV/JiGit/issues" role="button">Feedback / Issue</a>
<div class="mt-2">
<small
>* If at the time of installing the plugin, you have open tabs with
Jira, you need to refresh them.</smal
>
</div>
</div>
<script src="options.js"></script>
</body>
</html>