Просмотр исходного кода

Queue vouch-manage runs and refresh the VOUCHED list

- Set queue: max on the vouch-manage concurrency group so a newer run
  can't cancel a pending one
- Request discussions write so the confirmation reaction succeeds
- Add Chinmay-Jadhav and cory-kantar to VOUCHED.td

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jeremy Stretch 16 часов назад
Родитель
Сommit
c16c01409f
2 измененных файлов с 6 добавлено и 2 удалено
  1. 2 0
      .github/VOUCHED.td
  2. 4 2
      .github/workflows/vouch-manage-by-discussion.yml

+ 2 - 0
.github/VOUCHED.td

@@ -41,11 +41,13 @@ blackphantom39
 bluikko
 carlosalbertorg
 chbndrhnns
+Chinmay-Jadhav
 ciroiriarte
 clovehitch
 cmdrrobin
 cocofabio
 corubba
+cory-kantar
 DanSheps
 dfex
 dianbofa

+ 4 - 2
.github/workflows/vouch-manage-by-discussion.yml

@@ -12,6 +12,7 @@ permissions:
 concurrency:
   group: vouch-manage
   cancel-in-progress: false
+  queue: max
 
 jobs:
   manage:
@@ -19,7 +20,8 @@ jobs:
     if: github.repository == 'netbox-community/netbox' && contains(github.event.comment.body, '!')
     runs-on: ubuntu-latest
     steps:
-      # An app token is required to merge the VOUCHED update into the protected default branch
+      # An app token is required to merge the VOUCHED update into the protected default branch.
+      # Discussions write is needed for the action to react to the command comment on success.
       - name: Create app token
         uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
         id: app-token
@@ -28,7 +30,7 @@ jobs:
           private-key: ${{ secrets.HOUSEKEEPING_SECRET_KEY }}
           permission-contents: write
           permission-pull-requests: write
-          permission-discussions: read
+          permission-discussions: write
 
       - name: Check out repo
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1