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

オープン
#313 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
api, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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..

主要言語
Go
スター
29
フォーク
24
平均マージ
1日 9時間
マージ済み PR(30日)
111

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

harness/cli のほかの issue

harness/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。