OP-2204 - renamed placeholder to review_filepath

This commit is contained in:
Petr Kalis 2022-01-07 14:57:32 +01:00
parent e5be9d76b5
commit 69b9c06f6a
2 changed files with 5 additions and 14 deletions

View file

@ -15,7 +15,7 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
If instance contains 'thumbnail' it uploads it. Bot must be present
in the target channel.
If instance contains 'review' it could upload (if configured) or place
link with {review_link} placeholder.
link with {review_filepath} placeholder.
Message template can contain {} placeholders from anatomyData.
"""
order = pyblish.api.IntegratorOrder + 0.499
@ -73,7 +73,7 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
fill_data.get("version"))))
]
if review_path:
fill_pairs.append(("review_link", review_path))
fill_pairs.append(("review_filepath", review_path))
task_data = instance.data.get("task")
if not task_data:

View file

@ -78,23 +78,14 @@ Message content can use Templating (see [Available template keys](admin_settings
Few keys also have Capitalized and UPPERCASE format. Values will be modified accordingly ({Asset} >> "Asset", {FAMILY} >> "RENDER").
**Available keys:**
- asset
- subset
- task\[name\]
- task\[type\]
- task\[short\]
- username
- app
- family
- version
- review_link
**Additional implemented keys:**
- review_filepath
##### Message example
```
{Subset} was published for {ASSET} in {task[name]} task.
Here you can find review {review_link}
Here you can find review {review_filepath}
```
#### Message retention