-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Git sync functionality to scripts dir
- Loading branch information
Showing
10 changed files
with
370 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<table class="table table-striped table-bordered table-hover"> | ||
<tr> | ||
<td width="15%"> | ||
<%= label_tag "Message" %> | ||
</td> | ||
<td width="50%"> | ||
<%= text_field_tag :message, nil, placeholder: 'Update scripts', maxlength: 70, class: 'input-block-level' %> | ||
</td> | ||
<td> | ||
Short message (~50 chars according to <a href="http://git-scm.com/book/ch5-2.html#Commit-Guidelines">Git Commit Guidelines</a>) | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<%= label_tag "Description" %> | ||
</td> | ||
<td> | ||
<%= text_area_tag :full_message, nil, class: 'input-block-level' %> | ||
</td> | ||
<td> | ||
Optional description. Bullet points are ok. | ||
</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<table class="table table-striped table-bordered table-hover"> | ||
<tr> | ||
<td width="15%"> | ||
<%= label_tag "Repo" %> | ||
</td> | ||
<td width="50%"> | ||
<%= text_field_tag :repo, @git_sync.repo, placeholder: 'git@github.com:foobar/hubot-scripts.git', class: 'input-block-level' %> | ||
</td> | ||
<td> | ||
Git Repository URI | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<%= label_tag "User Name" %> | ||
</td> | ||
<td> | ||
<%= text_field_tag :user_name, @git_sync.user_name, placeholder: 'Your Name', class: 'input-block-level' %> | ||
</td> | ||
<td> | ||
git config user.name | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<%= label_tag "User Email" %> | ||
</td> | ||
<td> | ||
<%= text_field_tag :user_email, @git_sync.user_email, placeholder: current_user.email, class: 'input-block-level' %> | ||
</td> | ||
<td> | ||
git config user.email | ||
</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.