We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236d21a commit edc77b7Copy full SHA for edc77b7
src/processors.ts
@@ -13,8 +13,10 @@ import type { Range } from "./Range";
13
if (process.env.CI !== undefined) {
14
const branch = process.env.ESLINT_PLUGIN_DIFF_COMMIT ?? guessBranch();
15
if (branch !== undefined) {
16
- process.env.ESLINT_PLUGIN_DIFF_COMMIT = branch;
17
- fetchFromOrigin(branch);
+ const branchWithoutOrigin = branch.replace(/^origin\//, "");
+ const branchWithOrigin = `origin/${branchWithoutOrigin}`;
18
+ fetchFromOrigin(branchWithoutOrigin);
19
+ process.env.ESLINT_PLUGIN_DIFF_COMMIT = branchWithOrigin;
20
}
21
22
0 commit comments