Skip to content

ラベルベースのステージングキュー管理を実装する #88

@fumikito

Description

@fumikito

背景

ステージング環境が1つで複数PRが同時に来る場合(UIの軽微な修正が5〜6個まとめて来るケースあり)、
どのPRがステージングに乗っているか管理できず上書き事故が起きる。

ラベル設計

ラベル 意味 操作
staging: queued 順番待ち 自動付与
staging: active 確認中 自動付与
staging: waiting-changes 修正待ち退避 手動
staging: done 完了 手動

フロー

  • PR作成 → 自動で staging: queued 付与
  • staging: active なPRがなければ即デプロイ・昇格
  • レビュアーが staging: done に変更 → 次のqueuedが自動デプロイ
  • request changes → 手動で staging: waiting-changes に変更 → 次のqueuedが自動昇格
  • 修正プッシュ → waiting-changes が自動で queued に戻る(キュー末尾)

現在の状態確認

staging: active のPR一覧URLをSlackにピン留めする:
https://github.com/tarosky/workflows/pulls?q=is:open+label:"staging: active"

関連イシュー

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions