Skip to content

Commit

Permalink
auto sync labels
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Jan 3, 2025
1 parent 4463d5a commit 79cb830
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 6 deletions.
30 changes: 30 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
- name: "B-brawl-failed"
color: "B60205"
- name: "B-brawl-merged"
color: "5319E7"
- name: "B-brawl-merging"
color: "006B75"
- name: "B-brawl-queued"
color: "C2E0C6"
- name: "B-brawl-try"
color: "FBCA04"
- name: "B-brawl-try-failed"
color: "B60205"
- name: "bug"
color: "d73a4a"
- name: "documentation"
color: "0075ca"
- name: "duplicate"
color: "cfd3d7"
- name: "enhancement"
color: "a2eeef"
- name: "good first issue"
color: "7057ff"
- name: "help wanted"
color: "008672"
- name: "invalid"
color: "e4e669"
- name: "question"
color: "d876e3"
- name: "wontfix"
color: "ffffff"
12 changes: 6 additions & 6 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Security audit
on:
push:
branches-ignore:
- 'automation/**'
- "automation/**"
paths:
- '.github/workflows/audit.yaml'
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'deny.toml'
- ".github/workflows/audit.yaml"
- "**/Cargo.toml"
- "**/Cargo.lock"
- "deny.toml"
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
audit:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/sync-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Sync Labels

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/labels.yml"
pull_request:
branches:
- main

jobs:
synclabels:
name: Sync Labels
runs-on: ubuntu-24.04

permissions: write-all

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Sync labels
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
dry-run: ${{ github.event_name == 'pull_request' }}
yaml-file: .github/labels.yaml

0 comments on commit 79cb830

Please sign in to comment.