Skip to content
Open

pr #1

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
5d01406
Merge pull request #21 from ayuushisaha/main
ravixalgorithm Jun 29, 2025
e591885
automatic workflow added
ravixalgorithm Jun 29, 2025
71785ae
Merge pull request #22 from ravixalgorithm/main
ravixalgorithm Jun 29, 2025
ca47427
updated workflow
ravixalgorithm Jun 29, 2025
e1c49fe
Merge pull request #23 from ravixalgorithm/main
ravixalgorithm Jun 29, 2025
41742fc
updated
ravixalgorithm Jun 29, 2025
e42c2d5
Merge branch 'CodeXtream-Community-cc:main' into main
ravixalgorithm Jun 29, 2025
dac2e9c
Merge pull request #24 from ravixalgorithm/main
ravixalgorithm Jun 29, 2025
95f60a7
updated mis match
ravixalgorithm Jun 29, 2025
5416c7b
Merge branch 'main' of https://github.com/ravixalgorithm/frontend-cha…
ravixalgorithm Jun 29, 2025
0cbef80
Merge branch 'CodeXtream-Community-cc:main' into main
ravixalgorithm Jun 29, 2025
544da9d
Merge pull request #25 from ravixalgorithm/main
ravixalgorithm Jun 29, 2025
c7db317
update
ravixalgorithm Jun 29, 2025
3038f7d
Merge pull request #26 from ravixalgorithm/main
ravixalgorithm Jun 29, 2025
522ea5d
updated
ravixalgorithm Jun 29, 2025
e82c32b
Merge pull request #27 from ravixalgorithm/main
ravixalgorithm Jun 29, 2025
820416e
Update add-contributor-on-merge.yml
ravixalgorithm Jun 29, 2025
a0c508a
chore: add ravixalgorithm to Contributors in README
ravixalgorithm Jun 29, 2025
e142d4c
Update 2025-06-28.json
SumitBhai9c Jun 29, 2025
51b43f2
chore: add vaishnavi-singh5 to Contributors in README
vaishnavi-singh5 Jun 30, 2025
66e211d
Merge pull request #28 from SumitBhai9c/main
ravixalgorithm Jun 30, 2025
c274dc5
Update 2025-06-28.json
vikash2309 Jun 30, 2025
a9f4dc5
Update 2025-06-28.json
vikash2309 Jun 30, 2025
aba4d96
Merge pull request #30 from vikash2309/main
ravixalgorithm Jun 30, 2025
8c73fe6
Merge pull request #29 from vaishnavi-singh5/main
ravixalgorithm Jul 1, 2025
3ffeabb
Update readme.md
ravixalgorithm Jul 1, 2025
45d88a9
Update 2025-06-28.json
ravixalgorithm Jul 2, 2025
590fd8a
Merge pull request #31 from ravixalgorithm/main
ravixalgorithm Jul 2, 2025
4e5a45d
Added new file for submission
ravixalgorithm Jul 5, 2025
45ba46c
Merge pull request #32 from ravixalgorithm/main
ravixalgorithm Jul 5, 2025
7a0b12b
updated readme and uploaded submission
ravixalgorithm Jul 6, 2025
e4116b8
Merge branch 'CodeXtream-Community-cc:main' into main
ravixalgorithm Jul 6, 2025
6629b8b
Merge pull request #33 from ravixalgorithm/main
ravixalgorithm Jul 6, 2025
00126ea
chore: add lokesh-singhal to Contributors in README
lokesh-singhal Jul 6, 2025
2550568
Update 2025-07-05.json
vikash2309 Jul 6, 2025
09e316c
Merge pull request #34 from vikash2309/main
ravixalgorithm Jul 6, 2025
b4e0358
add answer
lokesh-singhal Jul 6, 2025
869c827
Update 2025-07-05.json
ayuushisaha Jul 7, 2025
0e96659
Update 2025-07-05.json
ravixalgorithm Jul 7, 2025
ae935ab
Merge pull request #37 from ayuushisaha/patch-2
ravixalgorithm Jul 7, 2025
289b5ad
Update 2025-07-05.json
ravixalgorithm Jul 7, 2025
a8581c1
Merge branch 'main' into main
ravixalgorithm Jul 7, 2025
677b4f1
Merge pull request #35 from lokesh-singhal/main
ravixalgorithm Jul 7, 2025
a50fc01
Update readme.md
ravixalgorithm Jul 7, 2025
0b932ce
Update 2025-07-05.json
Vedant515 Jul 7, 2025
29ccb73
Merge pull request #38 from Vedant515/patch-2
ravixalgorithm Jul 7, 2025
a5328b1
Initial plan
Copilot Aug 24, 2025
cf85750
Complete README enhancement with comprehensive professional documenta…
Copilot Aug 24, 2025
9fb38ea
Merge pull request #39 from CodeXtream-Community-cc/copilot/fix-3cbe1…
ravixalgorithm Aug 24, 2025
ca31c7d
chore: add Copilot to Contributors in README
ravixalgorithm Aug 24, 2025
aeddc4d
Update readme.md
ravixalgorithm Aug 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/scripts/add-contributor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const fs = require('fs');
const path = require('path');

