{"id":15292201,"url":"https://github.com/farghul/trout","last_synced_at":"2026-04-28T20:36:42.183Z","repository":{"id":256622468,"uuid":"849595963","full_name":"farghul/trout","owner":"farghul","description":"Manage updates ready for production via queries to a Jira API.","archived":false,"fork":false,"pushed_at":"2025-12-23T20:35:09.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T10:47:33.907Z","etag":null,"topics":["go","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farghul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-29T22:09:19.000Z","updated_at":"2025-12-23T20:35:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac05cfcd-e00b-4f80-9b2b-d6bcccd1ce18","html_url":"https://github.com/farghul/trout","commit_stats":null,"previous_names":["farghul/trout"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/farghul/trout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farghul%2Ftrout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farghul%2Ftrout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farghul%2Ftrout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farghul%2Ftrout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farghul","download_url":"https://codeload.github.com/farghul/trout/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farghul%2Ftrout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32398996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["go","wordpress"],"created_at":"2024-09-30T16:16:57.182Z","updated_at":"2026-04-28T20:36:42.177Z","avatar_url":"https://github.com/farghul.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trout\n\nTrout is a `Release to Production` tool for WordPress plugin updates. It operates in the same fashion as [Bowerbird](https://github.com/farghul/bowerbird.git), but with a focus on creating a WordPress production release via interaction with a Jira API. Trout is named after a popular catch and ***release*** fish.\n\n![Trout](trout.webp)\n\n## 📚 Prerequisites\n\nThe [Go Programming Language](https://go.dev \"Build simple, secure, scalable systems with Go\") installed to enable building executables from source code.\n\nA number of JSON formatted files containing your API URLs and Basic tokens to enable authorized querying, ticket modification, and the creation of pull requests (see `jsons` folder for reference).\n\n## 🔩 Function\n\nTrout searches the targeted Jira API for tickets marked as `In Progress` (aka Testing) for more than seven days. It then gathers the qualifying candidates and creates a new git branch named `update/[release]` where *release* is provided as an argument. Finally, it runs a series of `composer require` commands on the `composer-prod.json` file and creates a pull request for review.\n\n## 📂 Project Structure\n\nInside of your Bowerbird project, you'll see the following folders and files:\n\n``` zsh\n.\n├── jsons/\n│   ├── bitbucket.json\n│   ├── jira.json\n│   ├── tokens.json\n├── go.mod\n├── Jenkisfile\n├── LICENSE.md\n├── main.go\n├── README.md\n├── release.go\n├── shared.go\n├── trout.webp\n└── vars.go\n```\n\n## 🚧 Build\n\nBefore building the application, change the value of these constants to reflect your environment:\n\n``` go\nrepos  string = \"/data/automation/checkouts/\"\ntokens string = \"/data/automation/tokens/\"\nconfig string = \"desso-automation-conf/jsons/\"\n```\n\nThen, from the root folder containing `main.go`, use the command that matches your environment:\n\n### Windows \u0026 Mac:\n\n``` zsh\ngo build -o [name] .\n```\n\n### Linux:\n\n``` zsh\nGOOS=linux GOARCH=amd64 go build -o [name] .\n```\n\n## 🏃 Run\n\n``` zsh\ntrout -r [release name or number]\n```\n\n## 🎏 Available Flags\n\n| Command               | Action                      |\n|:----------------------|:----------------------------|\n|    `-h, --help`       |   Help information          |\n|    `-r, --run`        |   Run program               |\n|    `-v, --version`    |   Display program version   |\n\n## 🎫 License\n\nCode is distributed under [The Unlicense](https://github.com/farghul/trout/blob/main/LICENSE.md \"Unlicense Yourself, Set Your Code Free\") and is part of the Public Domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarghul%2Ftrout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarghul%2Ftrout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarghul%2Ftrout/lists"}