[Repo Assist] [Eng] Add CI concurrency settings to cancel superseded PR runs

オープン 初心者向け
#4,531 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
github-actions
領域
ci-cd, devops

調査の方向性

.github/workflows/build.yml を開き、提案された concurrency 設定を適用する前に既存の CI ワークフローを確認します。同じ pull request ブランチに対する新しい実行によって古い実行がキャンセルされる一方、main への push はキャンセルされないことを確認します。結果として実行された GitHub Actions の実行を通じて、ワークフロー設定を検証します。

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

説明

agentic-workflows automation repo-assist

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

Adds a concurrency group to the CI workflow so that when multiple commits are pushed to the same PR branch in quick succession, only the latest run proceeds — older in-progress runs are automatically cancelled.

This is particularly valuable for this repo because:

  • The CI is slow (60-min timeout for JavaScript tests, plus TypeScript, Python, Rust, Dart, BEAM jobs)
  • Contributors often push quick follow-up fixes after review feedback
  • Without this, each push queues a full separate run, wasting runner minutes

Change

concurrency:
  group: $\{\{ github.workflow }}-$\{\{ github.ref }}
  cancel-in-progress: $\{\{ github.ref != 'refs/heads/main' }}
  • PR branches: a new push cancels any running CI for that same PR
  • main branch: all pushes always complete (no cancellation), so merge history is fully validated

Closes #4530


Only the CI workflow configuration was changed — no code logic was modified.


[!WARNING]
Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 24320963492 -n agent -D /tmp/agent-24320963492

# Create a new branch
git checkout -b repo-assist/eng-ci-concurrency-2026-04-9ed9a15555f59fd8 main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-24320963492/aw-repo-assist-eng-ci-concurrency-2026-04.patch

# Push the branch and create the pull request
git push origin repo-assist/eng-ci-concurrency-2026-04-9ed9a15555f59fd8
gh pr create --title '[Repo Assist] [Eng] Add CI concurrency settings to cancel superseded PR runs' --base main --head repo-assist/eng-ci-concurrency-2026-04-9ed9a15555f59fd8 --repo fable-compiler/Fable

Generated by Repo Assist · ● 6.5M · ◷

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f
主要言語
F#
スター
3.2k
フォーク
335
平均マージ
18時間 54分
マージ済み PR(30日)
155

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

fable-compiler/Fable のほかの issue

fable-compiler/Fable の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

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

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