Creates Trigger with executor identity in request body (v2 API).

Aperta
#313 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
api, cli

Direzione di ricerca

Start by tracing how the CLI creates triggers and handles the v2 API request; the issue links the API documentation but names no source files or tests. Check where request YAML is encoded and how executorInfo is passed, then identify a focused change and a test for the documented request shape. Done means the CLI can create a v2 trigger with the YAML string and executor identity in the JSON body.

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

Descrizione

https://apidocs.harness.io/triggers/createtriggerv2

curl -i -X POST
'https://app.harness.io/pipeline/api/triggers/v2?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&targetIdentifier=string&ignoreError=false&withServiceV2=true'
-H 'Content-Type: application/json'
-H 'x-api-key: YOUR_API_KEY_HERE'
-d '{
"yaml": "...",
"executorInfo": {
"uuid": "user-id",
"type": "USER"
}
}'

The structure of API is different as it passes yaml string inside json.. not supported in the core, need to look into the machinery for this..

Lingua principale
Go
Stelle
29
Fork
24
Merge medio
1g 9h
PR unite (30g)
111

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 harness/cli

Tutte le issue di harness/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.