From f7775dd75d85d6496d930590dadb6a6bc885932f Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Thu, 14 Apr 2022 11:17:32 +0100 Subject: [PATCH 1/3] Specify return value for undefined properties --- content/actions/learn-github-actions/contexts.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/actions/learn-github-actions/contexts.md b/content/actions/learn-github-actions/contexts.md index 37ebcb88d728..03b3307dcf09 100644 --- a/content/actions/learn-github-actions/contexts.md +++ b/content/actions/learn-github-actions/contexts.md @@ -57,6 +57,8 @@ In order to use property dereference syntax, the property name must: - start with `a-Z` or `_`. - be followed by `a-Z` `0-9` `-` or `_`. +Attempting to access a non-existent property on an existing context will return an empty string. + ### Determining when to use contexts {% data reusables.actions.using-context-or-environment-variables %} From c104fea989d6ffc70ef6351817330a5da7007e84 Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Fri, 22 Apr 2022 16:48:19 +0100 Subject: [PATCH 2/3] Rephrase property access terminology Co-authored-by: Edward Thomson --- content/actions/learn-github-actions/contexts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/contexts.md b/content/actions/learn-github-actions/contexts.md index 03b3307dcf09..8804deb969af 100644 --- a/content/actions/learn-github-actions/contexts.md +++ b/content/actions/learn-github-actions/contexts.md @@ -57,7 +57,7 @@ In order to use property dereference syntax, the property name must: - start with `a-Z` or `_`. - be followed by `a-Z` `0-9` `-` or `_`. -Attempting to access a non-existent property on an existing context will return an empty string. +Attempting to dereference a non-existent property will evaluate to an empty string. ### Determining when to use contexts From d7412ad20c9f5b54d52e00369af60805d77ec14a Mon Sep 17 00:00:00 2001 From: Felicity Chapman Date: Fri, 22 Apr 2022 19:39:37 +0100 Subject: [PATCH 3/3] Update content/actions/learn-github-actions/contexts.md --- content/actions/learn-github-actions/contexts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/contexts.md b/content/actions/learn-github-actions/contexts.md index 8804deb969af..34914d02d6b1 100644 --- a/content/actions/learn-github-actions/contexts.md +++ b/content/actions/learn-github-actions/contexts.md @@ -57,7 +57,7 @@ In order to use property dereference syntax, the property name must: - start with `a-Z` or `_`. - be followed by `a-Z` `0-9` `-` or `_`. -Attempting to dereference a non-existent property will evaluate to an empty string. +If you attempt to dereference a non-existent property, it will evaluate to an empty string. ### Determining when to use contexts