-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to sync labels to enforce the labels designed in #3265 <img width="1050" alt="image" src="https://github.com/microsoft/typespec/assets/1031227/5ba6a134-e6d6-4a28-9cf7-99fd27c8e89e">
- Loading branch information
1 parent
f4b0497
commit adc2f32
Showing
8 changed files
with
767 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Sync labels | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- "package.json" | ||
- "eng/common/labels.yaml" | ||
- "eng/common/scripts/sync-labels.ts" | ||
- ".github/workflows/sync-labels.yml" | ||
|
||
workflow_dispatch: {} | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
|
||
- run: pnpm install | ||
name: Install dependencies | ||
|
||
- run: pnpm sync-labels --github | ||
name: Sync labels | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Verify labels | ||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
paths: | ||
- "package.json" | ||
- "eng/common/labels.yaml" | ||
- "eng/common/scripts/sync-labels.ts" | ||
- ".github/workflows/sync-labels.yml" | ||
- "CONTRIBUTING.md" | ||
|
||
jobs: | ||
verify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
|
||
- run: pnpm install | ||
name: Install dependencies | ||
|
||
- run: pnpm sync-labels --github --check | ||
name: Verify labels | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.