{"id":16765250,"url":"https://github.com/devlato/gitbot","last_synced_at":"2025-03-23T15:31:11.604Z","repository":{"id":42357632,"uuid":"162199811","full_name":"devlato/gitbot","owner":"devlato","description":"Simple self-hosted daemon that genuinely simulates daily activity on GitHub, outside of configured work hours","archived":false,"fork":false,"pushed_at":"2023-01-14T00:16:07.000Z","size":1882,"stargazers_count":4,"open_issues_count":21,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T21:52:03.733Z","etag":null,"topics":["activity","fake","generator","gitbot","github"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/devlato.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":"2018-12-17T22:51:55.000Z","updated_at":"2023-09-08T17:48:21.000Z","dependencies_parsed_at":"2023-02-09T18:02:23.492Z","dependency_job_id":null,"html_url":"https://github.com/devlato/gitbot","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/devlato%2Fgitbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Fgitbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Fgitbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Fgitbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlato","download_url":"https://codeload.github.com/devlato/gitbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245122739,"owners_count":20564364,"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":["activity","fake","generator","gitbot","github"],"created_at":"2024-10-13T05:28:51.656Z","updated_at":"2025-03-23T15:31:11.195Z","avatar_url":"https://github.com/devlato.png","language":"JavaScript","readme":"# Fake Activity Generator\n\nA small script to generate fake activity. Can be run as a daemon. \n\n\n## Dependencies\n\nTo run this, you need Node.js (preferably, 8.12.0 LTS) and npm. To install the dependencies, run the following command:\n\n```sh\n$ npm i\n```\n\n\n## Running the script\n\n### Simple mode\n\nFirst, create a repo for a fake activity (it might be a private repo as well). Then make sure you've added your SSH key to your GitHub account. The scripts works with SSH access only (due to running in a non-interactive mode). To start the script, you have to specify some environment variables. You can use the following command as an example setting up everything needed:\n\n```sh\n$ ORIGIN_URL=$YOUR_REPO_SSH_URL USER_NAME=$YOUR_GIT_USER_NAME USER_EMAIL=$YOUR_GIR_USER_EMAIL npm start\n```\n\nIf you want to set a custom timezone (i.e. if you want the script to generate the commits only for working hours in a specific timezone different from the one on the environment you run the script), please specify `TIMEZONE_OFFSET` variable as well. This variable should be assigned a number of milliseconds corresponsing to your timezone difference. I.e. for Berlin, it might be `3600000` (+1 hour).\n\nFor example, for the current repo we might have something like that:\n\n```sh\n$ ORIGIN_URL=git@github.com:devlato/fake-activity.git USER_NAME=devlato USER_EMAIL=github@devlato.com TIMEZONE_OFFSET=3600000 npm start\n```\n\nThis command actually translates into the script call:\n\n```sh\n$ ORIGIN_URL=git@github.com:devlato/fake-activity.git USER_NAME=devlato USER_EMAIL=github@devlato.com TIMEZONE_OFFSET=3600000 node ./index.js\n```\n\nFor the full list of supported commands, please consider reading the `package.json` file, the section called `scripts`.\n\nHowever, script supports other environment variables as well, not limited to the ones listed above. To get the full list of supported environment variables, use the command:\n\n```sh\n$ npm run help\n```\n\nOr just point the script directly:\n\n```sh\n$ node ./index.js help\n```\n\n### Running with a supervisor\n\nThis project has a dependency of [PM2](http://pm2.keymetrics.io/) in case you want to run it with PM2. To run the script with PM2, firstly, please copy `ecosystem.config.template.js` to `ecosystem.config.js`:\n\n```sh\n$ cp ecosystem.config.template.js ecosystem.config.js\n```\n\nThen edit it and specify the required environment variables there. If it looks unclear for you, please check the PM2 [documentation](http://pm2.keymetrics.io/docs/usage/environment/) for details.\n\nAfter all, run the script in a supervisor mode:\n\n```sh\n$ npm run daemon\n```\n\nTo check the status of the running script, please type:\n\n```sh\n$ npm run ps\n```\n\nTo check the logs, use the following command:\n\n```sh\n$ npm run logs\n```\n\nTo stop the script daemon, consider typing this:\n\n```sh\n$ npm run stop # So, 'run' or 'stop'? Looks confusing, isn't it? :-)\n```\n\n\n## Contributing\n\nFeel free to report any issues and to send PRs.\n\n\n## License\n\n(c) 2019 devlato https://github.com/devlato\n\nThis code is available under the MIT license and is free to be modified or distributed for a non-commercial use.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlato%2Fgitbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlato%2Fgitbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlato%2Fgitbot/lists"}