From 17eaa3f204b521ef96f5da6fee0568c6d7870e62 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sun, 17 Dec 2023 17:09:10 -0500 Subject: [PATCH] Rename primary branch to main (#837) Co-authored-by: Harel M --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/workflows/ci.yml | 6 +++--- .github/workflows/deploy.yml | 6 +++--- src/components/Doc.jsx | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 97a8ed47..3da5e73d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -9,7 +9,7 @@ assignees: '' -**Maputnik version**: +**Maputnik version**: **Browser**: **OS**: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c90ee59a..61d5eaa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: ci on: pull_request: - branches: [ master ] + branches: [ main ] push: - branches: [ master ] + branches: [ main ] jobs: @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v4 - - run: docker build -t docker.pkg.github.com/maputnik/editor/editor:master . + - run: docker build -t docker.pkg.github.com/maputnik/editor/editor:main . # build the editor build-node: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d0047d0c..4dfce9f6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: deploy on: push: - branches: [ master ] + branches: [ main ] push: tags: - 'v*' @@ -23,5 +23,5 @@ jobs: steps: - uses: actions/checkout@v4 - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u orangemug --password-stdin - - run: docker build -t docker.pkg.github.com/maputnik/editor/editor:master . - - run: docker push docker.pkg.github.com/maputnik/editor/editor:master + - run: docker build -t docker.pkg.github.com/maputnik/editor/editor:main . + - run: docker push docker.pkg.github.com/maputnik/editor/editor:main diff --git a/src/components/Doc.jsx b/src/components/Doc.jsx index af71f38a..3285165c 100644 --- a/src/components/Doc.jsx +++ b/src/components/Doc.jsx @@ -21,14 +21,14 @@ export default class Doc extends React.Component { const renderValues = ( !!values && - // HACK: Currently we merge additional values into the stylespec, so this is required - // See + // HACK: Currently we merge additional values into the style spec, so this is required + // See !Array.isArray(values) ); return ( <> - {doc && + {doc &&
{doc}
{renderValues &&