Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/labeler-dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Review Trigger"

on:
pull_request_review_comment:
types: [created, edited]

jobs:
noop:
runs-on: ubuntu-latest
steps:
- name: Dummy step
run: echo "This is so incredibly fucking stupid"
58 changes: 34 additions & 24 deletions .github/workflows/labeler-review.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
# SPDX-FileCopyrightText: 2024 Myra <vasilis@pikachu.systems>
# SPDX-FileCopyrightText: 2024 Saphire Lattice <lattice@saphi.re>
# SPDX-FileCopyrightText: 2024 Vasilis <vasilis@pikachu.systems>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

name: "Labels: Approved"

on:
pull_request_review:
types: [submitted]
workflow_run:
workflows: ["Review Trigger"]
types: [completed]

jobs:
label-on-approval:
if: github.event.workflow_run.event == 'pull_request_review'
runs-on: ubuntu-latest

permissions:
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest

steps:
- name: Create JSON File
id: curling-reviews
- name: Extract PR number
id: pr
run: |
PR_NUMBER=${{ github.event.pull_request.number }}
OWNER=${{ github.repository_owner }}
REPO=${{ github.event.repository.name }}
TOKEN=${{ secrets.GITHUB_TOKEN }}
PR_NUMBER=$(jq '.workflow_run.pull_requests[0].number' "$GITHUB_EVENT_PATH")
echo "pr=$PR_NUMBER" >> $GITHUB_OUTPUT

# Fetch the reviews and place them into a json file.
- name: Create JSON File
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ steps.pr.outputs.pr }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
run: |
curl -o reviews.json -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $TOKEN" \
Expand All @@ -37,18 +38,23 @@ jobs:
- name: Check for Approvals
id: check-approvals
run: |
# Count the number of approvals
APPROVALS=$(jq '[.[] | select(.state=="APPROVED")] | length' reviews.json)
APPROVALS=$(jq '
group_by(.user.login)
| map(last)
| map(select(.state=="APPROVED"))
| length
' reviews.json)

echo "Number of approvals: $APPROVALS"
echo "::set-output name=approvals::$APPROVALS"

echo "approvals=$APPROVALS" >> $GITHUB_OUTPUT
- name: Add Approved Label if Enough Approvals
if: steps.check-approvals.outputs.approvals >= 2 # Change the threshold here
if: steps.check-approvals.outputs.approvals >= 2
uses: actions-ecosystem/action-add-labels@v1
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
number: ${{ steps.pr.outputs.pr }}
labels: "S: Approved"

- name: Remove Other Labels on Approved
Expand All @@ -57,6 +63,7 @@ jobs:
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
number: ${{ steps.pr.outputs.pr }}
labels: |
"S: Needs Review"
"S: Needs Second Approval"
Expand All @@ -67,24 +74,27 @@ jobs:
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
number: ${{ steps.pr.outputs.pr }}
labels: |
"S: Needs Second Approval"
"S: Needs Review"

- name: Remove Other Labels on Second Approval Requirement
- name: Remove Other Labels on Second Approval
if: steps.check-approvals.outputs.approvals == 1
uses: actions-ecosystem/action-remove-labels@v1
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
number: ${{ steps.pr.outputs.pr }}
labels: "S: Approved"

- name: Remove All Other Labels if No Approval
- name: Remove Other Labels if No Approval
if: steps.check-approvals.outputs.approvals < 1
uses: actions-ecosystem/action-remove-labels@v1
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
number: ${{ steps.pr.outputs.pr }}
labels: |
"S: Approved"
"S: Needs Second Approval"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<p align="center"> <img alt="Space Station 14" width="1500" height="843" src="https://github.com/ProjectOmu/OmuStation/blob/master/Resources/Textures/Logo/logo.png" /></p>

you

@NotActuallyMarty NotActuallyMarty Mar 6, 2026

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaaaoks why


Comment on lines +3 to +4

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

This is a fork from [Goob Station](https://github.com/Goob-Station/Goob-Station), a primary fork from [Space Station 14](https://github.com/space-wizards/space-station-14). To prevent people forking [Robust Toolbox](https://github.com/space-wizards/RobustToolbox), a "content" pack is loaded by the client and server. This content pack contains everything needed to play the game on one specific server this is the content pack for Omu Station.

Omu Station strives to be a fork focused on more roleplay-centric gameplay while still focusing on community. We intend to take more mechanics from other forks and build a place where everyone can enjoy and play a unique shift every round.
Expand Down