From c4d2f35a5565fcde0290da3eb6d8d4902c85203f Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Thu, 31 Aug 2023 02:36:50 +0800 Subject: [PATCH] Update `github` context properties --- languageservice/src/context-providers/github.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/languageservice/src/context-providers/github.ts b/languageservice/src/context-providers/github.ts index a510e2d..a4056ea 100644 --- a/languageservice/src/context-providers/github.ts +++ b/languageservice/src/context-providers/github.ts @@ -16,6 +16,7 @@ export function getGithubContext(workflowContext: WorkflowContext, mode: Mode): "action_repository", "action_status", "actor", + "actor_id", "api_url", "base_ref", "env", @@ -25,13 +26,16 @@ export function getGithubContext(workflowContext: WorkflowContext, mode: Mode): "graphql_url", "head_ref", "job", + "job_workflow_sha", + "path", "ref", "ref_name", "ref_protected", "ref_type", - "path", "repository", + "repository_id", "repository_owner", + "repository_owner_id", "repositoryUrl", "retention_days", "run_id", @@ -43,6 +47,8 @@ export function getGithubContext(workflowContext: WorkflowContext, mode: Mode): "token", "triggering_actor", "workflow", + "workflow_ref", + "workflow_sha", "workspace" ];