Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/dd-trace-v6-0-2-0-registry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'dd-trace-5-to-6-add-link-object-argument': minor
'dd-trace-5-to-6-flatten-ingestion-options': minor
'dd-trace-5-to-6-migration-recipe': minor
'dd-trace-5-to-6-move-experimental-appsec-options': minor
'dd-trace-5-to-6-move-experimental-iast-options': minor
'dd-trace-5-to-6-rename-b3-style': minor
'dd-trace-5-to-6-rename-plugin-list-options': minor
'dd-trace-5-to-6-rename-profiling-env-vars': minor
'dd-trace-5-to-6-rename-runtime-id-env-var': minor
---

Bump all dd-trace-js 5→6 codemods to **0.2.0** so they can be republished to the Codemod Registry after prior versions were unpublished. Release automation will run `version-packages` on merge.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ jobs:
d=$parent
done
done
changed_dirs=$(printf '%s\n' "$changed_dirs" | sort -u | grep -v '^$')
# grep exits 1 when it filters down to zero lines; with `bash -e` that would
# abort before we can treat "no codemod dirs" as success (changeset-only PRs).
changed_dirs=$(printf '%s\n' "$changed_dirs" | sort -u | grep -v '^$' || true)

if [ -z "$changed_dirs" ]; then
echo "No codemod source files changed. Changeset not required."
Expand Down Expand Up @@ -171,7 +173,11 @@ jobs:
exit 0
fi

changeset_files=$(git diff --name-only --diff-filter=ACMR origin/main...HEAD -- '.changeset/*.md' \
# Resolve the whole `.changeset/` tree; a quoted `*.md` pathspec is treated
# literally on many Linux/Git combinations and matches nothing, producing
# false "missing changeset" failures when codemods/ did change.
changeset_files=$(git diff --name-only --diff-filter=ACMR origin/main...HEAD -- .changeset \
| grep '\.md$' \
| grep -v 'README.md' \
|| true)

Expand All @@ -184,7 +190,8 @@ jobs:

missing=""
for pkg in $changed_packages; do
if ! echo "$covered_packages" | grep -qw "$pkg"; then
# Exact line match: `grep -w` is unreliable for hyphenated npm-style names on GNU grep.
if ! printf '%s\n' $covered_packages | grep -Fxq "$pkg"; then
missing="$missing $pkg"
fi
done
Expand Down
4 changes: 0 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,3 @@ Each codemod package should include:
- `tests/<case>/metrics.json` when the transform records metrics

Keep transformations atomic and verifiable with fixtures.

## Issue backlog

Draft issues live under [`issues/`](./issues/README.md).
Loading