Skip to content

Github - List Repositories & List Organization Repositories#20493

Merged
GTFalcao merged 4 commits intomasterfrom
issue-20464
Apr 7, 2026
Merged

Github - List Repositories & List Organization Repositories#20493
GTFalcao merged 4 commits intomasterfrom
issue-20464

Conversation

@michelle0927
Copy link
Copy Markdown
Collaborator

@michelle0927 michelle0927 commented Apr 2, 2026

Resolves #20464
Resolves #20465

Summary by CodeRabbit

  • New Features

    • Added actions to list organizations and to list an organization's repositories
  • Improvements

    • Enhanced GitHub client methods for more flexible data retrieval
    • Updated documentation links to newer API references
    • Bumped many component/action/source versions for release tracking
    • Package version updated to 1.12.0

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
pipedream-docs-redirect-do-not-edit Ignored Ignored Apr 2, 2026 5:17pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 2, 2026

Walkthrough

Adds two new GitHub actions (List Organizations, List Organization Repositories), updates github.app method signatures to accept/forward request parameters, bumps many component/package version fields, and updates several docs URLs' apiVersion query parameters. No other runtime logic changes beyond the two new actions and app method signatures.

Changes

Cohort / File(s) Summary
New Actions
components/github/actions/list-organizations/list-organizations.mjs, components/github/actions/list-organization-repositories/list-organization-repositories.mjs
Added List Organizations (paginates GET /user/orgs) and List Organization Repositories (calls GET /orgs/{org}/repos, accepts type, sort, direction).
Core GitHub App
components/github/github.app.mjs
Changed signatures: getOrganizations(data = {}) and getOrgRepos({ org, ...args }) to accept and forward request params to API/paginate.
Package Metadata
components/github/package.json
Bumped package version 1.11.11.12.0.
Actions — Version Bumps
components/github/actions/... (many files, see diff)
Incremented version metadata across numerous GitHub action components; no runtime/logic changes.
Sources — Version & Docs Updates
components/github/sources/... (many files, see diff)
Bumped source version fields and updated several description documentation URLs to apiVersion=20.2.71-28; no behavior changes.

Sequence Diagram(s)

sequenceDiagram
  participant Client as Caller
  participant Action as ListOrganizations Action
  participant App as github.app
  participant API as GitHub REST API

  Client->>Action: invoke List Organizations
  Action->>App: this.github.getOrganizations(data)
  App->>API: GET /user/orgs with params (paginated)
  API-->>App: paginated orgs page(s)
  App-->>Action: aggregated orgs array
  Action-->>Client: return orgs (exports $summary)
Loading
sequenceDiagram
  participant Client as Caller
  participant Action as ListOrgRepos Action
  participant App as github.app
  participant API as GitHub REST API

  Client->>Action: invoke List Organization Repositories (org, type, sort, direction)
  Action->>App: this.github.getOrgRepos({ org, ...opts })
  App->>API: GET /orgs/{org}/repos with params (paginated)
  API-->>App: paginated repo pages
  App-->>Action: aggregated repos array
  Action-->>Client: return repos (exports $summary)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

User submitted

