aboutsummaryrefslogtreecommitdiff
path: root/src/template_func_proto.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-07-02 11:05:54 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-07-02 11:06:30 -0400
commit2ca6d9d944a05ff9c31d133ca44a0cc9bc892030 (patch)
tree76d4d82a5bd3890cc12960ada94e0218d3a3b519 /src/template_func_proto.c
parent48fbcc4e2a47319e8f53e0dc5104dcfcfe11cc2b (diff)
downloadstasis-2ca6d9d944a05ff9c31d133ca44a0cc9bc892030.tar.gz
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
Diffstat (limited to 'src/template_func_proto.c')
-rw-r--r--src/template_func_proto.c2
1 files changed, 1 insertions, 1 deletions
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");
}