const username = process.env.CONTRIBUTOR_USERNAME;
if (!username) {
console.error('Missing CONTRIBUTOR_USERNAME env variable');
process.exit(1);
}

const readmePath = path.join(process.cwd(), '/readme.md');
let readme = fs.readFileSync(readmePath, 'utf8');

const thankYouMarker = "## 🙌 Thanks for being part of Codextream!";
const contributorsHeader = "## Contributors";
const contributorLine = `- [@${username}](https://github.com/${username})`;

// Already present? Exit.
if (readme.includes(contributorLine)) {
console.log('Contributor already present. Skipping.');
process.exit(0);
}

if (readme.includes(contributorsHeader)) {
// Add to existing Contributors section (append if not present)
const contribSectionRegex = /(## Contributors\s*\n)((?:.|\n)*?)(\n## |\n# |\n$)/;
readme = readme.replace(
contribSectionRegex,
(match, sectionHeader, sectionBody, sectionEnd) => {
if (sectionBody.includes(contributorLine)) {
return match; // Already present
}
return `${sectionHeader}${sectionBody}${contributorLine}\n${sectionEnd}`;
}
);
} else if (readme.includes(thankYouMarker)) {
// Add Contributors section after Thank You marker
const thankYouIndex = readme.indexOf(thankYouMarker);
const afterThankYouIndex = readme.indexOf('\n', thankYouIndex);
const before = readme.slice(0, afterThankYouIndex + 1);
const after = readme.slice(afterThankYouIndex + 1);
readme = before + `\n${contributorsHeader}\n${contributorLine}\n` + after;
} else {
// Fallback: append at end
readme += `\n${contributorsHeader}\n${contributorLine}\n`;
}

fs.writeFileSync(readmePath, readme, 'utf8');
console.log(`Added ${username} to Contributors section.`);
47 changes: 47 additions & 0 deletions .github/workflows/add-contributor-on-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Add Contributor to README

on:
pull_request:
types:
- closed
push:
branches:
- main

permissions:
contents: write

jobs:
add-contributor:
if: github.event_name == 'push' || github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Get PR author username
if: github.event_name == 'pull_request'
id: get_pr_author
run: echo "username=${{ github.event.pull_request.user.login }}" >> $GITHUB_OUTPUT

- name: Get committer username (for push)
if: github.event_name == 'push'
id: get_committer
run: echo "username=${{ github.actor }}" >> $GITHUB_OUTPUT

- name: Add contributor to README
env:
CONTRIBUTOR_USERNAME: ${{ steps.get_pr_author.outputs.username || steps.get_committer.outputs.username }}
run: |
node .github/scripts/add-contributor.js

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: add ${{ steps.get_pr_author.outputs.username || steps.get_committer.outputs.username }} to Contributors in README"
branch: main
33 changes: 31 additions & 2 deletions challenges/2025-06-28.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"event": "Profile Submission [PS]",
"date": "2025-06-28",
"status": "Active",
"status": "Completed",
"projects": [

{
Expand Down Expand Up @@ -131,7 +131,36 @@
"linkedin": "",
"instagram": "https://www.instagram.com/kartikeygupta0311/"
}
}
},

