0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitHubでリポジトリ作った後の設定を楽にしたかった

0
Last updated at Posted at 2026-03-24

templateではなくて、手動で設定することになるアレコレを楽にしたかった

ということで、issue + Copilot で対応

  1. issueに↓をコピペ

    # GitHub基本設定
    
    ## Userが設定する
    
    - [ ] [Settings/rules](../settings/rules)で Branch Protection Rules を設定
    - [ ] [Settings](../settings)で Automatically delete head branches を設定
    - [ ] [security](../security)で 設定
    
    ## Copilotへの依頼
    
    以下の対応をお願いします。
    
    1. Dependabot version updates を設定する
        `.github/dependabot.yml` を追加する
    
        ```yaml
        # .github/dependabot.yml
        version: 2
        updates:
          # GitHub Actions の自動更新
          - package-ecosystem: github-actions
            directory: /
            schedule:
              interval: weekly
            assignees:
              - kotaoue
        ```
    
        を基本として、リポジトリで使っている言語についても追加して
    
    1. ActionのバージョンをコミットSHAで固定する
        ワークフローの `uses:` をタグ指定からコミットSHAで固定する
    
        ```yaml
        # NG(タグ指定)
        - uses: actions/checkout@v4
    
        # OK(コミットSHAで固定)
        - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        ```
    
    

    kotaoue/major-tag-floater/issues/6

  2. 手動で設定したら issue を Copilot にアサイン

  3. PRをマージ
    kotaoue/major-tag-floater/pull/7

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?