shipit-engine 0.44.2 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/shipit.css.erb +2081 -0
  3. data/app/jobs/shipit/github_sync_job.rb +3 -0
  4. data/app/views/layouts/merge_status.html.erb +0 -1
  5. data/lib/shipit/engine.rb +0 -1
  6. data/lib/shipit/version.rb +1 -1
  7. data/lib/shipit.rb +0 -1
  8. data/test/dummy/config/application.rb +1 -1
  9. data/test/dummy/db/schema.rb +149 -150
  10. data/test/jobs/github_sync_job_test.rb +8 -0
  11. metadata +7 -40
  12. data/app/assets/stylesheets/_base/_banner.scss +0 -74
  13. data/app/assets/stylesheets/_base/_base.scss +0 -249
  14. data/app/assets/stylesheets/_base/_buttons.scss +0 -62
  15. data/app/assets/stylesheets/_base/_colors.scss +0 -19
  16. data/app/assets/stylesheets/_base/_forms.scss +0 -48
  17. data/app/assets/stylesheets/_base/_icons.scss +0 -26
  18. data/app/assets/stylesheets/_base/_media-queries.scss +0 -17
  19. data/app/assets/stylesheets/_base/_spacing.scss +0 -21
  20. data/app/assets/stylesheets/_base/_status-items.scss +0 -166
  21. data/app/assets/stylesheets/_base/_utility.scss +0 -15
  22. data/app/assets/stylesheets/_pages/_commits.scss +0 -354
  23. data/app/assets/stylesheets/_pages/_deploy.scss +0 -282
  24. data/app/assets/stylesheets/_pages/_repositories.scss +0 -148
  25. data/app/assets/stylesheets/_pages/_settings.scss +0 -24
  26. data/app/assets/stylesheets/_pages/_stacks.scss +0 -255
  27. data/app/assets/stylesheets/_structure/_layout.scss +0 -70
  28. data/app/assets/stylesheets/_structure/_main.scss +0 -154
  29. data/app/assets/stylesheets/_structure/_navigation.scss +0 -89
  30. data/app/assets/stylesheets/merge_status.scss +0 -0
  31. data/app/assets/stylesheets/shipit.scss +0 -21
