Closed oscard0m closed 1 year ago
Sure, we can add a .labels
option that can be set to an array of label names?
The endpoint accepts multiple labels as an array when using @octokit/request
, it makes sense to follow that
The endpoint accepts multiple labels as an array when using
@octokit/request
, it makes sense to follow that
I'm a bit confused with labels
parameter:
@octokit/rest
[^1][^2], labels
does not appear as a property of Options
README.md
herelabels
as an option when creating a Pull Request
issues
, not PRs + issues
pr
with labels
(gh pr create --label label1,label2,label3
) so I'm assuming is possible.It's GitHub's Documentation wrong or our types are wrong? Or there is something I'm not understanding.
[^1]: @octokit/request.js
README
[^2]: TypeScript Playground using octokit.request()
with labels
- And GitHub's cli offers creating a
pr
withlabels
(gh pr create --label label1,label2,label3
) so I'm assuming is possible.
it's probably two requests
- but I see it in the
README.md
here
The request is not to create a pull request, the example is showing POST /repos/{owner}/{repo}/issues/{number}/labels
- but I see it in the
README.md
hereThe request is not to create a pull request, the example is showing
POST /repos/{owner}/{repo}/issues/{number}/labels
🤦🏽 I misread it.
:tada: This issue has been resolved in version 5.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Would it be possible to extend this plugin to give support to creating a PR with a label?
Relates to https://github.com/wolfy1339/octoherd-script-remove-eol-node-versions/issues/3