GitHubSettingsSync 2.0.0

dotnet tool install --global GitHubSettingsSync --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local GitHubSettingsSync --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GitHubSettingsSync&version=2.0.0
nuke :add-package GitHubSettingsSync --version 2.0.0

GitHubSettingsSync

Build(.NET) NuGet Azure Artifacts

GitHubの設定を同期するアプリケーションです。

説明

GitHubSettingsSyncは、GitHubリポジトリの設定を行うアプリケーションです。

使い方

GitHubアクション

on:
  workflow_dispatch:

jobs:
  sync-github-settings:
    runs-on: ubuntu-latest

    steps:
      - name: GitHub Settings Sync
        uses: finphie/GitHubSettingsSync@v2.0.0
        with:
          repositories: |
            GitHubSettingsSync
          has-issues: Unchanged
          has-projects: Unchanged
          has-wiki: Unchanged
          has-discussions: Unchanged
          allow-merge-commit: Unchanged
          allow-squash-merge: Unchanged
          allow-rebase-merge: Unchanged
          allow-auto-merge: Unchanged
          delete-branch-on-merge: Unchanged
          allow-update-branch: Unchanged
          merge-commit-title: Unchanged
          merge-commit-message: Unchanged
          squash-merge-commit-title: Unchanged
          squash-merge-commit-message: Unchanged
          branch-protection: false
          branch-protection-name: main
          branch-protection-enforce-admins: false
          branch-protection-required-linear-history: false
          branch-protection-allow-force-pushes: false
          branch-protection-allow-deletions: false
          branch-protection-required-conversation-resolution: false
          branch-protection-required-reviews: false
          branch-protection-required-reviews-dismiss-stale-reviews: false
          branch-protection-required-reviews-require-code-owner-reviews: false
          branch-protection-required-reviews-required-approving-review-count: 1
        env:
          GITHUB_TOKEN: {{ secrets.PAT }}

.NETツール

GitHubSettingsSync \
    --repositories GitHubSettingsSync \
    --has-issues Unchanged \
    --has-projects Unchanged \
    --has-wiki Unchanged \
    --has-discussions Unchanged \
    --allow-merge-commit Unchanged \
    --allow-squash-merge Unchanged \
    --allow-rebase-merge Unchanged \
    --allow-auto-merge Unchanged \
    --delete-branch-on-merge Unchanged \
    --allow-update-branch Unchanged \
    --merge-commit-title Unchanged \
    --merge-commit-message Unchanged \
    --squash-merge-commit-title Unchanged \
    --squash-merge-commit-message Unchanged \
    --branch-protection false \
    --branch-protection-name main \
    --branch-protection-enforce-admins false \
    --branch-protection-required-linear-history false \
    --branch-protection-allow-force-pushes false \
    --branch-protection-allow-deletions false \
    --branch-protection-required-conversation-resolution false \
    --branch-protection-required-reviews false \
    --branch-protection-required-reviews-dismiss-stale-reviews false \
    --branch-protection-required-reviews-require-code-owner-reviews false \
    --branch-protection-required-reviews-required-approving-review-count 1

引数

引数 必須 デフォルト 説明
repositories true - カンマ・半角スペース・改行区切りにした「オーナー名/リポジトリ名」形式のリスト。オーナー名を省略した場合は、「GITHUB_REPOSITORY_OWNER」環境変数を使用。
has-issues false Unchanged Issuesを有効にするかどうか。
has-projects false Unchanged Projectsを有効にするかどうか。
has-wiki false Unchanged Wikiを有効にするかどうか。
has-discussions false Unchanged Discussionsを有効にするかどうか。
allow-merge-commit false Unchanged 「Create a merge commit」を有効にするか。
allow-squash-merge false Unchanged 「Squash Merge」を有効にするかどうか。
allow-rebase-merge false Unchanged 「Rebase and Merge」を有効にするか。
allow-auto-merge false Unchanged 自動マージ機能を有効にするか。
delete-branch-on-merge false Unchanged プルリクエストマージ時に、ブランチを自動的に削除するかどうか。
allow-update-branch false Unchanged 「Update branch」を有効にするかどうか。
merge-commit-title false Unchanged マージにおけるコミットタイトルの種類。Unchanged・PullRequestTitle・MergeMessageのいずれか。
merge-commit-message false Unchanged マージにおけるコミットメッセージの種類。Unchanged・PullRequestTitle・PullRequestBody・Blankのいずれか。
squash-merge-commit-title false Unchanged スカッシュマージにおけるコミットタイトルの種類。Unchanged・PullRequestTitle・CommitOrPullRequestTitleのいずれか。
squash-merge-commit-message false Unchanged スカッシュマージにおけるコミットメッセージの種類。Unchanged・PullRequestBody・CommitMessages・Blankのいずれか。
branch-protection false Unchanged ブランチ保護を有効にするかどうか。
branch-protection-name false main ブランチ保護の対象ブランチ名。
branch-protection-enforce-admins false false ブランチ保護を管理者にも適用するか。
branch-protection-required-linear-history false false 直線状の履歴を必須にするかどうか。
branch-protection-allow-force-pushes false false 強制プッシュを許可するかどうか。
branch-protection-allow-deletions false false プッシュアクセス権を持つユーザーが、保護されたブランチを削除できるようにするかどうか。
branch-protection-required-conversation-resolution false false マージ前にコメントの解決を必須にするかどうか。
branch-protection-required-reviews false false レビューを必須にするかどうか。
branch-protection-required-reviews-dismiss-stale-reviews false false 新しいコミットがプッシュされたときに、承認済みのレビューを却下するかどうか。
branch-protection-required-reviews-require-code-owner-reviews false false コード所有者のレビューが必須かどうか。
branch-protection-required-reviews-required-approving-review-count false 1 プルリクエストの承認に必要なレビュアーの数。(1~6人)

環境変数

引数 必須 デフォルト 説明
GITHUB_TOKEN true - public_repoスコープを許可したGitHub Personal Access Token。
GITHUB_REPOSITORY_OWNER false ${{ github.repository_owner }} GitHubオーナー名。

作者

finphie

ライセンス

MIT

クレジット

このプロジェクトでは、次のライブラリ等を使用しています。

ライブラリ

アナライザー

その他

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.0.0 241 11/15/2023
1.1.1 224 3/19/2023
1.1.0 202 3/16/2023