{
"projectName": "ps_vikash",
"studentName": "vikash",
"rollNo": "240108083",
"branch": "Information Technology",
"college": "Harcourt Butler Technical University",
"liveLink": "https://studentcard1.vercel.app/",
"socials": {
"github": "https://github.com/vikash2309",
"linkedin": "https://www.linkedin.com/in/vikash-chaudhary-75b495346/",
"instagram": "https://www.instagram.com/vikash_chaudhary9031/"
}
},
{
"projectName": "ps_sumit",
"studentName": "Sumit Singh Gautam",
"rollNo": "240104073",
"branch": "Computer Science & Engineering",
"college": "Harcourt Butler Technical University",
"liveLink": "https://sumitbhai9c.github.io/basic-portfolio/",
"socials": {
"github": "https://github.com/SumitBhai9c",
"linkedin": "https://www.linkedin.com/in/sumit-singh-gautam-209b48324",
"instagram": "https://www.instagram.com/sumitsinghgautam9c"
}
}


]
}
]
77 changes: 77 additions & 0 deletions challenges/2025-07-05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[
{
"event": "Frontend Challenge 01 [FC01]",
"date": "2025-07-05",
"status": "Active",
"projects": [
{
"projectName": "FC01-ravixalgorithm",
"studentName": "Ravi Pratap Singh",
"rollNo": "230104047",
"branch": "Computer Science & Engineering",
"college": "Harcourt Butler Technical University",
"liveLink": "https://briskpay.netlify.app/",
"socials": {
"github": "https://github.com/ravixalgorithm",
"linkedin": "https://www.linkedin.com/in/ravixalgorithm",
"instagram": "https://instagram.com/ravixalgorithm"
}
},
{
"projectName": "PS_Lokesh",
"studentName": "Lokeh Singhal",
"rollNo": "240108039",
"branch": "Information Technology",
"college": "Harcourt Butler Technical University",
"liveLink": "https://briskpay2.netlify.app/",
"socials": {
"github": "https://github.com/lokesh-singhal",
"linkedin": "https://www.linkedin.com/in/lokesh-singhal",
"instagram": "https://instagram.com/singhal_g_"
}
},
{

"projectName": "FC01_vikash",
"studentName": "vikash",
"rollNo": "240108083",
"branch": "Information Technology",
"college": "Harcourt Butler Technical University",
"liveLink": "https://briskpay-one.vercel.app/",
"socials": {
"github": "https://github.com/vikash2309",
"linkedin": "https://www.linkedin.com/in/vikash-chaudhary-75b495346/",
"instagram": "https://www.instagram.com/vikash_chaudhary9031/"
}
},
{
"projectName": "FC01_AYUSHI",
"studentName": "Ayushi Saha",
"rollNo": "23IUT0010111",
"branch": "Computer Science & Engineering",
"college": "ICFAI UNIVERSITY OF TRIPURA",
"liveLink": "https://briskpay-five.vercel.app/",
"socials": {
"github": "https://github.com/ayuushisaha",
"linkedin": "https://www.linkedin.com/in/ayushi-s-6a73bb35b",
"instagram": "https://instagram.com/ayuuushiiz"
}
},
{

"projectName": "FC01_VEDANT",
"studentName": "Vedant Patil",
"rollNo": "23IUT0010115",
"branch": "IT",
"college": "SPPU UNIVERSITY",
"liveLink": "https://686b6859ef402d3062537666--vocal-cobbler-fa7a49.netlify.app/",
"socials": {
"github": "https://github.com/Vedant515",
"linkedin": "https://www.linkedin.com/in/vedant-patil-932160339/",
"instagram": "https://www.instagram.com/vedant_1512_?igsh=dThha3ltczl5ZWZk"
}
}
]

}
]
Loading