You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: `This PR modifies dependency files (\`pyproject.toml\` or \`uv.lock\`), which is restricted to members of the **${context.repo.owner}** organization on GitHub.\n\nIf you need a dependency change, please [open a discussion](https://github.com/${context.repo.owner}/${context.repo.repo}/discussions/new) describing what you need and why.\n\nClosing this PR automatically.`
40
+
});
41
+
42
+
await github.rest.pulls.update({
43
+
owner: context.repo.owner,
44
+
repo: context.repo.repo,
45
+
pull_number: context.payload.pull_request.number,
46
+
state: 'closed'
47
+
});
48
+
49
+
core.setFailed('Dependency changes are restricted to organization members.');
50
+
} else {
51
+
console.log(`Author ${author} (author_association=${assoc}) is allowed to make dependency changes.`);
0 commit comments