diff --git a/.changeset/dd-trace-v6-0-2-0-registry.md b/.changeset/dd-trace-v6-0-2-0-registry.md new file mode 100644 index 0000000..c3ba64f --- /dev/null +++ b/.changeset/dd-trace-v6-0-2-0-registry.md @@ -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. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d676a89..9b77ebd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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." @@ -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) @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d8adf88..9ca6842 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -122,7 +122,3 @@ Each codemod package should include: - `tests//metrics.json` when the transform records metrics Keep transformations atomic and verifiable with fixtures. - -## Issue backlog - -Draft issues live under [`issues/`](./issues/README.md).