poad / github-pull-requester

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-pull-requester

License CI GitHub release

Create a new Pull Request by GitHub GraphQL API.

Useage

- name: Create a new Pull Request
  uses: poad/github-pull-requester@v2.0.0
  with:
      head_branch: { name of head branch }
      base_branch: master # If omitted, it is equivalent to specifying main.
      github_token: { GitHub token for Pull Request creation }
      owner: { name of repository owner }
      repository: { name of repository }
      title: { title (optional) }
      body: { body (optional) }

Reference Information

GitHub API

The following parameters are not supported

  • maintainer_can_modify
  • draft
  • issue

Outputs

key

result

value

key value
id GraphQL Node ID of GitHub Pull Request.
url URL of GitHub Pull Request.

About

License:MIT License


Languages

Language:TypeScript 86.3%Language:Shell 13.7%