{"id":21697871,"url":"https://github.com/yakubique/prefix-suffix","last_synced_at":"2026-04-18T04:03:12.320Z","repository":{"id":217262112,"uuid":"743411174","full_name":"yakubique/prefix-suffix","owner":"yakubique","description":"Add prefix/suffix to text/json","archived":false,"fork":false,"pushed_at":"2024-03-22T08:11:37.000Z","size":371,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-20T15:17:44.671Z","etag":null,"topics":["github-actions","json","processing"],"latest_commit_sha":null,"homepage":null,"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/yakubique.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":"2024-01-15T07:18:14.000Z","updated_at":"2024-02-27T12:24:25.000Z","dependencies_parsed_at":"2024-01-15T10:13:15.164Z","dependency_job_id":"9f88c212-a6a7-4d8b-b58b-d24fb73b4be8","html_url":"https://github.com/yakubique/prefix-suffix","commit_stats":null,"previous_names":["yakubique/prefix-suffix"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yakubique/prefix-suffix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fprefix-suffix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fprefix-suffix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fprefix-suffix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fprefix-suffix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yakubique","download_url":"https://codeload.github.com/yakubique/prefix-suffix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fprefix-suffix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["github-actions","json","processing"],"created_at":"2024-11-25T19:29:51.264Z","updated_at":"2026-04-18T04:03:12.286Z","avatar_url":"https://github.com/yakubique.png","language":"TypeScript","funding_links":["https://ko-fi.com/S6S1UZ9P7"],"categories":[],"sub_categories":[],"readme":"# prefix-suffix\n\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nAdd prefix/suffix to text/json\n\n## Usage\n\nFor live examples, please see [actions](https://github.com/yakubique/prefix-suffix/actions/workflows/test-myself.yaml)\n\n```yaml\nuses: yakubique/prefix-suffix@v1.1\nwith:\n  input: \"My awesome text\"\n  prefix: \"##\"\n  suffix: '🥳'\n\n# result: \"##My awesome text🥳\"\n```\n\n## With flat-json\n\n```yaml\nuses: yakubique/prefix-suffix@v1.1\nwith:\n  input: '[\"1.0.0\",\"1.1.0\",\"1.2.0\",\"1.2.1\",\"1.3.0\"]'\n  prefix: 'v'\n  type: 'flat-json'\n\n# result: \"[\"v1.0.0\",\"v1.1.0\",\"v1.2.0\",\"v1.2.1\",\"v1.3.0\"]\"\n```\n\n## With nested json\n\n```yaml\nuses: yakubique/prefix-suffix@v1.1\nwith:\n  input: '[{\"name\":\"v0.3.26\",\"tag_name\":\"v0.3.26\",\"prerelease\":false,\"published_at\":\"2023-08-07T09:43:28Z\"},{\"name\":\"v0.3.22\",\"tag_name\":\"v0.3.22\",\"prerelease\":false,\"published_at\":\"2023-11-12T10:58:00Z\"},{\"name\":\"v0.3.23\",\"tag_name\":\"v0.3.23\",\"prerelease\":false,\"published_at\":\"2023-11-12T10:59:27Z\"},{\"name\":\"v0.3.25\",\"tag_name\":\"v0.3.25\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:01:20Z\"},{\"name\":\"v0.3.31\",\"tag_name\":\"v0.3.31\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:17:17Z\"},{\"name\":\"v0.3.34\",\"tag_name\":\"v0.3.34\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:21:59Z\"}]'\n  type: \"nested-json\"\n  key: \"name\"\n  prefix: 'The name is: '\n  suffix: \".\"\n\n# result: \"[{\"name\":\"The name is:v0.3.26.\",\"tag_name\":\"v0.3.26\",\"prerelease\":false,\"published_at\":\"2023-08-07T09:43:28Z\"},{\"name\":\"The name is:v0.3.22.\",\"tag_name\":\"v0.3.22\",\"prerelease\":false,\"published_at\":\"2023-11-12T10:58:00Z\"},{\"name\":\"The name is:v0.3.23.\",\"tag_name\":\"v0.3.23\",\"prerelease\":false,\"published_at\":\"2023-11-12T10:59:27Z\"},{\"name\":\"The name is:v0.3.25.\",\"tag_name\":\"v0.3.25\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:01:20Z\"},{\"name\":\"The name is:v0.3.31.\",\"tag_name\":\"v0.3.31\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:17:17Z\"},{\"name\":\"The name is:v0.3.34.\",\"tag_name\":\"v0.3.34\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:21:59Z\"}]\"\n```\n\n## Use output\n\n```yaml\nsteps:\n  - name: Checkout\n    uses: actions/checkout@v4\n  - name: Prefix/suffix\n    id: modify_text\n    uses: yakubique/prefix-suffix@v1.1\n    with:\n      input: \"My awesome text\"\n      prefix: \"## \"\n      suffix: ' 🥳'\n  - name: Echo output\n    run: |\n      echo \"${{ steps.modify_text.outputs.result }}\"\n```\n\n## Inputs\n\n\u003c!-- AUTO-DOC-INPUT:START - Do not remove or modify this section --\u003e\n\n| INPUT  |  TYPE  | REQUIRED | DEFAULT |                                 DESCRIPTION                                  |\n|--------|--------|----------|---------|------------------------------------------------------------------------------|\n| input  | string |   true   |         |                      Text or JSON to add prefix/suffix                       |\n|  type  | string |  false   |         | Type of input data `[\"text\", \"flat-json\", \"nested-json\"]` (default: \"text\")  |\n|  key   | string |  false   |         |         If `type=\"nested-json\"` - which key should \u003cbr\u003ebe prefixed           |\n| prefix | string |  false   |         |                           Prefix to add. Avoidable                           |\n| suffix | string |  false   |         |                           Suffix to add. Avoidable                           |\n\n\u003c!-- AUTO-DOC-INPUT:END --\u003e\n\n\n## Outputs\n\n\u003c!-- AUTO-DOC-OUTPUT:START - Do not remove or modify this section --\u003e\n\n| OUTPUT |  TYPE  |   DESCRIPTION    |\n|--------|--------|------------------|\n| result | string | Result text/json |\n\n\u003c!-- AUTO-DOC-OUTPUT:END --\u003e\n\n\n----\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S1UZ9P7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakubique%2Fprefix-suffix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyakubique%2Fprefix-suffix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakubique%2Fprefix-suffix/lists"}