Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/repo-sync/pull-request
⤵️ A GitHub Action for creating pull requests
https://github.com/repo-sync/pull-request
actions github-actions
Last synced: about 1 month ago
JSON representation
⤵️ A GitHub Action for creating pull requests
- Host: GitHub
- URL: https://github.com/repo-sync/pull-request
- Owner: repo-sync
- License: mit
- Archived: true
- Created: 2019-08-15T01:32:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T16:03:37.000Z (over 1 year ago)
- Last Synced: 2024-04-14T06:15:24.386Z (7 months ago)
- Topics: actions, github-actions
- Language: Shell
- Homepage: https://github.com/marketplace/actions/github-pull-request-action
- Size: 89.8 KB
- Stars: 344
- Watchers: 7
- Forks: 130
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - repo-sync/pull-request - ⤵️ A GitHub Action for creating pull requests (Shell)
README
# GitHub Pull Request
**We are in process of archiving this repository.** This Action was created before GitHub CLI was an option. We believe there are now better options for creating pull requests using GitHub Actions.
We recommend using GitHub CLI directly in your workflow file. See: [`gh pr create`](https://cli.github.com/manual/gh_pr_create)
For example:
```yaml
# File: .github/workflows/pull-request.ymlon:
push:
branches:
- feature-1permissions:
pull-requests: writejobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: pull-request
run: |
gh_pr_up() { gh pr create $* || gh pr edit $* }
gh_pr_up --title "My pull request" --body "Description"
```Refer to the [`gh pr create`](https://cli.github.com/manual/gh_pr_create) docs for further options. Read ["Defining outputs for jobs"](https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs) to define outputs. As a result of ["GitHub Actions – Updating the default GITHUB_TOKEN permissions to read-only"](https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/), you will need both the `permissions:` entry and to update your repository settings.
Thank you to the many contributors of this repository.