Skip to content

Commit 1d0c979

Browse files
committed
2022.05.18:
* fixed: bash/github/accum-stats.sh: `by_year` file rewrite on empty changes * changed: bash/github/accum-stats.sh: made `uniques` counter goes first in all messages
1 parent afe34c2 commit 1d0c979

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

bash/github/accum-stats.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jq_fix_null \
5353
uniques:0 \
5454
stats_length:0
5555

56-
gh_print_notice_and_write_to_changelog_text_bullet_ln "last 14d: all unq: $count $uniques"
56+
gh_print_notice_and_write_to_changelog_text_bullet_ln "last 14d: unq all: $uniques $count"
5757

5858
IFS=$'\n' read -r -d '' count_outdated_prev uniques_outdated_prev count_prev uniques_prev <<< "$(jq -c -r ".count_outdated,.uniques_outdated,.count,.uniques" $stats_accum_json)"
5959

@@ -66,7 +66,7 @@ jq_fix_null \
6666
count_prev:0 \
6767
uniques_prev:0
6868

69-
gh_print_notice_and_write_to_changelog_text_bullet_ln "prev accum: outdated-all outdated-unq / all unq: $count_outdated_prev $uniques_outdated_prev / $count_prev $uniques_prev"
69+
gh_print_notice_and_write_to_changelog_text_bullet_ln "prev accum: outdated-unq outdated-all / unq all: $uniques_outdated_prev $count_outdated_prev / $uniques_prev $count_prev"
7070

7171
(( ! count && ! uniques && ! stats_length )) && {
7272
gh_enable_print_buffering
@@ -289,7 +289,7 @@ for i in $(jq ".$stat_list_key|keys|.[]" $stats_json); do
289289
(( uniques_inc += uniques_inc_saved ))
290290
(( uniques_dec += uniques_dec_saved ))
291291
292-
if (( count_inc || uniques_inc || count_dec || uniques_dec || \
292+
if (( count != count_saved || uniques != uniques_saved || \
293293
count_min != count_min_saved || count_max != count_max_saved || \
294294
uniques_min != uniques_min_saved || uniques_max != uniques_max_saved )); then
295295
stats_changed_data_timestamps[${#stats_changed_data_timestamps[@]}]="$timestamp"
@@ -344,7 +344,7 @@ done
344344
(( count_next += count_outdated_next ))
345345
(( uniques_next += uniques_outdated_next ))
346346
347-
gh_print_notice_and_write_to_changelog_text_bullet_ln "next accum: outdated-all outdated-unq / all unq: $count_outdated_next $uniques_outdated_next / $count_next $uniques_next"
347+
gh_print_notice_and_write_to_changelog_text_bullet_ln "next accum: outdated-unq outdated-all / unq all: $uniques_outdated_next $count_outdated_next / $uniques_next $count_next"
348348
349349
gh_print_notice_ln "prev exec diff: unq all: +$stats_prev_exec_uniques_inc +$stats_prev_exec_count_inc -$stats_prev_exec_uniques_dec -$stats_prev_exec_count_dec"
350350

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2022.05.18:
2+
* fixed: bash/github/accum-stats.sh: `by_year` file rewrite on empty changes
3+
* changed: bash/github/accum-stats.sh: made `uniques` counter goes first in all messages
4+
15
2022.05.17:
26
* fixed: bash/github/accum-stats.sh: count/uniques minimum update fix
37
* new: bash/github/accum-stats.sh: added `STATS_CHANGED_DATES` return variable to indicate the list of changed dates at the current date

userlog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
33
> :warning: to find all changes use [changelog.txt](https://github.com/andry81-devops/gh-workflow/blob/master/changelog.txt) file in a directory
44
5+
## 2022.05.18:
6+
* fixed: bash/github/accum-stats.sh: `by_year` file rewrite on empty changes
7+
* changed: bash/github/accum-stats.sh: made `uniques` counter goes first in all messages
8+
59
## 2022.05.17:
610
* fixed: bash/github/accum-stats.sh: count/uniques minimum update fix
711
* new: bash/github/accum-stats.sh: added `STATS_CHANGED_DATES` return variable to indicate the list of changed dates at the current date

0 commit comments

Comments
 (0)