]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
.github/pr-triage: switch from old to new project 48514/head
authorErnesto Puerta <37327689+epuertat@users.noreply.github.com>
Mon, 17 Oct 2022 15:50:41 +0000 (17:50 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Oct 2022 15:50:41 +0000 (17:50 +0200)
The old (classic) Dashboard project (https://github.com/ceph/ceph/projects/6) has been migrated to a new-style one (https://github.com/orgs/ceph/projects/2/views/1).

This also requires updating the GH Action that automatically assigned `dashboard`-labeled PRs to the Dashboard project.

Signed-off-by: Ernesto Puerta <37327689+epuertat@users.noreply.github.com>
.github/workflows/pr-triage.yml

index 481f75331afc0ad5e3f7f601efce248902d141b1..9dd8355e5ce03f17ae62d4a51093c9176f8599d7 100644 (file)
@@ -13,10 +13,12 @@ jobs:
           sync-labels: ''
           repo-token: "${{ secrets.GITHUB_TOKEN }}"
       - name: Assign to Dashboard project
-        uses: srggrs/assign-one-project-github-action@65a8ddab497df42ef268001e67bbf976f8fd39e1
-        if: contains(github.event.pull_request.labels.*.name, 'dashboard')
+        # https://github.com/marketplace/actions/add-to-github-projects?version=v0.3.0
+        uses: actions/add-to-project@a9f041ddd462ed185893ea1024cec954f50dbe42
         with:
-          project: https://github.com/ceph/ceph/projects/6          
+          project-url: https://github.com/orgs/ceph/projects/2
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+          labeled: dashboard
       - name: Assign milestone based on target brach name
         uses: iyu/actions-milestone@dbf7e5348844c9ddc6b803a5721b85fa70fe3bb9
         with: