knl / niv-updater-action

A GitHub Action that creates meaningful pull requests with updates to your niv-managed dependencies, so you don't have to do menial chores.
BSD 3-Clause "New" or "Revised" License
29 stars 11 forks source link

Add labels #9

Closed knl closed 4 years ago

knl commented 4 years ago

Unlike other lists, we can't split on , for the labels, as they can contain anything on GitHub, even emojis 🤢 Thus, we need to split on a newline, the only character that a label can't contain. This, in turn, makes the code unbelieveably simpler, since bash assumes everything to be split on a newline 🎉

In order to properly send the data to GitHub's API, we need to rely on jo, as manually constructing JSON payloads is for optimists.

Closes #5.