mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
waiting approval status can be set in project settings
This commit is contained in:
parent
e6286166fb
commit
05cb2e4bd9
3 changed files with 36 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
||||||
order = pyblish.api.IntegratorOrder
|
order = pyblish.api.IntegratorOrder
|
||||||
label = "Kitsu Note and Status"
|
label = "Kitsu Note and Status"
|
||||||
# families = ["kitsu"]
|
# families = ["kitsu"]
|
||||||
|
waiting_for_approval_status = "wfa"
|
||||||
|
|
||||||
def process(self, context):
|
def process(self, context):
|
||||||
|
|
||||||
|
|
@ -20,11 +21,13 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
||||||
self.log.debug("Comment is `{}`".format(publish_comment))
|
self.log.debug("Comment is `{}`".format(publish_comment))
|
||||||
|
|
||||||
# Get Waiting for Approval status
|
# Get Waiting for Approval status
|
||||||
kitsu_status = gazu.task.get_task_status_by_short_name("wfa")
|
kitsu_status = gazu.task.get_task_status_by_short_name(
|
||||||
|
self.waiting_for_approval_status
|
||||||
|
)
|
||||||
if not kitsu_status:
|
if not kitsu_status:
|
||||||
self.log.info(
|
self.log.info(
|
||||||
"Cannot find 'Waiting For Approval' status."
|
"Cannot find {} status. The status will not be "
|
||||||
"The status will not be changed"
|
"changed!".format(self.waiting_for_approval_status)
|
||||||
)
|
)
|
||||||
kitsu_status = context.data["kitsu_task"].get("task_status")
|
kitsu_status = context.data["kitsu_task"].get("task_status")
|
||||||
self.log.debug("Kitsu status: {}".format(kitsu_status))
|
self.log.debug("Kitsu status: {}".format(kitsu_status))
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,10 @@
|
||||||
"episode": "E##",
|
"episode": "E##",
|
||||||
"sequence": "SQ##",
|
"sequence": "SQ##",
|
||||||
"shot": "SH##"
|
"shot": "SH##"
|
||||||
|
},
|
||||||
|
"publish": {
|
||||||
|
"IntegrateKitsuNote": {
|
||||||
|
"waiting_for_approval_status": "wfa"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -43,6 +43,31 @@
|
||||||
"label": "Shot:"
|
"label": "Shot:"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "dict",
|
||||||
|
"collapsible": true,
|
||||||
|
"key": "publish",
|
||||||
|
"label": "Publish plugins",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"label": "Integrator"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "dict",
|
||||||
|
"collapsible": true,
|
||||||
|
"key": "IntegrateKitsuNote",
|
||||||
|
"label": "Integrate Kitsu Note",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"key": "waiting_for_approval_status",
|
||||||
|
"label": "Waiting for Aproval Status:"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue