Skip to content

feat(review_apps): add support for --format json - #1297

Merged
EtienneM merged 1 commit into
masterfrom
feat/review-apps_json
Dec 4, 2026
Merged

EtienneM merged 1 commit into
masterfrom
feat/review-apps_json

Conversation

@EtienneM

@EtienneM EtienneM commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

The table format didn't changed.

here is an example of a JSON output:

 bsscalingo --app my-app review-apps --format json | jq
{
  "review_apps": [
    {
      "review_app": {
        "id": "999c90c3-8be4-11f1-9e39-5a0a34f3fae7",
        "repo_link_id": "909c90b3-8be4-11f1-9e39-5a0a34f3fae7",
        "app_id": "6a6af6f83ce83e7bd7ce1526",
        "app_name": "my-app-pr2",
        "parent_app_id": "5f1ae9dcf112e2000e614745",
        "parent_app_name": "my-app",
        "created_at": "2026-07-30T07:02:17.117Z",
        "stale_deletion_date": "2026-08-31T07:15:13.625Z",
        "on_close_deletion_date": "2036-07-27T07:02:17.117Z",
        "pull_request": {
          "number": 2,
          "branch_name": "feat/biniou",
          "title": "feat: biniou",
          "url": "https://api.github.com/repos/Scalingo/my-app/pulls/2",
          "html_url": "https://github.com/Scalingo/my-app/pull/2",
          "ref": "b633b49e7c0687a1e46bf150a5c940c76b3a698e",
          "base_ref": "f5a7e86dc9425f2cd3155bccc04511d1412cb58e",
          "created_at": "2026-07-30T07:02:13Z",
          "closed_at": "0001-01-01T00:00:00Z"
        },
        "last_deployment": {
          "id": "6a9528f2145693000d15701c",
          "app_id": "",
          "created_at": "2026-08-31T07:13:25.43Z",
          "status": "success",
          "git_ref": "b633b49e7c0687a1e46bf150a5c940c76b2a698e",
          "image": "",
          "registry": "",
          "duration": 0,
          "postdeploy_hook": "",
          "image_size": 0,
          "stack_base_image": "",
          "pusher": {
            "id": "",
            "username": "scalingo-platform-scm",
            "fullname": "",
            "email": "deploy-scm@scalingo.com",
            "flags": null
          },
          "links": null
        }
      },
      "url": "https://my-app-pr2.osc-st-fr1.apps.st-sc.fr"
    },
    { ... }
  ]
}
  • Add a changelog entry in the section "To Be Released" of CHANGELOG.md

@EtienneM EtienneM self-assigned this Dec 3, 2026
@EtienneM
EtienneM changed the base branch from master to fix/1295/remove_global_json December 3, 2026 15:29
Base automatically changed from fix/1295/remove_global_json to master December 4, 2026 08:35
@EtienneM
EtienneM force-pushed the feat/review-apps_json branch from 8eb91b4 to 6968597 Compare December 4, 2026 08:36
@EtienneM EtienneM changed the title fix(scalingo): move json flag documentation to the commands where it's usable feat(review_apps): add support for --json Dec 4, 2026
@EtienneM EtienneM changed the title feat(review_apps): add support for --json feat(review_apps): add support for --format json Dec 4, 2026
@EtienneM
EtienneM force-pushed the feat/review-apps_json branch from 6968597 to 6c7f24b Compare December 4, 2026 08:48
@EtienneM
EtienneM marked this pull request as ready for review December 4, 2026 08:49
@EtienneM
EtienneM requested review from a team and curzolapierre and removed request for a team December 4, 2026 08:49

@curzolapierre curzolapierre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@EtienneM
EtienneM merged commit 0affd22 into master Dec 4, 2026
7 checks passed
@EtienneM
EtienneM deleted the feat/review-apps_json branch December 4, 2026 14:16
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.

2 participants