Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Jul 28, 2020
1 parent 8e3b514 commit abbfbf8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [1.3.1] - 2020-07-28

### :syringe: Fixed

- Action fails when assignees are configured
Expand Down
16 changes: 2 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,18 +422,6 @@ async function run() {
labels,
} = parseConfig();

info(
`Configuration: ${JSON.stringify({
branchName,
commitTitle,
commitBody,
pullRequestTitle,
pullRequestBody,
assignees,
labels,
})}`
);

const repository = new Repository(owner, repo, token);
const hasBranch = await repository.hasBranch(branchName);
const licenseResponse = await repository.getContent(hasBranch ? branchName : MASTER, FILENAME);
Expand Down Expand Up @@ -464,12 +452,12 @@ async function run() {

if (assignees.length > 0) {
info('Add assignees');
await repository.addAssignees(createPullRequestResponse.data.id, assignees);
await repository.addAssignees(createPullRequestResponse.data.number, assignees);
}

if (labels.length > 0) {
info('Add labels');
await repository.addLabels(createPullRequestResponse.data.id, labels);
await repository.addLabels(createPullRequestResponse.data.number, labels);
}
}
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "action-update-license-year",
"version": "1.3.0",
"version": "1.3.1",
"description": "GitHub Action that in a pull request updates the copyright year(s) in your license file.",
"keywords": [
"github",
Expand Down

0 comments on commit abbfbf8

Please sign in to comment.