Suggested reviewers

  • jcortes
  • luancazarine
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is minimal but identifies the resolved issues. However, it does not follow the template structure which requires a WHY section and additional context. Consider expanding the description to explain WHY these changes were made, the problem being solved, and impact of the changes beyond just issue references.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main changes: addition of two new GitHub actions for listing organizations and listing organization repositories.
Linked Issues check ✅ Passed The PR successfully implements both linked issues: list-organizations.mjs addresses #20464 by calling GET /user/orgs and returning organization data; list-organization-repositories.mjs addresses #20465 by accepting org input and calling GET /orgs/{org}/repos with specified fields.
Out of Scope Changes check ✅ Passed The PR includes version bumps across multiple existing GitHub action files and updates to github.app.mjs methods (getOrganizations and getOrgRepos). These are necessary supporting changes, though the scope extends slightly beyond the two new actions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-20464

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@michelle0927 michelle0927 marked this pull request as ready for review April 2, 2026 16:57
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@components/github/actions/list-organization-repositories/list-organization-repositories.mjs`:
- Around line 67-71: The action currently returns full repo objects in the
repositories array; change it to return only the required fields by mapping the
repositories array to a new array (e.g., shapedRepos) that contains objects with
only name, full_name, description, private, and html_url, then return that
shaped array instead of the original repositories; update any uses of
repositories for the output (such as the $summary export) to still use
repositories.length for the count if needed but ensure the returned value is the
mapped shaped array (reference the repositories variable and the return
statement near the end of the module).

In `@components/github/actions/list-organizations/list-organizations.mjs`:
- Around line 23-26: The call to this.github.getOrganizations is using camelCase
perPage which Octokit/GitHub REST expects as per_page; update the argument name
from perPage to per_page in the getOrganizations call (alongside the existing
page parameter) so pagination works correctly in the list-organizations action;
locate the call to this.github.getOrganizations in list-organizations.mjs and
replace the perPage key with per_page to match other methods like
listReleases/listWorkflows.

In
`@components/github/actions/update-project-v2-item-status/update-project-v2-item-status.mjs`:
- Line 7: The version field "version: \"0.0.10\"" in
update-project-v2-item-status.mjs was bumped despite no functional changes;
revert this version bump to the previous value (or, if your repo policy mandates
blanket bumps, add a short documented policy entry explaining why all actions
receive a patch bump on parent component updates). Locate the "version:
\"0.0.10\"" token in update-project-v2-item-status.mjs (and similarly for other
actions if following policy) and either restore the prior version string or
add/update project documentation describing the blanket-versioning rule and when
patch bumps should be applied.

In `@components/github/github.app.mjs`:
- Around line 425-428: The getOrgRepos pagination is unbounded and can explode
for large orgs; modify getOrgRepos to accept an optional numeric cap (e.g.,
maxResults or limit) and, when provided, stop pagination once that many repos
have been collected while preserving current behavior when the cap is absent.
Locate the getOrgRepos method and replace the direct this._client().paginate
call with a controlled pagination loop or use Octokit paginate with a mapping
callback that accumulates items, applying per_page to reduce page size and
breaking out when accumulated.length >= cap; ensure default behavior remains
unchanged when cap is undefined or null.
- Around line 417-418: The list-organizations action currently forwards the
camelCase perPage to getOrganizations which then sends it to GitHub and is
ignored; update the action that calls getOrganizations (the list-organizations
action) to pass per_page instead of perPage (e.g., { page, per_page: perPage })
so the API receives the snake_case parameter; no changes needed to
getOrganizations itself other than receiving the corrected key.

In `@components/github/sources/new-issue-with-status/new-issue-with-status.mjs`:
- Line 11: The version field in new-issue-with-status.mjs was bumped from
"0.1.10" to "0.1.11" without any functional changes; either revert the version
back to "0.1.10" or add a brief comment or commit message clarifying why a
repo-wide/component-wide version bump was applied (e.g., release coordination,
packaging change), referencing the "version" field and the current value
"0.1.11" so reviewers can verify the intentionality of the change.

In `@components/github/sources/new-star/new-star.mjs`:
- Line 11: The version bump to "1.0.13" in the component metadata lacks
explanation; update the component's metadata or PR/changelog to document the
rationale for the patch bump (e.g., shared dependency update in the common
GitHub service/base class or coordination across other GitHub source components)
and confirm whether the bump is necessary since no functional code in
new-star.mjs changed and it still only calls
this.github.getRepositoryStargazers(); specifically, add a brief note next to
the version field (version: "1.0.13") or an entry in the PR
description/changelog referencing the shared change (mentioning the new methods
listOrganizations and listOrganizationRepositories if relevant) or remove the
bump if it was accidental.

In `@components/github/sources/new-team/new-team.mjs`:
- Around line 7-8: Update the invalid date in the GitHub docs URL inside the
description string by replacing the malformed apiVersion value `20.2.71-28` with
a valid date-based API version like `2022-11-28` in
components/github/sources/new-team/new-team.mjs (look for the description field
containing the docs URL and the apiVersion parameter); apply the same fix to the
other affected GitHub source files (new-security-alert, new-repository,
new-organization, new-notification, new-review-request, new-mention, and
new-gist where `20.2.61-28` appears) so all documentation links use a date-based
version (e.g., `2022-11-28`).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c4e348bd-6e4b-4eff-90cd-dbc5c1694869

📥 Commits

Reviewing files that changed from the base of the PR and between 7856d41 and 76572e0.

📒 Files selected for processing (61)
  • components/github/actions/create-branch/create-branch.mjs
  • components/github/actions/create-gist/create-gist.mjs
  • components/github/actions/create-issue-comment/create-issue-comment.mjs
  • components/github/actions/create-issue/create-issue.mjs
  • components/github/actions/create-or-update-file-contents/create-or-update-file-contents.mjs
  • components/github/actions/create-pull-request/create-pull-request.mjs
  • components/github/actions/create-repository/create-repository.mjs
  • components/github/actions/create-workflow-dispatch/create-workflow-dispatch.mjs
  • components/github/actions/disable-workflow/disable-workflow.mjs
  • components/github/actions/enable-workflow/enable-workflow.mjs
  • components/github/actions/get-commit/get-commit.mjs
  • components/github/actions/get-current-user/get-current-user.mjs
  • components/github/actions/get-issue-assignees/get-issue-assignees.mjs
  • components/github/actions/get-issue/get-issue.mjs
  • components/github/actions/get-repository-content/get-repository-content.mjs
  • components/github/actions/get-repository/get-repository.mjs
  • components/github/actions/get-reviewers/get-reviewers.mjs
  • components/github/actions/get-workflow-run/get-workflow-run.mjs
  • components/github/actions/list-commits/list-commits.mjs
  • components/github/actions/list-gists-for-a-user/list-gists-for-a-user.mjs
  • components/github/actions/list-organization-repositories/list-organization-repositories.mjs
  • components/github/actions/list-organizations/list-organizations.mjs
  • components/github/actions/list-releases/list-releases.mjs
  • components/github/actions/list-repositories/list-repositories.mjs
  • components/github/actions/list-workflow-runs/list-workflow-runs.mjs
  • components/github/actions/search-issues-and-pull-requests/search-issues-and-pull-requests.mjs
  • components/github/actions/star-repo/star-repo.mjs
  • components/github/actions/sync-fork-branch-with-upstream/sync-fork-branch-with-upstream.mjs
  • components/github/actions/update-gist/update-gist.mjs
  • components/github/actions/update-issue/update-issue.mjs
  • components/github/actions/update-project-v2-item-status/update-project-v2-item-status.mjs
  • components/github/actions/update-pull-request/update-pull-request.mjs
  • components/github/github.app.mjs
  • components/github/package.json
  • components/github/sources/new-branch/new-branch.mjs
  • components/github/sources/new-card-in-column/new-card-in-column.mjs
  • components/github/sources/new-collaborator/new-collaborator.mjs
  • components/github/sources/new-commit-comment/new-commit-comment.mjs
  • components/github/sources/new-commit/new-commit.mjs
  • components/github/sources/new-discussion/new-discussion.mjs
  • components/github/sources/new-fork/new-fork.mjs
  • components/github/sources/new-gist/new-gist.mjs
  • components/github/sources/new-issue-comment/new-issue-comment.mjs
  • components/github/sources/new-issue-with-status/new-issue-with-status.mjs
  • components/github/sources/new-label/new-label.mjs
  • components/github/sources/new-mention/new-mention.mjs
  • components/github/sources/new-notification/new-notification.mjs
  • components/github/sources/new-or-updated-issue/new-or-updated-issue.mjs
  • components/github/sources/new-or-updated-milestone/new-or-updated-milestone.mjs
  • components/github/sources/new-or-updated-pull-request/new-or-updated-pull-request.mjs
  • components/github/sources/new-organization/new-organization.mjs
  • components/github/sources/new-release/new-release.mjs
  • components/github/sources/new-repository/new-repository.mjs
  • components/github/sources/new-review-request/new-review-request.mjs
  • components/github/sources/new-security-alert/new-security-alert.mjs
  • components/github/sources/new-star-by-user/new-star-by-user.mjs
  • components/github/sources/new-star/new-star.mjs
  • components/github/sources/new-team/new-team.mjs
  • components/github/sources/new-workflow-job-completed/new-workflow-job-completed.mjs
  • components/github/sources/new-workflow-run-completed/new-workflow-run-completed.mjs
  • components/github/sources/webhook-events/webhook-events.mjs

Comment thread components/github/actions/list-organizations/list-organizations.mjs
Comment thread components/github/github.app.mjs
Comment thread components/github/github.app.mjs
Comment thread components/github/sources/new-star/new-star.mjs
Comment thread components/github/sources/new-team/new-team.mjs
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@components/github/actions/list-organizations/list-organizations.mjs`:
- Line 19: The variable perPage is declared with let but never reassigned;
change its declaration to const to reflect immutability (update the declaration
for perPage in list-organizations.mjs where perPage = 100 is defined).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2af94ef3-1428-4ffd-b229-9a8aacbc55d2

