Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Work.ID to the script through environment variables #42

Closed
AStevensTaylor opened this issue Apr 30, 2021 · 1 comment · Fixed by #43
Closed

Expose Work.ID to the script through environment variables #42

AStevensTaylor opened this issue Apr 30, 2021 · 1 comment · Fixed by #43

Comments

@AStevensTaylor
Copy link
Contributor

Hi,

Absolutely love this project for it's simplicity.

It would be useful to expose the Work ID (used for identifying which log to access) back out to the worker?
This would be useful for providing the URL for accessing the logs as part of the post-run notification for debugging etc.

@ncarlier
Copy link
Owner

Hi, thanks you :)

This sounds like a good idea. Add something like hook_name and hook_id as script variables?

AStevensTaylor added a commit to AStevensTaylor/webhookd that referenced this issue May 5, 2021
ncarlier pushed a commit that referenced this issue May 6, 2021
feat(): expose hook ID to script environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants