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

CI: label check fails if a bug label is assigned to PR #1172

Open
RolandSherwin opened this issue Jan 11, 2024 · 0 comments
Open

CI: label check fails if a bug label is assigned to PR #1172

RolandSherwin opened this issue Jan 11, 2024 · 0 comments

Comments

@RolandSherwin
Copy link
Member

The output from a failed run, when bug label was included.

 LABELS=$(echo '[
    {
      "color": "d73a4a",
      "default": true,
      "description": "Something isn't working",
      "id": 5267599031,
      "name": "bug",
      "node_id": "LA_kwDOJJwJ-M8AAAABOfkutw",
      "url": "https://api.github.com/repos/maidsafe/safe_network/labels/bug"
    },
    {
      "color": "c90076",
      "default": false,
      "description": "Pull request is large",
      "id": 5308799389,
      "name": "large",
      "node_id": "LA_kwDOJJwJ-M8AAAABPG3ZnQ",
      "url": "https://api.github.com/repos/maidsafe/safe_network/labels/large"
    }
  ]' | jq -r '.[].name')
  echo -e "This PR has the following Labels:\n$LABELS"
  if [[ $LABELS == *"DoNotMerge"* ]]; then
    echo "This PR is labeled as DoNotMerge!"
    exit 1
  fi
  shell: /usr/bin/bash -e {0}
/home/runner/work/_temp/a11aa1e7-947e-4086-9341-3cc480257a77.sh: line 23: unexpected EOF while looking for matching `"'
Error: Process completed with exit code 2.
@RolandSherwin RolandSherwin changed the title CI: label check fails if a bug label is assigned to it CI: label check fails if a bug label is assigned to PR Jan 11, 2024
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

No branches or pull requests

1 participant