Skip to content
Merged
17 changes: 17 additions & 0 deletions .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Enforce PR Labels

on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]

jobs:
enforce-labels:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Enforce PR Labels
uses: SchemaApp/SchemaApp/.github/actions/label-enforcer@master
14 changes: 14 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Sync Labels from Central Repository

on:
repository_dispatch:
types:
- sync_labels

jobs:
call-reusable-workflow:
uses: SchemaApp/SchemaApp/.github/workflows/sync-labels.yml@master
with:
labels_url: https://raw.githubusercontent.com/SchemaApp/SchemaApp/master/.github/labels.yml
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Loading