Git Flow: coder/coder/v2/cli: query coderd for git repo branches
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 3
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Relates to https://github.com/coder/internal/issues/404 and https://github.com/coder/internal/issues/405
Using the endpoint added in #405, query the git remote via coderd when a user creates a workspace build using the coder_git_repo data source.
This ticket tracks the required work for this functionality in the CLI/API.
Implementation notes:
- If the user does not specify a URL for the
coder_git_repodata source, we need to prompt the user to specify one so that we can check the remote. - If the user specifies a URL but not a branch, we should prompt the user to select a remote branch.
- If the user specifies both URL and branch, no prompt is required but the check should still be performed.
- We will likely need to use a similar approach to what the provider currently does when a parameter value is missing (
MISSING_TEMPLATE_PARAMETER) if a user attempts to read the data source without having set a value fordata.coder_git_repo.foo.url.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Datenquellenfluss von coder_git_repo in der CLI/API und prüfe die referenzierte Behandlung von MISSING_TEMPLATE_PARAMETER in provisionerd/runner/runner.go. Verfolge den Endpunkt aus #405 und den Workspace-Build-Pfad; fertig ist die Änderung, wenn bei fehlenden Werten eine Eingabeaufforderung für URL und Branch funktioniert, während explizit angegebene Werte weiterhin die Remote-Prüfung auslösen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- api, cli
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100