From 84c50bf25d6481109d37c8db5412bfcc043d353f Mon Sep 17 00:00:00 2001 From: Gigin George Date: Fri, 23 Aug 2024 06:53:47 -0700 Subject: [PATCH] Update org to ohcnetwork in all references (#509) --- .env | 10 +++++----- .../remind-and-post-eod-updates-to-slack.yaml | 4 ++-- .github/workflows/scraper.yaml | 4 ++-- README.md | 8 ++++---- next.config.js | 2 +- scripts/pullHistoricalGitHubActivities.js | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.env b/.env index 1888e15e..e9d773ba 100644 --- a/.env +++ b/.env @@ -3,11 +3,11 @@ NEXT_PUBLIC_ORG_NAME="ohc.network" NEXT_PUBLIC_ORG_INFO="Open Healthcare Network is a free and open-source disaster management system that is used by National Health Mission, Government of India and various state governments for reimaging digital war rooms. The solution that students got an opportunity to intern with has supported 3.34Lac patient management and 1.29 Lac ambulance shiftings and is approved by the United Nations as a Digital Public Good." NEXT_PUBLIC_ORG_LOGO="/logo.png" NEXT_PUBLIC_ORG_URL= "https://ohc.network/" -NEXT_PUBLIC_GITHUB_ORG="coronasafe" +NEXT_PUBLIC_GITHUB_ORG="ohcnetwork" NEXT_PUBLIC_SLACK_URL="https://slack.ohc.network" NEXT_PUBLIC_ORG_START_DATE="2020-03-08" NEXT_PUBLIC_TIMEZONE="Asia/Kolkata" -NEXT_PUBLIC_GITHUB_URL="https://github.com/coronasafe" +NEXT_PUBLIC_GITHUB_URL="https://github.com/ohcnetwork" NEXT_PUBLIC_LINKEDIN_URL="https://www.linkedin.com/company/ohcn/" NEXT_PUBLIC_YOUTUBE_URL="https://www.youtube.com/@ohc.network" NEXT_PUBLIC_CONTACT_EMAIL="info@ohc.network" @@ -24,9 +24,9 @@ NEXT_PUBLIC_CONTRIBUTORS_INFO="" NEXT_PUBLIC_LEADERBOARD_DEFAULT_ROLES="core,intern,contributor" ## -- Data Source -- ## -DATA_SOURCE="https://github.com/coronasafe/leaderboard-data.git" -NEXT_PUBLIC_DATA_SOURCE="https://github.com/coronasafe/leaderboard-data.git" -NEXT_PUBLIC_FLAT_REPO_EXPLORER_URL="https://flatgithub.com/coronasafe/leaderboard-data" +DATA_SOURCE="https://github.com/ohcnetwork/leaderboard-data.git" +NEXT_PUBLIC_DATA_SOURCE="https://github.com/ohcnetwork/leaderboard-data.git" +NEXT_PUBLIC_FLAT_REPO_EXPLORER_URL="https://flatgithub.com/ohcnetwork/leaderboard-data" ## -- Slack -- ## # SLACK_EOD_BOT_TOKEN= diff --git a/.github/workflows/remind-and-post-eod-updates-to-slack.yaml b/.github/workflows/remind-and-post-eod-updates-to-slack.yaml index a435597c..85044dc1 100644 --- a/.github/workflows/remind-and-post-eod-updates-to-slack.yaml +++ b/.github/workflows/remind-and-post-eod-updates-to-slack.yaml @@ -34,11 +34,11 @@ jobs: SLACK_EOD_BOT_TOKEN: ${{ secrets.SLACK_EOD_BOT_TOKEN }} CONTRIBUTORS_DIR: "../../contributors" steps: - - uses: actions/checkout@v4 # This pulls the caller workflow's repo (eg: coronasafe/leaderboard-data) + - uses: actions/checkout@v4 # This pulls the caller workflow's repo (eg: ohcnetwork/leaderboard-data) - uses: actions/checkout@v4 with: - repository: coronasafe/leaderboard + repository: ohcnetwork/leaderboard path: ./leaderboard sparse-checkout: activities-bot diff --git a/.github/workflows/scraper.yaml b/.github/workflows/scraper.yaml index 899b10ea..2a334939 100644 --- a/.github/workflows/scraper.yaml +++ b/.github/workflows/scraper.yaml @@ -20,12 +20,12 @@ jobs: name: Scrape data from GitHub and Slack runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 # This pulls the caller workflow's repo (eg: coronasafe/leaderboard-data) + - uses: actions/checkout@v4 # This pulls the caller workflow's repo (eg: ohcnetwork/leaderboard-data) with: token: ${{ secrets.GIT_ACCESS_TOKEN }} - uses: actions/checkout@v4 with: - repository: coronasafe/leaderboard + repository: ohcnetwork/leaderboard path: ./leaderboard ref: ${{ inputs.leaderboard_ref }} sparse-checkout: | diff --git a/README.md b/README.md index b47617f2..751c9e9e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ A simple leaderboard app built with Next.js and Tailwind CSS to list the top contributors of a GitHub organization. -image +image ## Getting Started @@ -88,7 +88,7 @@ You will be able to see the user's profile page at `http://localhost:3000/contri 1. To add or remove a badge, edit the `config/GraduateAttributes.ts` file. 2. To Setup the repo for a new org, update - the [scraper config](https://github.com/coronasafe/leaderboard/blob/060d88f1caf2190792beffaa464a2a48bfa6f2db/.github/workflows/scraper.yaml#L40) and update the `DATA_SOURCE` variable in the `.env` file to match the repo containing your organization data. + the [scraper config](https://github.com/ohcnetwork/leaderboard/blob/060d88f1caf2190792beffaa464a2a48bfa6f2db/.github/workflows/scraper.yaml#L40) and update the `DATA_SOURCE` variable in the `.env` file to match the repo containing your organization data. 3. To change the colors, fonts, or plugins edit the `tailwind.config.js` file. @@ -101,9 +101,9 @@ You will be able to see the user's profile page at `http://localhost:3000/contri | **NEXT_PUBLIC_ORG_LOGO** | Will be displayed in the footer. | /logo.webp | No | | **NEXT_PUBLIC_META_TITLE** | Metadata title | Open Healthcare Network | No | | **NEXT_PUBLIC_META_IMG** | Metadata img | /logo.webp | No | -| **NEXT_PUBLIC_META_DESCRIPTION** | Metadata description | OHC Network Leaderboard tracks the weekly progress of all coronasafe contributors. | No | +| **NEXT_PUBLIC_META_DESCRIPTION** | Metadata description | ohc.network Leaderboard tracks the weekly progress of all ohc.network contributors. | No | | **NEXT_PUBLIC_META_URL** | Metadata url | https://leaderboard.ohc.network | No | | **NEXT_PUBLIC_PAGE_TITLE** | Will be displayed in page title. | OHC Network Contributors | No | | **NEXT_PUBLIC_CONTRIBUTORS_INFO** | Will be displayed next to "Our Contributors" section. You can use it to display a note about your contributors. | | Yes | -| **DATA_SOURCE** | Url for data repository | https://github.com/coronasafe/leaderboard-data.git | Yes | +| **DATA_SOURCE** | Url for data repository | https://github.com/ohcnetwork/leaderboard-data.git | Yes | | **NEXT_PUBLIC_FEATURES** | These features will be displayed | Leaderboard,Contributors,Feed,Releases, | Yes | \ No newline at end of file diff --git a/next.config.js b/next.config.js index f28d01df..ebfe73c9 100644 --- a/next.config.js +++ b/next.config.js @@ -16,7 +16,7 @@ const nextConfig = { hostname: "opengraph.githubassets.com", }, // fix for crash if a path starts with period - // ref: https://github.com/coronasafe/leaderboard/pull/376 + // ref: https://github.com/ohcnetwork/leaderboard/pull/376 { protocol: "https", hostname: "opengraph.githubassets.com", diff --git a/scripts/pullHistoricalGitHubActivities.js b/scripts/pullHistoricalGitHubActivities.js index 242256a2..740d027e 100644 --- a/scripts/pullHistoricalGitHubActivities.js +++ b/scripts/pullHistoricalGitHubActivities.js @@ -20,7 +20,7 @@ const token = process.env.GITHUB_TOKEN; if (!org) { throw Error( - "'GITHUB_ORG' environment needs to be set with a GitHub Organization (e.g.: 'coronasafe').", + "'GITHUB_ORG' environment needs to be set with a GitHub Organization (e.g.: 'ohcnetwork').", ); }