feat: automate README contributors section using GitHub Actions (#10) - #11
Conversation
|
🚨 @Aryanbuha890, pull requests modifying GitHub actions/workflows from forks are automatically closed for repository security. Maintainers will review and manually implement updates if needed. |
|
@Aryanbuha890 anchor parsing, dedup check, bot exclusion lgtm. Few things before this merges:
Ping me once these are in, I'll take another pass. Good work so far. |
- Remove manual Aryanbuha890 contributor card from README; keep anchors only - Add concurrency group to workflow to prevent race on simultaneous merges - Add unit tests for getContributionType, parseExistingContributors, generateTableHTML
|
🚨 @Aryanbuha890, pull requests modifying GitHub actions/workflows from forks are automatically closed for repository security. Maintainers will review and manually implement updates if needed. |
|
@udaycodespace All reviewer feedback has been addressed! Here is a detailed breakdown of the changes: 1. 🧹 Removed Manual Contributor Card from README
2. 🧪 Added Unit Tests for Automation Functions
3. 🔄 Added Concurrency Group to Workflow
getContributionType parseExistingContributors generateTableHTML ✅ contains correct github profile link for contributor ✅ contains contributor avatar img ✅ contains contributor display name ✅ contains contributor role ✅ wraps into multiple rows for 6 contributors (max 5 per row) ✅ first row has exactly 5 entries for 6 contributors ✅ empty contributors array returns table with no rows ────────────────────────────────────────────────── |
|
@Aryanbuha890 lgtm — all four points addressed cleanly. Tests are solid, concurrency group looks right, README diff is clean now. |
Thank you sir. 🫡 |
@Aryanbuha890 haha no need for "sir", Uday works fine 🙂 |
|
@Aryanbuha890 since this already merged, no need to reopen
Good learning for both of us on how pull_request: closed events handle branch refs. |
|
@udaycodespace I added comment so please assign me. |
|
I not get the any points when you merge this pr. |
No worries. Sometimes the Sentinel dashboard misses or delays updates. Let's wait one more day. Keep the PR link handy for now. If the points still don't show up after that, I'll help escalate it to the ECSoC team with the PR details. We'll get it checked. |
Just to confirm, did you receive the points for PR #12? |
|




Description
This PR addresses issue #10 by automating the maintainability of the README contributors section. A GitHub Actions workflow is implemented to run whenever a pull request is merged, updating the table with the contributor's GitHub profile name, picture, and contribution category.
Key Changes
1. Document Anchor Markers (
README.md)<!-- CONTRIBUTORS-START -->and<!-- CONTRIBUTORS-END -->tags, allowing the parsing script to locate and overwrite the grid dynamically without touching the rest of the file.2. Node.js Automation Script (
.github/scripts/update-contributors.js)https://api.github.com/users/${username}to fetch the contributor's actual display name (e.g. "Aryan Buha") rather than default username handles.GITHUB_TOKENfrom the actions environment to ensure API requests do not trigger rate limits.ui/frontend->Frontend,docs->Docs,fix/bug->Bug fix,test->Tests) to predefined categories.dependabot[bot]) and prevents duplicates.3. GitHub Actions Integration (
.github/workflows/update-contributors.yml)pull_requestclosed on themainbranch, running only when.mergedistrue.stefanzweifel/git-auto-commit-actionwith write permissions to auto-commit and push formatting changes back to the repository.Verification
Tested the script locally using a mock payload file: