Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

edit pull request body #108

Open
skanehira opened this issue Feb 14, 2021 · 0 comments
Open

edit pull request body #108

skanehira opened this issue Feb 14, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed pulls about PR features

Comments

@skanehira
Copy link
Owner

skanehira commented Feb 14, 2021

👔 Overview

Use ghe to edit PR body.

👖 How to achieve

  1. Provid edit buffer named gh://:owner/:repo/pulls/:number

  2. Use GraphQL API to get PR body.
    https://docs.github.com/en/graphql/reference/objects#pullrequest

    query {
    repository(owner: "skanehira", name: "test") {
      pullRequest(number: 15) {
        body
      }
    }
    }
    {
    "data": {
      "repository": {
        "pullRequest": {
          "body": "## this is test\r\n"
        }
      }
    }
    }
  3. Use REST API to update PR body.
    https://docs.github.com/en/rest/reference/pulls#update-a-pull-request

🧦 Steps

  1. Open edit buffer
  2. Save buffer and update body.
@skanehira skanehira added enhancement New feature or request pulls about PR features help wanted Extra attention is needed labels Feb 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed pulls about PR features
Projects
None yet
Development

No branches or pull requests

1 participant