{"id":18711616,"url":"https://github.com/hennamann/gistgradle","last_synced_at":"2026-04-28T18:04:26.065Z","repository":{"id":89695741,"uuid":"126008513","full_name":"Hennamann/GistGradle","owner":"Hennamann","description":"Gradle plugin for creating and editing GitHub gists using your buildscripts","archived":false,"fork":false,"pushed_at":"2018-03-20T16:53:23.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T08:24:26.758Z","etag":null,"topics":["gist","gists","github-api","gradle","gradle-plugin","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hennamann.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}},"created_at":"2018-03-20T11:42:01.000Z","updated_at":"2018-03-20T16:53:23.000Z","dependencies_parsed_at":"2023-04-26T21:17:33.171Z","dependency_job_id":null,"html_url":"https://github.com/Hennamann/GistGradle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennamann%2FGistGradle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennamann%2FGistGradle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennamann%2FGistGradle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennamann%2FGistGradle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hennamann","download_url":"https://codeload.github.com/Hennamann/GistGradle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576793,"owners_count":19662113,"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":["gist","gists","github-api","gradle","gradle-plugin","java"],"created_at":"2024-11-07T12:39:59.496Z","updated_at":"2025-11-09T18:30:20.337Z","avatar_url":"https://github.com/Hennamann.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GistGradle\nGradle plugin for creating and editing GitHub gists using your buildscripts\n\n## Installation\nThe plugin is hosted on the official Gradle plugins repo and can be added to your build script like any plugin:\n\n```groovy\nplugins {\n  id \"com.henrikstabell.gistgradle\" version \"1.0-SNAPSHOT\"\n}\n```\nhttps://plugins.gradle.org/plugin/com.henrikstabell.gistgradle\n\n## Usage\nThe plugin has two tasks, both of which are optional:\n\n### createGist\nCreates a new Gist on your GitHub account:\n```groovy\ncreateGist {\n\tgitUser = \"github username\"\n\tgitPass = \"github password\"\n\tgistContent = \"Contents of the file you are creating\"\n\tgistFileName = \"filename.txt\" \n\tgistDescription = \"description for the gist\"\n\tgistStatus = true\n}\n```\n\n**gitUser** expects a GitHub username. **Mandatory**\n\n**gitPass** expects a GitHub password, if you have 2FA enabled on your GitHub account this will not work, support for OAuth might be added in the future (PRs are welcome!). **Mandatory**\n\n**gistContent** expects a text string with your file contents, this can be any format. (JSON, TXT, XML, HTML etc.). **Mandatory**\n\n**gistFileName** expects a filename with a file extension. **Mandatory**\n\n**gistDescription** expects a text string with a short description for your gist, if this is ignored a default description will be added to the gist for you. *Optional*\n\n**gistStatus** Set this to true if you want the gist to be public (default: false) *Optional*\n\nWith the exception of `gistDescription` and `gistStatus` all parameters are mandatory, the plugin will fail with a NullPointerException if the mandatory parameters are empty.\n\nto run the task use the following command:\n```bash\ngradle createGist\n```\n\n### editGist\nEdits an existing gist on your GitHub account.\n```groovy\neditGist {\n\tgitUser = \"github username\"\n\tgitPass = \"github password\"\n    gistID = \"12345\"\n\tgistContent = \"Contents of the file you are editing\"\n\tgistFileName = \"filename.txt\" \n}\n```\n\n**gitUser** expects a GitHub username. **Mandatory**\n\n**gitPass** expects a GitHub password, if you have 2FA enabled on your GitHub account this will not work, support for OAuth might be added in the future (PRs are welcome!). **Mandatory**\n\n**gistID** expects the ID of the gist you want to edit (ex. ec632e84cd5e0941259c7746d04ddb03) **Mandatory**\n\n**gistContent** expects a text string with your file contents, this can be any format. (JSON, TXT, XML, HTML etc.). **Mandatory**\n\n**gistFileName** expects a filename with a file extension. **Mandatory**\n\nAll parameters are mandatory, the plugin will fail with a NullPointerException if any of the parameters are empty.\n\nto run the task use the following command:\n```bash\ngradle editGist\n```\n\n## Limitations\nThis plugin was made for a specific personal use case, but published because others might have a use for it as well. As such it does what it needs to and not much else. This causes some limitations:\n\n* Both when editing and creating gists, only a single file can be added to the gist. This is not a limitation with the API but the plugin, if you really need this added feel free to make a PR and i'll happily merge it.\n* When editing a gist the content is completley replaced instead of merging the changes.\n\nI have no plans to remove these limitations but feel free to submit a pull request and i'll happily merge it.\n\n## Dependencies\nThis plugin uses the GitHub Java API by Eclipse to create and edit gists: https://github.com/eclipse/egit-github/tree/master/org.eclipse.egit.github.core \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennamann%2Fgistgradle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhennamann%2Fgistgradle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennamann%2Fgistgradle/lists"}