Skip to content

v1.1.0

Choose a tag to compare

@mmiller42 mmiller42 released this 17 Sep 00:04
· 22 commits to master since this release

This is a summary of the differences between v1.1.0 and v1.0.7.

Commits

Show commits
SHA Author Committed Message
98953f0 greenkeeper[bot] 9/16/2017 docs(readme): add Greenkeeper badge
5405f8a mmiller42 9/16/2017 move badge
889f2e7 mmiller42 9/16/2017 move badges
99a9e7b mmiller42 9/16/2017 Merge pull request #1 from mmiller42/greenkeeper/initial
Add Greenkeeper badge 🌴
f725e6e mmiller42 9/16/2017 removing tabs
3e878b9 mmiller42 9/17/2017 adding line count to data
2e31c72 mmiller42 9/17/2017 1.1.0

Changed files

Show changed files

.babelrc

@@ -1,17 +1,17 @@
 {
-	"presets": [
-		[
-			"babel-preset-env",
-			{
-				"targets": {
-					"node": "4.3.0"
-				}
-			}
-		]
-	],
-	"plugins": [
+  "presets": [
+    [
+      "babel-preset-env",
+      {
+        "targets": {
+          "node": "4.3.0"
+        }
+      }
+    ]
+  ],
+  "plugins": [
     "babel-plugin-transform-runtime",
-		"babel-plugin-add-module-exports",
-		"babel-plugin-transform-object-rest-spread"
-	]
+    "babel-plugin-add-module-exports",
+    "babel-plugin-transform-object-rest-spread"
+  ]
 }

README.md

@@ -1,4 +1,6 @@
-# create-github-release [![CircleCI](https://circleci.com/gh/mmiller42/create-github-release.svg?style=svg)](https://circleci.com/gh/mmiller42/create-github-release)
+# create-github-release
+
+[![CircleCI](https://circleci.com/gh/mmiller42/create-github-release.svg?style=svg)](https://circleci.com/gh/mmiller42/create-github-release) [![Greenkeeper badge](https://badges.greenkeeper.io/mmiller42/create-github-release.svg)](https://greenkeeper.io/)
 
 Tool for generating GitHub releases after publishing a module.
 

github-release.config.js

@@ -4,14 +4,14 @@ const MAX_CHANGES_TO_SHOW = 80
 const EXTS_TO_SHOW = ['.css', '.html', 'js', '.json', '.jsx', '.md', '.scss', '.yml']
 
 module.exports = {
-	authenticateOptions: {
-		type: 'oauth',
-		token: process.env.GH_TOKEN,
-	},
-	owner: 'mmiller42',
-	repo: 'create-github-release',
-	showDiff: ({ filename, changes }) => {
-		const ext = path.extname(filename)
-		return changes <= MAX_CHANGES_TO_SHOW && (!ext || EXTS_TO_SHOW.includes(ext))
-	},
+  authenticateOptions: {
+    type: 'oauth',
+    token: process.env.GH_TOKEN,
+  },
+  owner: 'mmiller42',
+  repo: 'create-github-release',
+  showDiff: ({ filename, changes }) => {
+    const ext = path.extname(filename)
+    return changes <= MAX_CHANGES_TO_SHOW && (!ext || EXTS_TO_SHOW.includes(ext))
+  },
 }

package-lock.json

Inline diff not displayed. View the whole file

package.json

Inline diff not displayed. View the whole file

src/index.js

@@ -145,6 +145,7 @@ const fetchDiff = async (gitHub, { owner, repo, newTag, previousTag }) => {
       url: file.blob_url,
       status: file.status,
       changes: file.changes,
+      lines: file.patch ? file.patch.split('\n').length : null,
       diff: file.patch || null,
     })),
   }