Skip to content

Instantly share code, notes, and snippets.

@Jnchi
Last active August 16, 2019 18:22
Show Gist options
  • Save Jnchi/705c50afce3a2958c99c165f62eba5c2 to your computer and use it in GitHub Desktop.
Save Jnchi/705c50afce3a2958c99c165f62eba5c2 to your computer and use it in GitHub Desktop.
Hacking the Github Activity Graph

Hacking the Github Activity Graph

Dependencies

Installation

First clone this gist,

git clone https://gist.github.com/Jnchi/705c50afce3a2958c99c165f62eba5c2 /opt/hack-activity-graph

Then create a new private repository on GitHub titled activity-graph, e.g., https://github.com/Jnchi/activity-graph.

Finally, setup a cron job pointing to the script provided.

0 0   * * *     jnchi    /opt/hack-activity-graph/new-issue

Troubleshooting

Contributions Not Showing Up In The Activity Graph

Navigate to your profile settings, https://github.com/settings/profile, and check the box "Include private contributions on my profile" under Contributions.

Script Will Not Run

Be sure to chmod +x the script so that it can be executed.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

#!/bin/sh
# SPDX-License-Identifier: CC-BY-4.0
set -eu
hub issue create -m "Hacking the activity graph"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment