From e2d19f72f0af071cb7d9224daceb92a811a36985 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Sun, 30 Aug 2026 21:27:20 +0200 Subject: [PATCH] ci: replace dead labels tool with ghaction-github-labeler The `labels` PyPI tool (hackebrot/labels) crashes against the current GitHub API with: TypeError: Label.__init__() got an unexpected keyword argument 'archived_at' Replace it with crazy-max/ghaction-github-labeler v6.0.0 (actively maintained, native action). Convert .github/labels.toml to the YAML format the new action expects and remove the now-unused .toml file. --- .github/labels.toml | 99 ------------------------------------ .github/labels.yml | 60 ++++++++++++++++++++++ .github/workflows/labels.yml | 6 ++- 3 files changed, 64 insertions(+), 101 deletions(-) delete mode 100644 .github/labels.toml create mode 100644 .github/labels.yml diff --git a/.github/labels.toml b/.github/labels.toml deleted file mode 100644 index e166aef..0000000 --- a/.github/labels.toml +++ /dev/null @@ -1,99 +0,0 @@ -[breaking] -color = "ffcc00" -name = "breaking" -description = "Breaking change." - -[bug] -color = "d73a4a" -name = "bug" -description = "Something isn't working" - -[dependencies] -color = "0366d6" -name = "dependencies" -description = "Pull requests that update a dependency file" - -[github_actions] -color = "000000" -name = "github_actions" -description = "Update of github actions" - -[documentation] -color = "1bc4a5" -name = "documentation" -description = "Improvements or additions to documentation" - -[duplicate] -color = "cfd3d7" -name = "duplicate" -description = "This issue or pull request already exists" - -[enhancement] -color = "a2eeef" -name = "enhancement" -description = "New feature or request" - -["good first issue"] -color = "7057ff" -name = "good first issue" -description = "Good for newcomers" - -["help wanted"] -color = "008672" -name = "help wanted" -description = "Extra attention is needed" - -[invalid] -color = "e4e669" -name = "invalid" -description = "This doesn't seem right" - -[nochangelog] -color = "555555" -name = "nochangelog" -description = "Exclude pull requests from changelog" - -[question] -color = "d876e3" -name = "question" -description = "Further information is requested" - -[removed] -color = "e99695" -name = "removed" -description = "Removed piece of functionalities." - -[tests] -color = "bfd4f2" -name = "tests" -description = "CI, CD and testing related changes" - -[wontfix] -color = "ffffff" -name = "wontfix" -description = "This will not be worked on" - -[discussion] -color = "c2e0c6" -name = "discussion" -description = "Some discussion around the project" - -[hacktoberfest] -color = "ffa663" -name = "hacktoberfest" -description = "Good issues for Hacktoberfest" - -[answered] -color = "0ee2b6" -name = "answered" -description = "Automatically closes as answered after a delay" - -[waiting] -color = "5f7972" -name = "waiting" -description = "Automatically closes if no answer after a delay" - -[fund] -color = "0E8A16" -name = "fund" -description = "Add a section linking to polar.sh for funding the issue." diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..43de9f8 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,60 @@ +- name: breaking + color: ffcc00 + description: Breaking change. +- name: bug + color: d73a4a + description: Something isn't working +- name: dependencies + color: 0366d6 + description: Pull requests that update a dependency file +- name: github_actions + color: "000000" + description: Update of github actions +- name: documentation + color: 1bc4a5 + description: Improvements or additions to documentation +- name: duplicate + color: cfd3d7 + description: This issue or pull request already exists +- name: enhancement + color: a2eeef + description: New feature or request +- name: good first issue + color: 7057ff + description: Good for newcomers +- name: help wanted + color: "008672" + description: Extra attention is needed +- name: invalid + color: e4e669 + description: This doesn't seem right +- name: nochangelog + color: "555555" + description: Exclude pull requests from changelog +- name: question + color: d876e3 + description: Further information is requested +- name: removed + color: e99695 + description: Removed piece of functionalities. +- name: tests + color: bfd4f2 + description: CI, CD and testing related changes +- name: wontfix + color: ffffff + description: This will not be worked on +- name: discussion + color: c2e0c6 + description: Some discussion around the project +- name: hacktoberfest + color: ffa663 + description: Good issues for Hacktoberfest +- name: answered + color: 0ee2b6 + description: Automatically closes as answered after a delay +- name: waiting + color: 5f7972 + description: Automatically closes if no answer after a delay +- name: fund + color: 0E8A16 + description: Add a section linking to polar.sh for funding the issue. diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 3f0e4c6..1426eea 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -15,6 +15,8 @@ jobs: issues: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 - name: Sync config with Github - run: uvx labels -u ${{ github.repository_owner }} -t ${{ secrets.GITHUB_TOKEN }} sync -f .github/labels.toml + uses: crazy-max/ghaction-github-labeler@548a7c3603594ec17c819e1239f281a3b801ab4d # v6.0.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + yaml-file: .github/labels.yml