nextcloud / nextcloud/integration_github
'Default access token' doesn't seem to allow link previews at all
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 55
- Fork
- 13
- Merge trung bình
- 8 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 10
Mô tả
Hi
I want to enable link previews in Nextcloud documents for Github issues that are in private repositories.
I don't wish for my Nextcloud users to connect their own Github accounts to their Nextcloud accounts via OAuth.
I created a personal access token (the 'beta' kind, with finely scoped Read-Only access to: code, discussions, issues, metadata, and pull requests
I added that PAT to the global administrative settings in Nextcloud under settings/admin/connected-accounts as the 'Default access token'.
I ticked the box 'Enable Github link previews'
I still get 'Github API error Not Found' widgets appear in my documents when I paste a link to a Github issue in a private repository that this Github user has access to. The widget wants me to go to my personal account settings in Nextcloud to configure Github access, but I thought the 'default' access token should take care of it.
What's the problem? Is it the beta 'fine-grained' PAT method? I don't want to use the Classic method because I don't want Nextcloud to have write access to private repos through this token.
Otherwise, what are the scopes required for the PAT to work, with the beta method?
Do I still have to set up an OAuth2.0 app even though my use case is limited to link previews?
I am running Nextcloud 25.0.8, Github integration app 1.0.15
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu từ luồng settings/admin/connected-accounts và cài đặt “Enable Github link previews”, sau đó tái hiện phản hồi Not Found bằng token chỉ đọc có quyền chi tiết trên Nextcloud 25.0.8 và ứng dụng tích hợp GitHub 1.0.15. Hoàn tất khi xác định được token mặc định có được hỗ trợ cho bản xem trước issue riêng tư hay không, xác định các scope bắt buộc hoặc yêu cầu OAuth, đồng thời ghi lại hoặc sửa hành vi này.
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, backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 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
- 35/100