From 59b57b17bacc4753b8f264db073bfe009db5f7be Mon Sep 17 00:00:00 2001 From: Will FP <38837418+WillFP@users.noreply.github.com> Date: Sat, 17 Jun 2023 20:35:49 +0200 Subject: [PATCH 1/2] Create master-pr.yml --- .github/workflows/master-pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/master-pr.yml diff --git a/.github/workflows/master-pr.yml b/.github/workflows/master-pr.yml new file mode 100644 index 00000000..3f3551ca --- /dev/null +++ b/.github/workflows/master-pr.yml @@ -0,0 +1,21 @@ +name: PR Alert for Master Branch +on: + pull_request: + branches: + - master + +jobs: + alert: + runs-on: ubuntu-latest + steps: + - name: Comment PR + uses: actions/github-script@v5 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '⚠️ PRs should not be opened against the `master` branch directly. Please use the `develop` branch as the base for your PRs. ⚠️' + }) From 178f21b1f362864e726b76b9428417dfc1bde570 Mon Sep 17 00:00:00 2001 From: Will FP <38837418+WillFP@users.noreply.github.com> Date: Sat, 17 Jun 2023 21:14:57 +0200 Subject: [PATCH 2/2] Create CODEOWNERS --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..87fb27aa --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @WillFP