Code Monkey home page Code Monkey logo

sf-files-to-gh's Introduction

sf-files-to-gh

Migrate sourceforge.net file releases to a GitHub repository as releases.

Requirements

  • Ruby
  • Bundler

Usage

It's recommended you do an initial run to create the initial configuration file. See below for configuration options.

Standalone

$ bundle install --path vendor/bundle
$ bundle exec ruby sf-files-to-github-releases.rb

Or run with shell script

$ ./run.sh

Configuration

{
  "files": "https://sourceforge.net/projects/{project_name}/rss?path=/",
  "manifest": "./config/manifest.json",
  "release_manifest": "./config/releases.json",
  "file_manifest": "./config/files.json",
  "api": "https://api.github.com",
  "accept": "application/vnd.github.v3+json",
  "oauth_token": "",
  "user": "{github-username}",
  "repo": "{github-repository}"
}
Option Definition
files RSS location of project files on http://sourceforge.net
manifest Output file used for downloading files
release_manifest Output file of extracted releases from manifest file
file_manifest Output file of file locations and information for migration
api GitHub API URL
accept Set version of the GitHub API
oauth_token Github token (Generate personal tokens here: https://github.com/settings/tokens)
user GitHub username
repo GitHub repository in which to create releases and upload files

Output

Usage: sf-files-to-github-releases.rb [-h] [-c] [-f [file.json]] [-r] [-u]

-h, --help                   Show this help
-f, --fetch                  Fetch files from provided manifest or manifest.json
-c, --create-manifest        Create manifest only
-r, --create-releases        Create releases from manifest on github
-u, --upload-releases        Upload releases from release manifest on github

sf-files-to-gh's People

Contributors

juvinious avatar

Watchers

 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.