{"id":26070034,"url":"https://github.com/k3rnels-actions/pr-update","last_synced_at":"2025-08-08T23:14:11.977Z","repository":{"id":37000205,"uuid":"370163675","full_name":"k3rnels-actions/pr-update","owner":"k3rnels-actions","description":"A basic GitHub Action to create and update PullRequests from a source to a target branch.","archived":false,"fork":false,"pushed_at":"2025-07-28T19:34:08.000Z","size":1516,"stargazers_count":6,"open_issues_count":13,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-28T21:35:51.695Z","etag":null,"topics":["actions","github","github-actions","pull-requests","typescript-action"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k3rnels-actions.png","metadata":{"files":{"readme":"readme.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null}},"created_at":"2021-05-23T21:47:44.000Z","updated_at":"2024-04-01T07:59:15.000Z","dependencies_parsed_at":"2023-09-29T23:35:27.001Z","dependency_job_id":"f6a996b8-5ede-4456-95fe-16a6299b9f93","html_url":"https://github.com/k3rnels-actions/pr-update","commit_stats":{"total_commits":91,"total_committers":6,"mean_commits":"15.166666666666666","dds":0.6153846153846154,"last_synced_commit":"1a9dff0dc3b8c9af84ea845121968ed8f1f76ac6"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/k3rnels-actions/pr-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k3rnels-actions%2Fpr-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k3rnels-actions%2Fpr-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k3rnels-actions%2Fpr-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k3rnels-actions%2Fpr-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k3rnels-actions","download_url":"https://codeload.github.com/k3rnels-actions/pr-update/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k3rnels-actions%2Fpr-update/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269502571,"owners_count":24427790,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["actions","github","github-actions","pull-requests","typescript-action"],"created_at":"2025-03-08T23:07:04.103Z","updated_at":"2025-08-08T23:14:11.952Z","avatar_url":"https://github.com/k3rnels-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[[pr-update]]\n= PR-Update\n:toc: macro\n:toc-title:\n\nimage:https://img.shields.io/github/workflow/status/k3rnels-actions/pr-update/build-test.svg?label=build-test[GitHub Workflow Status, link=\"https://github.com/k3rnels-actions/pr-update/actions/workflows/test.yml\"]\nimage:https://img.shields.io/codefactor/grade/github/k3rnels-actions/pr-update.svg[CodeFactor, link=\"https://www.codefactor.io/repository/github/k3rnels-actions/pr-update\"]\nimage:https://img.shields.io/maintenance/yes/2030.svg[Maintenance status, link=\"https://github.com/k3rnels-actions/pr-update\"]\nimage:https://img.shields.io/github/license/k3rnels-actions/pr-update.svg[License, link=\"https://github.com/k3rnels-actions/pr-update/blob/main/LICENSE\"]\nimage:https://img.shields.io/github/v/release/k3rnels-actions/pr-update.svg[GitHub release (latest by date), link=\"https://github.com/k3rnels-actions/pr-update/releases\"]\n\n[#introduction]\n== Introduction\n\nThis is a very basic GitHub Action to simply create a GitHub Pull Request form an existing branch of the given repository to another one. This Action *_does not_* commit any of your changes, nor does it create any of the branches it uses. All this action does is create a Pull Request, nothing more.\n\nNOTE: This Action took inspiration of several other PR creating and updating Actions, however none of them seemed to be doing what I needed, so this exists now.\n\n[#action-io]\n== Action I/O\n\n[TIP]\n====\nIt is recommended that you lock down the permissions granted to the default `GITHUB_TOKEN` within any workflow you have in your repositories.\n\nThis action will need at least these permissions set on the workflow it runs in:\n\n[source,yaml]\n----\npermissions:\n  contents: read\n  pull-requests: write\n----\n\n====\n\n=== Action Inputs\n\n[cols=\"1,^1,4\"]\n|===\n|Input |Required |Description\n\n|`token`\n|`true`\n|The GitHub Token to use by this Action (e.g. `${{ secrets.GITHUB_TOKEN }}`)\n\n|`pr_title`\n|`true`\n|The title of the PR that should be created/updated (e.g. `My awesome PR`)\n\n|`pr_source`\n|`true`\n|The source branch name the PR should have (this branch needs to already exist in the repository)\n\n|`pr_target`\n|`false`\n|The target branch name the PR should have (defaults to the default branch of the repo)\n\n|`pr_body`\n|`false`\n|The body of the PR to create (e.g. `My very useful PR description`)\n\n|`pr_body_with_links`\n|`false`\n|When enabled appends links of associated PRs to the body of the PR to create (e.g. `- [My new feature](https://github.com/k3rnels-actions/pr-update/pulls/1)`)\n\n|`pr_labels`\n|`false`\n|A comma separated list of labels to add to the PR (e.g. `label0,label1`)\n\n|`pr_assignees`\n|`false`\n|A comma separated list of assignees to add to the PR (e.g. `octocat`)\n|===\n\n=== Action Outputs\n\n[cols=\"1,2\"]\n|===\n|Output |Description\n\n|`pr_nr`\n|The number of the created/updated PR\n|===\n\n[#usage]\n== Usage\n\n.create-or-update-pr.yml\n[source,yaml]\n----\non:\n  workflow_dispatch:\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@v2\n      - name: Do some changes to the repo\n        run: ...\n      - name: Run Git CCommands\n        run: |\n          git checkout -b branch_name\n          git commit -am 'add som stuff'\n          git push origin\n      - name: Create-Update PR\n        uses: k3rnels-actions/pr-update@v1\n        id: pr_update\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          pr_title: Awsome PR\n          pr_source: branch_name\n          pr_body: |\n            ### Description\n            Yes you can use Markdown here too\n            ### Changes\n            The following features have been added:\\r\\n\n          pr_body_with_links: true\n\n      - name: Upload Artifact\n        run: echo \"${{ steps.pr_update.outputs.pr_nr }}\"\n----\n\n[#contribute]\n== Contribute\n\nAll kinds of contributions are more than welcome! However, if you plan bigger changes please open an issue first to discuss your proposed changes :wink:\n\n[#licence]\n== Licence\n\nimage::https://www.gnu.org/graphics/gplv3-or-later.svg[link=\"https://opensource.org/licenses/GPL-3.0\"]\n\nJust if the badge from `shields.io` and the link:LICENSE[] file do not make it obvious enough, this project is licenced under the link:https://opensource.org/licenses/GPL-3.0[GPLv3] or later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk3rnels-actions%2Fpr-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk3rnels-actions%2Fpr-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk3rnels-actions%2Fpr-update/lists"}