Add `project.items.addByContentId` and `project.items.addByContentRepositoryAndNumber`
- Ngôn ngữ chính
- JavaScript
- Star
- 36
- Fork
- 10
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### 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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách đọc các phương thức hiện có project.items.add, project.items.updateByContentRepositoryAndNumber và project.items.removeByContentRepositoryAndNumber để hiểu API công khai và cách đặt tên của chúng. Công việc được xem là hoàn thành khi project.items.addByContentId và project.items.addByContentRepositoryAndNumber có thể thêm một issue hoặc pull request hiện có mà không cần lấy node ID của nó trước, đồng thời vẫn giữ hành vi liên quan nhất quán.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github, javascript
- Lĩnh vực
- api
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100