From f2aecf17d946b0aeb43cebb79560c0dad15f1a42 Mon Sep 17 00:00:00 2001 From: Mark Elliot Date: Mon, 12 Sep 2022 10:31:15 -0400 Subject: [PATCH] Add CODEOWNERS and autosquash (#111) --- .github/CODEOWNERS | 5 +++++ .github/workflows/autosquash.yml | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/autosquash.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..ed977aa --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# require code review for everything except versions +.github @markelliot +.spotless @markelliot +*/src/ @markelliot +readme.md @markelliot diff --git a/.github/workflows/autosquash.yml b/.github/workflows/autosquash.yml new file mode 100644 index 0000000..fee3d2a --- /dev/null +++ b/.github/workflows/autosquash.yml @@ -0,0 +1,23 @@ +name: autosquash +on: + pull_request: + types: + - opened + - synchronized + - reopened + - edited + - labeled + - unlabeled + - ready_for_review +jobs: + autosquash: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: theoremlp/autosquash@v1 + with: + github-token: ${{ secrets.GH_PUSH_TO_REPO_TOKEN }} + pull-request-number: ${{ github.event.pull_request.number }} + squash-commit-title: "${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }})" + squash-commit-message: "${{ github.event.pull_request.body }}" + do-not-merge-label: "do not merge"