Skip to content

Conversation

@dipishBisht
Copy link

@dipishBisht dipishBisht commented Mar 6, 2025

Updated both the links to the correct one, now they are redirecting to correct page :)

Summary by CodeRabbit

  • New Features
    • Updated external links on the home page, ensuring call-to-action buttons (e.g., for Slack and subscriptions) now direct correctly to the intended external resources.
  • Style
    • Refined the alignment of community events messages for improved visual presentation.
  • Documentation
    • Standardized header formatting in the community onboarding guide for a clearer, more consistent reading experience.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 6, 2025

Walkthrough

This pull request updates various components and configuration files. The homepage now derives a BASE_URL from an environment variable for constructing absolute URLs in its links. CSS class updates adjust content alignment in the community events component. The Algolia search component now imports types from a simplified path. Additionally, the scheduled meetings configuration file is deleted, and formatting adjustments are applied to a markdown document and a JSON config file without changing their underlying data.

Changes

File(s) Change Summary
pages/[lang]/index.tsx Added BASE_URL constant from NEXT_PUBLIC_BASE_URL with a default, updated hrefs for Button, TextLink, and SubscribeButton from relative to absolute URLs.
components/CommunityEvents.tsx Replaced CSS classes (content-center justify-centerplace-content-center) to modify Flexbox centering.
components/AlgoliaSearch.tsx Updated type imports to use the root package path (@docsearch/react) instead of a sub-path.
config/meetings.json Deleted the file containing scheduled AsyncAPI community meetings.
markdown/docs/community/onboarding-guide/docs-community.md, mlc_config.json Applied formatting updates: standardized markdown header and replaced the JSON file with identical structured content.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant HP as HomePage Component
    participant Env as Environment
    U->>HP: Request Home Page
    HP->>Env: Retrieve NEXT_PUBLIC_BASE_URL
    Env-->>HP: Return BASE_URL
    HP->>Button: Set href (using BASE_URL)
    HP->>TextLink: Set href (using BASE_URL)
    HP->>SubscribeButton: Set href (absolute URL)
    U->>Button: Click to join Slack
    Button-->>U: Redirect to external URL
Loading

Possibly related PRs

Suggested labels

ready-to-merge

Suggested reviewers

  • derberg
  • magicmatatjahu
  • devilkiller-ag
  • akshatnema
  • sambhavgupta0705
  • anshgoyalevil
  • Mayaleeeee
  • asyncapi-bot-eve

Poem

I'm a rabbit in the code, hopping with delight,
BASE_URL guiding links with radiant light.
CSS shifts smooth the scene so true,
As imports simplify—oh, what a view!
With each change, I skip in joyful beat,
Celebrating clean code on this merry tweet!
🐰🥕


🪧 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.
  • @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

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@netlify
Copy link

netlify bot commented Mar 6, 2025

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 852789d
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/67cb5311f1cbd6000845c9c6
😎 Deploy Preview https://deploy-preview-3823--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
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: 3

🧹 Nitpick comments (1)
pages/[lang]/index.tsx (1)

104-128: Consider using environment variables for base URLs

While updating to absolute URLs works, hardcoding full URLs can make the code less maintainable when deploying to different environments (development, staging, production).

Consider using environment variables or a configuration file for the base URL:

// Add to a config file or environment setup
+ const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL || 'https://www.asyncapi.com';

// Then use in components
- href='https://www.asyncapi.com/slack-invite'
+ href={`${BASE_URL}/slack-invite`}

- href='https://www.asyncapi.com/community/meetings'
+ href={`${BASE_URL}/community/meetings`}

This approach allows for easier maintenance and flexibility across different environments.

🧰 Tools
🪛 ESLint

[error] 104-104: Replace ·className='w-full·md:w-auto'·text={t('community.slackCTABtn')}·href='https://www.asyncapi.com/slack-invite' with ⏎······················className='w-full·md:w-auto'⏎······················text={t('community.slackCTABtn')}⏎······················href='https://www.asyncapi.com/slack-invite'⏎···················

(prettier/prettier)


[error] 121-121: Replace {t('community.meetingLink')} with ⏎························{t('community.meetingLink')}⏎······················

(prettier/prettier)


