ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Code​Owner​Insights

Sublime Text plugin to help identify the GitHub CODEOWNERS of the current file

Labels codeowners, github

Details

Installs

  • Total 11
  • Win 4
  • Mac 5
  • Linux 2
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

CodeOwnerInsights

Sublime Text plugin to help identify the “code owner” of the current file. Parses GitHub's CODEOWNERS file and resolves the owner for the focused tab and shows it in the status bar. Includes a command pallete entry to open the CODEOWNERS file at the relevant line.

Status

This project is still in it's early stages, but works well. It was written for my personal use, but any bugs reported will be fixed. Feature requests will be considered, bonus points if you raise a Pull Request. There is currently no support for configuration, but it is planned to allow to customize what gets shown in the status bar.

There is experimental support for showing all git changed files compared to the default branch, grouped by code owner. You will find it in the command palette. Currently very ugly but gets the job done

Development

To run the parser tests, in a terminal emulator:

python3.12 -m venv ./.venv
source .venv/bin/activate
pip install poetry
poetry install --no-root
deactivate # to avoid problems later
.venv/bin/poetry run python3 -- -m pytest

Ideally we will get these tests running in CI also.