[FEAT] As a developer, I want to see these actions listed on the Github Marketplace.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- bash, git, github-actions
- 領域
- ci-cd
調査の方向性
The payload names no file in this repository. The only concrete material is the composite action YAML in the issue body, which uses git subtree split to push a subdirectory to another repo and tag it. Start by deciding which actions here would be published and whether maintainers want separate repositories at all. Done would mean a written plan agreed with maintainers, not a code change.
索引モデルが issue の本文から書いたものです。
説明
💡 Feature request
Feature Name
Github-Actions Monorepo splitter.
The Desired Behavior
It would be great if we could list these actions on the marketplace for better visibility.
@Tjitse-E was the original one to point this out, but the common pattern for actions is to put them in their own repo.
Luckily enough, since this is a git repo, doing sub-repo splits and tagging is actually quite easy.
I have an action that already does this:
name: "Publish Subtree"
author: "Graycore"
description: "A Github Action that publishes a subdirectory of a monorepo to another repo"
inputs:
targetRepo:
description: repository to sync the files to
required: true
sourceDir:
description: sub-directory that will be the source of the repository
required: true
token:
description: Github Token
required: true
syncBranch:
default: sync-branch
description: temporary branch that will be used for syncing
required: false
runs:
using: composite
steps:
# Add the target repository as a remote and fetch its branches
- name: Add target repo and fetch branches
run: |
git remote add target https://oauth2:${{ inputs.token }}@${{ inputs.targetRepo }}
git fetch target
shell: bash
# Sync the subdirectory using git subtree
- name: Create subtree branch
run: |
git subtree split --prefix=${{ inputs.sourceDir }} -b ${{ inputs.syncBranch }}
shell: bash
# Push the changes to the target repository
- name: Push changes to target repo
run: |
git push target ${{ inputs.syncBranch }}:main
shell: bash
# Create tag and push to target repo if triggered by tag event
- name: Create tag
if: github.ref_type == 'tag'
shell: bash
run: |
git checkout ${{ inputs.syncBranch }}
git config --global user.email "[email protected]"
git config --global user.name "Beep Boop"
git tag -a subtreetag -m ${{ github.ref_name }}
git push target subtreetag:${{ github.ref_name }}
But I haven't published it anywhere public. Feel free to use it, I'm stating it as MIT-licensed.
Your Use Case
As a developer, I want to see these actions listed on the Github Marketplace.
- 主要言語
- TypeScript
- スター
- 12
- フォーク
- 15
- 平均マージ
- 3日 15時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mage-os/github-actions のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
mage-os/github-actions#341 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
mage-os/github-actions#340 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
mage-os/github-actions#364 ·
-
難易度 3/5 半日 初心者へのやさしさ 65/100
mage-os/github-actions#363 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
mage-os/github-actions#359 · コメント 3 件 ·
mage-os/github-actions の issue をすべて見る
似ている issue
-
api bug priority:low ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wondermoney/wondermoney#862 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
rootsiemen/seo-agent-tools#70 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
elecnix/bellwether#467 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信