@@ -1,354 +0,0 @@
1
- // =============================================================================
2
- // COMMIT LIST
3
- // =============================================================================
4
-
5
- .commit-list, .task-list, .pr-list {
6
- list-style-type: none;
7
- margin: 0; padding: 0;
8
- }
9
-
10
- .commit-list-actions {
11
- float: right;
12
- }
13
-
14
- .commit, .task, .pr {
15
- padding: .75rem 0;
16
- display: flex;
17
- flex-direction: column;
18
-
19
- @include media(desktop) {
20
- flex-direction: row;
21
- align-items: center;
22
- }
23
-
24
- & + & {
25
- border-top: 1px solid #e5e5e5;
26
- }
27
- }
28
-
29
-
30
- // COMMIT AUTHOR
31
- // -----------------------------------------------------------------------------
32
-
33
- .commit-author {
34
- display: flex;
35
- flex-shrink: 0;
36
- align-items: center;
37
- width: 10em;
38
-
39
- @include media(tablet-down) {
40
- margin-bottom: 1rem;
41
- }
42
-
43
- @include media(desktop) {
44
- margin-right: 1rem;
45
- }
46
- }
47
-
48
- .commit-author__avatar {
49
- width: 40px;
50
- height: 40px;
51
- border-radius: $border-radius;
52
- margin-right: 0.5rem;
53
- }
54
-
55
- .commit-author__name {
56
- font-size: 0.8em;
57
- }
58
-
59
- .commit-author__name__real-name {
60
- font-weight: 500;
61
- color: #555;
62
- display: block;
63
- }
64
-
65
- .commit-author__name__username {
66
- color: $grey;
67
- }
68
-
69
-
70
- // COMMIT DETAILS
71
- // -----------------------------------------------------------------------------
72
-
73
- .commit-details, .pr-details {
74
- flex-grow: 1;
75
-
76
- @include media(tablet-down) {
77
- margin-bottom: 1rem;
78
- order: -1;
79
- }
80
-
81
- @include truncate;
82
- }
83
-
84
- .commit-title {
85
- font-size: 1em;
86
- display: block;
87
-
88
- @include media(desktop) {
89
- @include truncate;
90
- }
91
- }
92
-
93
- .commit-title, .pr-title {
94
- a {
95
- color: #333;
96
- }
97
- }
98
-
99
- .pr-details .pr-number .number {
100
- color: $blue;
101
- }
102
-
103
- .commit-lock {
104
- display: inline-block;
105
- .icon {
106
- background-color: #ddd;
107
- }
108
-
109
- &:hover .icon {
110
- background-color: darken(#ddd, 20%);
111
- }
112
-
113
- .action-unlock-commit {
114
- display: none;
115
- }
116
- }
117
-
118
- .commit.locked .commit-lock {
119
- .icon {
120
- background-color: $bright-red;
121
- }
122
-
123
- &:hover .icon {
124
- background-color: darken($bright-red, 20%);
125
- }
126
-
127
- .action-lock-commit {
128
- display: none;
129
- }
130
-
131
- .action-unlock-commit {
132
- display: inline-block;
133
- }
134
- }
135
-
136
- .commit-meta, .pr-meta {
137
- font-size: 0.8em;
138
- color: $grey;
139
- margin: 0;
140
-
141
- .warning {
142
- color: $orange;
143
- }
144
- }
145
-
146
- .utc-timecode {
147
- color: #bbb;
148
- }
149
-
150
- .code-additions {
151
- color: $green;
152
- }
153
-
154
- .code-deletions {
155
- color: $red;
156
- }
157
-
158
-
159
- // COMMIT ACTIONS
160
- // -----------------------------------------------------------------------------
161
-
162
- .commit-actions {
163
- flex-shrink: 0;
164
-
165
- @include media(desktop) {
166
- margin-left: 1rem;
167
- min-width: 12rem;
168
-
169
- .btn {
170
- float: right;
171
- }
172
- }
173
- }
174
-
175
-
176
- // STATUS
177
- // -----------------------------------------------------------------------------
178
-
179
- .status-group {
180
- position: relative; // Required to position the status-items div correctly
181
- .status-item.ignored {
182
- opacity: .5;
183
- }
184
- }
185
-
186
- .status {
187
- flex-shrink: 0;
188
-
189
- @include media(tablet-down) {
190
- margin-bottom: 1rem;
191
- order: -2;
192
- }
193
-
194
- @include media(desktop) {
195
- margin-right: 0.75rem;
196
- }
197
- }
198
-
199
- .status {
200
- display: inline-block;
201
- border: 2px solid #ccc;
202
- border-radius: 50%;
203
- width: 2.25rem;
204
- height: 2.25rem;
205
-
206
- .status__icon {
207
- display: block;
208
- width: 100%;
209
- height: 100%;
210
- background: asset-data-url("unknown.svg") center center no-repeat;
211
- }
212
- }
213
-
214
- .status--pending,
215
- [data-deploy-status='pending'] {
216
- .status__icon {
217
- background-image: asset-data-url("pending.gif");
218
- background-size: 21px 5px;
219
- }
220
- }
221
-
222
- .status--running,
223
- [data-deploy-status='running'] {
224
- border-color: $blue;
225
-
226
- .status__icon {
227
- background-image: asset-data-url("deploying.svg");
228
- animation: rotate 2s linear infinite;
229
- }
230
- }
231
-
232
-
233
- .status--aborting,
234
- [data-deploy-status='aborting'] {
235
- border-color: $orange;
236
-
237
- .status__icon {
238
- background-image: asset-data-url("aborting.svg");
239
- animation: rotate 2s linear infinite;
240
- }
241
- }
242
-
243
- .status--aborted,
244
- [data-deploy-status='aborted'] {
245
- border-color: $orange;
246
-
247
- .status__icon {
248
- background-image: asset-data-url("aborted.svg");
249
- }
250
- }
251
-
252
- .status--flapping,
253
- [data-deploy-status='flapping'] {
254
- border-color: $orange;
255
-
256
- .status__icon {
257
- background-image: asset-data-url("flapping.svg");
258
- }
259
- }
260
-
261
- .status--validating,
262
- [data-deploy-status='validating'] {
263
- border-color: $green;
264
-
265
- .status__icon {
266
- background-image: asset-data-url("validating.svg");
267
- }
268
- }
269
-
270
- .status--faulty,
271
- [data-deploy-status='faulty'] {
272
- border-color: $yellow;
273
-
274
- .status__icon {
275
- background-image: asset-data-url("faulty.svg");
276
- }
277
- }
278
-
279
- .status--success,
280
- [data-deploy-status='success'] {
281
- border-color: $green;
282
-
283
- .status__icon {
284
- background-image: asset-data-url("success.svg");
285
- }
286
- }
287
-
288
- .status--failure,
289
- .status--failed,
290
- [data-deploy-status='failure'],
291
- [data-deploy-status='failed'] {
292
- border-color: $bright-red;
293
-
294
- .status__icon {
295
- background-image: asset-data-url("failure.svg");
296
- }
297
- }
298
-
299
- .status--error,
300
- [data-deploy-status='error'] {
301
- border-color: #333;
302
-
303
- .status__icon {
304
- background-image: asset-data-url("error.svg");
305
- }
306
- }
307
-
308
- .status--timedout,
309
- [data-deploy-status='timedout'] {
310
- border-color: #333;
311
-
312
- .status__icon {
313
- background-image: asset-data-url("timedout.svg");
314
- background-position: top 35% left 50%;
315
- background-size: 55%;
316
- }
317
- }
318
-
319
-
320
- // =============================================================================
321
- // COMMIT SUMMARY
322
- // =============================================================================
323
-
324
- .commit-summary-list {
325
- list-style-type: none;
326
- margin: 1.5rem 0 0;
327
- padding: 0;
328
- }
329
-
330
- .commit-summary {
331
- display: flex;
332
- margin-bottom: .5em;
333
- }
334
-
335
- .commit-summary__avatar {
336
- margin-right: .5rem;
337
- }
338
-
339
- .commit-summary__avatar img {
340
- border-radius: 4px;
341
- }
342
-
343
- .commit-summary__title {
344
- flex-grow: 1;
345
- }
346
-
347
- .commit-summary__title a {
348
- color: #555;
349
- }
350
-
351
- .commit-summary__sha {
352
- font-size: 0.875rem;
353
- color: $grey;
354
- }
@@ -1,282 +0,0 @@
1
- .deploy-checklist {
2
- list-style-type: none;
3
- padding: 0;
4
- margin-top: 1.5rem;
5
- }
6
-
7
- .deploy-checklist__item {
8
- margin-bottom: 1rem;
9
- display: flex;
10
- }
11
-
12
- .variables-header {
13
- margin: 1rem 0;
14
- padding-top: 1rem;
15
- }
16
-
17
- .variables-fields {
18
- input, select {
19
- display: inline-block;
20
- width: inherit;
21
- margin-right: 1rem;
22
- }
23
- }
24
-
25
- .deploy-checklist__item__label {
26
-
27
- }
28
-
29
- .deploy-checklist__item__checkbox {
30
- margin-right: 1rem;
31
- flex-shrink: 0;
32
- }
33
-
34
- .action-button {
35
- margin: 0 0.5rem;
36
-
37
- display: none;
38
- &[data-status="running"],
39
- &[data-status="aborting"],
40
- &[data-status="pending"] {
41
- display: inline-block;
42
- }
43
-
44
- .caption--pending {
45
- display: none;
46
- }
47
-
48
- &.pending {
49
- .deploy-action {
50
- cursor: default;
51
- }
52
- .caption--ready {
53
- display: none;
54
- }
55
- .caption--pending {
56
- display: inline;
57
- }
58
- }
59
- }
60
-
61
- .task-output-container.task-output-container-main-page {
62
- height: calc(100vh - 9rem - 4rem - 1px); // .header and .deploy-banner. -1px is to floor the result
63
- }
64
-
65
- .output-line {
66
- height: 1.5rem;
67
- }
68
-
69
- .deploy-banner {
70
- min-height: 4rem;
71
- height: auto;
72
- background-color: #f0f4f7;
73
- display: flex;
74
- justify-content: center;
75
- align-items: center;
76
- position: relative;
77
- flex-wrap: wrap;
78
- overflow-x: hidden;
79
-
80
- .deploy-banner-section {
81
- display: inline-block;
82
- padding: .75rem 1.5rem;
83
- }
84
-
85
- .stack-link {
86
- display: none;
87
- }
88
-
89
- .action-buttons {
90
- flex: none;
91
- }
92
-
93
- .deploy-banner-status {
94
- height: 2px;
95
- position: absolute;
96
- bottom: 0;
97
- left: 0;
98
- }
99
-
100
- &[data-status="failure"],
101
- &[data-status="error"],
102
- &[data-status="timedout"] {
103
- .deploy-banner-status {
104
- background-color: $bright-red;
105
- width: 100%;
106
- }
107
- }
108
-
109
- &[data-status="aborted"],
110
- &[data-status="flapping"] {
111
- .deploy-banner-status {
112
- background-color: $orange;
113
- width: 100%;
114
- }
115
- }
116
-
117
- &[data-status="success"] .deploy-banner-status {
118
- background-color: $green;
119
- width: 100%;
120
- }
121
-
122
- &[data-status="pending"] .deploy-banner-status,
123
- &[data-status="running"] .deploy-banner-status {
124
- background-color: $blue;
125
- width: 0%;
126
- z-index: 9999;
127
- -webkit-animation: loading-slide 1.2s linear infinite;
128
- }
129
-
130
- &[data-status="aborting"] .deploy-banner-status {
131
- background-color: $orange;
132
- width: 0%;
133
- z-index: 9999;
134
- -webkit-animation: loading-slide 1.2s linear infinite;
135
- }
136
-
137
- .deploy-status {
138
- color: #8f9498;
139
- }
140
- .short-sha {
141
- background: #e6eaed;
142
- font-family: Menlo, monospace;
143
- color: #9cacbb;
144
- border-radius: 4px;
145
- font-size: .875rem;
146
- padding: .25em .45em;
147
- }
148
-
149
- .short-sha-no-bg {
150
- font-family: Menlo, monospace;
151
- border-radius: 4px;
152
- font-size: .875rem;
153
- }
154
- }
155
-
156
- .search-bar {
157
- background-color: #f0f4f7;
158
- border: 1px solid #f0f4f7;
159
- position: absolute;
160
- right: 0px;
161
- padding: .125rem;
162
- border-bottom-left-radius: .25rem;
163
-
164
- input[type="search"] {
165
- width: 300px;
166
- }
167
- }
168
-
169
- @include keyframes(loading-slide) {
170
- 0% { width: 0%; left: 0%; }
171
- 30% { left: 0%; }
172
- 100% { width: 50%; left: 100%; }
173
- }
174
-
175
- .code-preview {
176
- margin: 1.5rem 0;
177
- }
178
-
179
- .sidebar.enabled + .deploy-main {
180
- margin-left: 300px;
181
- }
182
-
183
- .sidebar {
184
- background-color: $slate;
185
- color: white;
186
- overflow: hidden;
187
- height: calc(100vh - 9rem - 1px); // .header. -1px is to floor the result
188
- position: absolute;
189
- width: 0px;
190
- &.enabled {
191
- width: 300px;
192
- }
193
- }
194
-
195
- .sidebar-plugins {
196
- height: 100%;
197
- width: 100%;
198
- overflow-y: auto;
199
- overflow-x: hidden;
200
- }
201
-
202
- .commit-checks {
203
- border: .25rem solid $terminal-black;
204
- &[data-status="success"] {
205
- border-color: $green;
206
- }
207
-
208
- &[data-status="failed"],
209
- &[data-status="failure"],
210
- &[data-status="error"],
211
- &[data-status="timedout"] {
212
- border-color: $bright-red;
213
- }
214
-
215
- &[data-status="pending"],
216
- &[data-status="running"] {
217
- border-color: $dark-yellow;
218
- }
219
- }
220
-
221
- .monitoring-panel {
222
- display: inline-block;
223
- iframe {
224
- border: none;
225
- }
226
- }
227
-
228
- .ignored-safeties {
229
- color: $orange;
230
- }
231
-
232
- .deploy-actions {
233
- flex-shrink: 0;
234
-
235
- @include media(desktop) {
236
- margin-left: 1rem;
237
- min-width: 12rem;
238
-
239
- .btn {
240
- float: right;
241
- }
242
- }
243
- }
244
-
245
- .release-validation {
246
- display: inline-block;
247
- .icon {
248
- background-color: #ddd;
249
- }
250
-
251
- &:hover .icon {
252
- background-color: darken(#ddd, 20%);
253
- }
254
- }
255
-
256
- .deploy[data-release-status="success"] .release-validation .action-validate-release,
257
- .deploy[data-release-status="failure"] .release-validation .action-reject-release {
258
- &:before, &:after {
259
- display: none; // Hide tooltips
260
- }
261
- .icon {
262
- background-color: #ddd;
263
- }
264
- }
265
-
266
- .deploy .commit-lock {
267
- .icon {
268
- background-color: $bright-red;
269
- }
270
-
271
- &:hover .icon {
272
- background-color: darken($bright-red, 20%);
273
- }
274
-
275
- .action-lock-commit {
276
- display: none;
277
- }
278
-
279
- .action-unlock-commit {
280
- display: inline-block;
281
- }
282
- }