Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to sync labels #3323

Merged
merged 38 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
867bac9
Add initial commit
timotheeguerin May 11, 2024
42fee05
fix
timotheeguerin May 11, 2024
c89ed8e
Sync labels
timotheeguerin May 11, 2024
48f0905
Label sync
timotheeguerin May 11, 2024
8f8f4a6
Cleanup
timotheeguerin May 11, 2024
31cc607
.
timotheeguerin May 11, 2024
55bce12
Cleanup
timotheeguerin May 11, 2024
dc2a5ce
Cleanup
timotheeguerin May 11, 2024
ef968f4
.
timotheeguerin May 11, 2024
873668d
Prettier logs
timotheeguerin May 11, 2024
1531813
fix
timotheeguerin May 11, 2024
5bf631c
.
timotheeguerin May 11, 2024
64d5a4b
limit trigger
timotheeguerin May 11, 2024
4a9bf4a
run cron job
timotheeguerin May 11, 2024
4dff111
.
timotheeguerin May 11, 2024
3199913
grouping
timotheeguerin May 11, 2024
4e18333
better structure
timotheeguerin May 11, 2024
467aab1
cleanup contributing.md
timotheeguerin May 11, 2024
ce6abba
update contributing
timotheeguerin May 11, 2024
0ff0323
PR check
timotheeguerin May 11, 2024
ff7337f
PR check
timotheeguerin May 11, 2024
e65f9c9
,
timotheeguerin May 11, 2024
f94c294
.
timotheeguerin May 11, 2024
407793a
.
timotheeguerin May 11, 2024
4f8ee64
PR check
timotheeguerin May 11, 2024
4025356
label refs
timotheeguerin May 11, 2024
c46eca4
split
timotheeguerin May 11, 2024
7cf4748
Add validation if label
timotheeguerin May 11, 2024
4a81141
remove uneeded packages
timotheeguerin May 11, 2024
fbdfc17
Cleanuop
timotheeguerin May 11, 2024
7e0aa34
Don't delete labels if they have issues
timotheeguerin May 13, 2024
dbe4d6a
Update eng/common/labels.yaml
timotheeguerin May 13, 2024
2c7374e
Update .github/workflows/sync-lablels.yml
timotheeguerin May 13, 2024
0919f75
Update .github/workflows/verify-labels.yml
timotheeguerin May 13, 2024
50a486d
Rename sync-lablels.yml to sync-labels.yml
timotheeguerin May 13, 2024
ad4cb7c
fix
timotheeguerin May 13, 2024
4cfb4ed
.
timotheeguerin May 13, 2024
75eaad9
update contributing
timotheeguerin May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:

steps:
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3

- name: Set node version to ${{ inputs.node-version }}
uses: actions/setup-node@v4
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/sync-labels.yml
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 }}
26 changes: 26 additions & 0 deletions .github/workflows/verify-labels.yml
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 }}
Loading
Loading