github-community-projects / github-community-projects/safe-settings

The 🐛 character in a label fails

Open
#428 0 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
921
Forks
226
Avg merge
18h 3m
Merged PRs (30d)
14

Description

## Problem Description

The 🐛 character in labels fails to set label description

### What is actually happening

It sets the other labels and the other fields of the same label but the one with a unicode char has a blank description.

### What is the expected behavior

I expect it to handle unicode characters gracefully and to successfully set settings.

### Error output, if available

```
error calling find for Labels HttpError: Validation Failed: {"resource":"Label","code":"custom","field":"description","message":"description doesn't accept 4-byte Unicode"} for repo: {"owner":"xyz-payer","repo":"upde_nc_csp_adf_pipelines"} entries [{"name":"bug","color":"CC0000","description":"An issue with the system 🐛."},{"name":"feature","color":"336699","description":"New functionality."},{"name":"documentation","color":"7A95CC","description":"Includes changes to documentation"},{"name":"tech debt","color":"ff6600","description":"Non breaking refactor or cleanup changes"},{"name":"hotfix","color":"FF69B4","description":"Immediate reviews required for production issue"},{"name":"security","color":"b22222","description":"Related to Security Violations"},{"name":"breaking","color":"ff0000","description":"Includes a breaking change"},{"name":"ci","color":"228b22","description":"Includes a change to workflows or deployments"}]
```

## Context

### Are you using the hosted instance of probot/settings or running your own?

Running our own.

### If running your own instance, are you using it with github.com or GitHub Enterprise?

github enterprise cloud (github.com/enterprisename)

#### Version of probot/settings

2.0.21-rc.8

#### Version of GitHub Enterprise

Not sure.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.