Skip to content

Commit 33b72c5

Browse files
committed
build: strip ANSI codes and label as good first issue
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 737ff24 commit 33b72c5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/lint_random_files.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ jobs:
209209
env:
210210
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
211211
run: |
212+
strip_ansi() {
213+
sed -r 's/\x1B\[[0-9;]*[mK]//g'
214+
}
215+
212216
BODY_FILE="$GITHUB_WORKSPACE/lint_issue_body.md"
213217
cat << EOF > "$BODY_FILE"
214218
## EditorConfig Linting Failures
@@ -224,14 +228,15 @@ jobs:
224228
### Error Details
225229
226230
\`\`\`
227-
$(cat lint_editorconfig_errors.txt)
231+
$(cat lint_editorconfig_errors.txt | strip_ansi)
228232
\`\`\`
229233
EOF
230234
231235
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
232236
'Fix EditorConfig lint errors' \
233237
"$BODY_FILE" \
234-
"5156"
238+
"5156" \
239+
"Good First Issue"
235240
236241
rm "$BODY_FILE"
237242

0 commit comments

Comments
 (0)