[error] 128-128: Replace ·href='https://www.asyncapi.com/community/meetings'·className='mt-2·md:ml-2·md:mt-0' with ⏎··························href='https://www.asyncapi.com/community/meetings'⏎··························className='mt-2·md:ml-2·md:mt-0'⏎·······················

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 104-104: Prettier formatting check failed. Replace className='w-full md:w-auto' text={t('community.slackCTABtn')} href='https://www.asyncapi.com/slack-invite' with className='w-full md:w-auto' text={t('community.slackCTABtn')} href='https://www.asyncapi.com/slack-invite'.


[error] 121-121: Prettier formatting check failed. Replace {t('community.meetingLink')} with {t('community.meetingLink')}.


[error] 128-128: Prettier formatting check failed. Replace href='https://www.asyncapi.com/community/meetings' className='mt-2 md:ml-2 md:mt-0' with href='https://www.asyncapi.com/community/meetings' className='mt-2 md:ml-2 md:mt-0'.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d6a213a and fd64a7d.

📒 Files selected for processing (1)
  • pages/[lang]/index.tsx (2 hunks)
🧰 Additional context used
🪛 ESLint
pages/[lang]/index.tsx

[error] 104-104: Replace ·className='w-full·md:w-auto'·text={t('community.slackCTABtn')}·href='https://www.asyncapi.com/slack-invite' with ⏎······················className='w-full·md:w-auto'⏎······················text={t('community.slackCTABtn')}⏎······················href='https://www.asyncapi.com/slack-invite'⏎···················

(prettier/prettier)


[error] 121-121: Replace {t('community.meetingLink')} with ⏎························{t('community.meetingLink')}⏎······················

(prettier/prettier)


[error] 128-128: Replace ·href='https://www.asyncapi.com/community/meetings'·className='mt-2·md:ml-2·md:mt-0' with ⏎··························href='https://www.asyncapi.com/community/meetings'⏎··························className='mt-2·md:ml-2·md:mt-0'⏎·······················

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project
pages/[lang]/index.tsx

[error] 104-104: Prettier formatting check failed. Replace className='w-full md:w-auto' text={t('community.slackCTABtn')} href='https://www.asyncapi.com/slack-invite' with className='w-full md:w-auto' text={t('community.slackCTABtn')} href='https://www.asyncapi.com/slack-invite'.


[error] 121-121: Prettier formatting check failed. Replace {t('community.meetingLink')} with {t('community.meetingLink')}.


[error] 128-128: Prettier formatting check failed. Replace href='https://www.asyncapi.com/community/meetings' className='mt-2 md:ml-2 md:mt-0' with href='https://www.asyncapi.com/community/meetings' className='mt-2 md:ml-2 md:mt-0'.

⏰ Context from checks skipped due to timeout of 180000ms (4)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Lighthouse CI

Copy link
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: 0

🧹 Nitpick comments (1)
components/buttons/SlackButton.tsx (1)

9-9: Remove extra whitespace in interface declaration.

The updated interface declaration contains an extra space before the closing curly brace, which causes a Prettier formatting error. Please remove the extra space so that it adheres to the project's style guidelines.

-interface ISlackButtonProps extends IButtonDefaultProps { }
+interface ISlackButtonProps extends IButtonDefaultProps {}
🧰 Tools
🪛 ESLint

[error] 9-9: Delete ·

(prettier/prettier)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fd64a7d and 089a203.

📒 Files selected for processing (1)
  • components/buttons/SlackButton.tsx (1 hunks)
🧰 Additional context used
🪛 ESLint
components/buttons/SlackButton.tsx

[error] 9-9: Delete ·

(prettier/prettier)

⏰ Context from checks skipped due to timeout of 180000ms (1)
  • GitHub Check: Test NodeJS PR - macos-13

@dipishBisht dipishBisht changed the title Fix: Corrected href links of Join us and subscribe button #3803 fix: Corrected href links of Join us and subscribe button Mar 6, 2025
@dipishBisht dipishBisht changed the title fix: Corrected href links of Join us and subscribe button fix: corrected href links of Join us and subscribe button Mar 6, 2025
@codecov
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1840f32) to head (852789d).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #3823   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines          667       667           
  Branches       113       113           
=========================================
  Hits           667       667           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
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

♻️ Duplicate comments (1)
pages/[lang]/index.tsx (1)

127-129: ⚠️ Potential issue

Fixed community meetings link but formatting needs fixing.

The link update to use the BASE_URL constant is good, but there's a Prettier formatting issue that's causing the pipeline to fail.

Fix the formatting as suggested by Prettier:

