Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theshteves/commit-bot
Automatically generates GitHub activity
https://github.com/theshteves/commit-bot
auto-commit automation bash bot commit commit-history contribution contribution-graph contributions contributions-calendar contributions-chart contributions-graph crontab git git-activity github-actions github-profile github-stats hacktoberfest shell
Last synced: about 1 month ago
JSON representation
Automatically generates GitHub activity
- Host: GitHub
- URL: https://github.com/theshteves/commit-bot
- Owner: theshteves
- License: mit
- Created: 2014-12-14T22:51:41.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T02:00:01.000Z (about 2 months ago)
- Last Synced: 2024-10-30T04:56:48.413Z (about 2 months ago)
- Topics: auto-commit, automation, bash, bot, commit, commit-history, contribution, contribution-graph, contributions, contributions-calendar, contributions-chart, contributions-graph, crontab, git, git-activity, github-actions, github-profile, github-stats, hacktoberfest, shell
- Language: Shell
- Homepage:
- Size: 475 KB
- Stars: 123
- Watchers: 7
- Forks: 118
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Commit Bot
Generate Organic™ GitHub activity
_My most insidious idea yet_
Once a day (if my laptop is open),
commit-bot adds today's line:```
Commit: Wed Sep 25 22:00:00 EDT 2019
```This is a Bash script
designed to be run locally
(i.e. on _your_ machine)
> But [@theshteves](https://github.com/theshteves),
>
I want this to run every day_Oh hush_
Nobody commits every day
Is that what you want?
🚫 Sorry, not todayWe're looking for a more realistic distribution of activity throughout the year
## Getting Started
> If you're on Windows™,
>
[setup the Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10)[Install `git` if `git --version` errors out](https://github.com/git-guides/install-git)
1. Open your command-line
& navigate to whatever folder you prefer2. [Fork this project](https://docs.github.com/en/free-pro-team@latest/github/getting-started-with-github/fork-a-repo) on GitHub
2. Download your new copy of this project
```shell
git clone https://github.com//commit-bot.git
```**Don't forget to include your username**
3. Test run the script
in case you need to fix permissions issues```shell
/bin/bash ./commit-bot/bot.sh
```4. [Open your crontab](https://www.howtogeek.com/101288/how-to-schedule-tasks-on-linux-an-introduction-to-crontab-files/) to set a trigger
```shell
crontab -e
```> NOTE:
>
If this makes your screen almost blank
>
with no toolbar of keys to navigate,
>
you've probably entered the text editor Vim
>
>
Remember, press "i" to start [i]nserting text
>
>
When you're finished,
>
press "Esc" repeatedly until nothing happens
>
>
Then type ":wq" to save & quit
>
or ":q!" to quit without saving5. Add this line to [schedule every 10pm or whenever](https://crontab.guru/#0_22_*_*_*)
```shell
0 22 * * * /bin/bash //commit-bot/bot.sh
```**Do not forget to include the correct folder path**
> NOTE:
>
Make sure you save your changes
>
on your way out!
>
> To verify your cron installation:
>
> ```shell
> crontab -l
> ```
>
> that should print the same line
>
we just saved to your crontab
>
> Now, to celebrate, test your script 🎉
>
> ```shell
> /bin/bash //commit-bot/bot.sh
> ```