From ec4b43bc1ff032dc4ad0d7be0475d42eee4403b0 Mon Sep 17 00:00:00 2001 From: Troy Benson Date: Fri, 3 Jan 2025 15:32:43 +0000 Subject: [PATCH] auto sync labels --- .github/labels.yaml | 30 ++++++++++++++++++++++++++++ .github/workflows/audit.yaml | 12 +++++------ .github/workflows/sync-labels.yaml | 32 ++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 6 deletions(-) create mode 100644 .github/labels.yaml create mode 100644 .github/workflows/sync-labels.yaml diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 000000000..48060afeb --- /dev/null +++ b/.github/labels.yaml @@ -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" diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index ba6ff13e8..235d1434e 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -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: diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml new file mode 100644 index 000000000..5d139a6e4 --- /dev/null +++ b/.github/workflows/sync-labels.yaml @@ -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.yml