Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

pr-showcase

GitHub Actions Python 3.9+ MIT License Zero Dependencies

Turn your upstream pull requests into an automated, visual open-source portfolio directly inside your GitHub Profile README.


⚡ Highlights

  • 🚀 Single-Query GraphQL Engine: Collapses all PR, repository, star count, and owner avatar lookups into a single network roundtrip with automated REST fallback.
  • 🎨 Visual Portfolio: Renders upstream organization avatars (github.com/<owner>.png), repository descriptions, and Shields.io live star counts.
  • 📂 Interactive Drawers: Features recent high-impact merged PRs while gracefully tucking older and in-review contributions into collapsible <details> accordions.
  • 🛡️ Zero Dependencies: Pure Python standard library (urllib, json, re, argparse). No pip install required for CI runners, zero supply-chain risk.
  • 📦 Dual Modality: Usable both as a drop-in GitHub Action (uses: Aayushyaash/pr-showcase@v1) and as a standalone CLI tool (python scripts/update_contributions.py).

🚀 Quickstart

Option A: GitHub Action (Recommended)

In your profile repository (<username>/<username>), create .github/workflows/update-contributions.yml:

name: Update Open Source Contributions

on:
  schedule:
    - cron: '17 2 * * *' # Nightly off-peak run
  workflow_dispatch:      # Manual trigger

permissions:
  contents: write

jobs:
  showcase:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Update Showcase
        uses: Aayushyaash/pr-showcase@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          username: ${{ github.repository_owner }}

      - name: Commit and push changes
        run: |
          git config --global user.name "github-actions[bot]"
          git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add README.md
          git diff --quiet && git diff --staged --quiet || (git commit -m "chore(readme): auto-update open-source showcase" && git push)

Important: Ensure your repository workflow permissions are set to "Read and write permissions" under Settings → Actions → General. See the Setup Guide for details.

Option B: Local CLI

# Preview without modifying files
python scripts/update_contributions.py --username <USERNAME> --dry-run

# Update target file directly
python scripts/update_contributions.py --username <USERNAME> --target-file README.md

📖 Documentation

Detailed documentation and technical specifications are available in the docs/ directory:

  • 🛠️ Setup & Deployment Guide: Step-by-step setup, workflow permissions, and GitHub Actions cron guidance.
  • ⚙️ Configuration Reference: Full parameters table, visibility flags, modular sub-markers, and conflict resolution rules.
  • 🏗️ Technical Architecture: Single-query GraphQL engine, claimed section injection, and atomic marker replacement.

🌟 Live Demonstration

Below is an example of the standard full showcase rendered by pr-showcase:

PRs Merged In Review Projects

Merged upstream

astral-sh astral-sh/uv
An extremely fast Python package and project manager, written in Rust.

  • #4120 feat(resolver): optimize dependency resolution with parallel SAT solver
  • #4098 fix(cli): preserve custom index credentials on lockfile sync

neovim neovim/neovim
Vim-fork focused on extensibility and usability.

  • #28410 feat(lsp): support dynamic registration for workspace folders

BurntSushi BurntSushi/ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore.

  • #2650 fix(search): handle utf-16 surrogate pairs in binary detection

In review

4 open pull requests across 2 repositories

astral-sh astral-sh/uv

  • #4215 feat(build): add wheel tag validation for musllinux targets

neovim neovim/neovim

  • #28550 fix(ui): prevent cursor flicker during fast terminal redraw

Contributed to

astral-sh/uv stars neovim/neovim stars BurntSushi/ripgrep stars


📄 License

This project is licensed under the MIT License.


📜 Acknowledgments

  • Concept Inspiration: Original profile PR tracking pattern inspired by @SajalDevX (SajalDevX/SajalDevX).
  • Architecture & Tooling: Re-engineered by @Aayushyaash into pr-showcase, a zero-config, single-query GraphQL engine with automated repository description fetching, organization avatars, interactive drawers, and live star counts.
  • Badges: Powered by Shields.io.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages