Skip to content

Commit f651517

Browse files
traskCopilot
andauthored
[chore] Update spec repo links in all markdown and YAML files (open-telemetry#3988)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 73d8319f-f51f-4c4b-98fd-0139ab34d307
1 parent efafcad commit f651517

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/scripts/update-spec-repo-links.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ fix_file() {
2525
" "$1"
2626
}
2727

28-
important_files=("docs" "model" "README.md")
29-
30-
# TODO - limit to markdown/yaml files?
31-
find "${important_files[@]}" -type f -not -path '*/.*' -not -path '*.png' -print0 | while read -d $'\0' file; do
28+
# Update every tracked markdown and YAML file so that new spec references cannot
29+
# be missed. CHANGELOG.md is excluded because it intentionally links to the spec
30+
# version that was current at the time of each release.
31+
git ls-files -z -- '*.md' '*.yaml' '*.yml' ':(exclude)CHANGELOG.md' | while read -d $'\0' file; do
3232
fix_file "$file"
3333
done

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,6 @@ exists in some form in ECS, consider the following guidelines:
515515
entirely. See the [ECS field reference] for existing namespaces.
516516

517517
[nvm]: https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating
518-
[stability guarantees]: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.37.0/specification/versioning-and-stability.md#semantic-conventions-stability
518+
[stability guarantees]: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.60.0/specification/versioning-and-stability.md#semantic-conventions-stability
519519
[otep222]: https://github.com/open-telemetry/oteps/pull/222
520520
[ECS field reference]: https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html

0 commit comments

Comments
 (0)