Skip to content

Commit 82283c4

Browse files
committed
style: fix indentation and update comments
--- 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: passed - 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 9dd534d commit 82283c4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/scripts/create_sub_issue

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ repo="stdlib"
5252
# Get the GitHub authentication token:
5353
github_token="${GITHUB_TOKEN}"
5454
if [ -z "$github_token" ]; then
55-
echo -e "ERROR: GITHUB_TOKEN environment variable is not set."
56-
exit 1
55+
echo -e "ERROR: GITHUB_TOKEN environment variable is not set."
56+
exit 1
5757
fi
5858

5959
# Read and validate the body file:
@@ -65,10 +65,10 @@ issue_body=$(cat "$body_file")
6565

6666
# Process labels into an array if provided:
6767
if [ -n "$labels" ]; then
68-
# Convert comma-separated string to JSON array...
69-
label_array="[$(echo "$labels" | sed 's/[[:space:]]*,[[:space:]]*/","/g' | sed 's/.*/"&"/')]"
68+
# Convert comma-separated string to JSON array...
69+
label_array="[$(echo "$labels" | sed 's/[[:space:]]*,[[:space:]]*/","/g' | sed 's/.*/"&"/')]"
7070
else
71-
label_array="[]"
71+
label_array="[]"
7272
fi
7373

7474
# FUNCTIONS #

.github/workflows/scripts/generate_pr_commit_message

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ set -o pipefail
3838
# Get the pull request number:
3939
pr_number="$1"
4040

41-
# GitHub API base URL
41+
# GitHub API base URL:
4242
GITHUB_API_URL="https://api.github.com"
4343

44-
# Repository owner and name
44+
# Repository owner and name:
4545
REPO_OWNER="stdlib-js"
4646
REPO_NAME="stdlib"
4747

48-
# Exit codes
48+
# Exit codes:
4949
SUCCESS=0
5050
ERROR=1
5151
TRACKING_ISSUE_FOUND=200
@@ -281,7 +281,7 @@ main() {
281281
echo -e "$commit_message"
282282

283283
# Return successful exit code (200 if a tracking issue was found, 0 otherwise):
284-
return $EXIT_CODE
284+
return $EXIT_CODE
285285
}
286286

287287
# Call main with all command-line arguments:

0 commit comments

Comments
 (0)