📥 Commits

Reviewing files that changed from the base of the PR and between 76572e0 and ca9420a.

📒 Files selected for processing (1)
  • components/github/actions/list-organizations/list-organizations.mjs

Comment thread components/github/actions/list-organizations/list-organizations.mjs Outdated
…s.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@components/github/actions/list-organizations/list-organizations.mjs`:
- Line 32: Replace the repeated array concatenation that creates new arrays on
each loop by mutating the accumulator in place: where the code uses
allOrganizations = allOrganizations.concat(organizations) (working with the
allOrganizations and organizations variables), change it to use in-place push
(e.g., push(...organizations) or Array.prototype.push.apply(allOrganizations,
organizations)), ensuring organizations is an array (use
Array.isArray(organizations) guard if necessary) so you avoid repeated
allocations and preserve behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4daaf0da-3a16-4480-945d-2a12ad9847e8

📥 Commits

Reviewing files that changed from the base of the PR and between ca9420a and ab30ecd.

📒 Files selected for processing (1)
  • components/github/actions/list-organizations/list-organizations.mjs

Comment thread components/github/actions/list-organizations/list-organizations.mjs
Copy link
Copy Markdown
Collaborator

@GTFalcao GTFalcao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@GTFalcao GTFalcao merged commit cdf744c into master Apr 7, 2026
9 checks passed
@GTFalcao GTFalcao deleted the issue-20464 branch April 7, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub — add List Organization Repositories action GitHub — add List Organizations action

2 participants