0.1.5 • Published 10 years ago

grel v0.1.5

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

Grel

NodeJS module that automates the creation of Git Releases and uploading attachments.

Examples

Initialise

var grel = new Grel({
    user: user,
	password: pass,
	owner: owner,
	repo: repo
});

Create a new release

grel.create('1.0.0', 'Release 1.0.0', ['/path/to/file'], function(error, release) {
	if (error) {
		console.log('Something went wrong', error);
		return;
	}

	console.log('Release', release.tag_name, 'created');
});
  • Note that you can send an empty file array if you have no file attachments

Find an existing release

grel.find('1.0.0', function(error, release) {
	if (error) {
		console.log('Something went wrong', error);
		return;
	}

	console.log('Release', release.tag_name, 'found');
});

Attach files to an existing release

grel.attach(release, ['/path/to/file1', '/path/to/file2'], function(err, msg) {
    if (err) {
		console.log('Could not attach file', err);
		return;
	}

	console.log('Files attached');
});
  • Note that you can send an empty file array if you have no file attachments

release is an object returned by grel.create or grel.find

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago