Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gantonayde opened this issue Aug 28, 2023 · 0 comments · Fixed by #833
Open

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

gantonayde opened this issue Aug 28, 2023 · 0 comments · Fixed by #833

Comments

@gantonayde
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant