add bypass (#31)

* add bypass

* update readme
This commit is contained in:
Axel Adlercreutz
2025-01-29 11:43:13 +02:00
committed by GitHub
parent 556a801ebf
commit 72bddbb197
2 changed files with 28 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: "Pull Request"
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
permissions:
pull-requests: write
contents: write
jobs:
bypass-approver:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check for label and approve PR
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels -q '.labels[].name')
if echo "$labels" | grep -q "bypass"; then
pr_author="${{ github.event.pull_request.user.login }}"
gh pr review ${{ github.event.pull_request.number }} --approve
else
echo "Label not found, skipping approval"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+2
View File
@@ -28,6 +28,8 @@ This should be all that's needed:
- DB_PASSWORD=password
- DB_NAME=gradesa
- `docker-compose up -d` — This command starts the services defined in the docker-compose.yml file in detached mode, meaning the services run in the background and the terminal is freed up for other tasks. For more information, checkout [Docker Compose docs](https://docs.docker.com/compose/)
- `npm install` in project root
- `cd ./gradesa && npm install`
- `npm run dev` — Starts the dev server.
- You can now find the NextJS app on localhost:3000