mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
Public PR triage workflow
This commit is contained in:
17
.github/workflows/pull_request.yml
vendored
Normal file
17
.github/workflows/pull_request.yml
vendored
Normal 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) }}}'
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user