Skip to content

Commit f094b77

Browse files
authored
fix: avoid issue with case sensitivity of repo names (#1179)
* fix: avoid issue with case sensitivity in condition * chore: upgrade jest to v28
1 parent af7c021 commit f094b77

File tree

5 files changed

+3998
-1771
lines changed

5 files changed

+3998
-1771
lines changed

__test__/integration-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [[ "$(docker images -q $IMAGE 2> /dev/null)" == "" || $ARG1 == "build" ]]; th
1010
cat > Dockerfile << EOF
1111
FROM node:12-alpine
1212
RUN apk --no-cache add git git-daemon
13-
RUN npm install jest --global
13+
RUN npm install jest jest-environment-jsdom --global
1414
WORKDIR /cpr
1515
COPY __test__/entrypoint.sh /entrypoint.sh
1616
ENTRYPOINT ["/entrypoint.sh"]

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ class GitHubHelper {
968968
}
969969
catch (e) {
970970
if (e.message &&
971-
e.message.includes(`A pull request already exists for ${headBranch}`)) {
971+
e.message.includes(`A pull request already exists for`)) {
972972
core.info(`A pull request already exists for ${headBranch}`);
973973
}
974974
else {

0 commit comments

Comments
 (0)