Skip to content

Commit cccad2b

Browse files
stdavissteveoh
authored andcommitted
feat: add git update to ship
Closes #338
1 parent 0221529 commit cccad2b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/forklift/engine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ def ship_data(pallet_arg=None, by_service=False):
200200
"""
201201
log.info("starting forklift")
202202

203+
git_errors = git_update()
204+
203205
start_seconds = perf_counter()
204206

205207
#: look for servers in config
@@ -381,6 +383,7 @@ def ship_data(pallet_arg=None, by_service=False):
381383
"num_success_pallets": len([p for p in pallet_reports if p["success"]]),
382384
"server_reports": server_reports,
383385
"total_time": elapsed_time,
386+
"git_errors": git_errors,
384387
}
385388

386389
_send_report_email(ship_template, status, "Shipping")

src/forklift/templates/ship.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
</p>
3232
<table>
3333
<tbody>
34+
{{#git_errors}}
35+
<tr>
36+
<td colspan="2" class="error">{{.}}</td>
37+
</tr>
38+
{{/git_errors}}
3439
{{#server_reports}}
3540
<tr>
3641
<td colspan="2" class="info">

0 commit comments

Comments
 (0)