Home›Industry & Policy›GitHubの非同期マージAPIが一般提供開始
GitHub async merge API generally available

GitHubの非同期マージAPIが一般提供開始GitHub async merge API generally available

元記事を読むRead original articlegithub.blog(新しいタブで開きます)(opens in a new tab)
AI2 点サマリSummary highlight
  • GitHubの非同期マージAPIが一般提供となり、単独またはスタックされたプルリクエストの処理、マージキューへの追加、直接マージに対応した。
  • 結果をポーリングで確認でき、混雑したリポジトリでも自動化を効率よく運用できる。

GitHub's asynchronous merge API is now generally available for single or stacked pull requests, merge queues, and direct merges, keeping automation responsive in busy repositories.

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (github.blog) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (github.blog).

要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.

GitHubの非同期マージAPIが一般提供となった。単独またはスタックされたプルリクエストを扱え、混雑したリポジトリでマージ処理を自動化する際に、複雑な処理の完了を一つのリクエスト内で待たずに済む。

一般提供開始

非同期マージAPIでは、個別のプルリクエストと、複数を積み重ねたスタック形式のプルリクエストをマージできる。スタックされたプルリクエストをサポートするマージAPIは、この非同期マージAPIのみと説明されている。

マージキュー

処理方法としては、プルリクエストをマージキューへ追加する方法と、直接マージする方法の両方に対応する。また、必要な権限を持っている場合は、ルールを任意でバイパスすることも可能とされる。単独のプルリクエストだけでなく、異なるマージ方法を同じAPIから扱える構成だ。

PUTとGET

利用時は、まずPUTでマージリクエストを送信する。APIから返されたリクエストIDを使い、その後はGETによるポーリングで処理状況を確認する。マージ自体が非同期で進むため、自動化処理は、一回のリクエストで複雑なマージが終了するまで待機する必要がない。これにより、処理が集中するリポジトリでも自動化を応答可能な状態に保ちやすい。

推奨API

プルリクエストをプログラムからマージする場合、非同期マージAPIが推奨される経路となった。従来の同期RESTエンドポイントやGraphQL mutationsの代わりに利用する位置付けで、リクエストパラメーターと使用例は非同期マージAPIのドキュメントで確認できる。

Generally available

GitHub’s async merge API is now generally available for programmatically merging pull requests. It matters for automations operating in busy repositories because merge processing happens asynchronously, so they do not have to wait for a complex merge to finish within a single request.

The API can handle individual pull requests, stacked pull requests, merge-queue operations, and direct merges. It can also optionally bypass rules when the caller has the required permission.

Individual or stacked pull requests

The API supports merging either a single pull request or a stack of pull requests. It is the only GitHub merge API identified as supporting stacked pull requests.

Automations can also use the API to add pull requests to a merge queue. Alternatively, they can request that pull requests be merged directly. These options place individual, stacked, queued, and direct merge workflows within the same asynchronous API.

Processes merges asynchronously

Using the API involves submitting a merge request with PUT. GitHub returns a request ID, which the automation can then use when polling with GET to check the merge request’s status.

This request-and-polling model avoids requiring a complex merge to complete as part of one request. As a result, automations can continue handling work in busy repositories while GitHub processes the merge asynchronously, then check the result through subsequent status requests.

Recommended path

The async merge API is now GitHub’s recommended path for programmatic pull-request merging. It replaces the synchronous REST endpoint or GraphQL mutations as the recommended approach.

GitHub’s async merge API documentation provides the available request parameters and examples for implementing the workflow.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPoko混み合うリポジトリでマージを自動化していると、普段の作業はどう変わるの?If merges are automated in a busy repository, how does this change the day-to-day workflow?
  2. TECHガイドTECH Guide複雑なマージの完了を1回のリクエスト内で待たず、自動化を応答しやすく保てるよ。PUTで依頼し、返ったIDをGETで確認するんだ。Automation no longer has to wait for a complex merge to finish in one request. Send it with PUT, then use the returned ID to check the status with GET.
  3. ポコPoko前のAPIではできなかったの? 待つ仕組みだったのかな。Couldn’t the previous APIs do that? Did they have to wait for the merge?
  4. TECHガイドTECH Guide従来の選択肢は同期RESTエンドポイントやGraphQLミューテーションだったよ。スタックされたプルリクエストに対応するマージAPIは、これだけなんだ。The previous options were the synchronous REST endpoint and GraphQL mutations. This is the only merge API that supports stacked pull requests.
  5. ポコPokoいちばんの収穫は、マージ依頼と結果確認を分けて、混雑時も自動化を動かしやすくできることなんだね。So the big takeaway is that separating the merge request from the status check helps automation stay responsive when repositories are busy.
  6. TECHガイドTECH Guideそうだね。次はドキュメントでリクエストのパラメータと例を確認したいね。Right. Next, it’s worth checking the documentation for request parameters and examples.
記事情報・収集記録Article details & collection record
出典Source
GitHub Changelog公式Official
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
変更履歴Changelog
原文言語Source language
EN
重要度の位置づけImportance in this lane
MediumMedium priority(Industry & Policy 456件中、同等以上 398件)(398 of 456 Industry & Policy entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.0 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
短命 (ニュース)Short-lived (news)

📰Industry & Policy の他の記事More from Industry & Policyもっと見る →View more →

ページ上部へScroll to top