gr2m / gr2m/github-project

Add `project.items.addByContentId` and `project.items.addByContentRepositoryAndNumber`

オープン
#71 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature
主要言語
JavaScript
スター
36
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

説明

### Please avoid duplicates

- [X] I checked [all open feature requests](https://github.com/gr2m/github-project/issues?q=is%3Aissue+is%3Aopen+label%3Afeature) and none of them matched my problem.

### What’s missing?

We have `project.items.updateByContentRepositoryAndNumber` and `project.items.removeByContentRepositoryAndNumber`, but we do not have a method to add an existing issue or pull request using its repository name and number.

(I'm not sure if using `by` is grammatically correct English, I'm open to alternative ideas. But the names would be consistent with it's `project.items.update*` and `project.items.remove*` counterparts that way.)

This would replace the current `project.items.add`

### Why?

see ☝🏼

### Alternatives you tried

manually retrieve an issue/PR object in order to retrieve the node ID, then pass it to `project.items.add(nodeId)`

### Would you be interested in contributing the feature?

- [ ] yes

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。