Unverified Commit aa3377ed authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix code freeze disable handling (#56340)

Fixes: https://github.com/vercel/next.js/actions/runs/6388368482
parent 8469d0ac
...@@ -66,9 +66,9 @@ async function getCurrentRules() { ...@@ -66,9 +66,9 @@ async function getCurrentRules() {
required_approving_review_count: required_approving_review_count:
data.required_pull_request_reviews.required_approving_review_count, data.required_pull_request_reviews.required_approving_review_count,
}, },
restrictions: data.restrictions || { restrictions: {
users: [], users: data.restrictions.users?.map((user) => user.login) || [],
teams: [], teams: data.restrictions.teams?.map((team) => team.slug) || [],
apps: [], apps: [],
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment