mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:04:06 +01:00
ci: Fix team review requests from the bot
https://github.com/NixOS/nixpkgs/actions/runs/21782693200/job/62849125010
This commit is contained in:
parent
afbde95480
commit
55faf59a25
1 changed files with 7 additions and 2 deletions
|
|
@ -12,6 +12,12 @@ module.exports = async ({ github, context, core, dry }) => {
|
|||
// Detect if running in a fork (not NixOS/nixpkgs)
|
||||
const isFork = context.repo.owner !== 'NixOS'
|
||||
|
||||
const orgId = (
|
||||
await github.rest.orgs.get({
|
||||
org: context.repo.owner,
|
||||
})
|
||||
).data.id
|
||||
|
||||
async function downloadMaintainerMap(branch) {
|
||||
let run
|
||||
|
||||
|
|
@ -168,8 +174,7 @@ module.exports = async ({ github, context, core, dry }) => {
|
|||
.request({
|
||||
method: 'GET',
|
||||
url: '/organizations/{orgId}/team/{id}',
|
||||
// TODO: Make this work without pull_requests payloads
|
||||
orgId: context.payload.pull_request.base.user.id,
|
||||
orgId,
|
||||
id,
|
||||
})
|
||||
.then((resp) => resp.data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue