create-app-release 1.0.0 → 1.0.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.1] - 2025-02-07
9
+
10
+ ### Changed
11
+
12
+ - Enhanced pull request fetching to retrieve all closed pull requests using pagination
13
+
8
14
  ## [1.0.0] - 2025-02-06
9
15
 
10
16
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-app-release",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "AI-powered GitHub release automation tool",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -115,14 +115,19 @@ async function initializeTokens() {
115
115
  async function fetchPullRequests(owner, repo) {
116
116
  const spinner = ora('Fetching pull requests...').start();
117
117
  try {
118
- const { data: pulls } = await octokit.pulls.list({
118
+ const pulls = [];
119
+ const iterator = octokit.paginate.iterator(octokit.pulls.list, {
119
120
  owner,
120
121
  repo,
121
122
  state: 'closed',
122
123
  sort: 'updated',
123
124
  direction: 'desc',
124
- per_page: 30,
125
+ per_page: 100,
125
126
  });
127
+
128
+ for await (const { data } of iterator) {
129
+ pulls.push(...data);
130
+ }
126
131
  spinner.succeed(`Found ${pulls.length} pull requests`);
127
132
  return pulls;
128
133
  } catch (error) {