{"id":16715461,"url":"https://github.com/vil02/string_to_code_action","last_synced_at":"2025-03-15T08:46:30.982Z","repository":{"id":204036650,"uuid":"710958403","full_name":"vil02/string_to_code_action","owner":"vil02","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-05T07:55:13.000Z","size":162,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T08:33:22.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/vil02.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":"2023-10-27T20:22:25.000Z","updated_at":"2025-02-05T07:54:56.000Z","dependencies_parsed_at":"2023-11-28T07:28:38.274Z","dependency_job_id":"9c01eaf2-47f0-457c-93d5-7a527cbfdd76","html_url":"https://github.com/vil02/string_to_code_action","commit_stats":null,"previous_names":["vil02/string_to_code_action"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vil02%2Fstring_to_code_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vil02%2Fstring_to_code_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vil02%2Fstring_to_code_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vil02%2Fstring_to_code_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vil02","download_url":"https://codeload.github.com/vil02/string_to_code_action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243707307,"owners_count":20334616,"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-10-12T21:09:28.413Z","updated_at":"2025-03-15T08:46:30.954Z","avatar_url":"https://github.com/vil02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `string_to_code_action`\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=vil02_string_to_code_action\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=vil02_string_to_code_action)\n[![CodeFactor](https://www.codefactor.io/repository/github/vil02/string_to_code_action/badge)](https://www.codefactor.io/repository/github/vil02/string_to_code_action)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/2d2282499b7c45d7b840baba70b7eb14)](https://app.codacy.com/gh/vil02/string_to_code_action/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n[![Open in Gitpod](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/vil02/string_to_code_action)\n\nThis GitHub Action utilizes the\n[`string_to_code`](https://github.com/vil02/string_to_code_proj) Python package\nto generate messy code that displays a given string.\n\n## Inputs\n\n- `targetLanguage` (optional): Language of the generated code.\n     If set to `\"\"` the resulting code will be in a randomly selected language.\n     Default: `\"\"`.\n- `inputStr` (required): The string which should be displayed\n     by the generated program.\n- `outputFile` (optional): The file to store the generated code.\n    Default: `\"out.txt\"`.\n\n## Outputs\n\n- `targetLanguage`: Language of the generated code.\n- `code`: The generated messy code.\n\n## Example Usage\n\n```yaml\n---\nname: Generate Messy Code\n\non:\n  workflow_dispatch:\n  push:\n\njobs:\n  generate_code:\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Checkout repository\n      uses: actions/checkout@v4\n\n    - name: Generate Messy Code\n      id: generate_code\n      uses: vil02/string_to_code_action\n      with:\n        targetLanguage: \"python3\"\n        inputStr: \"Hello, World!\"\n        outputFile: \"generated_code.py\"\n\n    - name: Display Generated Code\n      run: cat ${{ steps.generate_code.outputs.outputFile }}\n...\n```\n\nIn this example, the GitHub Action generates messy code in\nthe Python3 that displays the string `Hello, World!`.\nThe generated code is stored in the file `generated_code.py`\nand then displayed using the `cat` command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvil02%2Fstring_to_code_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvil02%2Fstring_to_code_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvil02%2Fstring_to_code_action/lists"}