Giter VIP home page Giter VIP logo

githubsettingssync's Introduction

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/[email protected]
        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

クレジット

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

ライブラリ

アナライザー

その他

githubsettingssync's People

Contributors

dependabot[bot] avatar finphie avatar

Watchers

 avatar

githubsettingssync's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.