Giter Site home page Giter Site logo

brentsowers1 / githubcodefixer Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 129 KB

A bot to go through public github repos, apply universal changes like security fixes, and issue a pull request to pull the changes in. Written in Scala.

Scala 100.00%

githubcodefixer's Introduction

GithubCodeFixer

Overview

This is a work in progress. My goal with this is to create a program that will automatically scan public repos on Github and apply fixes to these repos for things like security vulnerabilities and deprecated functionality. The project is currently pretty close to being able to do this, as it can apply a single fix to a single repo and issue a pull request for the original author to pull in the changes. read the comments in GithubCodeFixer.scala to see what is remaining and more detail on what the code currently does.

Running the code

This project is written in Scala with SBT to do the building. To run this, follow the steps at my blog post: http://scalalift.brentsowers.com/2011/10/starting-lift-project-with-sbt-and.html. Follow the Scala and SBT steps, you don't need to do anything after that. Then in the directory that contains this code, type sbt, then at the prompt type update followed by reload followed by run.

Code Modifications

If you want to add your own class to do code fixes, just add a class to the CodeFixes directory that extends CodeFix. See Rails3DeprecatedFixes as an example. If you've tested it, please, submit a pull request to me to get the code.

GithubCodeFixer.scala contains the main function which runs when you type run. This is currently hard coded to fork my example repo, fix it, and make a pull request. If you want to test your own repo or your own code fixes just change this section.

Scala

This is also my first attempt at using Scala. If you have any suggestions for how to make the code better, I'd love to hear it.

Author:: Brent Sowers ([email protected]) License:: You're free to do whatever you want with this, although I'd just ask out of courtesy if you add features or fix things, that you submit a pull request

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.