Compare commits
No commits in common. "930115813cae5d45a34cb9eb56c62472d0ce086a" and "24a99d29577d1a23451dd666657c23ea35289503" have entirely different histories.
930115813c
...
24a99d2957
3 changed files with 0 additions and 34 deletions
|
|
@ -1,4 +0,0 @@
|
||||||
This directory contains small helper scripts and tools that are peripheral
|
|
||||||
or tangent to the main entomologist tool.
|
|
||||||
|
|
||||||
We make no guarantees about functionality or correctness.
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
START=$(date --iso-8601=seconds --date='last monday - 1 week')
|
|
||||||
END=$(date --iso-8601=seconds --date='last monday')
|
|
||||||
|
|
||||||
#echo START=${START}
|
|
||||||
#echo END=${END}
|
|
||||||
|
|
||||||
ent list \
|
|
||||||
state=done \
|
|
||||||
done-time="${START}..${END}"
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# This script finds all issues with state=Done which do not have a
|
|
||||||
# `done_time`.
|
|
||||||
#
|
|
||||||
# It sets each issue's `done_time` to the most recent time that the
|
|
||||||
# `state` was updated from the git log.
|
|
||||||
#
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
for ISSUE_ID in $(ent list state=done done-time=9999-01-01T00:00:00-06:00.. | grep ' ' | cut -f 1 -d ' '); do
|
|
||||||
echo ${ISSUE_ID}
|
|
||||||
UTIME=$(PAGER='' git log -n1 --pretty=format:%at%n entomologist-data -- ${ISSUE_ID}/state)
|
|
||||||
echo ${UTIME}
|
|
||||||
DATETIME=$(date --rfc-3339=seconds --date="@${UTIME}")
|
|
||||||
echo ${DATETIME}
|
|
||||||
ent done-time ${ISSUE_ID} "${DATETIME}"
|
|
||||||
done
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue