{"id":16497190,"url":"https://github.com/guillaumefalourd/pull-request-action","last_synced_at":"2026-02-14T02:34:32.042Z","repository":{"id":43275919,"uuid":"468355058","full_name":"GuillaumeFalourd/pull-request-action","owner":"GuillaumeFalourd","description":"Github Actions to create pull request (all os supported) using Github CLI ⤵️ ","archived":false,"fork":false,"pushed_at":"2024-09-04T11:26:53.000Z","size":36,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-26T13:59:20.321Z","etag":null,"topics":["all-os-supported","github-actions","github-cli","pull-request"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/pull-request-action-github-cli","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuillaumeFalourd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-10T13:30:58.000Z","updated_at":"2024-09-03T20:55:18.000Z","dependencies_parsed_at":"2024-11-19T04:57:42.556Z","dependency_job_id":null,"html_url":"https://github.com/GuillaumeFalourd/pull-request-action","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"GuillaumeFalourd/repo-template","purl":"pkg:github/GuillaumeFalourd/pull-request-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fpull-request-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fpull-request-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fpull-request-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fpull-request-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuillaumeFalourd","download_url":"https://codeload.github.com/GuillaumeFalourd/pull-request-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fpull-request-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260148392,"owners_count":22965912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["all-os-supported","github-actions","github-cli","pull-request"],"created_at":"2024-10-11T14:38:41.335Z","updated_at":"2026-02-14T02:34:27.009Z","avatar_url":"https://github.com/GuillaumeFalourd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pull Request Action\n\n[![Action test on Ubuntu](https://github.com/GuillaumeFalourd/pull-request-action/actions/workflows/ubuntu_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/pull-request-action/actions/workflows/ubuntu_action_test.yml) [![Action test on MacOS](https://github.com/GuillaumeFalourd/pull-request-action/actions/workflows/macos_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/pull-request-action/actions/workflows/macos_action_test.yml) [![Action test on Windows](https://github.com/GuillaumeFalourd/pull-request-action/actions/workflows/windows_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/pull-request-action/actions/workflows/windows_action_test.yml)\n\n![](https://user-images.githubusercontent.com/22433243/157692326-2e75f43d-e563-4fa9-8947-67c06e4e469f.png)\n\n☞ Github Actions to create pull request using Github CLI ⤵️ \n\n_**Note**: This action is supported on **all runners** operating systems (`ubuntu`, `macos`, `windows`)_\n\n_Inspired from [https://github.com/repo-sync/pull-request](https://github.com/repo-sync/pull-request)_\n\n## 📝 Features\n\n- Create pull requests\n\n- Add reviewers, assignees, labels, or milestones\n\n- Customize pull request title and body\n\n- Fail silently when a pull request already exists\n\n## 📚 Usage\n\n- This action uses [Github CLI](https://cli.github.com/) to create a Pull Request.\n\n- [According to the documentation](https://docs.github.com/en/actions/using-workflows/using-github-cli-in-workflows), to authenticate on the workflow using Github CLI, you need to set the GITHUB_TOKEN context variable as environment variable.\n\n- Note that if you need specific permissions, you can also set a [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) instead.\n\n### Minimum configurations\n\n```yaml\n    - uses: GuillaumeFalourd/pull-request-action@v2\n      with:\n        destination_branch: \"my-branch\"\n      env:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Full configurations\n\n```yaml\n    - uses: GuillaumeFalourd/pull-request-action@v2\n      with:\n        source_branch: \"main\"                             # If blank, default: triggered branch\n        destination_branch: \"feature\"                     # If blank, default: main\n        pr_title: \"Pulling ${{ github.ref }} into main\"   # Title of pull request\n        pr_body: \"An automated PR\"                        # Full markdown support, requires pr_title to be set\n        pr_reviewer: \"john, britney\"                      # Comma-separated list (no spaces)\n        pr_assignee: \"john\"                               # Comma-separated list (no spaces)\n        pr_label: \"auto-pr\"                               # Comma-separated list (no spaces)\n        pr_milestone: \"Milestone 1\"                       # Milestone name\n        pr_draft: true                                    # Creates pull request as draft\n        pr_allow_empty: true                              # Creates pull request even if there are no changes\n      env:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}         # Can use PAT as secret\n```\n\n## 🧩 Outputs\n\nField | Observation\n------------ | ------------ \n`pr_url` | Pull request URL\n`pr_number` | Pull request number\n`has_changed_files` | Boolean string indicating whether any file has been changed\n`pr_created` | Boolean string indicating whether a PR was created\n\n## 🤝 Contributing\n\n☞ If you're interested in contributing to this repository, please follow the [guidelines](https://github.com/GuillaumeFalourd/pull-request-action/blob/main/CONTRIBUTING.md)\n\n## 🏅 Licensed\n\n☞ This repository uses the [Apache License 2.0](https://github.com/GuillaumeFalourd/pull-request-action/blob/main/LICENSE)\n\n\u003c!-- ### Contribuidores\n\n\u003ca href=\"https://github.com/GuillaumeFalourd/pull-request-action/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=GuillaumeFalourd/pull-request-action\" /\u003e\n\u003c/a\u003e\n\n(Criado com [contributors-img](https://contrib.rocks)) --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumefalourd%2Fpull-request-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguillaumefalourd%2Fpull-request-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumefalourd%2Fpull-request-action/lists"}