Giter VIP home page Giter VIP logo

github_greener_bot's Introduction

github_greener_bot

Automation in the wrong way!!!

This is a experiment project that helps me contribute rubbish and keeps my GitHub account "Active", so that employers can be satisfied by my "Active" GitHub account.

I'M JOKING. PLEASE DON'T DO THIS. LOL

Technology

  • AWS Lambda
  • Node.js

How to use

  1. Fork/ Create a repo

  2. Create a AWS Lambda function, choose Node.js 8.10 for its runtime. (Due to the change of OS, at the time of writing Git doesn't work on Node.js 10.x runtime)

  3. Add a Layer for Git.

    Choose the option Provide a layer version ARN and enter the following arn:aws:lambda:us-east-1:553035198032:layer:git:6 . It is a layer that allows your functions to use git and ssh binaries. I found it here: git-lambda-layer

  4. Copy the script index.js. You can use its inline code editor.

  5. Generate access token in GitHub Developer Settings

  6. Configure environment variables on Lambda. Four env variables are needed:

    GH_Email - Your email address

    GH_USERNAME - Your username

    GH_REPO - Your repository name

    GH_TOKEN - Your Github token

  7. Change the commit message to your like (but I think it doesn't matter :P)

  8. Test the function.

    • In basic settings, I set my timeout to 5 sec which I found enough.
  9. Add a CloudWatch Event trigger using Rate/ Cron to specify the time for auto updating GitHub repo.

    How to write Rate/ Cron expression: Schedule Expressions Using Rate or Cron

To do

  • Function script
  • Trigger
  • Stop if the user is active on that day
  • Generate random number of commits
  • Issues
  • Pull requests
  • Code review

github_greener_bot's People

Contributors

maoyalu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.