Skip to content

Commit

Permalink
Merge pull request #9 from scottrigby/suggested-changes-commit-message
Browse files Browse the repository at this point in the history
Add DCO to GitHub suggested changes commit message
  • Loading branch information
scottrigby authored Aug 13, 2020
2 parents fa3d93f + c0f1d1d commit 68cf3e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ chrome.storage.local.get({
}, function (items) {
if (items.name && items.email) {
var signoff = "Signed-off-by: " + items.name + " <" + items.email + ">"
document.getElementById('commit-description-textarea').value = signoff;
// Standard commit message
cdt = document.getElementById('commit-description-textarea')
if (cdt) {
cdt.value = signoff;
}
// Suggested changes commit message
// ref: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request
document.getElementsByName('commit_message').forEach(function(v,i,o){o[i].value = this}, signoff);
}
});
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "DCO GitHub UI",
"version": "1.0.0",
"version": "1.1.0",
"description": "DCO signoff for GitHub UI",
"options_ui": {
"page": "options.html",
Expand Down

0 comments on commit 68cf3e3

Please sign in to comment.