diff --git a/.github/team.json b/.github/team.json index 5b9df47e27a00aa1e11007cd1cce77ad089ae5cc..6df243af45d7aa23078db6bc75d56bf23cedbedc 100644 --- a/.github/team.json +++ b/.github/team.json @@ -15,16 +15,12 @@ { "name": "Embedding", "label": ".Team/Embedding", - "members": [ - "WiNloSt", - "deniskaber", - "oisincoveney", - "npretto" - ] + "members": ["WiNloSt", "deniskaber", "oisincoveney", "npretto"] }, { "name": "BEC", "label": ".Team/BackendComponents", + "projectUrl": "https://github.com/orgs/metabase/projects/50/views/1", "members": [ "tsmacdonald", "qnkhuat", @@ -36,13 +32,8 @@ { "name": "Query Processor", "label": ".Team/QueryProcessor", - "members": [ - "camsaul", - "snoe", - "bshepherdson", - "metamben", - "lbrdnk" - ] + "projectUrl": "https://github.com/orgs/metabase/projects/50/views/1", + "members": ["camsaul", "snoe", "bshepherdson", "metamben", "lbrdnk"] }, { "name": "Admin Webapp", diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index a7b6e752c4d56631aee75ddaf95363f9f0535d87..76f3958b727569ec862af59d3346a7937393820d 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -30,7 +30,7 @@ jobs: const prNumber = context.payload.pull_request.number; if (prAuthor.endsWith('[bot]')) { - return false; + return null; } // Assign PR author @@ -44,7 +44,7 @@ jobs: const team = teamConfig.teams.find(t => t.members.includes(prAuthor)); if (!team) { console.log('You are not assigned to any team. If you need one, update .github/team.json'); - return false; + return null; } try { @@ -55,7 +55,7 @@ jobs: }); } catch (e) { console.log(`The label ${team.label} does not exist, create it first`); - return false; + return null; } // Add team label @@ -66,9 +66,9 @@ jobs: labels: [team.label] }); - return true; + return team.projectUrl || null; - uses: actions/add-to-project@v0.5.0 - if: ${{ fromJSON(steps.auto-assign.outputs.result) }} + if: ${{ steps.auto-assign.outputs.result != 'null' }} with: - project-url: https://github.com/orgs/metabase/projects/50/views/1 + project-url: ${{ steps.auto-assign.outputs.result }} github-token: ${{ steps.generate-token.outputs.token }}