-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge_types.html
161 lines (144 loc) · 4.68 KB
/
merge_types.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
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
---
layout: default
title: Merge Types
description: Which merge types are allowed in each repository?
---
{% assign org_href = "https://github.com/eustasy" %}
<script defer src="sortable.mega-advanced.min.js"></script>
<style>
.wrapper {
max-width: 1080px;
width: auto;
}
section {
width: calc(100% - 270px);
}
h1,
a:focus,
a:hover {
font-weight: normal;
}
.name {
display: block;
font-weight: normal;
color: inherit;
}
.status {
background-color: rgba(212, 212, 212, 0.5);
border-radius: 1em;
color: #555761;
font-size: 0.85em;
padding: 0.15em 0.75em;
}
.version a,
.status a {
color: inherit;
font-weight: inherit;
}
.good {
background-color: rgba(209, 255, 130, 0.5);
color: #206b00;
}
.warn {
background-color: rgba(255, 243, 148, 0.5);
color: #ad5f00;
}
.critical {
background-color: rgba(255, 140, 130, 0.5);
color: #7a0000;
}
.beta {
color: #ad5f00;
}
.alpha {
color: #7a0000;
}
</style>
<table class="releases sortable">
<thead>
<th>Repository</th>
<th>Default Branch</th>
<th>Rebase</th>
<th>Squash</th>
<th>Commit</th>
<th>Auto</th>
<th>DBoM</th>
</thead>
<tbody>
{% for repo in site.data.merge_types %}
{% unless site.data.exclusions contains repo.name %}
{% assign repo_href = org_href | append: "/" | append: repo.name %}
<tr id="{{ repo.name }}" >
<td data-sort="{{ repo.name }}">
<a href="{{ repo_href }}" class="name">{{ repo.name }}</a>
</td>
<td data-sort="{{ repo.default_branch }}">
{% if repo.default_branch == "main" %}
<span class="status good">{{ repo.default_branch }}</span>
{% elsif repo.default_branch == "gh-pages" %}
<span class="status good">{{ repo.default_branch }}</span>
{% elsif repo.default_branch == "cf-pages" %}
<span class="status good">{{ repo.default_branch }}</span>
{% elsif repo.default_branch == "master" %}
<span class="status warn">{{ repo.default_branch }}</span>
{% else %}
<span class="status critical">{{ repo.default_branch }}</span>
{% endif %}
</td>
<td data-sort="{{ repo.allow_rebase_merge }}">
{% if repo.allow_rebase_merge == true %}
<span class="status good">{{ repo.allow_rebase_merge }}</span>
{% elsif repo.allow_rebase_merge == false %}
<span class="status">{{ repo.allow_rebase_merge }}</span>
{% else %}
<span class="status critical">{{ repo.allow_rebase_merge }}</span>
{% endif %}
</td>
<td data-sort="{{ repo.allow_squash_merge }}">
{% if repo.allow_squash_merge == true %}
<span class="status good">{{ repo.allow_squash_merge }}</span>
{% elsif repo.allow_squash_merge == false %}
<span class="status">{{ repo.allow_squash_merge }}</span>
{% else %}
<span class="status critical">{{ repo.allow_squash_merge }}</span>
{% endif %}
</td>
<td data-sort="{{ repo.allow_merge_commit }}">
{% if repo.allow_merge_commit == true %}
<span class="status good">{{ repo.allow_merge_commit }}</span>
{% elsif repo.allow_merge_commit == false %}
<span class="status">{{ repo.allow_merge_commit }}</span>
{% else %}
<span class="status critical">{{ repo.allow_merge_commit }}</span>
{% endif %}
</td>
<td data-sort="{{ repo.allow_auto_merge }}">
{% if repo.allow_auto_merge == true %}
<span class="status good">{{ repo.allow_auto_merge }}</span>
{% elsif repo.allow_merge_commit == false %}
<span class="status">{{ repo.allow_auto_merge }}</span>
{% else %}
<span class="status critical">{{ repo.allow_auto_merge }}</span>
{% endif %}
</td>
<td data-sort="{{ repo.delete_branch_on_merge }}">
{% if repo.delete_branch_on_merge == true %}
<span class="status good">{{ repo.delete_branch_on_merge }}</span>
{% elsif repo.allow_merge_commit == false %}
<span class="status">{{ repo.delete_branch_on_merge }}</span>
{% else %}
<span class="status critical">{{ repo.delete_branch_on_merge }}</span>
{% endif %}
</td>
</tr>
{% endunless %}
{% endfor %}
</tbody>
</table>
{% assign st = site.time %}
<p><small>Last updated <time datetime="{{ st }}" title="{{ st }}">
{% assign d = st | date: "%-d" %}
{{ st | date: "%B" }}
{% case d %}{% when '1' or '21' or '31' %}{{ d }}st{% when '2' or '22' %}{{ d }}nd{% when '3' or '23' %}{{ d }}rd{% else %}{{ d }}th{% endcase %},
{{ st | date: "%Y at %r %Z" }}
</time>.</small></p>