All Projects → rhysd → Dot Github

rhysd / Dot Github

Licence: mit
.github directory generator

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Dot Github

Nytl
Modern C++ generic header-only template library.
Stars: ✭ 87 (-63.29%)
Mutual labels:  utility, template
Proximityhash
Geohashes in proximity
Stars: ✭ 231 (-2.53%)
Mutual labels:  utility
Vuemmerce
👉 Responsive ecommerce template 🛒 built with Vue.js and Nuxt.js
Stars: ✭ 223 (-5.91%)
Mutual labels:  template
React Landing Page Template
A simple react one page landing page templates for startups/companies
Stars: ✭ 224 (-5.49%)
Mutual labels:  template
Frontend Boilerplate
An ES20XX starter with common frontend tasks using Webpack 4 as module bundler and npm scripts as task runner.
Stars: ✭ 224 (-5.49%)
Mutual labels:  template
Relude
FP-inspired prelude/standard library for ReasonML projects
Stars: ✭ 230 (-2.95%)
Mutual labels:  utility
Template
Share 100 templates HTML5 CSS3 for developer or beginner
Stars: ✭ 215 (-9.28%)
Mutual labels:  template
Github Issue Templates
🔣 A collection of GitHub issue and pull request templates
Stars: ✭ 3,074 (+1197.05%)
Mutual labels:  template
React Firebase Admin
React ⚛️ starter kit with Firebase 🔥 and Bulma for setting up an admin dashboard - Highly scalable, PWA, Serverless
Stars: ✭ 232 (-2.11%)
Mutual labels:  template
Uniapp Admin
Muti-platform management system for uniapp, H5, Android, IOS, Min Program
Stars: ✭ 226 (-4.64%)
Mutual labels:  template
Bbo
bbo is a utility library of zero dependencies for javascript. 🍖🌭🍔
Stars: ✭ 227 (-4.22%)
Mutual labels:  utility
Readme
Automatically generate a beautiful best-practice README file based on the contents of your repository
Stars: ✭ 223 (-5.91%)
Mutual labels:  template
Latex Ppt Template
Seven awesome latex ppt templates for researchers or students.
Stars: ✭ 229 (-3.38%)
Mutual labels:  template
Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (-5.49%)
Mutual labels:  utility
Projectmaker
A Sublime Text 2/3 plugin to allow creating any kind of project from your own custom templates
Stars: ✭ 233 (-1.69%)
Mutual labels:  template
Vite Vue3 Tailwind Starter
Vite 2.x + Vue 3.x + Tailwind 2.x (starter) ⚡
Stars: ✭ 205 (-13.5%)
Mutual labels:  template
Aspnetcore.template
ASP.NET core mvc project template for real world applications
Stars: ✭ 226 (-4.64%)
Mutual labels:  template
Laravel Database Mail Templates
Render Laravel mailables based on a mail template stored in the database
Stars: ✭ 226 (-4.64%)
Mutual labels:  template
Scaffdog
🐶 scaffdog is Markdown driven scaffolding tool.
Stars: ✭ 237 (+0%)
Mutual labels:  template
Mvparms Module Template
🛠 一键搭建 MVPArms 的官方架构, 让新手一秒即可开启 MVPArms 的世界, 免于项目繁琐配置的烦恼
Stars: ✭ 234 (-1.27%)
Mutual labels:  template

.github Directory Generator

Linux and OS X Windows Coverage
Travis Badge Appveyor Badge Coverage Badge

GitHub now supports issue and pull request template. This repository provides dot-github command to generate the template files automatically for your GitHub repositories. This also enables to manage template files in dotfiles for all of your machines.

screenshot

Getting Started

1. Installation

go get command

$ go get github.com/rhysd/dot-github

or released binaries

cd /path/to/Downloads  # Download binary for your platform
chmod +x dot-github_your_platform
mv dot-github_your_platform /usr/local/bin/dot-github

2. Write Your Template Files

$ mkdir -p ~/.github && cd ~/.github
$ $EDITOR ISSUE_AND_PULL_REQUEST_TEMPLATE.md
$ $EDITOR CONTRIBUTING.md

Please read below instruction detail about template file

Note: You can change the home directory for dot-github by $DOT_GITHUB_HOME environment variable.

3. Generate .github

$ cd your-repo
$ dot-github
$ git add .github

4. Tweak Generated Files

Tweak generated files in your-repo/.github/* for your project-specific information.

Writing Template File

You can see example directory in this repository for real world examples.

dot-github looks below template files

File Path Description
$DOT_GITHUB_HOME/.github/ISSUE_TEMPLATE.md Template for issues.
$DOT_GITHUB_HOME/.github/PULL_REQUEST_TEMPLATE.md Template for pull requests.
$DOT_GITHUB_HOME/.github/ISSUE_AND_PULL_REQUEST_TEMPLATE.md If above files are not found, this file is used for template of issues and pull requests.
$DOT_GITHUB_HOME/.github/CONTRIBUTING.md Template for contributing guideline.

Note that $DOT_GITHUB_HOME is an environment variable. You can specify your favorite directory to put template files. Default directory for it is ~.

Above template files are parsed as Golang's standard text template. Below variables are available in template. They are useful to write flexible and common template files for each repositories.

Variable Name Type Description
.IsIssue boolean True when used for issue template.
.IsPullRequest boolean True when used for pull request template.
.IsContributing boolean True when used for contributing template.
.RepoName string Repository name.
.RepoUser string Repository owner name.

Template Examples

Template files

  • ~/.github/ISSUE_AND_PULL_REQUEST_TEMPLATE.md
{{if .IsIssue}}
### Expected Behavior


### Actual Behavior


{{end}}
{{if .IsPullRequest}}
### Fix or Enhancement?


- [ ] All tests passed
{{end}}

### Environment
- OS: Write here
- Go version: Write here
  • ~/.github/CONTRIBUTING.md
Thank you for contributing {{.RepoName}}!
=========================================

Please follow issue/PR template.

Generated Files

  • /path/to/your-repo/.github/ISSUE_TEMPLATE.md
### Expected Behavior


### Actual Behavior


### Environment
- OS: Write here
- Go version: Write here
  • /path/to/your-repo/.github/PULL_REQUEST_TEMPLATE.md
### Fix or Enhancement?


- [ ] All tests passed

### Environment
- OS: Write here
- Go version: Write here
  • /path/to/your-repo/.github/CONTRIBUTING.md
Thank you for contributing my-project!
=========================================

Please follow issue/PR template.

Update dot-github command

To update dot-github command, -selfupdate flag is recommended.

References

License

This software is distributed under MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].