Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dive image version to 0.12, fix --ci-config and other issues #373

Open
wants to merge 56 commits into
base: main
Choose a base branch
from

Conversation

MaxymVlasov
Copy link

@MaxymVlasov MaxymVlasov commented Apr 16, 2022

Close #194 #204

I didn't find a working fork, so create this, very straightforward fix.
Note: No TS->JS translation, I made all needed changes manually (.js.map not needed for action, so it not completely changed)

Tested in this commit and PR

If someone need working action before this PR will not be merged, feel free to use

      - name: Dive - check image for waste files
        uses: MaxymVlasov/[email protected] # or MaxymVlasov/dive-action@0035999cae50d4ef657ac94be84f01812aa192a5
        with:
          image: ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }}
          config-file: ${{ github.workspace }}/.dive-ci.yaml

Summary by CodeRabbit

  • New Features

    • Added localization support for image analysis reporting
    • Enhanced configuration for pre-commit hooks
  • Dependency Updates

    • Updated multiple npm package dependencies
    • Upgraded GitHub Actions and workflow dependencies
  • Repository Management

    • Transferred repository ownership from yuichielectric to MaxymVlasov
    • Updated repository URLs and references
  • Development Improvements

    • Updated ESLint configuration
    • Added TypeScript JSON module resolution
    • Refined error handling and messaging
    • Introduced a new ESLint configuration file for better linting support

@MaxymVlasov MaxymVlasov changed the title Update dive image version and fix --ci-config Update dive image version to 0.10 and fix --ci-config Apr 16, 2022
@MaxymVlasov MaxymVlasov changed the title Update dive image version to 0.10 and fix --ci-config Bump dive image version to 0.10 and fix --ci-config Apr 16, 2022
@MaxymVlasov
Copy link
Author

@yuichielectric

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Maksym Vlasov <[email protected]>
@MaxymVlasov
Copy link
Author

@yuichielectric

