mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +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
|
||||
label = "Kitsu Note and Status"
|
||||
# families = ["kitsu"]
|
||||
waiting_for_approval_status = "wfa"
|
||||
|
||||
def process(self, context):
|
||||
|
||||
|
|
@ -20,11 +21,13 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
|||
self.log.debug("Comment is `{}`".format(publish_comment))
|
||||
|
||||
# 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:
|
||||
self.log.info(
|
||||
"Cannot find 'Waiting For Approval' status."
|
||||
"The status will not be changed"
|
||||
"Cannot find {} status. The status will not be "
|
||||
"changed!".format(self.waiting_for_approval_status)
|
||||
)
|
||||
kitsu_status = context.data["kitsu_task"].get("task_status")
|
||||
self.log.debug("Kitsu status: {}".format(kitsu_status))
|
||||
|
|
|
|||
|
|
@ -7,5 +7,10 @@
|
|||
"episode": "E##",
|
||||
"sequence": "SQ##",
|
||||
"shot": "SH##"
|
||||
},
|
||||
"publish": {
|
||||
"IntegrateKitsuNote": {
|
||||
"waiting_for_approval_status": "wfa"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -43,6 +43,31 @@
|
|||
"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