{"id":16404365,"url":"https://github.com/siddharthkp/github-build","last_synced_at":"2025-04-04T23:09:44.356Z","repository":{"id":18034844,"uuid":"83204850","full_name":"siddharthkp/github-build","owner":"siddharthkp","description":"Github builds for CI","archived":false,"fork":false,"pushed_at":"2024-03-16T20:30:22.000Z","size":302,"stargazers_count":133,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-21T10:56:34.812Z","etag":null,"topics":["build","checks","ci","github"],"latest_commit_sha":null,"homepage":"","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/siddharthkp.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-02-26T11:52:08.000Z","updated_at":"2024-06-18T13:47:59.758Z","dependencies_parsed_at":"2024-06-18T13:47:58.238Z","dependency_job_id":"bec5bbcd-7c90-4ba4-9ee6-e52897bcd2a3","html_url":"https://github.com/siddharthkp/github-build","commit_stats":{"total_commits":36,"total_committers":5,"mean_commits":7.2,"dds":"0.16666666666666663","last_synced_commit":"723b1cce3feff4bdded018c5dd604a0e02b9c420"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddharthkp%2Fgithub-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddharthkp%2Fgithub-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddharthkp%2Fgithub-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddharthkp%2Fgithub-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siddharthkp","download_url":"https://codeload.github.com/siddharthkp/github-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247261612,"owners_count":20910108,"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":["build","checks","ci","github"],"created_at":"2024-10-11T05:52:10.700Z","updated_at":"2025-04-04T23:09:44.335Z","avatar_url":"https://github.com/siddharthkp.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/siddharthkp/github-build/master/art/logo.png\" height=\"100px\"/\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003cb\u003eGithub builds/checks for CI\u003c/b\u003e\n  \u003cbr\u003e\u003cbr\u003e\n\n\u003c/p\u003e\n\u003cp\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/siddharthkp/github-build/master/art/commit.png\" height=\"200px\"/\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/siddharthkp/github-build/master/art/pull_request.png\" height=\"250px\"/\u003e\n\u003c/p\u003e\n\n\u0026nbsp;\n\n[![Code Climate](https://lima.codeclimate.com/github/siddharthkp/github-build/badges/gpa.svg)](https://lima.codeclimate.com/github/siddharthkp/github-build)\n[![Known Vulnerabilities](https://snyk.io/test/github/siddharthkp/github-build/badge.svg)](https://snyk.io/test/github/siddharthkp/github-build)\n\n\u0026nbsp;\n\n#### Install\n\n```\nnpm install github-build --save\n```\n\n#### Usage\n\n```js\nconst Build = require('github-build')\n\nconst data = {\n  repo: 'siddharthkp/github-build', // (author/repo)\n  sha: '6954e71d46be1ae9b0529aae6e00b64d7a1023d4', // (commit sha)\n  token: 'secret', // (github oauth token: https://developer.github.com/v3/oauth)\n  label: 'my CI service',\n  description: 'checking some stuff',\n  url: 'http://my-ci-service.com/builds/1', // details url\n}\n\n/* Create a build */\nconst build = new Build(data)\n\n/* When you call start, a pending status get's added on github (returns a promise) */\nbuild.start()\n\n/* Run your tests */\n\n/* If things go well, call pass, it will mark change the status to success ✅ (returns a promise) */\nbuild.pass()\n\n/* Or if the tests fail, mark this build as failed ❌ (returns a promise) */\nbuild.fail()\n\n/* If you could not run the tests because of incorrect config, just error out the build (returns a promise) */\nbuild.error() // use when build errors out (returns a promise)\n\n```\n\n\u0026nbsp;\n\nIf you like it then [you should put a ⭐️ on it](https://www.youtube.com/watch?v=4m1EFMoRFvY)\n\n\u0026nbsp;\n\n#### License\n\nMIT © siddharthkp\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddharthkp%2Fgithub-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddharthkp%2Fgithub-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddharthkp%2Fgithub-build/lists"}