Skip to content

fix: GitHub references from old Front-End-Coders-Mauritius to frontendmu #249

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

Merged
merged 5 commits into from
Nov 9, 2024

Conversation

cbillowes
Copy link
Contributor

@cbillowes cbillowes commented Oct 28, 2024

There are numerous references to https://github.com/Front-End-Coders-Mauritius on the website. This PR proposes an update to all references on the website.

An additional sweep is required to updated Gists and other references I am not familiar with.

image

Summary by CodeRabbit

Release Notes

  • New Features

    • Updated GitHub links across various components to point to the new repository URL.
  • Bug Fixes

    • Corrected GitHub links in the navigation and social presence components to ensure proper redirection.
  • Chores

    • Minor adjustments to commented-out code for clarity and accuracy.

Copy link
Contributor

coderabbitai bot commented Oct 28, 2024

Walkthrough

The changes primarily involve updates to various components and configuration files to modify GitHub repository URLs. The cliff.toml file's postprocessor section was updated to reflect a new repository URL. Similarly, multiple .astro and .vue components were adjusted to change GitHub links, ensuring consistency across the application. These modifications do not alter the overall functionality or structure of the components but focus solely on updating the link destinations for GitHub.

Changes

File Path Change Summary
cliff.toml Updated repository URL in postprocessors from https://github.com/Front-End-Coders-Mauritius/frontend.mu to https://github.com/frontendmu/frontend.mu.
packages/frontendmu-astro/src/components/HomeSocialPresence.astro Updated href for GitHub in SocialCard from https://github.com/Front-End-Coders-Mauritius to https://github.com/frontendmu.
packages/frontendmu-astro/src/components/MainMenu.astro Updated href for GitHub in links.github from https://github.com/Front-End-Coders-Mauritius to https://github.com/frontendmu.
packages/frontendmu-astro/src/components/MegaMenu.astro Updated two GitHub href properties in links from https://github.com/Front-End-Coders-Mauritius to https://github.com/frontendmu.
packages/frontendmu-astro/src/components/TeamComponent.astro Updated contributor GitHub commit URL from https://github.com/Front-End-Coders-Mauritius/frontendmu-astro/commits?author=${person.username} to https://github.com/frontendmu/frontend.mu/commits?author=${person.username}.
packages/frontendmu-nuxt/components/home/SocialPresence.vue Updated href for GitHub in HomeSocialCard from https://github.com/Front-End-Coders-Mauritius to https://github.com/frontendmu.
packages/frontendmu-nuxt/components/site/Menu.vue Updated href for GitHub in links from https://github.com/Front-End-Coders-Mauritius?ref=frontend.mu to https://github.com/frontendmu?ref=frontend.mu. Also corrected a commented-out href with an extra 'h'.
packages/frontendmu-nuxt/pages/team.vue Updated contributor GitHub commit URL from https://github.com/Front-End-Coders-Mauritius/frontendmu-astro/commits?author=${person.username} to https://github.com/frontendmu/frontend.mu/commits/?author=${person.username}.

Poem

🐰 In the meadow where links do play,
A hop, a skip, a change today.
GitHub's path now leads us right,
To frontendmu, a joyful sight!
With every click, our hearts will cheer,
For new connections, far and near! 🌼


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between eef2501 and d7ff330.

