@scrapecreators/cli 1.0.26 → 1.0.27

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.
@@ -194,6 +194,67 @@ export const githubApis = {
194
194
  "cursor": 2
195
195
  },
196
196
  },
197
+ {
198
+ name: "Pull Requests",
199
+ method: "GET",
200
+ description:
201
+ "Get public pull requests authored by a GitHub user. Filter by created date with since and until.",
202
+ fullDescription:
203
+ "Searches public GitHub pull requests authored by a user using GitHub's public search index. Pass username, handle, or url. Optional since and until filters use YYYY-MM-DD created dates. Results include the PR title, repo, state, created_at, and url, sorted by newest created first.",
204
+ path: "/v1/github/user/pull-requests",
205
+ params: [
206
+ {
207
+ name: "handle",
208
+ type: "string",
209
+ required: true,
210
+ placeholder: "torvalds",
211
+ description: "GitHub username/handle of the user you want pull requests for",
212
+ },
213
+ {
214
+ name: "since",
215
+ type: "string",
216
+ required: false,
217
+ description: "Only return pull requests created on or after this date. Use YYYY-MM-DD.",
218
+ placeholder: "2024-01-01",
219
+ },
220
+ {
221
+ name: "until",
222
+ type: "string",
223
+ required: false,
224
+ description: "Only return pull requests created on or before this date. Use YYYY-MM-DD.",
225
+ placeholder: "2024-12-31",
226
+ },
227
+ {
228
+ name: "cursor",
229
+ type: "number",
230
+ required: false,
231
+ description: "Cursor from the previous response. Defaults to 1.",
232
+ placeholder: 1,
233
+ },
234
+ ],
235
+ sampleResponse: {
236
+ "success": true,
237
+ "credits_remaining": 100,
238
+ "pull_requests": [
239
+ {
240
+ "title": "Garmin: Report correct local time offset",
241
+ "repo": "subsurface/libdc",
242
+ "state": "closed",
243
+ "created_at": "2024-12-26T20:13:25Z",
244
+ "url": "https://github.com/subsurface/libdc/pull/69"
245
+ },
246
+ {
247
+ "title": "Add support for odd-sized SHA256 objects",
248
+ "repo": "git/git",
249
+ "state": "closed",
250
+ "created_at": "2024-08-12T17:05:24Z",
251
+ "url": "https://github.com/git/git/pull/1772"
252
+ }
253
+ ],
254
+ "cursor": 2,
255
+ "has_more": false
256
+ },
257
+ },
197
258
  {
198
259
  name: "Activity",
199
260
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrapecreators/cli",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "CLI for the ScrapeCreators API — scrape 27+ social media platforms from the terminal",
5
5
  "type": "module",
6
6
  "bin": {