File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 76
76
info " $ISSUES_MAPPING_FILE exists"
77
77
fi
78
78
79
- [ -f " $DIR /todos-in-code.tsv" ] || fatal " $DIR /todos-in-code.tsv doesn't exists!"
79
+ CODE_MAPPING_FILE=" $1 "
80
+ [ -f " $CODE_MAPPING_FILE " ] || fatal " $CODE_MAPPING_FILE doesn't exists!"
81
+
80
82
[ -n " ${GITHUB_SHA:- } " ] || fatal ' GITHUB_SHA env variable is not set!'
81
83
[ -n " ${GITHUB_REPOSITORY:- } " ] || fatal ' GITHUB_REPOSITORY env variable is not set!'
82
84
@@ -159,7 +161,7 @@ while IFS=$'\t' read -r PUZZLE_ID UNUSED_TICKET TITLE UNUSED_REST; do
159
161
160
162
# These variables are needed for eval-ing ISSUE_BODY_TEMPLATE
161
163
# shellcheck disable=SC2034
162
- IFS=$' \t ' read -r UNUSED_PUZZLE_ID ORIG_ISSUE UNUSED_TITLE PUZZLE_FILE PUZZLE_LINES < <( grep --max-count=1 " ^$PUZZLE_ID " " $DIR /todos-in-code.tsv " )
164
+ IFS=$' \t ' read -r UNUSED_PUZZLE_ID ORIG_ISSUE UNUSED_TITLE PUZZLE_FILE PUZZLE_LINES < <( grep --max-count=1 " ^$PUZZLE_ID " " $CODE_MAPPING_FILE " )
163
165
164
166
# "50-51" => {50, 51}
165
167
# These variables are needed for eval-ing ISSUE_BODY_TEMPLATE
@@ -235,7 +237,7 @@ while IFS=$'\t' read -r PUZZLE_ID UNUSED_TICKET TITLE UNUSED_REST; do
235
237
info " $PUZZLE_ID => #$ISSUE_ID : link with $ISSUE_ID ($ISSUE_STATE )"
236
238
printf ' %s\t%s\t%s\tautomatically\n' " $PUZZLE_ID " " $ISSUE_ID " " $ISSUE_STATE " >> " $ISSUES_MAPPING_FILE "
237
239
fi
238
- done <<< " $(grep -v '^Id' " $1 " )"
240
+ done <<< " $(grep -v '^Id' " $CODE_MAPPING_FILE " )"
239
241
240
242
info ' '
241
243
info ' DONE'
You can’t perform that action at this time.
0 commit comments