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

Breakdown of errors should print the repository name next to the error message

Open
#327 0 comments 0 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

### What is actually happening

I am using the configvalidators and in case of an error found on a repository it would be good to see on which the error actually happened.

The behaviour happens only when validating repositories on org or suborg level. For repositories configured in repo settings it is printing the repo name correctly.

This is how it currently looks like. For now we can see only the name of the `admin` repository itself but not on which the error was discovered:
```
Breakdown of errors
admin: Error: Admin cannot be assigned to collaborators
,Error: Admin cannot be assigned to collaborators
,Error: Admin cannot be assigned to collaborators
,Error: Admin cannot be assigned to collaborators
,Error: Admin cannot be assigned to collaborators
```

### What is the expected behavior
I would like to see the repository name next to the error:

```
Breakdown of errors
repoA: Error: Admin cannot be assigned to collaborators
, repoB: Error: Admin cannot be assigned to collaborators
,repoC: Error: Admin cannot be assigned to collaborators
,repoD: Error: Admin cannot be assigned to collaborators
,repoE: Error: Admin cannot be assigned to collaborators
```

### Error output, if available

```

```

## Context

### Are you using the hosted instance of probot/settings or running your own?
Hosting on our own Azure VM based instance.

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

#### Version of probot/settings
2.0.17

#### Version of GitHub Enterprise

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.