Add `project.items.addByContentId` and `project.items.addByContentRepositoryAndNumber`
- 主要语言
- 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
贡献指南
调研方向
首先阅读现有的 project.items.add、project.items.updateByContentRepositoryAndNumber 和 project.items.removeByContentRepositoryAndNumber 方法,以了解它们的公共 API 和命名。完成的标准是,project.items.addByContentId 和 project.items.addByContentRepositoryAndNumber 能够添加现有的 issue 或 pull request,而无需先获取其 node ID,同时保持相关行为的一致性。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, javascript
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100