Update issues

Start check and update issues

by Lissandro Dittmar

HTML

<div id="banner-message">
  <p>Create issue for all repos</p>
  <button>Start creation</button>
</div>
<div style="background-color: white;">
  <ol id="listeSuccess">

  </ol>
  <ol id="liste">

  </ol>
  <span id="result"></span>
</div>

CSS

i {
  color: #669FAB;
}

body {
  background: #20262E;
  padding: 20px;
  font-family: Helvetica;
}

#banner-message {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  font-size: 25px;
  text-align: center;
  transition: all 0.2s;
  margin: 0 auto;
  width: 300px;
}

button {
  background: #0084ff;
  border: none;
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 15px;
  color: #fff;
}

#banner-message.alt {
  background: #0084ff;
  color: #fff;
  margin-top: 40px;
  width: 200px;
}

#banner-message.alt button {
  background: #fff;
  color: #000;
}

JavaScript

const githubToken = "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"; //https://github.com/settings/tokens
const test = false;
const useTestAdapter = false;
const testAdapter = "ioBrokerChecker/testData";
const done = 0;

let issueTitle = "Compatibility check to js-controller 4.0";

const issueBody = "Dear Adapter developer,\r\n\r\nwith js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.\r\n\r\nIf something is not correct this is logged as 'warning' or 'info' log.\r\n\r\nPlease also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!\r\n\r\nPlease spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.\r\n\r\nFor questions please refer to ioBroker/ioBroker.js-controller#1749\r\n\r\nPlease close the issue after you checked it.\r\n\r\nThank you very much for your support to get the best experience for the growing numbers of ioBroker users!";

let issuesCreated = [];

let issuesListFiltered = [];

const start = async function() {
  adapterList = await getAdapterList();
  if (adapterList && adapterList.alreadydone.length > 769) {
    $('#listeSuccess').append("<li style='color: blue;'>Done last time: <span id='alreadydone'></span></li>");
    $('#listeSuccess').append("<li style='color: blue;'>Total Repos: <span id='totalrepos'></span></li>");
    $('#listeSuccess').append("<li style='color: blue;'>Done now: <span id='donenow'></span></li>");
    await startFunc();
    await delay(10000);
    $('#donenow').text(issuesCreated.length);
    console.log(JSON.stringify(issuesCreated));
  } else {
    $('#liste').append("<li style='color: red;'>ERROR - NO ADAPTER LIST " + (adapterList?" (" +...