@auto-canary/core
Advanced tools
Comparing version 10.32.5--canary.2118.25223.0 to 10.33.0--canary.2064.25284.0
@@ -592,3 +592,5 @@ "use strict"; | ||
status: 404, | ||
headers, | ||
response: { | ||
headers | ||
} | ||
}); | ||
@@ -595,0 +597,0 @@ // eslint-disable-next-line no-new |
@@ -74,8 +74,3 @@ import { AuthorInformation, RepoInformation, GithubInformation, LogOptions, ReleaseCalculationOptions, AutoRc } from "./types"; | ||
export declare type IPRBodyOptions = Omit<ICommentOptions, "edit" | "delete">; | ||
export declare type ILatestOptions = BaseBranch & DryRunOption & NonNullable<AutoRc["latest"]> & NoVersionPrefix & ChangelogTitle & QuietOption & ReleaseCalculationOptions & Partial<AuthorInformation> & Partial<RepoInformation> & { | ||
/** Commit to start calculating the release from */ | ||
from?: string; | ||
/** Override the version to release */ | ||
useVersion?: string; | ||
}; | ||
export declare type ILatestOptions = BaseBranch & DryRunOption & Partial<AuthorInformation> & NonNullable<AutoRc["latest"]> & NoVersionPrefix & ChangelogTitle & QuietOption & ReleaseCalculationOptions; | ||
export declare type IShipItOptions = ILatestOptions & NonNullable<AutoRc["shipit"]>; | ||
@@ -82,0 +77,0 @@ export declare type ICanaryOptions = QuietOption & NonNullable<AutoRc["canary"]> & DryRunOption & { |
@@ -99,4 +99,2 @@ import { RestEndpointMethodTypes } from "@octokit/rest"; | ||
to: string; | ||
/** Override the version to release */ | ||
useVersion?: string; | ||
/** The version being released */ | ||
@@ -142,4 +140,2 @@ newVersion: string; | ||
bump: SEMVER; | ||
/** Override the version to release */ | ||
useVersion?: string; | ||
} | ||
@@ -154,4 +150,2 @@ ]>; | ||
bump: SEMVER; | ||
/** Override the version to release */ | ||
useVersion?: string; | ||
} | ||
@@ -158,0 +152,0 @@ ]>; |
@@ -91,6 +91,7 @@ "use strict"; | ||
this.github.hook.error("request", (error) => { | ||
var _a, _b; | ||
if (error) { | ||
// narrow down the type | ||
if ("headers" in error && error.headers.authorization) { | ||
delete error.headers.authorization; | ||
if ("headers" in error && ((_a = error.headers) === null || _a === void 0 ? void 0 : _a.authorization)) { | ||
(_b = error.headers) === null || _b === void 0 ? true : delete _b.authorization; | ||
} | ||
@@ -694,2 +695,5 @@ } | ||
typescript_memoize_1.Memoize() | ||
], Git.prototype, "getLabels", null); | ||
tslib_1.__decorate([ | ||
typescript_memoize_1.Memoize() | ||
], Git.prototype, "getPr", null); | ||
@@ -696,0 +700,0 @@ tslib_1.__decorate([ |
@@ -1,4 +0,3 @@ | ||
import { CiEnv } from "env-ci"; | ||
/** Get the current branch the git repo is set to */ | ||
export declare function getCurrentBranch(env?: Partial<CiEnv>): string | undefined; | ||
export declare function getCurrentBranch(): string | undefined; | ||
//# sourceMappingURL=get-current-branch.d.ts.map |
@@ -7,9 +7,5 @@ "use strict"; | ||
const child_process_1 = require("child_process"); | ||
const defaultCiEnvironment = env_ci_1.default(); | ||
/** | ||
* Validates that the given branch name should be returned by environment context | ||
*/ | ||
const isValidBranch = (branch) => typeof branch === "string" && branch !== "undefined"; | ||
const env = env_ci_1.default(); | ||
/** Get the current branch the git repo is set to */ | ||
function getCurrentBranch(env = defaultCiEnvironment) { | ||
function getCurrentBranch() { | ||
const isPR = "isPr" in env && env.isPr; | ||
@@ -19,6 +15,6 @@ let branch; | ||
// so we should make sure we aren't in a PR just to be safe | ||
if (isPR && "prBranch" in env && isValidBranch(env.prBranch)) { | ||
if (isPR && "prBranch" in env) { | ||
branch = env.prBranch; | ||
} | ||
else if (isValidBranch(env.branch)) { | ||
else { | ||
branch = env.branch; | ||
@@ -25,0 +21,0 @@ } |
@@ -101,2 +101,7 @@ "use strict"; | ||
} | ||
const officialPlugin = path.join("@auto-it", pluginPath); | ||
// Try importing official plugin | ||
if (exists(officialPlugin)) { | ||
return officialPlugin; | ||
} | ||
const canaryPlugin = path.join("@auto-canary", pluginPath); | ||
@@ -107,7 +112,2 @@ // Try importing official plugin | ||
} | ||
const officialPlugin = path.join("@auto-it", pluginPath); | ||
// Try importing official plugin | ||
if (exists(officialPlugin)) { | ||
return officialPlugin; | ||
} | ||
// Try requiring a package | ||
@@ -114,0 +114,0 @@ if (pluginPath.includes("/auto-plugin-") || |
{ | ||
"name": "@auto-canary/core", | ||
"version": "10.32.5--canary.2118.25223.0", | ||
"version": "10.33.0--canary.2064.25284.0", | ||
"description": "Node API for using auto.", | ||
@@ -40,5 +40,5 @@ "main": "dist/auto.js", | ||
"dependencies": { | ||
"@auto-canary/bot-list": "10.32.5--canary.2118.25223.0", | ||
"@auto-canary/bot-list": "10.33.0--canary.2064.25284.0", | ||
"@endemolshinegroup/cosmiconfig-typescript-loader": "^3.0.2", | ||
"@octokit/plugin-enterprise-compatibility": "^1.2.2", | ||
"@octokit/plugin-enterprise-compatibility": "1.3.0", | ||
"@octokit/plugin-retry": "^3.0.1", | ||
@@ -100,3 +100,3 @@ "@octokit/plugin-throttling": "^3.2.0", | ||
}, | ||
"gitHead": "7d8e00cc09ab90ab9c782cc6cc05fa8928e7a785" | ||
"gitHead": "6c9ab8510c6b53bc9c6203061c1b09158a89c6e8" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13
1240867
236
16501
+ Added@auto-canary/bot-list@10.33.0--canary.2064.25284.0(transitive)
- Removed@auto-canary/bot-list@10.32.5--canary.2118.25223.0(transitive)