File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,15 @@ while read -r line ; do
6565 for filter in " ${! filters[@]} " ; do
6666 passes " $pr " " $filter " " $updated_at "
6767 rc=" $? "
68- if [ " $rc " -ne 0 ] ; then
69- if [ " $rc " -eq 1 ] ; then
70- # shellcheck disable=SC2016
71- >&2 printf ' Not marking #%s as read: %s (%s) because it does not satisfy filter `%s`\n' " $id " " $title " " $pr " " $filter "
72- else
73- >&2 printf ' Not marking #%s as read: %s (%s) because of API error\n' " $id " " $title " " $pr "
74- fi
68+ if [ " $rc " -eq 0 ] ; then
69+ >&2 printf ' Marking thread #%s as read: %s (%s)\n' " $id " " $title " " $pr "
70+ github.mark_as_read " $id "
7571 continue 2
72+ elif [ " $rc " -eq 1 ] ; then
73+ # shellcheck disable=SC2016
74+ >&2 printf ' Not marking #%s as read: %s (%s) because it does not satisfy filter `%s`\n' " $id " " $title " " $pr " " $filter "
75+ else
76+ >&2 printf ' Not marking #%s as read: %s (%s) because of API error\n' " $id " " $title " " $pr "
7677 fi
7778 done
78-
79- >&2 printf ' Marking thread #%s as read: %s (%s)\n' " $id " " $title " " $pr "
80- github.mark_as_read " $id "
8179done
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ Description=Github mark notifications read service
55Type =simple
66Restart =on-failure
77RestartSec =300
8- ExecStart =/usr/bin/env github.mark_as_read.daemon '.user.login == "renovate[bot]"' ' .state == "closed"'
8+ ExecStart =/usr/bin/env github.mark_as_read.daemon '.user.login == "renovate[bot]" and .state == "closed"' '.title == ":arrow_up: deps: Upgrade codecov/codecov-action action to v4 "'
You can’t perform that action at this time.
0 commit comments