mirror of
https://github.com/Viren070/stremio-addons-list.git
synced 2025-12-01 23:19:02 +01:00
Allow Setting Different Labels When Auto-closing Issues
This commit is contained in:
+4
-4
@@ -83,14 +83,14 @@ const syncLabels = (postId, proposedLabels, allLabels) => {
|
||||
}
|
||||
|
||||
const closeIssueQueue = asyncQueue((task, cb) => {
|
||||
closeIssue(task.postId).then(() => { cb() }).catch(() => { cb() })
|
||||
closeIssue(task.postId, task.label).then(() => { cb() }).catch(() => { cb() })
|
||||
})
|
||||
|
||||
const closeIssue = (postId) => {
|
||||
// also adds label "very low score"
|
||||
const closeIssue = (postId, label) => {
|
||||
// also adds label to the issue if label id provided
|
||||
return request(
|
||||
`mutation {
|
||||
updateIssue(input: {id : "${postId}" , state: CLOSED${config['label-id-for-close-issues'] ? ', labelIds: ["' + config['label-id-for-close-issues'] + '"]' : ''} }){
|
||||
updateIssue(input: {id : "${postId}" , state: CLOSED${label ? ', labelIds: ["' + label + '"]' : ''} }){
|
||||
issue {
|
||||
id
|
||||
title
|
||||
|
||||
Reference in New Issue
Block a user