Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat: Add `trigger-remote-workflow` action

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

Inputs、Auto-populated Payload、Example Usage の各セクションから始め、repository_dispatch イベントを送信するための GitHub API の要件を確認します。指定された inputs、context のデフォルト値、repository の検証、エラー処理を中心に再利用可能な action を実装します。ドキュメント化された対象 workflow を期待される payload でトリガーできれば完了です。

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

説明

enhancement new-action

Summary

Create a reusable GitHub Action that dispatches a repository_dispatch event to a target repository with auto-populated context from the source workflow.

Use Case

Enable source repositories (e.g., arustydev/ai, arustydev/just) to trigger workflows in a target repository (e.g., arustydev/docs) when their documentation changes. The action automatically populates payload context from GitHub environment variables.

Specification

Inputs
Input Required Default Description
target_repo Yes — Repository to trigger (owner/repo)
event_type Yes — Event type for repository_dispatch
token Yes — PAT with repo scope for target
source_repo No ${{ github.repository }} Source repository
ref No ${{ github.ref_name }} Branch/tag that triggered
sha No ${{ github.sha }} Commit SHA
path No — Relevant path (for filtering)
Auto-populated Payload
{
  "source_repo": "arustydev/ai",
  "ref": "main",
  "sha": "abc1234...",
  "path": "docs/src"
}
Example Usage
- uses: arustydev/gha/trigger-remote-workflow@v1
  with:
    target_repo: arustydev/docs
    event_type: docs-update
    token: ${{ secrets.DISPATCH_TOKEN }}
    path: docs/src

Implementation Notes

  • Use GitHub API to send repository_dispatch event
  • Auto-detect context from github.* environment variables when inputs not provided
  • Validate target_repo format (owner/repo)
  • Handle API errors gracefully with clear error messages

Related

  • Part of docs aggregation workflow extraction from justfile to GHA
  • Works with sparse-checkout-aggregate action in target repo
主要言語
Shell
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

aRustyDev/gh のほかの issue

aRustyDev/gh の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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