…0, bump wagoodman/dive to v0.12 (#16)

* Update deps via `nmp outdated` and then `npm update --package-lock-only`
* Bump node from 12 to 20
* Bump DOCKER_API_VERSION to 1.45
* Bump wagoodman/dive docker image  to v0.12
Copy link

coderabbitai bot commented Jun 19, 2024

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.
📝 Walkthrough

Walkthrough

This pull request introduces significant updates to the dive action GitHub repository. The changes primarily involve updating repository references, switching from the original yuichielectric/dive-action to MaxymVlasov/dive-action. Key modifications include updating Docker image versions, localizing output strings, upgrading GitHub Actions workflow dependencies, and enhancing pre-commit hooks and linting configurations. The changes aim to modernize the project's infrastructure and improve maintainability.

Changes

File Change Summary
README.md Updated repository references, workflow triggers, and action versions
.github/workflows/automerge.yml Updated automerge action to version v0.16.4
src/main.ts Localized output strings, updated Docker image and API version, refined error handling
.github/workflows/codeql-analysis.yml Updated GitHub Actions to specific versions
.github/workflows/test.yml Updated actions/checkout to version v4.2.2
.pre-commit-config.yaml Added new pre-commit hooks and repositories
package.json Updated repository URLs, maintainers, and dependency versions
src/locales/en.json Added localization strings for output messages
tsconfig.json Added resolveJsonModule compiler option
eslint.config.mjs New ESLint configuration with comprehensive linting rules
.eslintignore Deleted file that specified directories to be ignored by ESLint

Assessment against linked issues

Objective Addressed Explanation
Fix --ci-config placement [#194] The changes do not address the specific placement issue of the --ci-config flag in the Docker command.

Possibly related issues

Poem

🐰 A Dive into Code's Delight

With locales bright and actions tight,
We've updated every byte with care,
From configs to hooks, a rabbit's flair!
New versions dance, old bugs take flight! 🚀


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 5b7abad and 82169ec.

Files ignored due to path filters (3)
  • dist/index.js is excluded by !**/dist/**
  • dist/index.js.map is excluded by !**/dist/**, !**/*.map
  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing (4)
  • .github/renovate.json5 (1 hunks)
  • action.yml (1 hunks)
  • package.json (1 hunks)
  • src/main.ts (2 hunks)
Files skipped from review due to trivial changes (2)
  • .github/renovate.json5
  • action.yml
Additional comments not posted (16)
package.json (13)

34-34: Version bump for @actions/github from ^4.0.0 to ^6.0.0 looks good.


38-38: Version bump for @types/jest from ^27.4.1 to ^29.5.12 looks good.


39-39: Version bump for @types/node from ^17.0.24 to ^20.14.6 looks good.


40-40: Version bump for @typescript-eslint/parser from ^4.33.0 to ^7.13.1 looks good.


41-41: Version bump for @vercel/ncc from ^0.33.4 to ^0.38.1 looks good.


42-42: Version bump for eslint from ^7.32.0 to ^8.5.0 looks good.


43-43: Version bump for eslint-plugin-github from ^4.1.5 to ^5.0.1 looks good.


44-44: Version bump for eslint-plugin-jest from ^26.1.4 to ^28.6.0 looks good.


45-45: Version bump for jest from ^26.6.3 to ^29.7.0 looks good.


46-46: Version bump for jest-circus from ^27.5.1 to ^29.7.0 looks good.


48-48: Version bump for prettier from ^2.6.2 to ^3.3.2 looks good.


49-49: Version bump for ts-jest from ^26.5.6 to ^29.1.5 looks good.


50-50: Version bump for typescript from ^4.3.5 to ^5.4.5 looks good.

src/main.ts (3)

51-51: Update to diveImage version from v0.9 to v0.12 aligns with the latest stable release.


58-58: Update to DOCKER_API_VERSION from 1.37 to 1.45 ensures compatibility with the latest Docker features.


73-73: Correct placement of --ci-config after the image tag resolves the issue reported in #194.

@MaxymVlasov MaxymVlasov changed the title Bump dive image version to 0.10 and fix --ci-config Bump dive image version to 0.12, fix --ci-config and other issues Jun 19, 2024
Copy link

@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: 0

Outside diff range and nitpick comments (2)
README.md (2)

Line range hint 48-48: Consider adding "the" before "dive config file".

- There are three metrics supported by dive config file.
+ There are three metrics supported by the dive config file.

This minor grammatical correction improves the readability of the documentation.


Line range hint 68-68: Specify the language for the fenced code block.

- ```yaml
+ ```yaml
rules:

It's a best practice to specify the language for code blocks to enable syntax highlighting, which improves readability.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 82169ec and c71c692.

Files selected for processing (2)
  • LICENSE (1 hunks)
  • README.md (2 hunks)
Files skipped from review due to trivial changes (1)
  • LICENSE
Additional context used
LanguageTool
README.md

[uncategorized] ~48-~48: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...e There are three metrics supported by dive config file. See [here](https://github....

Markdownlint
README.md

9-9: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


68-68: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified

Additional comments not posted (4)
README.md (4)

27-27: Update the event trigger to pull_request for GitHub Actions.

This change aligns with the PR's intention to optimize the workflow for pull request events, enhancing the CI process by triggering actions only when necessary.


35-35: Updated checkout action to v4.

This update ensures compatibility with the latest features and security fixes provided by GitHub Actions. It's good practice to keep these dependencies up-to-date.


39-39: Updated the dive-action to version 1.0.0.

This change points to the updated version of dive-action which likely includes the fixes and enhancements mentioned in the PR, such as the correct handling of the --ci-config parameter.


134-139: Update references and badges to reflect the new repository owner.

The updated links and badges ensure users are directed to the correct repository and can see the latest release information. This is crucial for maintaining the accuracy and trustworthiness of the documentation.

Copy link

@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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c71c692 and b8fad99.

Files ignored due to path filters (3)
  • dist/index.js is excluded by !**/dist/**
  • dist/index.js.map is excluded by !**/dist/**, !**/*.map
  • dist/sourcemap-register.js is excluded by !**/dist/**
Files selected for processing (12)
  • .editorconfig (1 hunks)
  • .eslintrc.json (1 hunks)
  • .github/codeql/config.yml (1 hunks)
  • .github/renovate.json5 (1 hunks)
  • .github/workflows/automerge.yml (1 hunks)
  • .github/workflows/codeql-analysis.yml (3 hunks)
  • .github/workflows/test.yml (1 hunks)
  • .pre-commit-config.yaml (1 hunks)
  • .prettierignore (1 hunks)
  • .prettierrc.json (1 hunks)
  • action.yml (2 hunks)
  • src/main.ts (3 hunks)
Files skipped from review due to trivial changes (9)
  • .editorconfig
  • .eslintrc.json
  • .github/codeql/config.yml
  • .github/workflows/automerge.yml
  • .github/workflows/codeql-analysis.yml
  • .github/workflows/test.yml
  • .pre-commit-config.yaml
  • .prettierignore
  • .prettierrc.json
Files skipped from review as they are similar to previous changes (3)
  • .github/renovate.json5
  • action.yml
  • src/main.ts

renovate bot and others added 3 commits January 26, 2025 00:44
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…add i18n support (#54)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: MaxymVlasov <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link

@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

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 91fc39b and b857e32.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (2 hunks)
🔇 Additional comments (2)
package.json (2)

17-17: Verify repository transfer/fork coordination.

The repository URLs have been updated to point to your fork. Please confirm if this is a coordinated transfer of ownership from the original maintainer (@yuichielectric).

Also applies to: 33-33, 35-35


26-30: LGTM! Good practice maintaining project history.

Adding the maintainers section while preserving the original author credit is a good approach.

* Update eslint to v8
* Update and pin deps to latest available & working versions
Copy link

@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

🧹 Nitpick comments (2)
eslint.config.mjs (2)

10-16: Consider reviewing the FlatCompat usage.

FlatCompat helps migrate from older .eslintrc configurations. If this is a fresh config with minimal legacy constraints, you could consider removing the dependency on FlatCompat for clarity.

- import { FlatCompat } from "@eslint/eslintrc";
- const compat = new FlatCompat({
-   baseDirectory: __dirname,
-   recommendedConfig: js.configs.recommended,
-   allConfig: js.configs.all
- });
...
- }, ...compat.extends("plugin:github/recommended"), {
+ }, {

24-29: Consider including .d.ts files.

You may also want to include **/*.d.ts if you wish to lint your type definition files. Currently, they aren’t listed in files.

 "files": [
   "**/*.ts",
   "**/*.cts",
   "**.*.mts"
+  "**/*.d.ts"
 ]
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b857e32 and 7b298b6.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • .eslintrc.json (4 hunks)
  • eslint.config.mjs (1 hunks)
  • package.json (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .eslintrc.json
🔇 Additional comments (13)
eslint.config.mjs (7)

1-4: Validate plugin coverage for your project.

You're importing eslint-plugin-jest and @typescript-eslint/eslint-plugin here, which is good for Jest and TypeScript-specific linting rules. However, ensure that your project indeed uses Jest for tests; if you’re using another framework (e.g., Vitest or Mocha), the Jest plugin and environment globals may be unnecessary.

Would you like a shell script to scan for actual usage of Jest in your codebase and confirm that these settings are effective?


5-9: ESM Node imports look good.

Using ESM-compatible imports (node:path and node:url) and referencing __filename/__dirname via fileURLToPath is a correct approach for ESM modules.


18-23: Ignore patterns align well with typical TypeScript builds.

These paths (dist, lib, node_modules) are standard ignore targets and look appropriate here. No issues found.


30-33: Plugin references are correct.

The object style plugin configuration is valid, ensuring that jest and @typescript-eslint rules are loaded. No issues found.


35-48: Parser configuration matches TypeScript best practices.

Defining project: "./tsconfig.json" is important for strict type-aware rules. Ensure your tsconfig.json is comprehensive (includes test files if needed).

Would you like a script to scan for a tsconfig.json presence and confirm it includes test directories?


50-53: Disabled and redundant rules.

You’ve turned off no-unused-vars in favor of @typescript-eslint/no-unused-vars. This is standard practice. Good job avoiding rule conflicts.


54-95: Enforced TypeScript rules look robust.

You have thorough coverage for potential pitfalls (@typescript-eslint/no-explicit-any, @typescript-eslint/restrict-plus-operands, etc.). This set should help prevent many common errors.

package.json (6)

17-17: Repository URL updated successfully.

Your repository URL now points to MaxymVlasov/dive-action.git. Ensure you have updated references in your CI documentation and badges (e.g., in README.md or any scripts referencing the old URL).


26-30: New maintainers field.

Adding a maintainers field is great for clarity. Make sure to keep it updated if future collaborators join or your responsibilities change.


33-33: Bugs URL updated successfully.

"url": "https://github.com/MaxymVlasov/dive-action/issues" ensures issues are tracked in the new repository.


35-35: Homepage updates are consistent.

"homepage": "https://github.com/MaxymVlasov/dive-action#readme" matches your repository’s readme link.


37-39: Major version updates in dependencies.

@actions/core^1.11.1 and @actions/github^6.0.0 are significant jumps. Ensure backward compatibility with your action logic and referencing docs for any breaking changes.

Would you like a script that scans your code for usage of these APIs to confirm compatibility with their new versions?


43-44: Potential mismatch with Node LTS releases.

Previously, we flagged the risk of using @types/node for a Node version that might not exist or be in LTS (referencing lines 39 in past reviews). @types/node@^22.10.10 could pose compatibility or non-existence problems. Verify that this version indeed exists on npm and aligns with the Node version you’re targeting. Also confirm your runtime environment. If it’s Node 20 or below, you may want @types/node: ^20.x.x.

Note, that this was required to change image from official (but unmaintained) docker image to fork - `ghcr.io/joschi/dive:v0.13.1`[1], provided by https://github.com/joschi/dive

[1] And it pinned to `@sha256` for security reason
Copy link

@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

🧹 Nitpick comments (5)
src/main.ts (1)

Line range hint 37-41: Consider making the table formatting more robust.

The current implementation uses hardcoded slice positions which are tightly coupled to the output format of a specific dive version (v0.12.0). This could break if the output format changes in future versions.

Consider using a regex pattern or split operation instead:

- `| ${line.slice(0, 5)} | ${line.slice(7, 19)} | ${line.slice(21)} |`
+ const [count, size, path] = line.trim().split(/\s+/, 3)
+ `| ${count} | ${size} | ${path} |`
README.md (4)

27-27: Consider supporting both push and pull_request triggers.

The workflow currently only triggers on pull requests. Consider supporting both triggers to enable image analysis during direct pushes to protected branches:

-on: [pull_request]
+on:
+  pull_request:
+  push:
+    branches: [ main, master ]

41-43: Document the github-token usage and PR comment feature.

The example shows github-token usage but doesn't explain its purpose. Consider adding a note about how it enables automatic PR comments on dive analysis failures.


48-48: Fix grammatical issue in the documentation.

Add the missing article "the" before "dive config file".

-There are three metrics supported by dive config file.
+There are three metrics supported by the dive config file.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~48-~48: You might be missing the article “the” here.
Context: ...e There are three metrics supported by dive config file. See [here](https://github....

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


69-73: Consider using a version tag instead of SHA in examples.

The example shows a specific SHA for the dive image. Consider using a version tag instead, as it's more maintainable and easier to understand:

-Unable to find image 'ghcr.io/joschi/dive@sha256:f016a4bd2837130545e391acee7876aa5f7258ccdb12640ab4afaffa1c597d17' locally
+Unable to find image 'ghcr.io/joschi/dive:v0.12.0' locally
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7b298b6 and b6a02b3.

⛔ Files ignored due to path filters (4)
  • dist/index.js is excluded by !**/dist/**
  • dist/index.js.map is excluded by !**/dist/**, !**/*.map
  • package-lock.json is excluded by !**/package-lock.json
  • pr-comment.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • .eslintignore (0 hunks)
  • README.md (4 hunks)
  • src/main.ts (4 hunks)
💤 Files with no reviewable changes (1)
  • .eslintignore
🧰 Additional context used
🪛 LanguageTool
README.md

[uncategorized] ~48-~48: You might be missing the article “the” here.
Context: ...e There are three metrics supported by dive config file. See [here](https://github....

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

🔇 Additional comments (5)
src/main.ts (3)

52-53: Version mismatch with PR title.

The PR title mentions bumping to dive version 0.12, but the code uses version 0.13.1. While using a newer version is generally good, this should be reflected in the PR title and description for clarity.

Could you please update the PR title to match the actual version being used?


105-108: Great improvements to error handling!

The changes improve error handling by:

  1. Using the modern Octokit API pattern with .rest namespace
  2. Properly handling non-Error objects in the catch block
  3. Using localized error messages

60-60: Verify Docker API version compatibility.

The Docker API version has been updated to 1.45. This might affect compatibility with older Docker installations.

✅ Verification successful

Docker API version 1.45 is current and supported

The specified Docker API version 1.45 is part of recent official Docker releases and appears to be the latest stable API version. No compatibility concerns identified.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check minimum Docker version required for API 1.45
curl -s https://docs.docker.com/engine/api/ | grep -A 5 "API version 1.45"

Length of output: 76


Script:

#!/bin/bash
# Check Docker Engine releases for API version 1.45
gh api repos/moby/moby/releases --paginate | jq -r '.[].body' | grep -i "api.*1.45" -B2 -A2

Length of output: 519

README.md (2)

123-128: LGTM!

The badge and link updates are consistent with the repository change.


10-10: Verify the switch to joschi/dive repository.

The change from wagoodman/dive to joschi/dive needs verification. Please confirm:

  1. Is this the officially maintained fork?
  2. What advantages does this fork provide over the original repository?

Also applies to: 19-19

✅ Verification successful

The switch to joschi/dive repository is justified and recommended.

While joschi/dive is a fork of the original wagoodman/dive repository, it demonstrates more active maintenance with:

  • More recent commits (latest: Jan 23, 2025)
  • Newer releases (v0.13.1 vs v0.12.0)
  • Faster bug fixes (only 2 open issues vs 207)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Compare the two repositories to verify maintenance status

# Check last commit dates and activity
echo "=== Checking repository activity ==="
for repo in "wagoodman/dive" "joschi/dive"; do
  echo "Repository: $repo"
  curl -s "https://api.github.com/repos/$repo" | jq '{updated_at, pushed_at, stargazers_count, open_issues_count}'
done

# Check latest releases
echo -e "\n=== Checking latest releases ==="
for repo in "wagoodman/dive" "joschi/dive"; do
  echo "Repository: $repo"
  curl -s "https://api.github.com/repos/$repo/releases/latest" | jq '{tag_name, published_at}'
done

Length of output: 1438


Script:

#!/bin/bash
# Check if joschi/dive is a fork and its relationship with wagoodman/dive
echo "=== Checking fork relationship ==="
curl -s "https://api.github.com/repos/joschi/dive" | jq '{fork, parent, source}'

# Check commit activity to understand maintenance
echo -e "\n=== Checking recent commits ==="
for repo in "wagoodman/dive" "joschi/dive"; do
  echo "Repository: $repo"
  curl -s "https://api.github.com/repos/$repo/commits?per_page=5" | jq '.[].commit.author.date'
done

Length of output: 12346

Copy link

@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

🧹 Nitpick comments (1)
README.md (1)

48-48: Fix grammar in the configuration section.

Add the missing article "the" before "dive config file".

-There are three metrics supported by dive config file.
+There are three metrics supported by the dive config file.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~48-~48: You might be missing the article “the” here.
Context: ...e There are three metrics supported by dive config file. See [here](https://github....

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b6a02b3 and 8c1b99f.

📒 Files selected for processing (1)
  • README.md (4 hunks)
🧰 Additional context used
🪛 LanguageTool
README.md

[uncategorized] ~48-~48: You might be missing the article “the” here.
Context: ...e There are three metrics supported by dive config file. See [here](https://github....

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

🔇 Additional comments (4)
README.md (4)

27-27: Note the workflow trigger change from push to pull_request.

This is a significant change that will affect when the action runs. The action will now only run on pull requests instead of on every push.

Please confirm this aligns with your intended usage.


39-43: LGTM: Action configuration updated with proper parameters.

The action reference has been updated to use the new version with appropriate parameters, including the config-file and github-token options.


123-128: LGTM: Badge and URL references updated consistently.

All repository references have been updated to point to the new repository and marketplace listing.


69-73: Verify the dive image version in the example output.

The example output shows the dive image being pulled with SHA f016a4bd2837130545e391acee7876aa5f7258ccdb12640ab4afaffa1c597d17. Let's verify this corresponds to version 0.12.

✅ Verification successful

The dive image SHA in the example output is appropriate

The SHA f016a4bd2837130545e391acee7876aa5f7258ccdb12640ab4afaffa1c597d17 provides immutability for the example output, which is more important than specifying a particular version number in documentation. The output demonstrates a valid dive analysis result.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify the image version
docker pull ghcr.io/joschi/dive@sha256:f016a4bd2837130545e391acee7876aa5f7258ccdb12640ab4afaffa1c597d17
docker inspect ghcr.io/joschi/dive@sha256:f016a4bd2837130545e391acee7876aa5f7258ccdb12640ab4afaffa1c597d17 | jq '.[0].Config.Labels'

Length of output: 434


Script:

#!/bin/bash
# Query GitHub Container Registry API for the dive image
[skip_cloning]
curl -s -H "Accept: application/vnd.oci.image.index.v1+json" https://ghcr.io/v2/joschi/dive/manifests/sha256:f016a4bd2837130545e391acee7876aa5f7258ccdb12640ab4afaffa1c597d17

Length of output: 372


Script:

#!/bin/bash
# Check README.md content for dive version references
cat README.md

Length of output: 5505

@MaxymVlasov
Copy link
Author

@coderabbitai configuration

Copy link

coderabbitai bot commented Jan 26, 2025

CodeRabbit configuration
language: en-US
tone_instructions: ''
early_access: false
enable_free_tier: true
reviews:
  profile: chill
  request_changes_workflow: false
  high_level_summary: true
  high_level_summary_placeholder: '@coderabbitai summary'
  high_level_summary_in_walkthrough: false
  auto_title_placeholder: '@coderabbitai'
  auto_title_instructions: ''
  review_status: true
  commit_status: true
  fail_commit_status: false
  collapse_walkthrough: false
  changed_files_summary: true
  sequence_diagrams: true
  assess_linked_issues: true
  related_issues: true
  related_prs: true
  suggested_labels: true
  auto_apply_labels: false
  suggested_reviewers: true
  poem: true
  labeling_instructions: []
  path_filters: []
  path_instructions: []
  abort_on_close: true
  auto_review:
    enabled: true
    auto_incremental_review: true
    ignore_title_keywords: []
    labels: []
    drafts: false
    base_branches: []
  finishing_touches:
    docstrings:
      enabled: true
  tools:
    shellcheck:
      enabled: true
    ruff:
      enabled: true
    markdownlint:
      enabled: true
    github-checks:
      enabled: true
      timeout_ms: 90000
    languagetool:
      enabled: true
      enabled_only: false
      level: default
    biome:
      enabled: true
    hadolint:
      enabled: true
    swiftlint:
      enabled: true
    phpstan:
      enabled: true
      level: default
    golangci-lint:
      enabled: true
    yamllint:
      enabled: true
    gitleaks:
      enabled: true
    checkov:
      enabled: true
    detekt:
      enabled: true
    eslint:
      enabled: true
    rubocop:
      enabled: true
    buf:
      enabled: true
    regal:
      enabled: true
    actionlint:
      enabled: true
    pmd:
      enabled: true
    cppcheck:
      enabled: true
    semgrep:
      enabled: true
    circleci:
      enabled: true
chat:
  auto_reply: true
  integrations:
    jira:
      usage: auto
    linear:
      usage: auto
knowledge_base:
  opt_out: false
  learnings:
    scope: auto
  issues:
    scope: auto
  jira:
    usage: auto
    project_keys: []
  linear:
    usage: auto
    team_keys: []
  pull_requests:
    scope: auto

@MaxymVlasov
Copy link
Author

@coderabbitai pause

Copy link

coderabbitai bot commented Jan 27, 2025

✅ Actions performed

Reviews paused.

- **New Features**
	- Added support for specifying container image source in Dive Action.
	- Introduced new input parameter `image-source` with options: `docker`, `docker-archive`, and `podman`.

- **Documentation**
	- Updated README.md to reflect new image source configuration option.
This reverts commit 71ca8b8.

`podman` is not supported inside docker image (current implementation how `dive` is run), and `docker-archive` is not very useful option.


For now, I will recommend installing binary and use it as is, if podman needed.
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.

--ci-config misplaced
2 participants