Skip to content

Commit

Permalink
fix(url): deprecation notice of git.io
Browse files Browse the repository at this point in the history
- fix notice opened by git.io bot in Lerna's project on issue [#3116](lerna/lerna#3116)
  • Loading branch information
ghiscoding committed May 3, 2022
1 parent 359bba7 commit 816b7cb
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
@@ -1,11 +1,12 @@
"use strict";

// https://git.io/vx5iq (conventional-changelog-angular/conventional-recommended-bump.js, etc)
// https://github.com/conventional-changelog/conventional-changelog/blob/b516084ef6a725197f148236c0ddbfae7ffe3e6f/packages/conventional-changelog-angular/conventional-recommended-bump.js
// (conventional-changelog-angular/conventional-recommended-bump.js, etc)
const parserOpts = require("./parser-opts");
const writerOpts = require("./writer-opts");
const whatBump = require("./what-bump");

// https://git.io/fhyKK
// https://github.com/conventional-changelog/conventional-changelog/blob/943542f3b2342bb5933d84847fb19b727c607df0/packages/conventional-changelog-ember/index.js#L10
module.exports = presetOpts;

function presetOpts(param) {
Expand Down
@@ -1,11 +1,12 @@
"use strict";

// https://git.io/vx5iq (conventional-changelog-angular/conventional-recommended-bump.js, etc)
// https://github.com/conventional-changelog/conventional-changelog/blob/b516084ef6a725197f148236c0ddbfae7ffe3e6f/packages/conventional-changelog-angular/conventional-recommended-bump.js
// (conventional-changelog-angular/conventional-recommended-bump.js, etc)
const parserOpts = require("./parser-opts");
const writerOpts = require("./writer-opts");
const whatBump = require("./what-bump");

// https://git.io/fhyKK
// https://github.com/conventional-changelog/conventional-changelog/blob/943542f3b2342bb5933d84847fb19b727c607df0/packages/conventional-changelog-ember/index.js#L10
module.exports = presetOpts;

function presetOpts(cb) {
Expand Down
@@ -1,6 +1,7 @@
"use strict";

// https://git.io/vx5iq (conventional-changelog-angular/conventional-recommended-bump.js, etc)
// https://github.com/conventional-changelog/conventional-changelog/blob/b516084ef6a725197f148236c0ddbfae7ffe3e6f/packages/conventional-changelog-angular/conventional-recommended-bump.js
// (conventional-changelog-angular/conventional-recommended-bump.js, etc)
const parserOpts = require("./parser-opts");
const writerOpts = require("./writer-opts");
const whatBump = require("./what-bump");
Expand Down
@@ -1,6 +1,7 @@
"use strict";

// https://git.io/vx5iq (conventional-changelog-angular/conventional-recommended-bump.js, etc)
// https://github.com/conventional-changelog/conventional-changelog/blob/b516084ef6a725197f148236c0ddbfae7ffe3e6f/packages/conventional-changelog-angular/conventional-recommended-bump.js
// (conventional-changelog-angular/conventional-recommended-bump.js, etc)
const parserOpts = require("./parser-opts");
const writerOpts = require("./writer-opts");
const whatBump = require("./null-what-bump");
Expand Down
@@ -1,6 +1,7 @@
"use strict";

// https://git.io/vx5iq (conventional-changelog-angular/conventional-recommended-bump.js, etc)
// (conventional-changelog-angular/conventional-recommended-bump.js, etc)
// https://github.com/conventional-changelog/conventional-changelog/blob/b516084ef6a725197f148236c0ddbfae7ffe3e6f/packages/conventional-changelog-angular/conventional-recommended-bump.js
const parserOpts = require("./parser-opts");
const writerOpts = require("./writer-opts");
const whatBump = require("./what-bump");
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/otplease.ts
Expand Up @@ -100,7 +100,7 @@ function attempt(fn, opts, otpCache) {
* @returns {Promise<string>}
*/
export function getOneTimePassword(message = 'This operation requires a one-time password:') {
// Logic taken from npm internals: https://git.io/fNoMe
// Logic taken from npm internals: https://github.com/npm/cli/blob/4f801d8a476f7ca52b0f182bf4e17a80db12b4e2/lib/utils/read-user-info.js#L21-L35
return promptTextInput(message, {
filter: (otp) => otp.replace(/\s+/g, ''),
validate: (otp) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/__tests__/run-lifecycle.spec.ts
Expand Up @@ -220,7 +220,7 @@ describe("createRunner", () => {
runScript.mockImplementationOnce(({ scripts }, stage) => {
const err = new Error("boom");

// https://git.io/fAE3f
// https://github.com/npm/npm-lifecycle/blob/d7a014f9393da76ee0ecf6701be84ed1ea613b83/index.js#L302
err.errno = 123;
err.script = scripts[stage];

Expand Down
2 changes: 1 addition & 1 deletion packages/publish/README.md
Expand Up @@ -153,7 +153,7 @@ lerna publish --canary --force-publish

### `--git-head <sha>`

Explicit SHA to set as [`gitHead`](https://git.io/fh7np) on manifests when packing tarballs, only allowed with [`from-package`](#bump-from-package) positional.
Explicit SHA to set as [`gitHead`](https://github.com/npm/read-package-json/blob/67f2d8d501e2621441a8235b08d589fbeeb7dba6/read-json.js#L327) on manifests when packing tarballs, only allowed with [`from-package`](#bump-from-package) positional.

For example, when publishing from AWS CodeBuild (where `git` is not available),
you could use this option to pass the appropriate [environment variable](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html) to use for this package metadata:
Expand Down

0 comments on commit 816b7cb

Please sign in to comment.