Skip to content

Update credits to add new contributors #232

Update credits to add new contributors

Update credits to add new contributors #232

Workflow file for this run

name: Close PR on label
on:
pull_request:
types: [labeled]
permissions:
pull-requests: write
jobs:
close:
if: github.event.label.name == 'close-ai'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
const { owner, repo } = context.repo;
const issue_number = context.payload.pull_request.number;
await github.rest.issues.createComment({
owner, repo, issue_number,
body: "This PR is being closed as it has been determined that it does not pass the threshold of demonstrating sufficient human engagement (see [our AI policy](https://github.com/astropy/astropy-project/blob/main/policies/ai-policy.md)). While we do not forbid the use of AI tools in preparing pull requests, our policy makes it clear that we expect to be interacting with humans who show a good understanding of the proposed changes."
});
await github.rest.pulls.update({
owner, repo, pull_number: issue_number,
state: "closed"
});