Skip to content

Repo description with a single quote in the name causes an error #729

Description

@gantonayde

Post-merge flowzone action failed during Apply repo settings/Configure repository step https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:57

with:

Run # only change repository visibility if explicitly set to one of the permissible values
  # only change repository visibility if explicitly set to one of the permissible values
  visibility=''
  if [[ 'default' =~ private|public|internal ]]; then
      gh repo edit 'people-os/support-shift-scheduler' \
        --visibility 'default' || true
  fi
  
  if [[ -n 'Project for scheduling Balena's engineers for customer support' ]]; then
      gh repo edit 'people-os/support-shift-scheduler' \
        --description 'Project for scheduling Balena's engineers for customer support'
  fi
  
  if [[ -n '' ]]; then
      homepage=''
  elif [[ -n '' ]]; then
      homepage='https://.pages.dev'
  else
      homepage=''
  fi
  [[ -n "${homepage}" ]] && gh repo edit 'people-os/support-shift-scheduler' \
    --homepage "${homepage}"
  
  # HTTP 4[2](https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:2)2: This organization does not allow private repository forking
  if ! gh repo edit 'people-os/support-shift-scheduler' \
    --allow-forking=true; then
      echo '::warning::Failed to configure some repository settings.'
  fi
  
  # FIXME: https://github.com/cli/cli/issues/6652#issuecomment-1[3](https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:3)23908232
  gh repo edit 'people-os/support-shift-scheduler' \
    --default-branch=master \
    --delete-branch-on-merge=true \
    --enable-auto-merge=true \
    --enable-issues=true \
    --enable-merge-commit=true \
    --enable-projects=false \
    --enable-rebase-merge=false \
    --enable-squash-merge=false \
    --enable-wiki=false
  
  # allow_update_branch not currently available for update via gh-cli
  gh api --method PATCH '/repos/people-os/support-shift-scheduler' \
    -H "Accept: application/vnd.github+json" \
    -F allow_update_branch='true'
  shell: /usr/bin/bash -e {0}
  env:
    NPM_REGISTRY: https://registry.npmjs.org
    CARGO_REGISTRY: crates.io
    GH_DEBUG: true
    GH_PAGER: cat
    GH_PROMPT_DISABLED: true
    GH_REPO: people-os/support-shift-scheduler
    GH_TOKEN: ***
/home/runner/work/_temp/da[4](https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:4)e[5](https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:5)8[6](https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:6)3-0a66-4[8](https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:8)f2-aa80-12b8e[9](https://github.com/people-os/support-shift-scheduler/actions/runs/6000652245/job/16273493272#step:3:9)dd82c1.sh: line 8: syntax error in conditional expression
Error: Process completed with exit code 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions