@rocket.chat/houston 0.24.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocket.chat/houston",
3
- "version": "0.24.1",
3
+ "version": "0.25.2",
4
4
  "description": "Rocket.Chat Command Line Tools",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/logs.js CHANGED
@@ -6,7 +6,7 @@ const _ = require('underscore');
6
6
  const git = require('simple-git/promise')(process.cwd());
7
7
  const { Octokit } = require('@octokit/rest');
8
8
 
9
- const commitRegexString = '(^Merge pull request #([0-9]+) from )|( \\(#([0-9]+)\\)$)';
9
+ const commitRegexString = '(^Merge pull request #([0-9]+) from )|( ?\\(?#([0-9]+)\\)?$)';
10
10
  const commitRegex = new RegExp(commitRegexString);
11
11
 
12
12
  const https = require('https');
package/src/md.js CHANGED
@@ -103,11 +103,10 @@ const readManualFile = () => {
103
103
  };
104
104
 
105
105
  module.exports = async function({tag, write = true, title = true, owner, repo} = {}) {
106
- const membersResult = await octokit.orgs.listMembers({org: owner, per_page: 100});
107
- const teamMembers = membersResult.data.map(i => i.login);
108
- if (teamMembers.length === 100) {
109
- console.log('Need to implement pagination for members list');
110
- }
106
+ const data = await octokit.paginate(octokit.orgs.listMembers, {
107
+ org: owner,
108
+ });
109
+ const teamMembers = data.map(({ login }) => login);
111
110
 
112
111
  let historyDataReleases = readHistoryFile();
113
112
 
@@ -40,7 +40,7 @@ module.exports = async function({owner, repo} = {}) {
40
40
  }
41
41
 
42
42
  releases[0].last = true;
43
- for (const {tag_name, html_url, lts, last} of releases.reverse()) {
43
+ for (const {tag_name, html_url, lts, last} of releases) {
44
44
  const minor = tag_name.replace(/\.\d+$/, '');
45
45
  const releaseDate = new Date(releasesMap[`${ minor }.0`].published_at);
46
46
  if (releaseDate.getDate() < 20) {
@@ -575,7 +575,7 @@ class Houston {
575
575
  title: `Release ${ this.version }`,
576
576
  head: await this.currentBranch(),
577
577
  base: 'master',
578
- body
578
+ body: body.slice(0, 65536)
579
579
  });
580
580
  if (pr.data) {
581
581
  console.log(`Pull Request created: ${ pr.data.title }`);
@@ -1,6 +1,6 @@
1
1
  const _ = require('underscore');
2
2
 
3
- const systemUsers = ['web-flow'];
3
+ const systemUsers = ['web-flow', 'kodiakhq[bot]'];
4
4
 
5
5
  const SummaryNameEmoticons = {
6
6
  IMPROVE: '🚀',
@@ -1 +0,0 @@
1
- {}