mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
Prettier (an auto formatter) is set to only run within the tgui folder currently. This removes that limitation, allowing it to automatically format all supported files in the repo (.js, .html, .yml [etc](https://prettier.io/docs/)) I made a few exceptions for bundled and generated files I'm of the opinion that code should look uniform and am lazy enough to want CTRL-S to format files without having to think beyond that
30 lines
822 B
Plaintext
30 lines
822 B
Plaintext
name: Codeowner Reviews
|
|
|
|
# Controls when the workflow will run
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
jobs:
|
|
assign-users:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so the job can access it
|
|
- uses: actions/checkout@v4
|
|
|
|
#Parse the Codeowner file on non draft PRs
|
|
- name: CodeOwnersParser
|
|
if: github.event.pull_request.draft == false
|
|
id: CodeOwnersParser
|
|
uses: tgstation/CodeOwnersParser@v1
|
|
|
|
#Request reviews
|
|
- name: Request reviews
|
|
if: steps.CodeOwnersParser.outputs.owners != ''
|
|
uses: tgstation/RequestReviewFromUser@v1
|
|
with:
|
|
separator: " "
|
|
users: ${{ steps.CodeOwnersParser.outputs.owners }}
|