Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

donskifarrell/github-webcommit.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

About

A simple library that allows you to commit to a GitHub repository with a javascript client.

This library was extracted from the WYSIWYG blog editor Lanyon

A more detailed explanation on the inner workings can be found at Mike Swanson's blog

Usage

function GitHubWebCommit(){
  	gh = new Github({
  			repositoryRoot : 'donskifarrell/github-webcommit.js',
  			branchName : 'master',
			defaultCommitPath : '/commit/destination/from/repo/root',
			defaultCommitMessage : 'Commit by GitHub-WebCommit.js'
		});

    gh.setCredentials($GitHub_Username, $GitHub_Password);
    gh.commit(post);
}

TODO

There is always something to do:

  • If possible, integrate with GitHub OAuth api to avoid the need of username/password when already logged in.
  • Add simple static page example of committing to a GitHub repo
  • Add minified version of js file

About

Javascript library to commit to a GitHub repo. (Taken from Lanyon - https://github.com/swanson/lanyon)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published