Skip to content

Commit 2f35b76

Browse files
committed
ci(check-pr): use literal comparison
1 parent a47c4c8 commit 2f35b76

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/check-pr.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@ jobs:
5858
for label in build chore ci docs feat fix perf refactor test style ; do
5959
if [[ "${label}" == "${type}" ]]; then
6060
echo "Label to add: ${label}"
61-
# shellcheck disable=SC2076
62-
if [[ "${PR_LABELS}" =~ "\"${label}\"" ]] ; then
61+
if [[ "${PR_LABELS}" == *"${label}"* ]] ; then
6362
echo "Label ${label} already present"
6463
else
6564
add_labels+=("${label}")
6665
fi
6766
else
6867
echo "Label to remove: ${label}"
69-
# shellcheck disable=SC2076
70-
if [[ "${PR_LABELS}" =~ "\"${label}\"" ]] ; then
68+
if [[ "${PR_LABELS}" == *"${label}"* ]] ; then
7169
remove_labels+=("${label}")
7270
else
7371
echo "Label ${label} not present"
@@ -78,8 +76,7 @@ jobs:
7876
regexp2='^[a-zA-Z0-9]+\([a-zA-Z0-9\-]*deps\)$'
7977
if [[ "${scoped_type}" =~ ${regexp2} ]] ; then
8078
echo "Label to add: dependencies"
81-
# shellcheck disable=SC2076
82-
if [[ "${PR_LABELS}" =~ "\"dependencies\"" ]] ; then
79+
if [[ "${PR_LABELS}" == *"dependencies"* ]] ; then
8380
echo "Label dependencies already present"
8481
else
8582
add_labels+=('dependencies')
@@ -93,16 +90,14 @@ jobs:
9390
|| "${type}" == 'style' \
9491
|| "${type}" == 'test' ]] ; then
9592
echo "Label to add: no-release-notes"
96-
# shellcheck disable=SC2076
97-
if [[ "${PR_LABELS}" =~ "\"no-release-notes\"" ]] ; then
93+
if [[ "${PR_LABELS}" == *"no-release-notes"* ]] ; then
9894
echo "Label no-release-notes already present"
9995
else
10096
add_labels+=('no-release-notes')
10197
fi
10298
else
10399
echo "Label to remove: no-release-notes"
104-
# shellcheck disable=SC2076
105-
if [[ "${PR_LABELS}" =~ "\"no-release-notes\"" ]] ; then
100+
if [[ "${PR_LABELS}" == *"no-release-notes"* ]] ; then
106101
remove_labels+=('no-release-notes')
107102
else
108103
echo "Label no-release-notes not present"

json/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ARG USER_GECOS=Default
1111

1212
SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
1313

14-
# hadolint ignore=DL3019
1514
RUN apk upgrade --no-cache \
1615
&& apk add --no-cache \
1716
coreutils=9.7-r1 \

0 commit comments

Comments
 (0)