Coder Social home page Coder Social logo

saimurugeshwari / github-automation-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sahil-sagwekar2652/github-automation-scripts

0.0 0.0 0.0 4.22 MB

Bash and Python scripts to automate your Git & GitHub workflow. Made by using only standard python libraries.

License: MIT License

Shell 11.72% JavaScript 2.67% Python 15.89% CSS 13.11% HTML 56.60%

github-automation-scripts's Introduction

GitHub Automation Scripts ๐Ÿค–

This repository hosts scripts written in bash and python to automate common Git/GitHub workflows. Normally to connect a local repository to GitHub one has to go to the GitHub website, create a new respository and then add the new GitHub repo as a remote for your local repository. The create_repo script automates this process.

GitHub-Automation-scripts

Status



Table of Content

Tech ๐Ÿ–ฅ๏ธ

My Skills

๐Ÿ—๏ธ Installation

Getting Started

To install and configure the project on your system locally, use the command mentioned below:

curl https://raw.githubusercontent.com/sahil-sagwekar2652/GitHub-Automation-scripts/main/.setup/install.sh | bash

Installation

Requirements:
  • Git Bash installed on your computer.
  • GitHub personal access token. (Go to your GitHub profile -> Settings -> Developer settings -> Personal Access Tokens -> Create new token with all the repository permissions)

Note!!! This script is written exclusively for Git Bash on Windows, you will have to modify it for other shells.

  • Step 1:

Fork and clone the repository locally.

  • Step 2:

Create a github_secrets.py file in the ./scripts folder and define the following variables inside it.

GITHUB_API_TOKEN = "Your GitHub personal access token"
USERNAME = "Your GitHub username"
  • Step 3:

Add the project path to the PATH variable (Recommended)

Run the following command in the project's base directory to add the scripts path to the PATH environment variable.

$ export PATH=$PATH":"$(pwd)"/scripts"

To permanently add the scripts path to the PATH variable, run the below command in the project's root directory. (This file is located in your home directory)

Make sure to backup the .bash_profile file elsewhere before making any changes to it.

$ echo 'export PATH=$PATH''":'"$(pwd)"'/scripts''"' >> ~/.bash_profile

OR

Run the following commands in the project folder to add the scripts to your bin directory

$ cp -r /scripts/* /usr/bin/

How to use

After the installation is complete then the 'create_repo' command should execute in any directory.

  • Run the command with a '-h' flag to see the help menu
create_repo -h
  • Sample usage
create_repo <PATH_NAME> <REPO_NAME>
  • <PATH_NAME> is the path where you want to create the local repository and <REPO_NAME> is the name for your repo
  • Example:
create_repo . test-repo

The result is a local respository is created with a connected remote repository automatically!

๐Ÿ‘จโ€๐Ÿ’ป Development

  • Steps to join the project channel on

    • Go to the #self-roles channel and choose the 'contributor' and 'GitHub-Automation-scripts' roles.
    • You will be automatically added to the exclusive project channel.
    • It will be the primary channel for all the discussions related to the project.
  • Checkout the issues tab to find ideas!

  • Want to contribute? Great!
    Make sure to go through the Contributor's Guide. Trust me it wont take long ;).

๐Ÿชช License

License

This project is licensed under the MIT license. For more information, please refer to the LICENSE file.

We hope you find these automation scripts helpful in streamlining your Git and GitHub workflows

Contributors

github-automation-scripts's People

Contributors

sahil-sagwekar2652 avatar ayush-09 avatar yyuvraj54 avatar harshsingh32 avatar s-ishita avatar saarthakmaini avatar sriparno08 avatar varunjoshi10 avatar tesla59 avatar imrannawar avatar rudrakshatgithub avatar shubham185y avatar iamthecloverly 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.