Skip to content

Commit 395a36e

Browse files
authored
chore: fix message suffix and PR age check condition
Signed-off-by: MontyPokemon <[email protected]>
1 parent c25a049 commit 395a36e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/linked_issue_enforce.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const isAuthorAssigned = (issue, login) => {
1717

1818
const baseMessage = `Hi there! I'm the LinkedIssueBot.\nThis pull request has been automatically closed due to the following reason(s):
1919
`;
20-
const messageSuffix = `Please read - [Creating Issues](../docs/sdk_developers/creating_issues.md) - [How To Link Issues](../docs/sdk_developers/how_to_link_issues.md)\n\nThank you
20+
const messageSuffix = `Please read - [Creating Issues](docs/sdk_developers/creating_issues.md) - [How To Link Issues](docs/sdk_developers/how_to_link_issues.md)\n\nThank you,
2121
From Python SDK team`
2222

2323
const messages = {
@@ -105,7 +105,7 @@ module.exports = async ({ github, context }) => {
105105

106106
for (const pr of prs) {
107107
const days = getDaysOpen(pr);
108-
if (days <= daysBeforeClose)
108+
if (days < daysBeforeClose)
109109
{
110110
console.log(`PR #${pr.number} link: ${pr.html_url} is only ${days} days old. Skipping.`);
111111
continue;

0 commit comments

Comments
 (0)