Skip to content

Commit

Permalink
Merge pull request #72 from anfema/p.skorpil/71-change-re-prefix-to-c…
Browse files Browse the repository at this point in the history
…loses

change re prefix to closes
  • Loading branch information
Somberland authored Mar 20, 2023
2 parents 5895052 + 5b0580e commit 0a2d771
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@
### 1.4.0
**New Features & Improvements**
- add draft pull requests

### 1.4.1
**New Features & Improvements**
- allow branching and pull-requests from every base-branch

### 1.4.2
**New Features & Improvements**
- use `closes` instead of `re` for PR-Body
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "work",
"version": "1.4.1",
"version": "1.4.2",
"main": "index.js",
"author": "Florian Pichler <[email protected]>",
"contributors": ["Philipp Skorpil <[email protected]>"],
Expand Down
2 changes: 1 addition & 1 deletion src/create-pullrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = async ({ owner, repo, baseBranch, headBranch, createDraftPullRe
const issue = res.data;

title = issue.title;
body = `re #${number}`;
body = `closes #${number}`;
labels = createLabels(issue.labels);
milestone = issue.milestone && issue.milestone.number; // checks if 'issue.milestone' true -> outputs 'issue.milestone.number'
} catch (err) {
Expand Down

0 comments on commit 0a2d771

Please sign in to comment.