数十个问题已经输入我的项目在github上没有地方。一些爱因斯坦运行了一个脚本,并通过api创建了所有这些无关紧要的问题。没有任何东西与这些问题有关。Github - 删除输入错误的问题
当然有一些我可以删除它们,但我似乎无法在文档中找到它。
数十个问题已经输入我的项目在github上没有地方。一些爱因斯坦运行了一个脚本,并通过api创建了所有这些无关紧要的问题。没有任何东西与这些问题有关。Github - 删除输入错误的问题
当然有一些我可以删除它们,但我似乎无法在文档中找到它。
没有办法实际删除问题。你可以做的,表明这是一个垃圾邮件攻击,是创建一个新的标签。然后,您可以使用API将edit的每个问题关闭,并标记为SPAM
标签。那些看着它的人会看到标签旁边显示的标签,这真的是你所期望的最好的。
如果您对某种特定语言更加熟悉,请检查书写的library以使您的生活更轻松。
这是我想到的/担心的。谢谢大家。 – 2013-05-13 19:51:09
您也可以[阻止用户](https://help.github.com/articles/blocking-a-user)防止他/她在您的存储库中打开任何其他问题。 – jasonrudolph 2013-05-14 17:24:24
由于法律问题,我不得不用一些项目的许多评论来删除几个问题。我做了如下:
复制粘贴在浏览器地址栏上:
javascript:(function(){ $('.delete-button.octicon.octicon-x.js-comment-delete').each(function(){ href=$(this).attr("href"); if(href!==undefined) { console.log("DELETING: "+href); $.ajax({type:"DELETE",url:href}); } }); firstCommentToedit=$('form.js-comment-update')[0]; $.ajax({ type:"POST", url:firstCommentToedit.action, data:{ _method:$(firstCommentToedit).find('input[name=_method]').val(), "issue[body]":"THIS ISSUE WAS DELETED AND BLOCKED", authenticity_token:$(firstCommentToedit).find('input[name=authenticity_token]').val() } }); lockLink=$('a[href$="/lock"]')[0]; if (lockLink!==undefined) { $.ajax({ type:"POST", url:lockLink.href, data:{_method:$(lockLink).attr("data-method")} }); } setTimeout(function(){window.location=window.location;},3000) })()
扩展:
javascript: (function() {
$('.delete-button.octicon.octicon-x.js-comment-delete').each(function() {
href = $(this).attr("href");
if (href !== undefined) {
console.log("DELETING: " + href);
$.ajax({
type: "DELETE",
url: href
});
}
});
firstCommentToedit = $('form.js-comment-update')[0];
$.ajax({
type: "POST",
url: firstCommentToedit.action,
data: {
_method: $(firstCommentToedit).find('input[name=_method]').val(),
"issue[body]": "THIS ISSUE WAS DELETED AND BLOCKED",
authenticity_token: $(firstCommentToedit).find('input[name=authenticity_token]').val()
}
});
lockLink = $('a[href$="/lock"]')[0];
if (lockLink !== undefined) {
$.ajax({
type: "POST",
url: lockLink.href,
data: {
_method: $(lockLink).attr("data-method")
}
});
}
setTimeout(function() {
window.location = window.location;
}, 3000)
})()
你不只是要关闭它们的原因吗? – Cairnarvon 2013-05-13 17:21:30
我猜他想删除它们,所以他可以重新输入它们,以便它们被链接。据我所知,你所能做的就是解决问题。我找不到实际移除它们的方法。 – 2013-05-13 17:23:25
我可以做到这一点,但然后它会说我有200封闭的问题,当真的只有100,它看起来像一个灾难与所有荒谬的标题... – 2013-05-13 17:23:26