-                      <TextLink href={`${BASE_URL}/community/meetings`}>
-                        {t('community.meetingLink')}
-                      </TextLink>
+                      <TextLink href={`${BASE_URL}/community/meetings`}>{t('community.meetingLink')}</TextLink>
🧰 Tools
🪛 ESLint

[error] 127-129: Replace ⏎························{t('community.meetingLink')}⏎······················ with {t('community.meetingLink')}

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 127-127: Prettier formatting check failed. Replace ⏎························{t('community.meetingLink')}⏎······················ with {t('community.meetingLink')}.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b537038 and 5668a6e.

📒 Files selected for processing (1)
  • pages/[lang]/index.tsx (3 hunks)
🧰 Additional context used
🪛 ESLint
pages/[lang]/index.tsx

[error] 127-129: Replace ⏎························{t('community.meetingLink')}⏎······················ with {t('community.meetingLink')}

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project
pages/[lang]/index.tsx

[error] 127-127: Prettier formatting check failed. Replace ⏎························{t('community.meetingLink')}⏎······················ with {t('community.meetingLink')}.

🔇 Additional comments (2)
pages/[lang]/index.tsx (2)

36-37: Good addition of a BASE_URL constant.

Using a configurable base URL with a fallback default is a good practice that centralizes URL configuration and provides flexibility across different environments.


106-110: Correctly updated Slack invite link.

You've appropriately updated the Slack invite link to use the BASE_URL constant, which ensures the link works consistently regardless of which page a user is on.

Comment on lines +136 to +139
<SubscribeButton
href='https://www.asyncapi.com/community/meetings'
className='mt-2 md:ml-2 md:mt-0'
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Use BASE_URL constant for consistency.

While you've correctly updated the SubscribeButton to use an absolute URL, you should use the BASE_URL constant for consistency with the other links you've updated.

-                        <SubscribeButton
-                          href='https://www.asyncapi.com/community/meetings'
-                          className='mt-2 md:ml-2 md:mt-0'
-                        />
+                        <SubscribeButton
+                          href={`${BASE_URL}/community/meetings`}
+                          className='mt-2 md:ml-2 md:mt-0'
+                        />
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<SubscribeButton
href='https://www.asyncapi.com/community/meetings'
className='mt-2 md:ml-2 md:mt-0'
/>
<SubscribeButton
href={`${BASE_URL}/community/meetings`}
className='mt-2 md:ml-2 md:mt-0'
/>

Copy link
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: 0

🧹 Nitpick comments (1)
.github/workflows/lighthouse-ci.yml (1)

57-57: Artifact Name Parameter Addition: Verify Consistency and Future Configurability.

The addition of the artifactName: "lighthouse_results" parameter in the Lighthouse Audit step clearly enhances the artifact upload process by explicitly naming the output. Please verify that this naming convention is consistent with the rest of the repository’s CI artifact naming, and consider whether this value should be parameterized or derived from an environment variable for greater flexibility in the future.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 68ccd02 and 66c9e60.

📒 Files selected for processing (1)
  • .github/workflows/lighthouse-ci.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 180000ms (3)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website

@dipishBisht
Copy link
Author

@CodeRabbit-ai can you fix the Lighthouse CI workflow issue?

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 7, 2025

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

@dipishBisht I'll help you fix the Lighthouse CI workflow issue. Let me first examine the current workflow configuration to understand what might be causing the problem.


🏁 Script executed:

#!/bin/bash
# Get the content of the Lighthouse CI workflow file
cat .github/workflows/lighthouse-ci.yml

Length of output: 4760


@dipishBisht Let me examine the Lighthouse configuration file and check recent workflow runs to better understand the issue.


🏁 Script executed:

#!/bin/bash
# Get the Lighthouse CI configuration file
cat .github/workflows/lighthouserc.json

# Check if there are any recent workflow runs with errors
gh run list --workflow "Lighthouse CI" --limit 5 --json status,conclusion,displayTitle,createdAt,url

Length of output: 1817


@dipishBisht I can see all the recent Lighthouse CI runs for your PR have failed. Let me check the logs from the most recent run to find out exactly what's causing the issue.


🏁 Script executed:

#!/bin/bash
# Get the details of the last failed run
gh run view 13727651995 --log

# In case the above doesn't provide enough details, let's check if we can get more specific logs
# Looking for artifacts or logs in the workflow run
gh run view 13727651995 --log-failed

