Git Subcommand
This commit is contained in:
parent
4f43e86957
commit
b4f6cc14d3
|
@ -14,3 +14,7 @@ Metrics/ClassLength:
|
|||
# Configuration parameters: CountComments.
|
||||
Metrics/MethodLength:
|
||||
Enabled: false
|
||||
|
||||
Style/FileName:
|
||||
Exclude:
|
||||
- 'bin/git-generate-changelog'
|
||||
|
|
4
bin/git-generate-changelog
Executable file
4
bin/git-generate-changelog
Executable file
|
@ -0,0 +1,4 @@
|
|||
#! /usr/bin/env ruby
|
||||
|
||||
require_relative "../lib/github_changelog_generator"
|
||||
GitHubChangelogGenerator::ChangelogGenerator.new.run
|
10
ext/mkrf_conf.rb
Normal file
10
ext/mkrf_conf.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
PREFIX = "/usr/local"
|
||||
MANPREFIX = "#{PREFIX}/share/man/man1"
|
||||
MAN_PAGES = "man/git-*"
|
||||
|
||||
require "fileutils"
|
||||
|
||||
Dir.glob(MAN_PAGES).each do |f|
|
||||
filename = File.basename(f)
|
||||
FileUtils.cp(f, "#{MANPREFIX}/#{filename}")
|
||||
end
|
|
@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|||
spec.description = "Changelog generation has never been so easy. Fully automate changelog generation - this gem generate change log file based on tags, issues and merged pull requests from Github issue tracker."
|
||||
spec.homepage = "https://github.com/skywinder/Github-Changelog-Generator"
|
||||
spec.license = "MIT"
|
||||
spec.extensions = "ext/mkrf_conf.rb"
|
||||
|
||||
spec.files = `git ls-files -z`.split("\x0")
|
||||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
||||
|
|
27
man/git-generate-changelog.1
Normal file
27
man/git-generate-changelog.1
Normal file
|
@ -0,0 +1,27 @@
|
|||
.\" Manpage for git-activity
|
||||
.TH man 1 "Sep 2015" "1.0" "git genrate-changelog man page"
|
||||
.SH NAME
|
||||
git activity \- Generate changelog from github
|
||||
.SH SYNOPSIS
|
||||
git generate-changelog [-h|--help] [-u|--user] [-p|--project]
|
||||
.SH DESCRIPTION
|
||||
Automatically generate change log from your tags, issues, labels and pull requests on GitHub.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.I --h
|
||||
Show helper provide from gem.
|
||||
.TP
|
||||
.I --help
|
||||
Thos this man page.
|
||||
.TP
|
||||
.I -u | --user github_username
|
||||
Username of the owner of target GitHub repo
|
||||
.TP
|
||||
.I -p | --project github_project
|
||||
Name of project on GitHub Just convenience options to specify user/project:
|
||||
.SH SEE ALSO
|
||||
git-for-each-ref(1)
|
||||
.SH BUGS
|
||||
No known bugs.
|
||||
.SH AUTHOR
|
||||
Petr Korolev <sky4winder+github@gmail.com>
|
Loading…
Reference in New Issue
Block a user