編集

GitHub Agentic Workflows Technical Preview公開

GitHubは、リポジトリ内のタスクをAIエージェントで自動化するGitHub Agentic WorkflowsのTechnical Previewを公開。

自然言語(Markdown)でワークフローを定義し、GitHub Actions上で実行可能。 Copilot CLIやClaude Codeなどのエージェントと連携し、コードのリファクタリング、ドキュメントの更新、CI失敗時の分析など、判断を要するタスクの自動化を実現。

以下は、ワークフローの記述例。他にも公式ドキュメントにパターンが複数用意されている。

markdown
---
on:
  issues:
    types: [opened]
permissions:
  contents: read
  actions: read
safe-outputs:
  add-comment:
    max: 2
---

# Issue Triage Assistant

Analyze new issue content and provide helpful guidance. Examine the title and description for bug reports needing information, feature requests to categorize, questions to answer, or potential duplicates. Respond with a comment guiding next steps or providing immediate assistance.

YAMLのFrontmatterでトリガーや権限を定義し、Markdown本文でAIへの指示を自然言語で記述可能。

Agent Workflowの作成には、GitHubまたはVSCodeのコーディングエージェントを利用した方法と、github/gh-awで手動で作成する方法がある。

出展:Automate repository tasks with GitHub Agentic Workflows, Creating Agentic Workflows

編集