Length of output: 65790


@dipishBisht I've identified the issue with the Lighthouse CI workflow. Based on the logs, the workflow is failing at the artifact upload stage with the error:

Create Artifact Container failed: The artifact name lighthouse-results is not valid.

The problem is in the artifactName parameter that was added to the Lighthouse CI action. There's a mismatch between the name specified in the workflow file and what the action is trying to use. Let me get more details on the exact changes so I can suggest a fix.


🏁 Script executed:

#!/bin/bash
# Check the PR diff to see exactly what changed with the artifactName parameter
git show

# Also check for other PRs or issues related to this problem
gh pr view 3823

Length of output: 69595


@dipishBisht I've identified the issue with the Lighthouse CI workflow. The error occurs during artifact upload:

Create Artifact Container failed: The artifact name lighthouse-results is not valid.

There's an inconsistency in the artifact name in the Lighthouse CI workflow. The workflow specifies artifactName: "lighthouse_results" (with an underscore), but the system seems to be using lighthouse-results (with a hyphen) elsewhere. Let me check the specific changes in your PR to provide a fix.


🏁 Script executed:

#!/bin/bash
# Check the specific changes to the lighthouse-ci.yml file in PR #3823
gh pr view 3823 --json files -q '.files[] | select(.path==".github/workflows/lighthouse-ci.yml") | .patch'

# Check the current version of the lighthouse-ci-action
gh pr view 3823 --json commits -q '.commits | map(.message) | join("\n")'

Length of output: 194


@dipishBisht The Lighthouse CI workflow is failing because of an issue with the artifactName parameter. Looking at the error, it shows:

Create Artifact Container failed: The artifact name lighthouse-results is not valid

This typically happens when there's an incompatibility between the artifact name format specified in the workflow and what's expected by the GitHub Actions runner. Let me check the exact files that were changed in your PR to provide a proper fix.


🏁 Script executed:

#!/bin/bash
# Let's see what changes were made in this PR
gh pr view 3823 --json number,title,body,changedFiles

# Let's check for the changed files details
gh pr view 3823 --json files -q '.files[].path'

# Let's pull the current version of the lighthouse-ci.yml file
cat .github/workflows/lighthouse-ci.yml

Length of output: 5705


@dipishBisht I've identified the issue with the Lighthouse CI workflow. The problem is with the artifactName parameter in the workflow file.

The error message shows:

Create Artifact Container failed: The artifact name lighthouse-results is not valid

To fix this, I recommend removing the artifactName parameter completely from the Lighthouse Audit step in your .github/workflows/lighthouse-ci.yml file. This will allow the action to use its default artifact naming, which should work correctly with GitHub Actions.

Here's the specific change needed:

      - if: steps.should_run.outputs.shouldrun == 'true'
        name: Lighthouse Audit
        id: lighthouse_audit
        uses: treosh/lighthouse-ci-action@03becbfc543944dd6e7534f7ff768abb8a296826 #version 10.1 https://github.com/treosh/lighthouse-ci-action/releases/tag/10.1.0
        with:
          urls: |
            https://deploy-preview-$PR_NUMBER--asyncapi-website.netlify.app/
          configPath: ./.github/workflows/lighthouserc.json
          uploadArtifacts: true
-         artifactName: "lighthouse_results"
          temporaryPublicStorage: true
        env:
          PR_NUMBER: ${{ github.event.pull_request.number}}

This should resolve the workflow failure. Would you like me to help you make this change to your PR?


🏁 Script executed:

#!/bin/bash
# Create a branch for our fix
git checkout -b fix-lighthouse-workflow
# Update the lighthouse-ci.yml file to fix the artifact name issue
cat > .github/workflows/lighthouse-ci.yml << 'EOF'
name: Lighthouse CI

on:
  pull_request_target:
    branches:
      - master
    types: [opened, reopened, synchronize, ready_for_review]

