aboutsummaryrefslogtreecommitdiffstats
path: root/src/extract.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/extract.sh')
-rwxr-xr-xsrc/extract.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/extract.sh b/src/extract.sh
index 678104e..3927f38 100755
--- a/src/extract.sh
+++ b/src/extract.sh
@@ -33,16 +33,22 @@
#
# Users can add tags inside issue title and description. Tags are slugs
# and start with @
+#
+# @assigned aforemny
# TODO Add filter by tags
#
# Users can filter issues for tags with the option -t/--tag @tag.
+#
+# @assigned kirchner@posteo.de
# TODO Add command line modes list and show
#
# `anissue list` lists all issues in the current directory
# `anissue show <issue>` shows an issue using it's id or automatically
# assigned identifier
+#
+# @assigned aforemny
# TODO Generate and show hash for each issue
@@ -84,6 +90,10 @@ git ls-files --cached --exclude-standard --other |
created_at=$(git show $first_commit --no-patch --format=%ad)
heading=$(echo "$text" | sed '/^$/Q' | sed 's/.*TODO //')
# TODO body is not extracted in shell scripts
+ #
+ # @assigned aforemny
+ # @assigned kirchner@posteo.de
+ # @scheduled 2023-10-03
body=$(echo "$text" | tail -n +$(($(echo "$heading" | wc -l) + 2)) | \
awk -F '[^ ]' '
NR == 1 {n = length($1)}