Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Azure DevOps support for `deps import`

Chiusa
#44 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
azure, git, go
Ambito
cli, devops

Direzione di ricerca

Inizia esaminando il branch del fork indicato e la pull request precedente, quindi analizza ParseSource, Source.Project ed ExecRunner.Run insieme ai 14 test aggiunti. Conferma che l’approccio esistente si integri correttamente con deps import, preservi il comportamento di GitHub e superi tutti i controlli CI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I've implemented Azure DevOps support for modelith deps import on a fork branch:

https://github.com/gosharplite/modelith/tree/feat/ado-deps-import

It follows the same "no TLS in modelith" pattern — all network calls go through az rest via the Runner interface. No HTTP client or credential handling in modelith itself.

What's there:

  • ParseSource accepts dev.azure.com blob URLs:
    https://dev.azure.com/{org}/{project}/_git/{repo}?path=...&version=GB{branch}
  • GB/GT/GC version prefixes mapped to branch/tag/commit in the API calls
  • --resource 499b84ac-1321-427f-aa17-267ca6975798 passed to az rest so it gets an AAD token with the correct audience
  • Source.Project field added (empty for GitHub)
  • ExecRunner.Run shows correct install instructions per CLI (az login vs gh auth login)
  • 14 new tests, all CI checks passing

Usage:

az login
modelith deps import \
  "https://dev.azure.com/myorg/myproject/_git/myrepo?path=docs/payments.modelith.yaml&version=GBmain"

I don't have much experience with upstream PRs in open-source world — feel free to reference, adapt, or take anything useful from the branch. If a PR would be helpful I'm happy to open one with some guidance.

The full commit history and an earlier review thread are at https://github.com/gosharplite/modelith/pull/1.

p.s. I find modelith extremely useful and use it on my agent tool and several Azure DevOps repos: https://github.com/gosharplite/tell-me-go/tree/main/docs/domain-model#how-modelith-helps-tell-me-go

Lingua principale
Go
Stelle
34
Fork
5
Merge medio
5h 7m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stacklok/modelith

Tutte le issue di stacklok/modelith

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.