You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
according to the README we can set different variables, e.g. Someone just pushed, oh no! Here's who did it: {{ payload.sender.login }}., and the list of available template variables is present at https://github.com/JasonEtco/actions-toolkit#toolscontext.
However, payload.* isn't anywhere to be found on https://github.com/JasonEtco/actions-toolkit and when using {{ tools.context.actor }}: {{ tools.context.sha }} no information is added to the created issue.
I don't think the documentation is very clear; tools.context.payload is available from actions-toolkit, and so becomes available in your issue templates as just {{ payload }}. So similarly, you'd have {{ actor }} and {{ sha }}. You can see an example of using tools.context.action as {{ action }} in this test / this fixture.
PRs welcome for any doc improvements, but I'll go ahead and close this for now.
Hi,
according to the README we can set different variables, e.g.
Someone just pushed, oh no! Here's who did it: {{ payload.sender.login }}.
, and the list of available template variables is present at https://github.com/JasonEtco/actions-toolkit#toolscontext.However,
payload.*
isn't anywhere to be found on https://github.com/JasonEtco/actions-toolkit and when using{{ tools.context.actor }}: {{ tools.context.sha }}
no information is added to the created issue.See konstruktoid/ansible-role-hardening#48 and https://github.com/konstruktoid/ansible-role-hardening/runs/1965196550?check_suite_focus=true#step:4:1
The text was updated successfully, but these errors were encountered: