{"id":15757140,"url":"https://github.com/garnertb/template-action","last_synced_at":"2026-03-01T17:34:21.619Z","repository":{"id":59913279,"uuid":"528960527","full_name":"garnertb/template-action","owner":"garnertb","description":"GitHub Action that provides advanced formatting control using Handlebars.","archived":false,"fork":false,"pushed_at":"2025-01-21T23:50:03.000Z","size":770,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-22T05:48:56.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/garnertb.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}},"created_at":"2022-08-25T17:52:19.000Z","updated_at":"2024-05-06T17:33:03.000Z","dependencies_parsed_at":"2024-10-25T07:33:23.772Z","dependency_job_id":"e45f1a8e-7816-4bae-945f-516a9b8e8415","html_url":"https://github.com/garnertb/template-action","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/garnertb/template-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Ftemplate-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Ftemplate-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Ftemplate-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Ftemplate-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garnertb","download_url":"https://codeload.github.com/garnertb/template-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Ftemplate-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29976279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2024-10-04T09:04:22.819Z","updated_at":"2026-03-01T17:34:21.584Z","avatar_url":"https://github.com/garnertb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# template-action\n\nAction that uses [handlebars](https://handlebarsjs.com/) to render arbitrary template payloads.  \n\n## Usage\n\nAny variables passed will be used as context for the template.\n\n### Simple example\n\n```yaml\nuses: garnertb/template-action@v1\nwith:\n  template: Whats up {{ name }}?\n  name: Mona\n\n# Returns\n# \u003e\u003e Whats up Mona?\n```\n\n### More complex example\n\nThis example creates a summary issue with all issues updated in the last week.\n\n```yaml\n# Query recently updated issues\n- uses: octokit/request-action@v2.x\n  id: open-issues\n  with:\n    route: /repos/:owner/:repo/issues?sort=updated\u0026per_page=100\u0026state=all\n    owner: garnertb\n    repo: template-action\n  env:\n    GITHUB_TOKEN: ${{ secrets.token }} \n\n# Use template-action to generate the issue body\n- uses: garnertb/template-action@v1\n  id: issue-body\n  with:\n    issues: ${{ steps.open-issues.outputs.data }}\n    template: |\n      ## Open issues\n      {{ #each issues }}\n      {{ #withinAWeek this.updated_at }}\n      - [ ] #{{ this.number }}\n      {{ /withinAWeek }}\n      {{ /each }}\n\n# Create summary issue from template payload\n- uses: imjohnbo/issue-bot@v3\n  with:\n    body: ${{ steps.issue-body.outputs.payload }}\n    title: Issues from this week\n```\n\nGenerated issue:\n\n![issue image](images/issue.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarnertb%2Ftemplate-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarnertb%2Ftemplate-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarnertb%2Ftemplate-action/lists"}