jobs:
  lighthouse-ci:
    name: Lighthouse CI
    runs-on: ubuntu-latest

    steps:
      - if: >
          !github.event.pull_request.draft && !(
            (github.actor == 'asyncapi-bot' && (
              startsWith(github.event.pull_request.title, 'ci: update global workflows') || 
              startsWith(github.event.pull_request.title, 'chore: update code of conduct') || 
              startsWith(github.event.pull_request.title, 'ci: update global contribution guide') || 
              startsWith(github.event.pull_request.title, 'ci: update workflows for go projects') || 
              startsWith(github.event.pull_request.title, 'ci: update workflows for nodejs projects') || 
              startsWith(github.event.pull_request.title, 'ci: update release-related workflows for nodejs projects') || 
              startsWith(github.event.pull_request.title, 'ci: update semantic release config file') || 
              startsWith(github.event.pull_request.title, 'ci: update generic workflows') || 
              startsWith(github.event.pull_request.title, 'ci: update workflows for docker-based projects') ||
              startsWith(github.event.pull_request.title, 'chore(release):')
            )) ||
            (github.actor == 'allcontributors[bot]' && 
              startsWith(github.event.pull_request.title, 'docs: add')
            )
          )
        id: should_run
        name: Should Run
        run: echo "shouldrun=true" >> $GITHUB_OUTPUT
        
      - if: steps.should_run.outputs.shouldrun == 'true'
        uses: actions/checkout@v3

      - if: steps.should_run.outputs.shouldrun == 'true'
        name: Await Netlify Preview
        uses: jakepartusch/wait-for-netlify-action@f1e137043864b9ab9034ae3a5adc1c108e3f1a48 #version 1.4 https://github.com/JakePartusch/wait-for-netlify-action/releases/tag/v1.4
        id: netlify
        with:
          site_name: asyncapi-website
          max_timeout: 600

      - if: steps.should_run.outputs.shouldrun == 'true'
        name: Lighthouse Audit
        id: lighthouse_audit
        uses: treosh/lighthouse-ci-action@03becbfc543944dd6e7534f7ff768abb8a296826 #version 10.1 https://github.com/treosh/lighthouse-ci-action/releases/tag/10.1.0
        with:
          urls: |
            https://deploy-preview-$PR_NUMBER--asyncapi-website.netlify.app/
          configPath: ./.github/workflows/lighthouserc.json
          uploadArtifacts: true
          temporaryPublicStorage: true
        env:
          PR_NUMBER: ${{ github.event.pull_request.number}}

      - if: steps.should_run.outputs.shouldrun == 'true'
        name: Lighthouse Score Report
        id: lighthouse_score_report
        uses: actions/github-script@v6
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          script: |
            const result = ${{ steps.lighthouse_audit.outputs.manifest }}[0].summary
            const links = ${{ steps.lighthouse_audit.outputs.links }}
            const formatResult = (res) => Math.round((res * 100))
            Object.keys(result).forEach(key => result[key] = formatResult(result[key]))
            const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟠' : '🔴'
            const comment = [
                `⚡️ [Lighthouse report](${Object.values(links)[0]}) for the changes in this PR:`,
                '| Category | Score |',
                '| --- | --- |',
                `| ${score(result.performance)} Performance | ${result.performance} |`,
                `| ${score(result.accessibility)} Accessibility | ${result.accessibility} |`,
                `| ${score(result['best-practices'])} Best practices | ${result['best-practices']} |`,
                `| ${score(result.seo)} SEO | ${result.seo} |`,
                `| ${score(result.pwa)} PWA | ${result.pwa} |`,
                ' ',
                `*Lighthouse ran on [${Object.keys(links)[0]}](${Object.keys(links)[0]})*`
            ].join('\n')
             core.setOutput("comment", comment);

      - if: steps.should_run.outputs.shouldrun == 'true'
        name: LightHouse Statistic Comment
        id: lighthouse_statistic_comment
        uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd # version 2.8 https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.8.0
        with:
          GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
          number: ${{ github.event.pull_request.number }}
          header: lighthouse
          message: ${{ steps.lighthouse_score_report.outputs.comment }}
EOF

# Show diff of our changes
git diff .github/workflows/lighthouse-ci.yml

Length of output: 703


@dipishBisht Yes, that's the correct fix! The diff shows we need to remove the artifactName: "lighthouse_results" line from the workflow file.

Here are the steps to update your PR:

  1. Edit the .github/workflows/lighthouse-ci.yml file in your PR
  2. Remove the line: artifactName: "lighthouse_results"
  3. Commit the change to your PR

This will resolve the Lighthouse CI workflow issue by letting the action use its default artifact naming convention, which is compatible with GitHub Actions.

The error was happening because there might be a format constraint on artifact names in GitHub Actions, and simply removing the parameter allows the system to use its default naming, which is known to work correctly.

Would you like me to help with anything else?

