YO
YossiSaadi/github-codeowners-filter-chrome-extension
GitHub Code Owners Filter is a browser extension that enhances the GitHub pull request interface by adding file filtering capabilities based on code ownership information.
GitHub Code Owners Filter
A Chrome extension that enhances GitHub's pull request file view by adding the ability to filter files by code owners.
Features
- ๐ Filter files by code owner in pull request views
- ๐ Works automatically on GitHub pull request file pages
- ๐ฏ Shows file count per code owner
- โก Real-time filtering without page reload
- ๐ Waits for all files to load before processing
- ๐ Shows stats about files without ownership
- ๐จ Seamlessly integrates with GitHub's native UI
Installation
From Chrome Web Store
- Visit the Chrome Web Store
- Click "Add to Chrome"
- Click "Add Extension" in the popup
From Source
- Clone this repository
git clone https://github.com/YossiSaadi/github-codeowners-filter-chrome-extension.git- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension directory
Usage
- Navigate to any pull request's "Files changed" tab on GitHub
- Click the file filter button (usually located above the file list)
- You'll see a new "Filter by code owner" section
- Select one or more code owners to filter the file list
- Files will be filtered in real-time based on your selection
How It Works
The extension:
- Detects when you're viewing a pull request's files
- Scans the page for files with code ownership information
- Creates a filterable list of all code owners
- Adds a new section to GitHub's native file filter menu
- Handles filtering through GitHub's existing UI patterns
Development
Prerequisites
- Node.js (v20 recommended)
- npm or yarn
- Chrome browser
Setup
- Clone the repository
- Install dependencies
yarn installBuilding
yarn buildDevelopment Mode
- Build the extension
- Load it into Chrome as an unpacked extension
- Make changes to the code
- Click the refresh button in
chrome://extensions/to see your changes
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Privacy
This extension:
- Does not collect any user data
- Does not make any network requests
- Only runs on GitHub pull request pages
- Only reads code ownership information that's already visible on the page
License
Distributed under the MIT License. See LICENSE for more information.
Support
If you encounter any problems or have feature requests, please:
- Check the existing issues
- Open a new issue if your problem/request isn't already tracked
