{"id":28475112,"url":"https://github.com/amezin/create-or-update-pull-request-action","last_synced_at":"2026-04-29T01:01:35.573Z","repository":{"id":294776593,"uuid":"988012507","full_name":"amezin/create-or-update-pull-request-action","owner":"amezin","description":"Create or update a pull request","archived":false,"fork":false,"pushed_at":"2026-04-01T16:37:56.000Z","size":2544,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T01:26:08.300Z","etag":null,"topics":["action","actions","github-action","github-actions","github-api","pull-request","pullrequest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amezin.png","metadata":{"files":{"readme":"README.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-21T23:36:28.000Z","updated_at":"2026-02-03T01:42:02.000Z","dependencies_parsed_at":"2025-06-15T23:49:07.727Z","dependency_job_id":"d4744f23-874a-420d-bfe6-19dc7445801d","html_url":"https://github.com/amezin/create-or-update-pull-request-action","commit_stats":null,"previous_names":["amezin/create-or-update-pull-request-action"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/amezin/create-or-update-pull-request-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcreate-or-update-pull-request-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcreate-or-update-pull-request-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcreate-or-update-pull-request-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcreate-or-update-pull-request-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amezin","download_url":"https://codeload.github.com/amezin/create-or-update-pull-request-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcreate-or-update-pull-request-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["action","actions","github-action","github-actions","github-api","pull-request","pullrequest"],"created_at":"2025-06-07T14:05:25.275Z","updated_at":"2026-04-29T01:01:35.567Z","avatar_url":"https://github.com/amezin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create or Update Pull Request\n\nCreate or update a pull request through GitHub API.\nOr, in other words, ensure an open pull request with the specified `head` and `base` branches exists.\n\nIf the pull request does not exist, it will be created.\n\nIf it already exists, it will be updated to have the specified title and description.\n\nThis action is intended to be used together with https://github.com/amezin/create-commit-action\nand https://github.com/amezin/create-or-update-git-ref-action to automatically create/update pull\nrequests for modified files, but can be used standalone for other purposes too.\n\n## Usage example\n\nA workflow that generates a file and adds it to the main branch through a pull request:\n\nhttps://github.com/amezin/pull-request-generator/blob/main/.github/workflows/make-pull-request.yml\n\n## Inputs\n\n### `repository`\n\nThe owner and repository name, in `owner/name` format.\n\n**Default**: `${{ github.repository }}` - the repository where the workflow was triggered.\n\n### `title`\n\nPull request title. No default value. Required input.\n\n### `body`\n\nThe description of the pull request.\n\n### `update`\n\n`true`: update pull request's `title` and `body` if the pull request already exists.\n\n`false`: don't update existing pull requests.\n\n**Default**: `true`\n\n### `draft`\n\n`true`: the pull request will be created as a draft.\n\n\u003e [!NOTE]\n\u003e This input will be ignored if the pull request already exists, regardless of `update` flag.\n\n**Default**: `false`\n\n### `head`\n\nSource branch name, **without** `refs/heads/`.\n\n**Default**: `${{ github.ref_name }}` - the name of the branch that triggered the workflow run.\n\n### `base`\n\nTarget branch name, **without** `refs/heads/`.\n\n**Default**: `${{ github.event.repository.default_branch }}` - the default branch of the repository.\n\n### `github-token`\n\nGitHub API token to use.\n\nMust have `pull-requests: write` permission.\n\n**Default**: `${{ github.token }}`\n\n\u003e [!NOTE]\n\u003e If you want other GitHub Actions workflows to be triggered from `pull_request` event,\n\u003e you should use a custom token (app installation or personal access token):\n\u003e https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow\n\n## Outputs\n\n### `number`\n\nThe number of the created/updated pull request.\n\n### `url`\n\nREST API URL of the created/updated pull request.\n\n### `html_url`\n\nBrowser URL of the created/updated pull request.\n\n### `pull_request`\n\nPull request object as JSON. Can be passed to [`fromJSON()`] function to extract the necessary data.\n\nSee https://docs.github.com/en/rest/pulls/pulls#get-a-pull-request\n\n[`fromJSON()`]: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#fromjson\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famezin%2Fcreate-or-update-pull-request-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famezin%2Fcreate-or-update-pull-request-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famezin%2Fcreate-or-update-pull-request-action/lists"}