crew: one-click GitHub App setup (manifest flow, prefilled), pick which orgs/repos it can access
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- github, rust
調査の方向性
Start by reading the GitHub integration under Atlas Crew → Settings → GitHub and trace how the current gh login credentials are stored and used. Then map the manifest conversion, webhook setup, installation token, and app installation flows described in the issue to the relevant entry points. Done means users can create and install a scoped GitHub App from Atlas while the existing login remains available.
索引モデルが issue の本文から書いたものです。
説明
Problem
Today a crew server reaches GitHub through gh signed in as the crew user (device-code login in Atlas Crew → Settings → GitHub). That is a personal login: the crewmates act as that user, with that user's reach, and choosing which organizations and repos the crew may touch means setting things up by hand on GitHub. Creating a GitHub App by hand for the crew (name, permissions, events, webhook URL, keys) is long and easy to get wrong.
Suggestion: one-click GitHub App, created from Atlas
Use GitHub's App manifest flow so the app is created with everything already filled in:
- In Atlas Crew → Settings → GitHub, a Create GitHub App button, with a choice of owner: my account or one of my organizations.
- Atlas opens GitHub's "create app" page with a manifest that already has the name (e.g.
atlas-crew-<server>), the permissions the crew features need (contents, pull requests, issues, checks/actions read, metadata), the events the GitHub automations use (issue comments, issues, pull requests, PR review comments, check runs/workflow runs, releases) and the webhook URL of the crew server's hook server when it is reachable. The user only confirms on GitHub. - GitHub sends back the code; Atlas converts it (
POST /app-manifests/{code}/conversions) and stores the app id, private key and webhook secret on the crew server, as secrets of the crew (never in a repo, never sent to CodeAtlas). - Atlas then opens the app's Install page, where the user picks which organizations and which repos the app gets access to. Changing that later is one link from Atlas Settings.
- Crewmates use short-lived installation tokens from the app for git and the GitHub API, instead of a personal
ghlogin.
Why
- One click instead of a manual app setup.
- Access is scoped by GitHub itself: the owner picks orgs and repos, and can revoke the app at any time.
- Commits, comments and PRs come from a bot identity (
atlas-crew-<server>[bot]), not from the owner's personal account. - With the webhook set, GitHub automations can fire on events instead of polling every 2 minutes.
The current gh login can stay as the simple option.
- 主要言語
- Rust
- スター
- 3
- フォーク
- 1
- 平均マージ
- 9時間 51分
- マージ済み PR(30日)
- 310
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codeatlasdev/atlas のほかの issue
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
codeatlasdev/atlas#597 ·
メンテナーはふだん 1 日以内に返信
-
area: ci os: linux type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
codeatlasdev/atlas#496 ·
メンテナーはふだん 1 日以内に返信
-
area: ci type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
codeatlasdev/atlas#596 ·
メンテナーはふだん 1 日以内に返信
-
os: linux type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
codeatlasdev/atlas#591 ·
メンテナーはふだん 1 日以内に返信
-
flaky: Windows scripts job hits test timeouts (check-dco, i18n runner/translate, check-changed)オープンarea: ci os: windows type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
codeatlasdev/atlas#550 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
codeatlasdev/atlas の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tinystream-dev/tinystream#132 ·
-
contract good first issue testing
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Emmyt24/nova-launch#2436 ·
メンテナーはふだん 1 日以内に返信