Skip to content

A secure, personalized fork 🍴 of @repo-sync's GitHub action: 'pull-request'. Enhanced for robust CI and ensuring unchanged action behavior πŸ”

License

Notifications You must be signed in to change notification settings

bdelanghe/pull-request

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

85 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

For example:

# File: .github/workflows/pull-request.yml

on:
  push:
    branches:
      - feature-1

permissions:
  pull-requests: write

jobs:
  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 docs for further options. Read "Defining outputs for jobs" to define outputs. As a result of "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.

About

A secure, personalized fork 🍴 of @repo-sync's GitHub action: 'pull-request'. Enhanced for robust CI and ensuring unchanged action behavior πŸ”

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages

  • Shell 94.9%
  • Dockerfile 5.1%