Skip to content
Unverified Commit d23a1bbd authored by Dónal Murray's avatar Dónal Murray Committed by GitHub
Browse files

Fix generate-prdoc for single audiences (#6103)



`prdoc check -n NNNN` (used in CI) enforces that yaml lists only be used
for lists with length more than one.

Previously this script generated a list no matter how many audiences
were provided, which generated a broken PRDoc when that number was 1.

Reproducing the issue locally:
```
python .github/scripts/generate-prdoc.py --pr 6022 --bump patch --audience runtime_user --force
prdoc check -n 6022
```
Fails on master but passes with this change

Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 1cc760b2
Pipeline #501860 waiting for manual action with stages
in 29 minutes and 16 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment