Skip to content

Commit 8a7c32d

Browse files
authored
Merge pull request github#26480 from github/repo-sync
repo sync
2 parents da0c4f0 + ab4d585 commit 8a7c32d

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

content/actions/learn-github-actions/expressions.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,40 @@ For example, consider an array of objects named `fruits`.
366366
]
367367
```
368368

369-
The filter `fruits.*.name` returns the array `[ "apple", "orange", "pear" ]`
369+
The filter `fruits.*.name` returns the array `[ "apple", "orange", "pear" ]`.
370+
371+
You may also use the `*` syntax on an object. For example, suppose you have an object named `vegetables`.
372+
373+
```json
374+
375+
{
376+
"scallions":
377+
{
378+
"colors": ["green", "white", "red"],
379+
"ediblePortions": ["roots", "stalks"],
380+
},
381+
"beets":
382+
{
383+
"colors": ["purple", "red", "gold", "white", "pink"],
384+
"ediblePortions": ["roots", "stems", "leaves"],
385+
},
386+
"artichokes":
387+
{
388+
"colors": ["green", "purple", "red", "black"],
389+
"ediblePortions": ["hearts", "stems", "leaves"],
390+
},
391+
}
392+
```
393+
394+
The filter `vegetables.*.ediblePortions` could evaluate to:
395+
396+
```json
397+
398+
[
399+
["roots", "stalks"],
400+
["hearts", "stems", "leaves"],
401+
["roots", "stems", "leaves"],
402+
]
403+
```
404+
405+
Since objects don't preserve order, the order of the output can not be guaranteed.

contributing/content-style-guide.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ steps:
365365
Examples:
366366
- See the code block in "[Publishing to package registries](https://docs.github.com/en/actions/guides/building-and-testing-python#publishing-to-package-registries)"
367367

368-
### Pinning version numbers to SHA
368+
#### Pinning version numbers to SHA
369369

370370
Code examples that use third-party actions must always pin to a full length commit SHA, instead of the version number or branch:
371371

@@ -383,6 +383,14 @@ steps:
383383

384384
For more information, see "[Using SHAs](https://docs.github.com/en/actions/learn-github-actions/finding-and-customizing-actions#using-shas)"
385385

386+
### GitHub Codespaces
387+
388+
Always use "GitHub Codespaces" (`{% data variables.product.prodname_github_codespaces %}`) as the product name, not just "Codespaces". This helps to avoid confusion with "codespaces" (lowercase c), which refers to instances of remote coding workspaces created with GitHub Codespaces.
389+
390+
Always use "dev container" (or, where clarification is needed, its longer form "development container") and not "devcontainer" (one word), except in file/path names. The single word could form could be considered a brand, which we want to avoid, and we also want to be consistent with the two-word form used in [the Visual Studio Code documentation](https://code.visualstudio.com/docs/remote/create-dev-container#_path-to-creating-a-dev-container).
391+
392+
Use "development container configuration files" to refer to all of the files in the `.devcontainer` directory (plus the `.devcontainer.json` if that's being used rather than `devcontainer.json` in the `.devcontainer` directory). Don't refer to these as "development container files" or "devcontainer files" to avoid this being taken as referring to `devcontainer.json` files. "Development container configuration files" refers to all of the files that can be used to configure a dev container, including `Dockerfile` and `docker-compose.yml` files. Don't use "the development container configuration file" (singular) when referring specifically to a `devcontainer.json` file. Instead refer to this file by its name.
393+
386394
## Punctuation
387395

388396
Follow standard American English punctuation rules. For more guidance, see “[Punctuation](https://brand.github.com/content/grammar#punctuation)” in GitHub’s Brand Guide and “[Punctuation](https://docs.microsoft.com/style-guide/punctuation)” in the Microsoft Style Guide.

0 commit comments

Comments
 (0)