{"id":20399117,"url":"https://github.com/nolim1t/create_github_commit","last_synced_at":"2026-05-08T13:02:43.610Z","repository":{"id":66826486,"uuid":"84404535","full_name":"nolim1t/create_github_commit","owner":"nolim1t","description":"Library that makes a github commit to a defined repository programmatically","archived":false,"fork":false,"pushed_at":"2017-03-09T13:58:49.000Z","size":35,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T19:04:40.204Z","etag":null,"topics":["github","library","nodejs"],"latest_commit_sha":null,"homepage":"http://www.nolim1t.co/2017/03/08/uploading-to-github-through-the-API.html","language":"JavaScript","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/nolim1t.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":"2017-03-09T06:05:30.000Z","updated_at":"2017-05-16T09:36:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a0ac280-f78e-4e8f-9273-60b403e85a7d","html_url":"https://github.com/nolim1t/create_github_commit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nolim1t/create_github_commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolim1t%2Fcreate_github_commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolim1t%2Fcreate_github_commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolim1t%2Fcreate_github_commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolim1t%2Fcreate_github_commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nolim1t","download_url":"https://codeload.github.com/nolim1t/create_github_commit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolim1t%2Fcreate_github_commit/sbom","scorecard":{"id":693499,"data":{"date":"2025-08-11","repo":{"name":"github.com/nolim1t/create_github_commit","commit":"72342b860b5e2fcb874bda7b2a628541d0eb1689"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T02:55:08.568Z","repository_id":66826486,"created_at":"2025-08-22T02:55:08.569Z","updated_at":"2025-08-22T02:55:08.569Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32781561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["github","library","nodejs"],"created_at":"2024-11-15T04:27:06.317Z","updated_at":"2026-05-08T13:02:43.568Z","avatar_url":"https://github.com/nolim1t.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/create_github_commit.svg)](https://badge.fury.io/js/create_github_commit)\n\n# Create Github Commit Library\n\nPackage site: [https://www.npmjs.com/package/create_github_commit](https://www.npmjs.com/package/create_github_commit)\n\n## What?\n\nThis is a library which lets you create a github commit.\n\n## Why?\n\nIt first started of with the curiosity to be able to do this with the github API. After a lot of digging online, I found that it was quite difficult to do (lets say about 5-6 steps). You can see the process in one of my [blog posts](http://www.nolim1t.co/2017/03/08/uploading-to-github-through-the-API.html)\n\nBut GitHub is not just a git hosting platform but also has a lot of cool stuff (github pages is a fantastic product). So cool that I'm actually a paying customer and love the unlimited private repositories too.\n\nI thought that it would be cool to make a blog post programmatically to a github hosted page (or one of my static sites). But take it to the next level and create an AWS Lambda endpoint out of it.\n\nThen I thought, this could make a cool Library so I can use it to make cool stuff with Amazon AWS Lambda.\n\nAnd also, more commits means it looks nicer in your github profile now that things are supposed to be a lot more social. After all, it's a tool for developers to showcase what they are working on right?\n\n\n![Github Contributions](https://raw.githubusercontent.com/nolim1t/why_i_love_github/master/github_contrib.png)\n\nvs\n\n![Sadface](https://raw.githubusercontent.com/nolim1t/why_i_love_github/master/nocontrib.png)\n\n## Usage\n\n```bash\ncd ./your_project_name\nnpm install create_github_commit --save\n```\n\n### Example code  \n\n\n#### Just basic parameters\n\n```javascript\nrequire('create_github_commit').create_commit({fileobject: {filename: \"im_a_little_teapot.md\", contents: \"# I'm a little teapot\\n\\nYet another change\\n\\n![Teapot yo](https://images-na.ssl-images-amazon.com/images/I/51GHlyuQ1JL._SL1200_.jpg)\", commit_message: \"For a good time, send bitcoins to 1Mdnjtg9CFidwxWRHjaPamfDmTJVtg4nri\"}}, function(c) {console.log(c);});\n\nrequire('create_github_commit').create_commit({githubrepo: \"why_i_love_github\", fileobject: {filename: \"README.md\", contents: \"# Why I love Github\\n\\n* It is pretty\\n\\n* It is easy to edit files\\n\\n* It is pretty easy to edit files\\n\\n* I don't even need a GIT Client to edit this\\n\\n* In fact I'm editing this using the git data API\\n\\n* It does a cool dance\\n\\n![Github Style!](https://octodex.github.com/images/gangnamtocat.png)\", commit_message: \"For a good time, send bitcoins to 1Mdnjtg9CFidwxWRHjaPamfDmTJVtg4nri\"}}, function(c) {console.log(c);});\n\n```\n\n#### Specify API Key username and repo in parameters too\n\n```javascript\nrequire('create_github_commit').create_commit({apikey: \"githubpersonalapikey\", githubuser: \"githubuser\", githubrepo: \"why_i_love_github\", fileobject: {filename: \"im_a_little_teapot.md\", contents: \"# I'm a little teapot\\n\\nYet another change\\n\\n![Teapot yo](https://images-na.ssl-images-amazon.com/images/I/51GHlyuQ1JL._SL1200_.jpg)\", commit_message: \"For a good time, send bitcoins to 1Mdnjtg9CFidwxWRHjaPamfDmTJVtg4nri\"}}, function(c) {console.log(c);});\n```\n\n#### Images!\n\nYou can even do an image\n\n##### Stored Locally\n\n```javascript\nrequire('create_github_commit').image_commit({githubrepo: \"why_i_love_github\", fileobject: {filename: \"example.png\", commit_message: \"1Mdnjtg9CFidwxWRHjaPamfDmTJVtg4nri\"}}, function(c) {console.log(c);});\n```\n\n##### Stored on a remote server\n\nFetches the image and stores it on github. This is useful for backing up images from an S3 bucket.\n\n```javascript\nrequire('create_github_commit').image_commit({apikey: \"APIKEY\", githubrepo: \"why_i_love_github\", githubuser: \"username\", fileobject: {filename: \"http://howtodoge.com/images/dogen.png\", file_is_url: true, filename_to_store: \"much_doge_wow.png\", commit_message: \"1Mdnjtg9CFidwxWRHjaPamfDmTJVtg4nri\"}}, function(c) {console.log(c);});\n```\n\n## TODO\n\nFeel free to check the [help wanted](https://github.com/nolim1t/create_github_commit/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) tag. This is what I'd like to add.\n\n* Work out how to upload images too! Would make a nice image backup tool ([#1](https://github.com/nolim1t/create_github_commit/issues/1))\n* Make it work with oauth (Would actually add more usecases to this. There's already [some usecases](http://www.nolim1t.co/2017/03/08/uploading-to-github-through-the-API.html) here) [#2](https://github.com/nolim1t/create_github_commit/issues/2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolim1t%2Fcreate_github_commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnolim1t%2Fcreate_github_commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolim1t%2Fcreate_github_commit/lists"}