crazy-max / ghaction-github-labeler

GitHub Action to manage labels on GitHub
https://github.com/marketplace/actions/github-labeler
MIT License
143 stars 17 forks source link

Label rename doesn't work #120

Closed jvalkeal closed 3 years ago

jvalkeal commented 3 years ago

I simply get an error Cannot rename "test" label: Not Found.

https://github.com/crazy-max/ghaction-github-labeler/blob/1479af0c4f82c1957ed0307f6a9291170aa4f21d/src/labeler.ts#L157

Looking above call, shouldn't parameters be like in an api docs:

await octokit.request('PATCH /repos/{owner}/{repo}/labels/{name}', {
  owner: 'octocat',
  repo: 'hello-world',
  name: 'name',
  new_name: 'new_name'
})