{"id":7740074,"name":"urcomputeringpal/github-script-ts","ecosystem":"actions","description":"Helper workflow wrapping actions/github-script with TypeScript","homepage":"","licenses":"apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/urcomputeringpal/github-script-ts","keywords_array":["actions","typescript"],"namespace":"urcomputeringpal","versions_count":9,"first_release_published_at":"2023-05-13T22:27:07.000Z","latest_release_published_at":"2025-04-03T13:53:13.000Z","latest_release_number":"v0.0.10","last_synced_at":"2026-05-03T19:47:47.140Z","created_at":"2023-05-16T18:45:25.734Z","updated_at":"2026-05-03T19:47:47.141Z","registry_url":"https://github.com/urcomputeringpal/github-script-ts","install_command":null,"documentation_url":null,"metadata":{"name":"Run a TypeScript function","description":"Helper workflow wrapping actions/github-script with TypeScript","inputs":{"github-token":{"description":"The GitHub token used to create an authenticated client","default":"${{ github.token }}"},"path":{"description":"Path to the functions","default":"${{ github.workspace }}/.github","required":true},"dist":{"description":"The primary path to the generated files inside your path directory. Your build script should generate an index.js at this path.\n","default":"dist"},"build":{"description":"Build command. This command is expected to generate an index.js in the path directory.\n","default":"npm run build"},"function":{"description":"Name of the function to call","default":""},"args":{"description":"Arguments to pass to the function","default":"{github, context, core, exec, io, fetch}"},"debug":{"description":"Whether to tell the GitHub client to log details of its requests. true or false. Default is to run in debug mode when the GitHub Actions step debug logging is turned on.","default":"${{ runner.debug == '1' }}"},"user-agent":{"description":"An optional user-agent string","default":"actions/github-script"},"previews":{"description":"A comma-separated list of API previews to accept"},"result-encoding":{"description":"How the result will be encoded. Either \"string\" or \"json\" (default \"string\").\n","default":"string"},"retries":{"description":"The number of times to retry a request","default":"0"},"retry-exempt-status-codes":{"description":"A comma separated list of status codes that will NOT be retried e.g. \"400,500\". No effect unless `retries` is set","default":400401403404422}},"outputs":{"result":{"description":"Result of the script","value":"${{ steps.script.outputs.result }}"},"module":{"description":"Module to import if calling actions/github-script directly","value":"${{ steps.module.outputs.module }}"}},"runs":{"using":"composite","steps":[{"name":"Setup environment","if":"inputs.function == ''","shell":"bash","run":"test -f .nvmrc || exit 0\nNODE_VERSION=$(cat .nvmrc | xargs)\necho \"node_version=$NODE_VERSION\" \u003e\u003e $GITHUB_ENV\n"},{"name":"Setup node","if":"inputs.function == ''","uses":"actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c","with":{"node-version":"${{ env.node_version }}"}},{"name":"Get npm cache directory","if":"inputs.function == ''","id":"npm-cache-dir","shell":"bash","run":"echo \"dir=$(npm config get cache)\" \u003e\u003e ${GITHUB_OUTPUT}"},{"uses":"actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f","if":"inputs.function == ''","id":"npm-cache","with":{"path":"${{ steps.npm-cache-dir.outputs.dir }}\n","key":"github-script-ts-npm-v3-${{ runner.os }}-${{ hashFiles(format('{0}/{1}', inputs.path, 'package*.json')) }}\n","restore-keys":"github-script-ts-npm-v3-${{ runner.os }}-\n"}},{"name":"Install dependencies","if":"inputs.function == ''","shell":"bash","working-directory":"${{ inputs.path }}","run":"npm ci\nmkdir -p tmp/dist\necho \"${{ inputs.build }}\" \u003e tmp/dist/inputs.build\necho \"${{ inputs.dist }}\" \u003e tmp/dist/inputs.dist\n"},{"uses":"actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f","if":"inputs.function == ''","id":"build-cache","with":{"path":"${{ inputs.path }}/${{ inputs.dist }}\n","key":"github-script-ts-build-v3-${{ runner.os }}-${{ hashFiles(format('{0}/{1}', inputs.path, 'tmp/dist/inputs.*'), format('{0}/{1}', inputs.path, 'package*.json'), format('{0}/{1}', inputs.path, '**/*.ts'), format('{0}/{1}', inputs.path, '**/*.js')) }}\n"}},{"name":"Build","if":"inputs.function == '' \u0026\u0026 steps.build-cache.outputs.cache-hit != 'true'","shell":"bash","working-directory":"${{ inputs.path }}","run":"${{ inputs.build }}\n"},{"name":"Set module output","id":"module","shell":"bash","run":"echo \"module=${{ inputs.path }}/${{ inputs.dist }}/index.js\" \u003e\u003e \"$GITHUB_OUTPUT\"\n"},{"name":"Execute script","if":"inputs.function != ''","id":"script","uses":"actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410","env":{"FUNCTION_NAME":"${{ inputs.function }}"},"with":{"result-encoding":"${{ inputs.result-encoding }}","retries":"${{ inputs.retries }}","user-agent":"${{ inputs.user-agent }}","debug":"${{ inputs.debug }}","github-token":"${{ inputs.github-token }}","previews":"${{ inputs.previews }}","retry-exempt-status-codes":"${{ inputs.retry-exempt-status-codes }}","script":"const { ${{ env.FUNCTION_NAME }} } = await import('${{ steps.module.outputs.module }}')\nreturn await ${{ env.FUNCTION_NAME }}(${{ inputs.args }});\n"}}]},"default_branch":"main","path":null},"repo_metadata":{"uuid":"640364522","full_name":"urcomputeringpal/github-script-ts","owner":"urcomputeringpal","description":"actions/github-script with Typescript ","archived":false,"fork":false,"pushed_at":"2023-07-10T18:05:43.000Z","size":236,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-10T19:26:06.844Z","etag":null,"topics":["actions","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/urcomputeringpal.png","metadata":{},"created_at":"2023-05-13T20:55:24.000Z","updated_at":"2023-05-14T02:09:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/urcomputeringpal/github-script-ts","commit_stats":null,"previous_names":[],"tags_count":8,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urcomputeringpal","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145722208,"owners_count":6280668,"icon_url":"https://github.com/github.png","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"},"owner_record":{"login":"urcomputeringpal","name":"ur computering pal","uuid":"39835443","kind":"organization","description":"We make tools to help u computer.","email":"pal@urcomputeringpal.com","website":"https://urcomputeringpal.com","location":"Austin, TX","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/39835443?v=4","repositories_count":12,"last_synced_at":"2023-03-02T16:25:18.176Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/urcomputeringpal","created_at":"2022-11-13T07:44:38.842Z","updated_at":"2023-03-02T16:25:18.183Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urcomputeringpal","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urcomputeringpal/repositories"},"tags":[{"name":"v0.0.9","sha":"ffbd14d3da998a8c02d11cb421fe374104026b59","kind":"commit","published_at":"2023-05-16T22:54:12.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0.0.9","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0.0.9","dependencies_parsed_at":"2023-06-02T00:07:07.157Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.9","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.9/manifests"},{"name":"v0.0.8","sha":"d7f3d0552b4e83c426dba5a2f0f6f9edc5dd0c26","kind":"commit","published_at":"2023-05-15T22:44:35.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0.0.8","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0.0.8","dependencies_parsed_at":"2023-06-02T00:07:07.098Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.8","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.8/manifests"},{"name":"v0.0.7","sha":"fe185365a0c18237e43c80acd33c97a3d01ce842","kind":"commit","published_at":"2023-05-14T14:58:55.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0.0.7","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0.0.7","dependencies_parsed_at":"2023-06-02T00:07:07.020Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.7/manifests"},{"name":"v0","sha":"fe185365a0c18237e43c80acd33c97a3d01ce842","kind":"commit","published_at":"2023-05-14T14:58:55.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0","dependencies_parsed_at":"2023-06-02T00:07:07.094Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0/manifests"},{"name":"v0.0.5","sha":"c19787f61325e8f3758470598fb3cfe87e4af771","kind":"commit","published_at":"2023-05-14T04:07:15.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0.0.5","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0.0.5","dependencies_parsed_at":"2023-06-02T00:07:07.109Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.5/manifests"},{"name":"v0.0.4","sha":"4780ca48ea0b81884a990b1bdbac635188f8170a","kind":"commit","published_at":"2023-05-14T03:44:22.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0.0.4","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0.0.4","dependencies_parsed_at":"2023-06-02T00:07:06.972Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.4/manifests"},{"name":"v0.0.2","sha":"2518fd4dab33464bab3543ff28c86157f995e3b9","kind":"commit","published_at":"2023-05-14T03:18:55.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0.0.2","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0.0.2","dependencies_parsed_at":"2023-06-02T00:07:07.084Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.2/manifests"},{"name":"v0.0.1","sha":"5a860bb568f82d51597fd6082aedf4778aa5492a","kind":"commit","published_at":"2023-05-13T22:27:07.000Z","download_url":"https://codeload.github.com/urcomputeringpal/github-script-ts/tar.gz/v0.0.1","html_url":"https://github.com/urcomputeringpal/github-script-ts/releases/tag/v0.0.1","dependencies_parsed_at":"2023-06-02T00:07:06.542Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urcomputeringpal%2Fgithub-script-ts/tags/v0.0.1/manifests"}]},"repo_metadata_updated_at":"2023-07-14T10:07:04.047Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":1,"rankings":{"downloads":null,"dependent_repos_count":24.766281096498176,"dependent_packages_count":0.0,"stargazers_count":34.6537791158295,"forks_count":35.132308667406114,"docker_downloads_count":null,"average":23.638092219933448},"purl":"pkg:githubactions/urcomputeringpal/github-script-ts","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/urcomputeringpal/github-script-ts","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/urcomputeringpal/github-script-ts","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/urcomputeringpal/github-script-ts/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-08-17T20:12:50.028Z","issues_count":0,"pull_requests_count":40,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":18892.51724137931,"issues_closed_count":0,"pull_requests_closed_count":29,"pull_request_authors_count":3,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.125,"merged_pull_requests_count":29,"bot_issues_count":0,"bot_pull_requests_count":26,"past_year_issues_count":0,"past_year_pull_requests_count":40,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":18892.51724137931,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":29,"past_year_pull_request_authors_count":3,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.125,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":26,"past_year_merged_pull_requests_count":29},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/urcomputeringpal%2Fgithub-script-ts/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/urcomputeringpal%2Fgithub-script-ts/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/urcomputeringpal%2Fgithub-script-ts/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/urcomputeringpal%2Fgithub-script-ts/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/urcomputeringpal%2Fgithub-script-ts/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/urcomputeringpal%2Fgithub-script-ts/codemeta","maintainers":[]}