From 8530c0bd6459742e73363867d69b6a416a4ad68b Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 11 Nov 2024 06:00:52 -0800 Subject: [PATCH 1/2] Create restrict-prs.yml --- .github/workflows/restrict-prs.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/restrict-prs.yml diff --git a/.github/workflows/restrict-prs.yml b/.github/workflows/restrict-prs.yml new file mode 100644 index 0000000..9414c5f --- /dev/null +++ b/.github/workflows/restrict-prs.yml @@ -0,0 +1,16 @@ +name: Restrict PRs to Main + +on: + pull_request: + branches: + - main + +jobs: + restrict-pr: + runs-on: ubuntu-latest + steps: + - name: Check if PR is from development branch + if: github.event.pull_request.head.ref != 'development' + run: | + echo "Only pull requests from the 'development' branch are allowed." + exit 1 From b1002fa244593d8f9b382032770e7e7cf722689e Mon Sep 17 00:00:00 2001 From: danielromeo Date: Mon, 11 Nov 2024 16:01:45 +0200 Subject: [PATCH 2/2] test --- src/romeo.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/romeo.ts b/src/romeo.ts index 149710c..371fbcd 100644 --- a/src/romeo.ts +++ b/src/romeo.ts @@ -73,7 +73,6 @@ let codfalse = [1,1]; // console.log(isCoordinate(cod3)) // returns //console.log(isCoordinate(codfalse)) // returns false -// testing corrdinates equal: // console.log(coordinatesEqual(cod, reflexiveTest[0])); // console.log(reflexiveTest.entries().next());