File tree 2 files changed +9
-9
lines changed
.github/workflows/scripts
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ repo="stdlib"
52
52
# Get the GitHub authentication token:
53
53
github_token=" ${GITHUB_TOKEN} "
54
54
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
57
57
fi
58
58
59
59
# Read and validate the body file:
@@ -65,10 +65,10 @@ issue_body=$(cat "$body_file")
65
65
66
66
# Process labels into an array if provided:
67
67
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/.*/"&"/' ) ]"
70
70
else
71
- label_array=" []"
71
+ label_array=" []"
72
72
fi
73
73
74
74
# FUNCTIONS #
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ set -o pipefail
38
38
# Get the pull request number:
39
39
pr_number=" $1 "
40
40
41
- # GitHub API base URL
41
+ # GitHub API base URL:
42
42
GITHUB_API_URL=" https://api.github.com"
43
43
44
- # Repository owner and name
44
+ # Repository owner and name:
45
45
REPO_OWNER=" stdlib-js"
46
46
REPO_NAME=" stdlib"
47
47
48
- # Exit codes
48
+ # Exit codes:
49
49
SUCCESS=0
50
50
ERROR=1
51
51
TRACKING_ISSUE_FOUND=200
@@ -281,7 +281,7 @@ main() {
281
281
echo -e " $commit_message "
282
282
283
283
# Return successful exit code (200 if a tracking issue was found, 0 otherwise):
284
- return $EXIT_CODE
284
+ return $EXIT_CODE
285
285
}
286
286
287
287
# Call main with all command-line arguments:
You can’t perform that action at this time.
0 commit comments