const githubToken = ""; //https://github.com/settings/tokens
const test = false;
const filename = "createIssue1";
let issueTitle = "Please add you adapter to our repository";
const issueBody = "We saw your adapter and if it is ready please request that it is added to the repository. With this it becomes available for all users. Please consult https://github.com/ioBroker/ioBroker.repositories#add-a-new-adapter-to-the-latest-repository and the following sections for more details.\r\nIf you need help, contact us in the forum https://forum.iobroker.net/ or in the developer chat https://github.com/iobroker-community-adapters/info .\r\n\r\nThank you for your support.";
let issuesCreated = [];
let issuesList = [];
const start = async function () {
adapterList = await getAdapterList();
if (adapterList) {
$('#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(15000);
$('#donenow').text(issuesCreated.length);
console.log(JSON.stringify(issuesCreated));
} else {
$('#liste').append("<li style='color: red;'>ERROR - NO ADAPTER LIST</li>");
}
};
async function asyncForEach(array, callback) {
for (let index = 0; index < array.length; index++) {
await callback(array [index], index, array);
}
}
(function ($) {
$.extend({
// Case insensative $.inArray (http://api.jquery.com/jquery.inarray/)
// $.inArrayIn(value, array [, fromIndex])
// value (type: String)
// The value to search for
// array (type: Array)
// An array through which to search.
// fromIndex (type: Number)
// The index of the array at which...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.