{"id":18601716,"url":"https://github.com/eficode/resolve-pr-refs-old","last_synced_at":"2025-07-15T19:17:13.287Z","repository":{"id":152149856,"uuid":"424637549","full_name":"eficode/resolve-pr-refs-old","owner":"eficode","description":"Github Action (JS): Merges an open PR with git merge --ff-only","archived":false,"fork":false,"pushed_at":"2021-11-16T15:09:04.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-16T17:44:34.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eficode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-11-04T15:04:36.000Z","updated_at":"2021-11-16T20:52:01.000Z","dependencies_parsed_at":"2023-07-11T13:46:51.953Z","dependency_job_id":null,"html_url":"https://github.com/eficode/resolve-pr-refs-old","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eficode/resolve-pr-refs-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fresolve-pr-refs-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fresolve-pr-refs-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fresolve-pr-refs-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fresolve-pr-refs-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eficode","download_url":"https://codeload.github.com/eficode/resolve-pr-refs-old/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fresolve-pr-refs-old/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265453750,"owners_count":23768199,"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":[],"created_at":"2024-11-07T02:09:13.416Z","updated_at":"2025-07-15T19:17:13.268Z","avatar_url":"https://github.com/eficode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Action Resolve Pull Request Refs\nTested only for `issue_comment` event. When your workflow triggers on a comment on PR, you can use this action.\n\nTODO: test also on `pull_request` events.\n\n## Inputs\n\n## `token`\n**Required:** Github API Token\n\n## Outputs\n\n## `base_ref`\nPull request base ref.\n\n## `head_ref`\nPull request head ref.\n\n## Example usage\n```\n- name: resolve pr refs\n  id: refs\n  uses: eficode/resolve-pr-refs@main\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Example usecase\n```\non:\n  issue_comment:\n    types: [created]\njobs:\n  fast_forward_merge:\n    name: ff-merge\n    if: ${{ github.event.comment.body == '/ff-merge' }}\n    runs-on: ubuntu-latest\n    steps:\n      - name: resolve pr refs\n        id: refs\n        uses: eficode/resolve-pr-refs@main\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n      - name: checkout base\n        uses: actions/checkout@v2\n        with:\n          ref: ${{ steps.refs.outputs.base_ref }}\n      - name: fast forward merge pr\n        run: |\n          git fetch\n          git merge --ff-only origin/${{ steps.refs.outputs.head_ref }}\n          git push\n```\n\n## Building a new version\n\n### Ensure vercel/ncc is installed\n```\nnpm i -g @vercel/ncc\n```\n\n### Compile\n```\nncc build index.js --license licenses.txt\n```\n\n### Tag\n```\ngit tag -a -m \"Amazing new release\" v1.1\ngit push --follow-tags\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feficode%2Fresolve-pr-refs-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feficode%2Fresolve-pr-refs-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feficode%2Fresolve-pr-refs-old/lists"}