Close new library support pr

From oracle/graalvm-reachability-metadata · View interactive version

Close new library support pr is an AI agent skill from the GitHub repository oracle/graalvm-reachability-metadata. Close or reject pull requests that add support for a new library in graalvm-reachability-metadata. Use when asked to close a `library-new-request` PR and roll the linked issue back by removing assignees and changing project status from `In Progress` to `Todo` without downgrading `Done`.

How to use this skill

Skill file

Close `library-new-request` PRs

Use this skill when the task is to close or reject a pull request that was opened to add support for a new library.

The PR number or URL can be passed as an optional argument (for example, 1234, https://github.com/oracle/graalvm-reachability-metadata/pull/1234). If the user says "close this PR" or "revert this PR" without an argument, infer the PR from surrounding context or the current branch when possible. Ask only when the PR cannot be resolved safely.

Goal

When a new-library support PR is closed, return the linked issue to the pre-work state:

Project edits require GitHub auth with the project scope. If gh project ... commands fail with an authorization error, refresh auth before continuing:

gh auth refresh -s project

Workflow

  1. Resolve and inspect the PR.
  1. Find the linked issue from the PR itself.

```bash

gh api graphql -f query='

query {

repository(owner: "oracle", name: "graalvm-reachability-metadata") {

pullRequest(number: PR_NUMBER) {

number

title

closingIssuesReferences(first: 10) {

nodes {

number

title

state

assignees(first: 10) {

nodes {

login

}

}

}

}

}

}

}'

```

  1. Inspect the linked issue state before changing anything.

```bash

gh issue view ISSUE_NUMBER -R oracle/graalvm-reachability-metadata --json assignees,projectItems,title,url

```

  1. Remove all assignees from the linked issue.

```bash

gh issue edit ISSUE_NUMBER -R oracle/graalvm-reachability-metadata --remove-assignee login1,login2

```

```bash

gh api repos/oracle/graalvm-reachability-metadata/issues/ISSUE_NUMBER -X PATCH -f assignees[]=

```

  1. Roll project status back only when it is currently In Progress.

```bash

gh api graphql -f query='

query {

repository(owner: "oracle", name: "graalvm-reachability-metadata") {

issue(number: ISSUE_NUMBER) {

projectItems(first: 10) {

nodes {

id

project {

id

number

title

owner {

__typename

... on Organization { login }

... on User { login }

}

}

fieldValues(first: 20) {

nodes {

__typename

... on ProjectV2ItemFieldSingleSelectValue {

field {

... on ProjectV2SingleSelectField {

id

name

}

}

name

optionId

}

}

}

}

}

}

}

}'

```

  1. Resolve field IDs and option IDs from the owning project before editing.

```bash

gh project field-list PROJECT_NUMBER --owner PROJECT_OWNER --format json

```

  1. Update the project item only when rollback is needed.

```bash

gh project item-edit \

--id ITEM_ID \

--project-id PROJECT_ID \

--field-id STATUS_FIELD_ID \

--single-select-option-id TODO_OPTION_ID

```

  1. Close the PR.

```bash

gh pr close PR_NUMBER -R oracle/graalvm-reachability-metadata --comment "Closing this new-library support PR and rolling the linked issue back to Todo."

```

  1. Verify the rollback.

```bash

gh issue view ISSUE_NUMBER -R oracle/graalvm-reachability-metadata --json assignees,projectItems,state,url

```

Decision Rules

Output Style

Keep status updates short and operational:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.