Skip to content

Commit 0c94d6a

Browse files
committed
Fix codecov config
The previous `.codecov.yml` file had an invalid configuration: ```bash $ curl --data-binary @.codecov.yml https://codecov.io/validate Error at ['coverage', 'status', 'project', 'threshold']: must be of ['dict', 'boolean'] type ``` According to the [documentation](https://docs.codecov.com/docs/commit-status#section-project-status), `coverage.status.project` does not seem to accept configuration parameters directly. Instead it requires a mapping between project names (or `"default"` when all the projects are target) and the configuration parameters. This change fixes that by introducing a new nesting level with the `default` key between `project` and `default`. This passes the validation: ```bash % curl --data-binary @.codecov.yml https://codecov.io/validate Valid! { "comment": false, "coverage": { "status": { "project": { "default": { "threshold": 0.5 } } } } } ```
1 parent 1a1397a commit 0c94d6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.codecov.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ comment: false
22
coverage:
33
status:
44
project:
5-
threshold: 0.5%
5+
default:
6+
threshold: 0.5%

0 commit comments

Comments
 (0)