📒 Files selected for processing (1)
  • packages/frontendmu-nuxt/components/site/Menu.vue (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/frontendmu-nuxt/components/site/Menu.vue

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 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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

@@ -197,7 +197,7 @@ onMounted(toggleHeader);
</nav>
<div>
<div class="flex items-center gap-2">
<!-- <a target="_blank" href="https://github.com/Front-End-Coders-Mauritius">
<!-- <a target="_blank" href="hhttps://github.com/frontendmu/frontend.mu/">
Copy link
Contributor

Choose a reason for hiding this comment

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

extra h in https

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I've updated it.

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

🧹 Outside diff range and nitpick comments (3)
packages/frontendmu-astro/src/components/HomeSocialPresence.astro (1)

31-31: Consider updating the description text.

The description "The home of FEC projects" still uses the old "FEC" abbreviation. Consider updating it to align with the new branding, for example: "The home of Frontend Mauritius projects".

-      <p slot="description">The home of FEC projects</p>
+      <p slot="description">The home of Frontend Mauritius projects</p>
packages/frontendmu-nuxt/components/site/Menu.vue (1)

Line range hint 200-204: Fix typo in commented GitHub URL.

There's a typo in the commented GitHub URL - it contains a double 'h' in "hhttps://".

Apply this fix:

-            <!-- <a target="_blank" href="hhttps://github.com/frontendmu/frontend.mu/">
+            <!-- <a target="_blank" href="https://github.com/frontendmu/frontend.mu/">

Consider also adding the ?ref=frontend.mu parameter for consistency with other GitHub links in the codebase.

packages/frontendmu-astro/src/components/TeamComponent.astro (1)

Line range hint 31-31: Fix duplicate HTML IDs.

Both unordered lists use the same ID "team". HTML IDs must be unique within the document.

Apply this diff to fix the duplicate IDs:

-    <ul
-      id="team"
+    <ul
+      id="people"
       role="list"
       class="mx-auto grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-4 md:gap-x-6 lg:gap-x-8"
     >

     <!-- ... -->

-    <ul
-      id="team"
+    <ul
+      id="speakers"
       role="list"
       class="mx-auto grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-5 md:gap-x-6 lg:gap-x-8"
     >

Also applies to: 108-108

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 9ca17ea and eef2501.

📒 Files selected for processing (8)
  • cliff.toml (1 hunks)
  • packages/frontendmu-astro/src/components/HomeSocialPresence.astro (1 hunks)
  • packages/frontendmu-astro/src/components/MainMenu.astro (1 hunks)
  • packages/frontendmu-astro/src/components/MegaMenu.astro (2 hunks)
  • packages/frontendmu-astro/src/components/TeamComponent.astro (1 hunks)
  • packages/frontendmu-nuxt/components/home/SocialPresence.vue (1 hunks)
  • packages/frontendmu-nuxt/components/site/Menu.vue (2 hunks)
  • packages/frontendmu-nuxt/pages/team.vue (1 hunks)
🔇 Additional comments (9)
packages/frontendmu-astro/src/components/HomeSocialPresence.astro (1)

28-28: LGTM! GitHub URL updated correctly.

The URL change aligns with the PR objective of updating references from Front-End-Coders-Mauritius to frontendmu.

packages/frontendmu-nuxt/components/home/SocialPresence.vue (2)

25-25: LGTM! Verify the new GitHub organization URL.

The URL update aligns with the PR objectives to change references from Front-End-Coders-Mauritius to frontendmu.

Let's verify the new GitHub organization exists and is accessible:

✅ Verification successful

GitHub organization URL change verified successfully

The new GitHub organization URL (https://github.com/frontendmu) is accessible and valid, confirming the URL update in the component is correct.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the new GitHub organization exists and is accessible
# Expected: Should return HTTP 200 if the organization exists

curl -s -o /dev/null -w "%{http_code}" https://github.com/frontendmu

Length of output: 74


25-25: Check for broken relative links within the organization.

Since the GitHub organization URL has changed, ensure that any relative links (e.g., to specific repositories, issues, or documentation) within the organization are still valid.

Let's search for any other GitHub-related links that might need updates:

cliff.toml (1)

Line range hint 1-89: Verify changelog generation still works as expected.

The URL change affects how links are generated in the changelog for version comparisons, commits, and issues. While the change is straightforward, it's important to ensure the changelog generation still functions correctly.

Let's verify the changelog format by checking recent releases:

#!/bin/bash
# Description: Check recent CHANGELOG.md entries to ensure proper link generation
# Expected: Links should use the new 'frontendmu' URL format

if [ -f CHANGELOG.md ]; then
    echo "=== Checking recent changelog entries ==="
    head -n 20 CHANGELOG.md
else
    echo "CHANGELOG.md not found"
fi
packages/frontendmu-nuxt/pages/team.vue (2)

96-96: LGTM! GitHub repository reference updated correctly.

The URL has been properly updated to use the new repository name frontendmu/frontend.mu.


96-96: Verify other GitHub URL references in the codebase.

Let's ensure all GitHub repository references have been updated consistently.

✅ Verification successful

GitHub repository references have been updated consistently

The search results confirm that all GitHub repository references in the codebase are using the new organization name "frontendmu" consistently. The only references to GitHub URLs are:

  • Profile images using github.com/{username}.png
  • Repository links using github.com/frontendmu
  • Commit history links using github.com/frontendmu/frontend.mu/commits
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for any remaining references to the old repository name
echo "Searching for old repository references..."
rg -i "Front-End-Coders-Mauritius" --type-not git

# Check the implementation of getGithubUrl helper
echo -e "\nChecking getGithubUrl implementation..."
fd -e ts -e js "helpers" --exec rg -l "getGithubUrl"

Length of output: 362


Script:

#!/bin/bash
# Let's check the content of helpers.ts and search for GitHub URLs in the codebase
echo "Content of helpers.ts:"
cat ./packages/frontendmu-nuxt/utils/helpers.ts

echo -e "\nSearching for GitHub URLs in the codebase:"
rg -i "github.com/[^/\"']+" --type-not git

echo -e "\nSearching specifically for frontendmu references:"
rg -i "github.com/frontendmu" --type-not git

Length of output: 4752


Script:

#!/bin/bash
# Let's try a different approach to search for GitHub URLs
echo "Searching for GitHub URLs in all files:"
rg -i "github\.com" --type html --type typescript --type javascript --type vue

echo -e "\nSearching for repository references:"
rg -i "frontend\.mu/|frontendmu/" --type html --type typescript --type javascript --type vue

Length of output: 423


Script:

#!/bin/bash
# Search for GitHub URLs without specifying file types
echo "Searching for GitHub URLs in all files:"
rg -i "github\.com"

echo -e "\nSearching for specific GitHub repository references:"
rg -i "frontend\.mu/commits|frontendmu/frontend\.mu/commits"

Length of output: 275316

packages/frontendmu-nuxt/components/site/Menu.vue (1)

70-70: LGTM! GitHub organization link updated correctly.

The GitHub organization URL has been properly updated to reflect the new repository structure while maintaining the referral parameter.

packages/frontendmu-astro/src/components/TeamComponent.astro (1)

156-156: LGTM! URL update aligns with repository migration.

The GitHub URL has been correctly updated to reflect the new repository structure.

Let's verify if there are any other GitHub references that need updating:

✅ Verification successful

GitHub URL update verified, no remaining references to old repository

The verification confirms:

  • No instances of "front-end-coders-mauritius" remain in the TeamComponent
  • Only one GitHub URL exists, which correctly uses the new "frontendmu" organization
  • The getGithubUrl utility only handles avatar URLs and doesn't contain repository-specific paths
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for any remaining old GitHub references
rg -i "front-end-coders-mauritius" --type astro

# Check the getGithubUrl utility implementation
ast-grep --pattern 'function getGithubUrl($_) {
  $$$
}'

Length of output: 641


Script:

#!/bin/bash
# Search for any remaining old GitHub references with correct file type
rg -i "front-end-coders-mauritius" packages/frontendmu-astro/src/components/TeamComponent.astro

# Check for all GitHub URLs in the TeamComponent
rg -i "github.com" packages/frontendmu-astro/src/components/TeamComponent.astro

Length of output: 276

packages/frontendmu-astro/src/components/MegaMenu.astro (1)

52-52: LGTM! GitHub URL updated correctly.

The GitHub URL has been properly updated to the new organization name while maintaining the ref parameter.

@@ -26,7 +26,7 @@ const links = {
},
github: {
title: "Github",
href: "https://github.com/Front-End-Coders-Mauritius",
href: "https://github.com/frontendmu",
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Update required: Old organization references found in active code

Several files still reference the old GitHub organization and need to be updated:

  • Update scripts to use new organization name:

    • packages/frontendmu-data/scripts/update-contributors.js
    • packages/frontendmu-astro/automation/update-contributors.js
  • Update photo album source URLs:

    • packages/frontendmu-data/scripts/directus-dump.js
    • packages/frontendmu-nuxt/app.config.ts
    • packages/frontendmu-astro/scripts/directus-dump.js
    • packages/frontendmu-astro/src/config.ts
    • packages/frontendmu-astro/src/components/Meetup.vue

The google-photos-sync repository needs to be migrated to the new organization to maintain functionality.

🔗 Analysis chain

LGTM! Verify URL consistency across codebase.

The GitHub URL update aligns with the PR objectives. The link functionality and external link handling remain intact.

Let's verify the consistency of the new GitHub URL across the codebase:


Based on the search results, I can see that there are still some references to the old GitHub organization "Front-End-Coders-Mauritius" in several files, particularly in:

  1. config.ts and Meetup.vue files referencing "google-photos-sync" repository
  2. meetups-raw.json containing historical data with image URLs

Let me verify if these are the only remaining references and if they are part of active code or just historical data.


Let me modify the search to avoid file type restrictions since the file types are not recognized.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining references to the old GitHub organization
# and ensure consistency of the new URL format

echo "Checking for old GitHub organization references..."
rg -i "Front-End-Coders-Mauritius"

echo -e "\nVerifying consistency of new GitHub URL format..."
rg -i "github.com/frontendmu"

Length of output: 503580


Script:

#!/bin/bash
# Check if the old references are in active code paths or just data files
echo "Checking config files and components..."
rg -i "Front-End-Coders-Mauritius" --type ts --type vue

echo -e "\nChecking if the new URL format is consistently used in active code..."
rg -i "github\.com/[^/]*frontendmu" --type ts --type vue --type astro

Length of output: 427


Script:

#!/bin/bash
# Check active code paths for old and new GitHub URLs
echo "Checking for old organization references in code files..."
rg -i "Front-End-Coders-Mauritius" -g "*.{ts,js,vue,astro}"

echo -e "\nChecking new URL format usage in code files..."
rg -i "github\.com/[^/]*frontendmu" -g "*.{ts,js,vue,astro}"

Length of output: 2439

cliff.toml Outdated
@@ -43,7 +43,7 @@ body = """
trim = true
# postprocessors
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/Front-End-Coders-Mauritius/frontend.mu" }, # replace repository URL
{ pattern = '<REPO>', replace = "https://github.com/frontendmu/frontend.mu" }, # replace repository URL
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

URL update needs attention - old URL still in use

The URL change in the postprocessors section is correct, but there's an inconsistency in the configuration. The old organization URL is still being used in the commit_preprocessors section where <REPO> is used for issue links. This needs to be updated for consistency.

  • Line 46: ✅ { pattern = '<REPO>', replace = "https://github.com/frontendmu/frontend.mu" }
  • Line 63: ❌ Still using <REPO> placeholder which gets replaced with the old URL pattern
🔗 Analysis chain

LGTM! URL update aligns with organization changes.

The repository URL update from 'Front-End-Coders-Mauritius' to 'frontendmu' is consistent with the PR objectives.

Let's verify no other instances of the old URL exist in the file:


Let me verify the changelog configuration file itself to ensure we have a complete picture:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining instances of the old organization name
# Expected: No matches should be found

rg -i "Front-End-Coders-Mauritius" cliff.toml

Length of output: 1200


Script:

#!/bin/bash
# Check the content of cliff.toml to see all URL patterns and replacements
cat cliff.toml

Length of output: 3336

@@ -75,7 +75,7 @@ const links: TMenu = {
},
github: {
title: "Github",
href: "https://github.com/Front-End-Coders-Mauritius",
href: "https://github.com/frontendmu",
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Let me analyze the search results to verify the GitHub URL update consistency:

GitHub URL references need to be updated in several files

The following locations still contain references to the old organization name:

  • packages/frontendmu-data/scripts/update-contributors.js: Contains old organization name in variable
  • packages/frontendmu-data/data/featured-issues.json: Contains multiple issue URLs with old organization
  • packages/frontendmu-data/scripts/directus-dump.js: Contains old organization name in photo album source
  • CHANGELOG.md: Contains multiple commit URLs with old organization name

The new organization name "frontendmu" is correctly used in:

  • Menu components
  • Social presence components
  • Team components
  • Configuration files
🔗 Analysis chain

LGTM! GitHub URL updated correctly.

The GitHub URL has been properly updated to the new organization name.

Let's verify the consistency of GitHub URL updates across the codebase:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining references to the old GitHub organization
# Test: Search for any remaining instances of the old organization name
echo "Checking for remaining old GitHub references..."
rg -i "Front-End-Coders-Mauritius"

# Test: Verify the new organization name is used consistently
echo -e "\nVerifying new GitHub references..."
rg -i "github.com/frontendmu"

Length of output: 503544

@MrSunshyne
Copy link
Member

most of the team was away last week :P thanks for much for the PR @cbillowes

@MrSunshyne MrSunshyne merged commit d123e46 into frontendmu:main Nov 9, 2024
2 checks passed
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.

3 participants