Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ArtiomTr/jest-coverage-report-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: kiron/jest-coverage-report-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 16, 2021

  1. Copy the full SHA
    ed82aba View commit details
  2. Always checkout master

    mathiasmoeller committed Nov 16, 2021
    Copy the full SHA
    080f1cf View commit details
Showing with 3 additions and 9 deletions.
  1. +1 −1 dist/index.js
  2. +2 −8 src/run.ts
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions src/run.ts
Original file line number Diff line number Diff line change
@@ -51,14 +51,8 @@ export const run = async (
const [isSwitched] = await runStage(
'switchToBase',
dataCollector,
async (skip) => {
const baseBranch = context.payload.pull_request?.base.ref;

if (!isInPR || !baseBranch) {
skip();
}

await switchBranch(baseBranch);
async () => {
await switchBranch('master');
}
);