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.`);
"message": "As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR.",
42
44
"reminder": {
43
45
"before": "P3D",
44
-
"message": "Heads-up: this will be closed in 3 days unless there’s new activity."
46
+
"message": "Heads-up: this will be closed in 3 days unless there's new activity."
45
47
}
46
48
},
47
49
"invalid": {
48
50
"delay": 0,
49
51
"message": "This was marked as invalid and will be closed now. If this is an error, please provide additional details."
52
+
},
53
+
"maybe-ai": {
54
+
"delay": 0,
55
+
"message": "This was marked as potentially AI generated and will be closed now. If this is an error, please provide additional details, make sure to read the docs about contributing and AI."
0 commit comments