nextcloud / nextcloud/integration_github
'Default access token' doesn't seem to allow link previews at all
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 55
- フォーク
- 13
- 平均マージ
- 8日 9時間
- マージ済み PR(30日)
- 10
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
settings/admin/connected-accounts フローと「Enable Github link previews」設定から始め、Nextcloud 25.0.8 および GitHub integration app 1.0.15 で、きめ細かな読み取り専用トークンを使って Not Found 応答を再現します。完了条件は、プライベートな issue のプレビューでデフォルトトークンがサポートされているかを判断し、必要なスコープまたは OAuth 要件を特定し、動作を文書化または修正することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github, javascript
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100