Copy link
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: 0

🔭 Outside diff range comments (1)
markdown/docs/community/onboarding-guide/docs-community.md (1)

23-28: ⚠️ Potential issue

Table Formatting Issue:
The table is structured correctly; however, the stray text “28” at the end seems out of place and might break the intended markdown rendering. Please verify if this line is accidental and consider removing it.

🧹 Nitpick comments (1)
markdown/docs/community/onboarding-guide/docs-community.md (1)

6-7: Grammar Refinement Suggestion:
The phrase “docs contributors” may be unclear. Consider revising it to “documentation contributors” for improved clarity and grammatical correctness.

🧰 Tools
🪛 LanguageTool

[grammar] ~6-~6: Nouns are not usually modified by plural nouns. Is it possible that you meant to use the singular or possessive form here?
Context: ... meetings via Zoom, a regular space for docs contributors to meet and help each othe...

(PLURAL_MODIFIER)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 66c9e60 and 6572a45.

⛔ Files ignored due to path filters (26)
  • public/img/illustrations/icons/doc-sync.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/help.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/laptop-cloud.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/laptop-globe.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/maternity.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/mobile-feed.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/mouse-globe.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/open-source.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/plug-cloud.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/robotic.svg is excluded by !**/*.svg
  • public/img/illustrations/icons/tools.svg is excluded by !**/*.svg
  • public/img/illustrations/worker.svg is excluded by !**/*.svg
  • public/img/loaders/audio.svg is excluded by !**/*.svg
  • public/img/loaders/ball-triangle.svg is excluded by !**/*.svg
  • public/img/loaders/bars.svg is excluded by !**/*.svg
  • public/img/loaders/circles.svg is excluded by !**/*.svg
  • public/img/loaders/grid.svg is excluded by !**/*.svg
  • public/img/loaders/hearts.svg is excluded by !**/*.svg
  • public/img/loaders/oval.svg is excluded by !**/*.svg
  • public/img/loaders/puff.svg is excluded by !**/*.svg
  • public/img/loaders/rings.svg is excluded by !**/*.svg
  • public/img/loaders/spinning-circles.svg is excluded by !**/*.svg
  • public/img/loaders/tail-spin.svg is excluded by !**/*.svg
  • public/img/loaders/three-dots.svg is excluded by !**/*.svg
  • public/img/logos/asyncapi-horizontal-color.svg is excluded by !**/*.svg
  • public/img/posts/bounty-program/photo-from-starship-cockpit.jpeg is excluded by !**/*.jpeg
📒 Files selected for processing (3)
  • config/meetings.json (0 hunks)
  • markdown/docs/community/onboarding-guide/docs-community.md (1 hunks)
  • mlc_config.json (1 hunks)
💤 Files with no reviewable changes (1)
  • config/meetings.json
✅ Files skipped from review due to trivial changes (1)
  • mlc_config.json
🧰 Additional context used
🪛 LanguageTool
markdown/docs/community/onboarding-guide/docs-community.md

[grammar] ~6-~6: Nouns are not usually modified by plural nouns. Is it possible that you meant to use the singular or possessive form here?
Context: ... meetings via Zoom, a regular space for docs contributors to meet and help each othe...

(PLURAL_MODIFIER)

🔇 Additional comments (5)
markdown/docs/community/onboarding-guide/docs-community.md (5)

1-4: Header Front Matter Formatting:
The front matter is properly delineated with --- markers and correctly sets the title and weight metadata.


8-10: Link Verification in List Items:
The links provided (e.g., to the AsyncAPI events page, YouTube channel, and meeting scheduling instructions) appear to be correct and formatted well.


12-14: Community Discussions Section:
The “Docs and education community discussions” section, including its link, is clearly presented and accurate.


15-19: Slack Workspace Links:
The section that invites users to join the AsyncAPI documentation Slack channel includes a valid href and clear instructions. The list item for #13_docs is also well formatted.


20-22: Roadmap Section Consistency:
The “AsyncAPI documentation roadmap 2024” section uses consistent formatting and the provided link to Docs’ Community discussions appears to be correct.

@dipishBisht dipishBisht closed this Mar 7, 2025
@dipishBisht dipishBisht reopened this Mar 7, 2025
@dipishBisht dipishBisht closed this Mar 8, 2025
@dipishBisht dipishBisht deleted the fx/home-community branch March 8, 2025 08:04
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.

1 participant