Public PR triage workflow

This commit is contained in:
Matt Stevens
2025-11-25 22:20:50 +00:00
parent 77cc796498
commit 89e669c155
2 changed files with 18 additions and 0 deletions

17
.github/workflows/pull_request.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Pull Request
on:
pull_request:
types: [ labeled ]
jobs:
pr-triaged:
runs-on: ubuntu-latest
if: github.event.label.name == 'triaged'
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ secrets.SBOXBOT_TOKEN }}
repository: Facepunch/sbox
event-type: pr-triaged
client-payload: '{"github": ${{ toJson(github) }}}'

View File

@@ -92,6 +92,7 @@ internal class SyncPublicRepo( string name, bool dryRun = false ) : Step( name )
{
{ "public/.gitignore", ".gitignore" },
{ "public/.gitattributes", ".gitattributes" },
{ "public/.github/workflows/pull_request.yml", ".github/workflows/pull_request.yml" },
{ "public/README.md", "README.md" },
{ "public/LICENSE.md", "LICENSE.md" },
{ "public/CONTRIBUTING.md", "CONTRIBUTING.md" },