Skip to content

Commit

Permalink
github: todos: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hedger committed Aug 25, 2023
1 parent f06dcf3 commit 98cdce7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/lint_and_submodule_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ jobs:
git diff --unified=0 --no-color ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -E '^\+' | grep -i -E '(TODO|FIXME|HACK|XXX)' | tee todos.log;
MISSING_TICKETS=$( grep -E '\[FL-[0-9]+\]' todos.log );
if [ -n "$MISSING_TICKETS" ]; then
echo "Error: Missing ticket number in TODO comment" >> $GITHUB_STEP_SUMMARY;
echo "Error: Missing ticket number in TODO comment(s)" >> $GITHUB_STEP_SUMMARY;
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY;
echo "$MISSING_TICKETS" >> $GITHUB_STEP_SUMMARY;
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY;
exit 1;
else
echo "No new TODOs without tickets found" >> $GITHUB_STEP_SUMMARY;
Expand Down

0 comments on commit 98cdce7

Please sign in to comment.