From b9a0e439c71b30ba096fe0bde1723dc91c309355 Mon Sep 17 00:00:00 2001 From: Renegade334 Date: Tue, 4 Aug 2026 22:02:11 +0100 Subject: [PATCH] chore!: remove deprecated get-metadata entrypoint --- README.md | 7 ++----- bin/get-metadata.js | 11 ----------- docs/get-metadata.md | 4 ---- npm-shrinkwrap.json | 1 - package.json | 1 - 5 files changed, 2 insertions(+), 22 deletions(-) delete mode 100755 bin/get-metadata.js delete mode 100644 docs/get-metadata.md diff --git a/README.md b/README.md index 007f400e..245217d2 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,6 @@ CLI tools for Node.js Core collaborators. to use. - [`ncu-team`](./docs/ncu-team.md): Listing members of a team, synchronizing special blocks in files with the list of members. -- [`get-metadata`](./docs/get-metadata.md): Retrieving metadata for a Pull Request. - **DEPRECATED**: use [`git node metadata`](./docs/git-node.md#git-node-metadata) - instead. - [`ncu-ci`](./docs/ncu-ci.md): Parse the results of a Jenkins CI run and display a summary for all the failures. ## Usage @@ -66,8 +63,8 @@ to create the token. When creating the token, the following boxes need to be checked: -- `user:email`: Used by `git-node` and `get-metadata` to read the email of the - PR author in order to check if it matches the email of the commit author. +- `user:email`: Used by `git-node` to read the email of the PR author in order + to check if it matches the email of the commit author. - `read:org`: Used by `ncu-team` to read the list of team members. Optionally, if you want to grant write access so `git-node` can write comments: diff --git a/bin/get-metadata.js b/bin/get-metadata.js deleted file mode 100755 index bd067bd1..00000000 --- a/bin/get-metadata.js +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env node - -import { fileURLToPath } from 'node:url'; - -import { runAsync } from '../lib/run.js'; -import { setVerbosityFromEnv } from '../lib/verbosity.js'; - -setVerbosityFromEnv(); - -const script = fileURLToPath(new URL('git-node.js', import.meta.url)); -runAsync(process.execPath, [script, 'metadata', ...process.argv.slice(2)]); diff --git a/docs/get-metadata.md b/docs/get-metadata.md deleted file mode 100644 index c1dcaa23..00000000 --- a/docs/get-metadata.md +++ /dev/null @@ -1,4 +0,0 @@ -# get-metadata - -This tool is deprecated and is currently an alias to -[`git node metadata`](./git-node.md#git-node-metadata) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index e1ed5a4b..f1ec16df 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -35,7 +35,6 @@ "yargs": "^18.0.0" }, "bin": { - "get-metadata": "bin/get-metadata.js", "git-node": "bin/git-node.js", "ncu-ci": "bin/ncu-ci.js", "ncu-config": "bin/ncu-config.js", diff --git a/package.json b/package.json index 0c21311c..932d261c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "node": "^22.22.2 || ^24.15.0 || >=26.0.0" }, "bin": { - "get-metadata": "bin/get-metadata.js", "git-node": "bin/git-node.js", "ncu-config": "bin/ncu-config.js", "ncu-team": "bin/ncu-team.js",