mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-08-25 05:48:46 +01:00
## About The Pull Request This sets concurrency at the workflow level, which should provide a more concise way to eject if a new commit is entered https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency I've also added timeouts that are between 5-15 minutes per test. Default is 360 minutes without this
31 lines
823 B
YAML
31 lines
823 B
YAML
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 }}
|