{"id":13709704,"url":"https://github.com/ent/bug","last_synced_at":"2025-05-12T18:54:06.665Z","repository":{"id":40500859,"uuid":"418412754","full_name":"ent/bug","owner":"ent","description":"Template repository for reporting bugs ","archived":false,"fork":false,"pushed_at":"2023-02-02T05:51:29.000Z","size":143,"stargazers_count":11,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T15:44:31.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ent.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}},"created_at":"2021-10-18T08:34:18.000Z","updated_at":"2023-04-04T14:44:40.000Z","dependencies_parsed_at":"2023-02-17T14:45:40.705Z","dependency_job_id":null,"html_url":"https://github.com/ent/bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ent%2Fbug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ent%2Fbug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ent%2Fbug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ent%2Fbug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ent","download_url":"https://codeload.github.com/ent/bug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253804282,"owners_count":21967046,"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-08-02T23:00:44.216Z","updated_at":"2025-05-12T18:54:06.633Z","avatar_url":"https://github.com/ent.png","language":"Go","funding_links":[],"categories":["Reproduction Templates"],"sub_categories":[],"readme":"# Template Repository For Bug Reporting\nCreate a Repository From the Template\n-----------------------------------\nFirst and foremost, create a repository from this template repository (the one you're in now! 😊 ).\n\nIn order to do so, click 'Use this template' and create your repository.\n\n\u003cimg title=\"use_template\" src=\"https://user-images.githubusercontent.com/73284641/137712207-684ede15-2113-46f1-a214-461976cf10b3.png\" width=\"90%\"\u003e\n\nUpload your desired code into the new repository.\n\nIf you happen to be a GitHub Teams or GitHub Enterprise customer you can alternatively choose to do so directly in the Codespace. Proceed to read if you want to learn how.\n\nOnce creating the desired repository, press `.` (period key) from the main repository page to switch over to dev mode. \n\nCreate a Codespace\n------------------\nWithin dev mode, by clicking the 'Run and Debug' button you can create a new Codespace. \n\n\u003cimg title=\"create_codespace\" src=\"https://user-images.githubusercontent.com/73284641/137910777-3c5e6d79-aefb-49e3-83c0-a180a298881a.png\" width=\"90%\"\u003e\n\nIf you haven't already done so, you can import your code from your personal files by clicking File \u003e Open File. \n\n\u003cimg title=\"open_file\" src=\"https://user-images.githubusercontent.com/73284641/137134989-2787b722-1d14-4795-8daf-3814289e2e55.png\" width=\"90%\"\u003e\n\nInside Codespaces\n------------------\nOnce you're inside Codespaces with your desired code, you can edit, run and debug it.\n\n**Editing**\n\nLet's say you want to edit the template `ent/schema`. For example, add a field named `title` to the `User` schema.\n\nIn `ent/schema/user.go`:  \n\n\u003cimg title=\"edit_user\" src=\"https://user-images.githubusercontent.com/73284641/138644354-7c0c51e1-cfb6-4b20-9e40-c275cea352dc.png\" width=\"90%\"\u003e\n\nTo generate this, we will run the command `go generate ./ent` in the Codespaces terminal. \n\nTo see if the command worked successfully, we can see that changes were made to files (files on the left-hand side became yellow, meaning changes were made that were not staged yet). Also, we can check inside `ent/user/user.go` if our field was added: \n\n\u003cimg title = \"user changes\" src=\"https://user-images.githubusercontent.com/73284641/138584753-270bf1a7-ab8e-4daa-b71b-b77ab417013c.png\" width=\"90%\"\u003e\n\nTo learn more about working with `ent`, click [here](https://entgo.io/docs/getting-started/).  \n\n**Saving Changes** \n\nIf you have made changes to your code, by clicking on 'Source Control' you can directly stage, commit and push them into the repository.\n\nBy clicking the '+' you can stage your changes.\n\n\u003cimg title = \"stage_changes\" src=\"https://user-images.githubusercontent.com/73284641/137622693-65df9b71-4a07-4eda-9efb-ed882e55e98e.png\" width=\"90%\"\u003e\n\nTo commit the changes, enter a message and click the check mark. This button will automatically commit straight into the master branch.\n\n\u003cimg title = \"commit_changes\" src = \"https://user-images.githubusercontent.com/73284641/137622579-603a338b-5dd8-45d4-8922-08ea74bb2245.png\" width=\"90%\"\u003e\n\n\nReport a Bug\n------------------\nNow that your repository is ready, click [here](https://github.com/ent/ent/issues/new/choose) to submit an issue on the Ent repository.   \n\nWhen submitting your issue, a best practice would be to provide sufficient context, link to your new repository, and you're done!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fent%2Fbug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fent%2Fbug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fent%2Fbug/lists"}