Placeholders in comment aren't replaced when testing a policy on GDK
I'm attempting to test a policy on my local GDK instance. The policy includes a comment
action. It adds comments as expected, but the problem is that the placeholders in the comment aren't replaced.
The policy is:
host_url: http://localhost:3000
resource_rules:
issues:
rules:
- name: Bug without severity or priority
conditions:
labels:
- bug
forbidden_labels:
- P1
- P2
- S1
- S2
actions:
mention:
- root
comment: |
Hi {{author}},
This issue is missing a severity or a priority label.
* Current labels ({{labels}})
But when the comment is added it looks like this:
I hope I'm just missing something. Can you help me, @markglenfletcher, @rymai, or @godfat?