From b727b4ae9e98445d7ffcd6065455a89bdb95f31a Mon Sep 17 00:00:00 2001 From: usimd <11619247+usimd@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:57:46 +0100 Subject: [PATCH] Rename all occurrences of master branch --- .github/workflows/integration-test.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- README.md | 2 +- __test__/git.test.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 0f4f717..be2de1e 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -27,7 +27,7 @@ on: - '**.md' - 'renovate.json' branches: - - master + - main pull_request: types: [ labeled, opened, synchronize, reopened ] schedule: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69dbd5c..a11bbc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Create GH release on version change on: push: branches: - - master + - main jobs: release: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a10b3f1..8cd9f83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: pi-gen-action-unit-tests on: push: branches: - - master + - main paths-ignore: - '**.md' - 'renovate.json' diff --git a/README.md b/README.md index 4d810bc..aa3e7bb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![unit-tests](https://github.com/usimd/pi-gen-action/actions/workflows/test.yml/badge.svg)](https://github.com/usimd/pi-gen-action/actions/workflows/test.yml) [![integration-tests](https://github.com/usimd/pi-gen-action/actions/workflows/integration-test.yml/badge.svg)](https://github.com/usimd/pi-gen-action/actions/workflows/integration-test.yml) -[![codecov](https://codecov.io/gh/usimd/pi-gen-action/branch/master/graph/badge.svg?token=4O680QXTOC)](https://codecov.io/gh/usimd/pi-gen-action) +[![codecov](https://codecov.io/gh/usimd/pi-gen-action/branch/main/graph/badge.svg?token=4O680QXTOC)](https://codecov.io/gh/usimd/pi-gen-action) # pi-gen-action diff --git a/__test__/git.test.ts b/__test__/git.test.ts index a2cab1f..80bc530 100644 --- a/__test__/git.test.ts +++ b/__test__/git.test.ts @@ -4,7 +4,7 @@ import * as fs from 'fs' describe('Git', () => { it.each([ - ['master', true], + ['main', true], ['non-existing-branch', false] ])('determines correctly if branch %s exists', async (branchName, exists) => { const git = await Git.getInstance('.', '', false)