From 2ca6d9d944a05ff9c31d133ca44a0cc9bc892030 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 2 Jul 2024 11:05:54 -0400 Subject: Update README to mention template function availability * Add EnvCtl structure * Add runtime checks to avoid running all the way to the end only to be met with a configuration error. * Rename GITHUB to GH --- src/template_func_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/template_func_proto.c') diff --git a/src/template_func_proto.c b/src/template_func_proto.c index 8618a2e..140a5e0 100644 --- a/src/template_func_proto.c +++ b/src/template_func_proto.c @@ -4,7 +4,7 @@ int get_github_release_notes_tplfunc_entrypoint(void *frame, void *data_out) { int result; char **output = (char **) data_out; struct tplfunc_frame *f = (struct tplfunc_frame *) frame; - char *api_token = getenv("STASIS_GITHUB_TOKEN"); + char *api_token = getenv("STASIS_GH_TOKEN"); if (!api_token) { api_token = getenv("GITHUB_TOKEN"); } -- cgit