diff --git a/README.md b/README.md
index 6c8a0e90..92968923 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ on:
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
permissions:
actions: write
- contents: write
+ contents: write # this can be 'read' if the signatures are in remote repository
pull-requests: write
statuses: write
@@ -144,6 +144,13 @@ This PAT should have repo scope and is only required if you have configured to s
+
+
+
+
+ Mateusz Boś
+
+ |
@@ -178,15 +185,15 @@ This PAT should have repo scope and is only required if you have configured to s
Mikhail
- |
+
+
Peter Schmalfeldt
- |
-
+
@@ -201,6 +208,13 @@ This PAT should have repo scope and is only required if you have configured to s
Or Geva
|
+
+
+
+
+ Robert Pająk
+
+ |
@@ -214,7 +228,8 @@ This PAT should have repo scope and is only required if you have configured to s
Silvio
- |
+
+
@@ -228,8 +243,7 @@ This PAT should have repo scope and is only required if you have configured to s
Charlie Fish
- |
-
+
@@ -237,6 +251,13 @@ This PAT should have repo scope and is only required if you have configured to s
Darrell Warde
|
+
+
+
+
+ Jan Holthuis
+
+ |
@@ -250,7 +271,8 @@ This PAT should have repo scope and is only required if you have configured to s
Rokas Kupstys
- |
+
+
@@ -271,8 +293,7 @@ This PAT should have repo scope and is only required if you have configured to s
Tate Berenbaum
- |
-
+
@@ -293,7 +314,8 @@ This PAT should have repo scope and is only required if you have configured to s
Knanao
- |
+
+
@@ -314,8 +336,7 @@ This PAT should have repo scope and is only required if you have configured to s
Woyaoshunlibiye
- |
-
+
diff --git a/dist/index.js b/dist/index.js
index fbdafe33..54d57014 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -592,10 +592,10 @@ function getComment() {
//TODO: check the below regex
// using a `string` true or false purposely as github action input cannot have a boolean value
if ((0, getInputs_1.getUseDcoFlag)() === 'true') {
- return response.data.find(comment => comment.body.match(/.*DCO Assistant Lite bot.*/));
+ return response.data.find(comment => comment.body.match(/.*DCO Assistant Lite bot.*/m));
}
else if ((0, getInputs_1.getUseDcoFlag)() === 'false') {
- return response.data.find(comment => comment.body.match(/.*CLA Assistant Lite bot.*/));
+ return response.data.find(comment => comment.body.match(/.*CLA Assistant Lite bot.*/m));
}
}
catch (error) {
@@ -670,7 +670,7 @@ exports.commentContent = commentContent;
function dco(signed, committerMap) {
if (signed) {
const line1 = input.getCustomAllSignedPrComment() || `All contributors have signed the DCO ✍️ ✅`;
- const text = `****DCO Assistant Lite bot**** ${line1}`;
+ const text = `${line1} Posted by the ****DCO Assistant Lite bot****.`;
return text;
}
let committersCount = 1;
@@ -679,7 +679,7 @@ function dco(signed, committerMap) {
}
let you = committersCount > 1 ? `you all` : `you`;
let lineOne = (input.getCustomNotSignedPrComment() || ` Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that $you sign our [Developer Certificate of Origin](${input.getPathToDocument()}) before we can accept your contribution. You can sign the DCO by just posting a Pull Request Comment same as the below format. `).replace('$you', you);
- let text = `**DCO Assistant Lite bot:** ${lineOne}
+ let text = `${lineOne}
- - -
${input.getCustomPrSignComment() || "I have read the DCO Document and I hereby sign the DCO"}
- - -
@@ -698,13 +698,13 @@ function dco(signed, committerMap) {
text += `**${committerNames.join(", ")}** ${seem} not to be a GitHub user.`;
text += ' You need a GitHub account to be able to sign the DCO. If you have already a GitHub account, please [add the email address used for this commit to your account](https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user). ';
}
- text += 'You can retrigger this bot by commenting **recheck** in this Pull Request';
+ text += 'You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the ****DCO Assistant Lite bot****.';
return text;
}
function cla(signed, committerMap) {
if (signed) {
const line1 = input.getCustomAllSignedPrComment() || `All contributors have signed the CLA ✍️ ✅`;
- const text = `****CLA Assistant Lite bot**** ${line1}`;
+ const text = `${line1} Posted by the ****CLA Assistant Lite bot****.`;
return text;
}
let committersCount = 1;
@@ -713,7 +713,7 @@ function cla(signed, committerMap) {
}
let you = committersCount > 1 ? `you all` : `you`;
let lineOne = (input.getCustomNotSignedPrComment() || ` 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. `).replace('$you', you);
- let text = `**CLA Assistant Lite bot:** ${lineOne}
+ let text = `${lineOne}
- - -
${input.getCustomPrSignComment() || "I have read the CLA Document and I hereby sign the CLA"}
- - -
@@ -732,7 +732,7 @@ function cla(signed, committerMap) {
text += `**${committerNames.join(", ")}** ${seem} not to be a GitHub user.`;
text += ' You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please [add the email address used for this commit to your account](https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user). ';
}
- text += 'You can retrigger this bot by commenting **recheck** in this Pull Request';
+ text += 'You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the **CLA Assistant Lite bot**.';
return text;
}
diff --git a/src/pullrequest/pullRequestComment.ts b/src/pullrequest/pullRequestComment.ts
index 55e7cc57..ac8b34bd 100644
--- a/src/pullrequest/pullRequestComment.ts
+++ b/src/pullrequest/pullRequestComment.ts
@@ -62,9 +62,9 @@ async function getComment() {
//TODO: check the below regex
// using a `string` true or false purposely as github action input cannot have a boolean value
if (getUseDcoFlag() === 'true') {
- return response.data.find(comment => comment.body.match(/.*DCO Assistant Lite bot.*/))
+ return response.data.find(comment => comment.body.match(/.*DCO Assistant Lite bot.*/m))
} else if (getUseDcoFlag() === 'false') {
- return response.data.find(comment => comment.body.match(/.*CLA Assistant Lite bot.*/))
+ return response.data.find(comment => comment.body.match(/.*CLA Assistant Lite bot.*/m))
}
} catch (error) {
throw new Error(`Error occured when getting all the comments of the pull request: ${error.message}`)
diff --git a/src/pullrequest/pullRequestCommentContent.ts b/src/pullrequest/pullRequestCommentContent.ts
index 954ce9ce..75998d2c 100644
--- a/src/pullrequest/pullRequestCommentContent.ts
+++ b/src/pullrequest/pullRequestCommentContent.ts
@@ -17,7 +17,7 @@ function dco(signed: boolean, committerMap: CommitterMap): string {
if (signed) {
const line1 = input.getCustomAllSignedPrComment() || `All contributors have signed the DCO ✍️ ✅`
- const text = `****DCO Assistant Lite bot**** ${line1}`
+ const text = `${line1} Posted by the ****DCO Assistant Lite bot****.`
return text
}
let committersCount = 1
@@ -29,7 +29,7 @@ function dco(signed: boolean, committerMap: CommitterMap): string {
let you = committersCount > 1 ? `you all` : `you`
let lineOne = (input.getCustomNotSignedPrComment() || ` Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that $you sign our [Developer Certificate of Origin](${input.getPathToDocument()}) before we can accept your contribution. You can sign the DCO by just posting a Pull Request Comment same as the below format. `).replace('$you', you)
- let text = `**DCO Assistant Lite bot:** ${lineOne}
+ let text = `${lineOne}
- - -
${input.getCustomPrSignComment() || "I have read the DCO Document and I hereby sign the DCO"}
- - -
@@ -51,7 +51,7 @@ function dco(signed: boolean, committerMap: CommitterMap): string {
text += ' You need a GitHub account to be able to sign the DCO. If you have already a GitHub account, please [add the email address used for this commit to your account](https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user). '
}
- text += 'You can retrigger this bot by commenting **recheck** in this Pull Request'
+ text += 'You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the ****DCO Assistant Lite bot****.'
return text
}
@@ -59,7 +59,7 @@ function cla(signed: boolean, committerMap: CommitterMap): string {
if (signed) {
const line1 = input.getCustomAllSignedPrComment() || `All contributors have signed the CLA ✍️ ✅`
- const text = `****CLA Assistant Lite bot**** ${line1}`
+ const text = `${line1} Posted by the ****CLA Assistant Lite bot****.`
return text
}
let committersCount = 1
@@ -71,7 +71,7 @@ function cla(signed: boolean, committerMap: CommitterMap): string {
let you = committersCount > 1 ? `you all` : `you`
let lineOne = (input.getCustomNotSignedPrComment() || ` 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. `).replace('$you', you)
- let text = `**CLA Assistant Lite bot:** ${lineOne}
+ let text = `${lineOne}
- - -
${getPrSignComment()}
- - -
@@ -93,6 +93,6 @@ function cla(signed: boolean, committerMap: CommitterMap): string {
text += ' You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please [add the email address used for this commit to your account](https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user). '
}
- text += 'You can retrigger this bot by commenting **recheck** in this Pull Request'
+ text += 'You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the **CLA Assistant Lite bot**.'
return text
}
|