From 07e381e13180b57070df125aaa18aedf41d78a02 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 04:04:27 +0000 Subject: [PATCH] docs: add contributors badge and automation documentation Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com> --- .github/workflows/contributors.yml | 1 + CONTRIBUTORS_AUTOMATION.md | 83 ++++++++++++++++++++++++++++++ README.md | 2 + 3 files changed, 86 insertions(+) create mode 100644 CONTRIBUTORS_AUTOMATION.md diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 08da9f1..5302479 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -8,6 +8,7 @@ on: push: branches: - main + workflow_dispatch: # Allow manual triggering permissions: contents: write diff --git a/CONTRIBUTORS_AUTOMATION.md b/CONTRIBUTORS_AUTOMATION.md new file mode 100644 index 0000000..b924352 --- /dev/null +++ b/CONTRIBUTORS_AUTOMATION.md @@ -0,0 +1,83 @@ +# Contributors Automation Guide + +## Overview + +This repository uses an automated system to maintain a Contributors Hall of Fame with GitHub profile photos. When anyone contributes to the project through merged pull requests, they will be automatically added to the [CONTRIBUTORS.md](CONTRIBUTORS.md) file. + +## How It Works + +1. **Automatic Detection**: When a pull request is merged to the main branch, the GitHub Actions workflow automatically detects all contributors. + +2. **Profile Photos**: The system fetches GitHub profile photos for each contributor and displays them in the Contributors Hall of Fame. + +3. **Automatic Updates**: The CONTRIBUTORS.md file is automatically updated with new contributors, maintaining a beautiful gallery of everyone who has helped the project. + +## Features + +- ✨ Automatic detection of new contributors +- 📸 GitHub profile photos displayed in the hall of fame +- 🔄 Automatic updates on every merged PR +- 👥 Recognition for all types of contributions (code, documentation, ideas, etc.) + +## The Contributors Workflow + +The automation is powered by a GitHub Actions workflow located at `.github/workflows/contributors.yml`. This workflow: + +1. Triggers when: + - A pull request is merged to main + - Code is pushed to the main branch + - Manually triggered via workflow_dispatch + +2. Automatically: + - Fetches all contributors from the repository + - Updates the CONTRIBUTORS.md file with profile photos + - Commits the changes back to the repository + +## Manual Triggering + +Repository maintainers can manually trigger the contributors update by: +1. Going to Actions tab in GitHub +2. Selecting "Add Contributors" workflow +3. Clicking "Run workflow" + +## Configuration + +The contributors system is configured in: +- `.github/workflows/contributors.yml` - The automation workflow +- `.all-contributorsrc` - Configuration for the all-contributors system + +### Customization Options + +You can customize the appearance by editing `.github/workflows/contributors.yml`: +- `image_size`: Size of profile photos (default: 100px) +- `columns_per_row`: Number of contributors per row (default: 6) + +## For Contributors + +When you contribute to this project: +1. Your GitHub profile will automatically appear in the Contributors Hall of Fame +2. Your profile photo will be displayed +3. You'll be recognized for your contributions + +## Requirements + +- GitHub Actions must be enabled for the repository +- The workflow requires `contents: write` permission to update files + +## Troubleshooting + +If contributors are not being added automatically: +1. Check that GitHub Actions is enabled +2. Verify the workflow has necessary permissions +3. Ensure the main branch name matches the configuration +4. Manually trigger the workflow to force an update + +## Credits + +This automation uses: +- [contributors-readme-action](https://github.com/akhilmhdh/contributors-readme-action) by akhilmhdh +- GitHub Actions for automation + +--- + +For questions about the contributors system, please open an issue on GitHub. diff --git a/README.md b/README.md index 2da7d36..8928705 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Keylogger :) +[![Contributors](https://img.shields.io/github/contributors/Stalin-143/Keylogger?style=for-the-badge)](https://github.com/Stalin-143/Keylogger/graphs/contributors) + ![WhatsApp Image 2024-11-29 at 11 35 30 PM](https://github.com/user-attachments/assets/689d466c-26d5-4830-8dba-48693ea04d01)