github / github/branch-deploy

Support for multiple deployments in one comment

オープン
#411 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
576
フォーク
74
平均マージ
11時間 7分
マージ済み PR(30日)
1

説明

### Details

# Hello

I would like to ask if it is possible to replace `context.payload.comment.body` with a specific comment body that is passed through the workflow call.

The reason I’m asking is that I want to support multiple deployments from a single comment. The repository I’m working on contains many different ArgoCD-managed apps (spread across 10+ clusters).

The way we currently use `.deploy` is like this:
```
.deploy app1-enva
```
where `app1` is the application and `enva` is the cluster where we want to deploy it.

I forked the repo about 2 months ago and made it work by building a matrix from the different `.deploy` commands and then running each sequentially. However, the branch-deploy workflow wanted to use the whole comment, e.g.:
```
.deploy app1-enva .deploy app2-envb
```
So I made some changes in the code and replaced `context.payload.comment.body` with a specific `COMMENT_BODY` passed from the matrix (always the one currently deploying). This worked.

Now, I’ve been asked if there’s a way to merge this change back into the original repo so we don’t need to maintain a separate fork.

So my question is: **Is it possible to merge my changes that replace `context.payload.comment.body` with a specific comment body that gets passed in through the workflow call?** Or it would break too many things for other users?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず branch-deploy workflow と context.payload.comment.body のすべての使用箇所を見つけ、これらの経路を、提案されている COMMENT_BODY workflow input およびマトリックスベースのデプロイフローと比較します。現在、単一のデプロイコメントがどのように解析され、workflow を通じて渡されているかを確認します。複数の .deploy コマンドを、既存の単一コマンドの動作を壊さずに、それぞれ独立して処理できれば完了です。

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

評価

技術スタック
github-actions, typescript
領域
ci-cd, devops
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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