{"id":46697186,"url":"https://github.com/cfengine/together-javascript-action","last_synced_at":"2026-03-09T05:33:23.536Z","repository":{"id":160033655,"uuid":"627068770","full_name":"cfengine/together-javascript-action","owner":"cfengine","description":"github javascript action to help run actions with other repositories PRs mentioned in description","archived":false,"fork":false,"pushed_at":"2025-04-25T16:34:10.000Z","size":6251,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-25T17:46:05.493Z","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/cfengine.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,"zenodo":null}},"created_at":"2023-04-12T18:07:57.000Z","updated_at":"2023-04-19T17:34:30.000Z","dependencies_parsed_at":"2025-04-25T17:34:14.629Z","dependency_job_id":"6631cf79-eafe-411f-8ae2-dd4c1db44726","html_url":"https://github.com/cfengine/together-javascript-action","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cfengine/together-javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfengine%2Ftogether-javascript-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfengine%2Ftogether-javascript-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfengine%2Ftogether-javascript-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfengine%2Ftogether-javascript-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfengine","download_url":"https://codeload.github.com/cfengine/together-javascript-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfengine%2Ftogether-javascript-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30283934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":[],"created_at":"2026-03-09T05:33:21.870Z","updated_at":"2026-03-09T05:33:23.514Z","avatar_url":"https://github.com/cfengine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# together-javascript-action\n\n## Purpose\nThis action will search the current pull request's description\nand search for URLs mentioning other PRs of the form\n\nhttps://github.com/cfengine/repo-name/pull/pull-number\n\nAnd then set outputs for later use based on that repo name\nwith the value of `refs/pull/pull-number/merge`.\n\nTODO: If the PR referenced is no longer available: error out.\n\n## Usage\nIn your workflow use this action to get any related pulls as git ref paths.\nThe `ref:` attribute in action/checkout, if empty, will default to the default branch, which typically is not what we want for workflows that operate on non-default branches.\n`github.base_ref` is only set during a `pull_request` event and is needed in case of a non-default branch.\n`github.ref` is the appropriate ref to use during a merge workflow as it will refer to the branch in which we just merged.\n\nFor public repos you can use a `uses` element:\n\n```\n    steps: \n      - name: Get Togethers\n        uses: cfengine/together-javascript-action@v1.4\n        id: together\n        with:\n          myToken: ${{ secrets.GITHUB_TOKEN }}\n      - name: Checkout Core\n        uses: actions/checkout@v3\n        with:\n          repository: cfengine/core\n          path: core\n          ref: ${{steps.together.outputs.core || github.base_ref || github.ref}}\n          submodules: recursive\n```\n\nFor private repos you must checkout the action.\n\nNOTE: it is critical that you place the together action checkout FIRST in your steps.\nOtherwise that checkout will replace/overwrite previous checkouts and cause trouble.\n\n```\n    steps:\n      - name: Checkout Together Action\n        uses: actions/checkout@v3\n        with:\n          repository: cfengine/together-javascript-action\n          ref: v1.4\n      - name: Action step\n        uses: ./\n        id: together\n        with:\n          myToken: ${{ secrets.GITHUB_TOKEN }}\n      - name: Checkout Core\n        uses: actions/checkout@v3\n        with:\n          repository: cfengine/core\n          path: core\n          ref: ${{steps.together.outputs.core || github.base_ref || github.ref}}\n          submodules: recursive\n      - name: Checkout My Private Repo\n        uses: actions/checkout@v3\n        with:\n          path: my-private-repo\n          ref: ${{steps.together.outputs.my-private-repo || github.base_ref || github.ref}}\n```\n\n\n## Development\n\nWhen you want to release a new version of this action do the following:\n\n```\ngit tag -a -m \"My awesome new feature\" vN.M\ngit push --follow-tags\n```\n\nThen you will have to visit all of the workflows that use this action and upgrade their version as appropriate.\n\n## Code Quality\n\nPlease use eslint and check the javascript before submitting pull requests.\n\nnpm install -g eslint\neslint index.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfengine%2Ftogether-javascript-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfengine%2Ftogether-javascript-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfengine%2Ftogether-javascript-action/lists"}