Skip to content

Commit 8eac7d4

Browse files
committed
fix: bug fix + remove unwanted files
1 parent ea72bdd commit 8eac7d4

File tree

4 files changed

+49
-57
lines changed

4 files changed

+49
-57
lines changed

.github/workflows/notify-about-new-pr-via-slack.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

dist/index.js

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
657657
Object.defineProperty(exports, "__esModule", ({ value: true }));
658658
exports.commentContent = void 0;
659659
const input = __importStar(__nccwpck_require__(3611));
660+
const pr_sign_comment_1 = __nccwpck_require__(6718);
660661
function commentContent(signed, committerMap) {
661662
// using a `string` true or false purposely as github action input cannot have a boolean value
662663
if (input.getUseDcoFlag() == 'true') {
@@ -715,7 +716,7 @@ function cla(signed, committerMap) {
715716
let lineOne = (input.getCustomNotSignedPrComment() || `<br/>Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that $you sign our [Contributor License Agreement](${input.getPathToDocument()}) before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.<br/>`).replace('$you', you);
716717
let text = `${lineOne}
717718
- - -
718-
${input.getCustomPrSignComment() || "I have read the CLA Document and I hereby sign the CLA"}
719+
${(0, pr_sign_comment_1.getPrSignComment)()}
719720
- - -
720721
`;
721722
if (committersCount > 1 && committerMap && committerMap.signed && committerMap.notSigned) {
@@ -930,13 +931,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
930931
};
931932
Object.defineProperty(exports, "__esModule", ({ value: true }));
932933
exports.setupClaCheck = void 0;
934+
const core = __importStar(__nccwpck_require__(2186));
935+
const github_1 = __nccwpck_require__(5438);
933936
const checkAllowList_1 = __nccwpck_require__(3661);
934937
const graphql_1 = __importDefault(__nccwpck_require__(5157));
935-
const pullRequestComment_1 = __importDefault(__nccwpck_require__(3326));
936-
const github_1 = __nccwpck_require__(5438);
937938
const persistence_1 = __nccwpck_require__(5802);
939+
const pullRequestComment_1 = __importDefault(__nccwpck_require__(3326));
938940
const pullRerunRunner_1 = __nccwpck_require__(4766);
939-
const core = __importStar(__nccwpck_require__(2186));
940941
function setupClaCheck() {
941942
return __awaiter(this, void 0, void 0, function* () {
942943
let committerMap = getInitialCommittersMap();
@@ -974,7 +975,7 @@ function getCLAFileContentandSHA(committers, committerMap) {
974975
result = yield (0, persistence_1.getFileContent)();
975976
}
976977
catch (error) {
977-
if (error.status === 404) {
978+
if (error.status === "404") {
978979
return createClaFileAndPRComment(committers, committerMap);
979980
}
980981
else {
@@ -1089,6 +1090,45 @@ const lockPullRequestAfterMerge = () => core.getInput('lock-pullrequest-aftermer
10891090
exports.lockPullRequestAfterMerge = lockPullRequestAfterMerge;
10901091

10911092

1093+
/***/ }),
1094+
1095+
/***/ 6718:
1096+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
1097+
1098+
"use strict";
1099+
1100+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1101+
if (k2 === undefined) k2 = k;
1102+
var desc = Object.getOwnPropertyDescriptor(m, k);
1103+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1104+
desc = { enumerable: true, get: function() { return m[k]; } };
1105+
}
1106+
Object.defineProperty(o, k2, desc);
1107+
}) : (function(o, m, k, k2) {
1108+
if (k2 === undefined) k2 = k;
1109+
o[k2] = m[k];
1110+
}));
1111+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
1112+
Object.defineProperty(o, "default", { enumerable: true, value: v });
1113+
}) : function(o, v) {
1114+
o["default"] = v;
1115+
});
1116+
var __importStar = (this && this.__importStar) || function (mod) {
1117+
if (mod && mod.__esModule) return mod;
1118+
var result = {};
1119+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1120+
__setModuleDefault(result, mod);
1121+
return result;
1122+
};
1123+
Object.defineProperty(exports, "__esModule", ({ value: true }));
1124+
exports.getPrSignComment = void 0;
1125+
const input = __importStar(__nccwpck_require__(3611));
1126+
function getPrSignComment() {
1127+
return input.getCustomPrSignComment() || "I have read the CLA Document and I hereby sign the CLA";
1128+
}
1129+
exports.getPrSignComment = getPrSignComment;
1130+
1131+
10921132
/***/ }),
10931133

10941134
/***/ 7351:

src/blockChainWebhook.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/setupClaCheck.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
import * as core from '@actions/core'
2+
import { context } from '@actions/github'
13
import { checkAllowList } from './checkAllowList'
24
import getCommitters from './graphql'
3-
import prCommentSetup from './pullrequest/pullRequestComment'
45
import {
56
ClafileContentAndSha,
67
CommitterMap,
78
CommittersDetails,
89
ReactedCommitterMap
910
} from './interfaces'
10-
import { context } from '@actions/github'
1111
import {
1212
createFile,
1313
getFileContent,
1414
updateFile
1515
} from './persistence/persistence'
16+
import prCommentSetup from './pullrequest/pullRequestComment'
1617
import { reRunLastWorkFlowIfRequired } from './pullRerunRunner'
17-
import * as core from '@actions/core'
1818

1919
export async function setupClaCheck() {
2020
let committerMap = getInitialCommittersMap()
@@ -64,7 +64,7 @@ async function getCLAFileContentandSHA(
6464
try {
6565
result = await getFileContent()
6666
} catch (error) {
67-
if (error.status === 404) {
67+
if (error.status === "404") {
6868
return createClaFileAndPRComment(committers, committerMap)
6969
} else {
7070
throw new Error(

0 commit comments

Comments
 (0)