Skip to content

Commit 8d7a71c

Browse files
authored
Merge pull request #52 from pmowrer/upgrade-deps
Upgrade deps
2 parents 21d657e + 715bf6a commit 8d7a71c

5 files changed

Lines changed: 1528 additions & 1439 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Updater Inc.
3+
Copyright (c) 2020 Patrick Mowrer
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bin/semantic-release-github-pr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { getCurrentBranchName } = require('../src/git-utils');
1010
const currentBranchName = await getCurrentBranchName();
1111
// If we're in a "detached HEAD" state, assume we're running on CI.
1212
const branch =
13-
currentBranchName !== 'HEAD' ? currentBranchName : envCi().branch;
13+
currentBranchName !== 'HEAD' ? currentBranchName : envCi().prBranch;
1414

1515
const args = argv.slice(2).concat([
1616
// We want to run on pull request builds, but `semantic-release` won't

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"src",
88
"bin"
99
],
10-
"repository": "https://github.com/Updater/semantic-release-github-pr.git",
10+
"repository": "https://github.com/pmowrer/semantic-release-github-pr.git",
1111
"scripts": {
1212
"format": "prettier --write --single-quote --trailing-comma es5",
1313
"format:all": "yarn format \"./**/*.js\"",
@@ -25,15 +25,15 @@
2525
"github": "^13.0.0",
2626
"parse-github-url": "^1.0.2",
2727
"ramda": "^0.26.1",
28-
"read-pkg": "^5.2.0"
28+
"read-pkg": "^5.2.0",
29+
"semantic-release-plugin-decorators": "^3.0.0"
2930
},
3031
"devDependencies": {
3132
"husky": "^4.2.1",
3233
"jest": "^25.1.0",
3334
"lint-staged": "^10.0.3",
3435
"prettier": "^1.19.1",
35-
"semantic-release": "^17.0.0",
36-
"semantic-release-plugin-decorators": "^2.1.0"
36+
"semantic-release": "^17.0.0"
3737
},
3838
"husky": {
3939
"hooks": {

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ const generateNotes = async (pluginConfig, context) => {
6464
module.exports = {
6565
verifyConditions: '@semantic-release/github',
6666
analyzeCommits: appendStep('analyzeCommits', decoratePlugin(analyzeCommits)),
67-
generateNotes: appendStep('generateNotes', decoratePlugin(generateNotes)),
67+
generateNotes: appendStep('generateNotes', decoratePlugin(generateNotes), {
68+
defaultReturn: '',
69+
}),
6870
};

0 commit comments

Comments
 (0)