Skip to content

Commit 92b3090

Browse files
committed
chore: tweak github issue search
1 parent a48ee84 commit 92b3090

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/my-github-issues.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ function alfredMatcher(str) {
1515

1616
// biome-ignore lint/correctness/noUnusedVariables: alfred_run
1717
function run() {
18-
const resultsNumber = 50; // api allows up to 100
1918
const username = $.getenv("github_username");
2019

2120
// DOCS https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-issues-assigned-to-the-authenticated-user--parameters
22-
const apiURL = `https://api.github.com/search/issues?q=involves:${username}&sort=updated&per_page=${resultsNumber}`;
21+
const apiURL = `https://api.github.com/search/issues?q=involves:${username}&sort=updated&per_page=100`;
2322

2423
const issues = JSON.parse(app.doShellScript(`curl -sL "${apiURL}"`)).items.map(
2524
(/** @type {GithubIssue} */ item) => {

0 commit comments

Comments
 (0)