From ee58ed85f07158abfe807b69b5360675f89387ea Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 19:11:40 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat(githooks):=20=E2=9A=99=EF=B8=8F=20conf?= =?UTF-8?q?igure=20squash-only=20merge,=20branch=20cleanup,=20disable=20is?= =?UTF-8?q?sues=20and=20projects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01XWCx6fMZcKPEkchb6kbFG8 --- .../.github/workflows/configure-github.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/githooks/stubs/.github/workflows/configure-github.yml b/src/githooks/stubs/.github/workflows/configure-github.yml index 91c161b8..8bb401ba 100644 --- a/src/githooks/stubs/.github/workflows/configure-github.yml +++ b/src/githooks/stubs/.github/workflows/configure-github.yml @@ -34,6 +34,24 @@ jobs: client-id: ${{ secrets.KLICKSPLIT_CLIENT_ID }} private-key: ${{ secrets.KLICKSPLIT_APP_KEY }} + - name: Configure repository settings + if: ${{ env.KLICKSPLIT_CLIENT_ID != '' }} + uses: actions/github-script@v9 + with: + github-token: ${{ steps.app-token.outputs.token }} + script: | + await github.rest.repos.update({ + owner: context.repo.owner, + repo: context.repo.repo, + allow_squash_merge: true, + allow_merge_commit: false, + allow_rebase_merge: false, + allow_update_branch: true, + delete_branch_on_merge: true, + has_issues: false, + has_projects: false, + }); + - name: Restrict main to GitHub bot if: ${{ env.KLICKSPLIT_CLIENT_ID != '' }} uses: actions/github-script@v9 From 39c73d59ebead66ddfdf018cd9cfd8d282447e55 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 19:14:04 +0000 Subject: [PATCH 2/2] =?UTF-8?q?feat(githooks):=20=E2=9A=99=EF=B8=8F=20dogf?= =?UTF-8?q?ood=20repository=20settings=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01XWCx6fMZcKPEkchb6kbFG8 --- .github/workflows/configure-github.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/configure-github.yml b/.github/workflows/configure-github.yml index 91c161b8..8bb401ba 100644 --- a/.github/workflows/configure-github.yml +++ b/.github/workflows/configure-github.yml @@ -34,6 +34,24 @@ jobs: client-id: ${{ secrets.KLICKSPLIT_CLIENT_ID }} private-key: ${{ secrets.KLICKSPLIT_APP_KEY }} + - name: Configure repository settings + if: ${{ env.KLICKSPLIT_CLIENT_ID != '' }} + uses: actions/github-script@v9 + with: + github-token: ${{ steps.app-token.outputs.token }} + script: | + await github.rest.repos.update({ + owner: context.repo.owner, + repo: context.repo.repo, + allow_squash_merge: true, + allow_merge_commit: false, + allow_rebase_merge: false, + allow_update_branch: true, + delete_branch_on_merge: true, + has_issues: false, + has_projects: false, + }); + - name: Restrict main to GitHub bot if: ${{ env.KLICKSPLIT_CLIENT_ID != '' }} uses: actions/github-script@v9