Skip to content

Commit

Permalink
Update readyForStable.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Jan 15, 2024
1 parent 992f0de commit ba9c1dd
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions lib/readyForStable.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ async function checkIssues(latest, stable, stats, result) {
for (let i = 0; i < labels.length; i++) {
if (labels[i].name === 'stale') {
console.log(` issue marked as stale, will try to refresh`);
const comment = `This issue seems to be still valis. So it should nozt be flagged stale.\n` +
`Please consider processing the issue`;
`@mcm1957 for evidence`;
try {
addComment(owner, adapter, issueId, comment);
} catch (e) {
console.log(`error adding comment to ${issueId}`);
console.log(e.toString());
}
console.log(` comment added to ${issueId}`);
}
}
} else {
Expand All @@ -87,7 +97,8 @@ async function checkIssues(latest, stable, stats, result) {
const comment = `This issue seems to be outdated.\n\n` +
`This issue suggests to update the stable version of this adapter to ${issue.to} but the current ` +
`stable version is already ${stable[adapter].version}.\n\n` +
`So this issue should be closed.`;
`So this issue should be closed.\n\n` +
`@mcm1957 for evidence`;
try {
addComment(owner, adapter, issueId, comment);
} catch (e) {
Expand All @@ -107,7 +118,8 @@ async function checkIssues(latest, stable, stats, result) {
const comment = `This issue seems to be outdated.\n\n` +
`This issue suggests to update the stable version of this adapter to ${issue.to} but in the meantime ` +
`an update to version ${res[0].latest.version} is suggested.\n\n` +
`So this issue will be closed and replaced by an updated one.`;
`So this issue will be closed and replaced by an updated one.\n\n` +
`@mcm195 for evidence`;
try {
addComment(owner, adapter, issueId, comment);
} catch (e) {
Expand Down Expand Up @@ -287,7 +299,9 @@ function generateIssue(adapter, stableFile) {
body += `Click to [edit](https://github.com/ioBroker/ioBroker.repositories/edit/master/sources-dist-stable.json)\n`;
}
body += '\n\n';
body += 'Note: This is an automatically generated message and not personally authored by bluefox!\n';
body += 'Note: This is an automatically generated message and not personally authored by bluefox!\n'+
body += ' Do not close this issue manually as a new issue will be created if condition for update still exists\n'+
body += ' @mcm1957 for evidence';
console.log(`CREATE ISSUE for ioBroker.${adapter.adapter} [ https://www.github.com/${adapter.owner}/ioBroker.${adapter.adapter} ]:`);
console.log(`${TITLE} from ${adapter.stable.version} to ${adapter.latest.version}\n\n ${body}`);
console.log(``);
Expand Down

0 comments on commit ba9c1dd

Please sign in to comment.