Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Populating Args with event info #5

Closed
tehpsalmist opened this issue Feb 2, 2019 · 1 comment
Closed

Populating Args with event info #5

tehpsalmist opened this issue Feb 2, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tehpsalmist
Copy link

Terribly sorry if this isn't a helpful question, but how do you get information from the action event to be used in the args message? For example, I'm subscribed to issues which is super broad, everything from a changed label to a comment on an issue. How can I configure my slack message to speak to the details of a given notification?

@Ilshidur
Copy link
Owner

Ilshidur commented Feb 2, 2019

Hello. I released a new version featuring this (1.2.0).

You can interpolate environment variables in the args message.
In your case, the proper way to show the event type is {{ GITHUB_EVENT_NAME }}.

More informations in the README : https://github.com/Ilshidur/action-slack#arguments 😉

@Ilshidur Ilshidur closed this as completed Feb 2, 2019
@Ilshidur Ilshidur self-assigned this Feb 25, 2019
@Ilshidur Ilshidur added the enhancement New feature or request label Feb 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants