GithubHelp home page GithubHelp logo

isabella232 / sourcegraph-code-ownership Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sourcegraph/sourcegraph-code-ownership

0.0 0.0 0.0 408 KB

A Sourcegraph extension that shows code owners of the current file.

License: Apache License 2.0

JavaScript 0.58% TypeScript 99.42%

sourcegraph-code-ownership's Introduction

Code ownership extension for Sourcegraph

Build Status

A Sourcegraph extension that shows code owners of the current file.

๐Ÿ—ƒ๏ธ Source code

โž• Add to Sourcegraph (see usage instructions for self-hosted Sourcegraph instances)

Features

Works on Sourcegraph.com, self-hosted Sourcegraph instances, and on code hosts (via the Sourcegraph browser extension).

  • Code owner of current file displayed in the file header

Only CODEOWNERS and .github/CODEOWNERS files are supported right now. File an issue if you want need support for another code ownership scheme.

Screenshot

Usage

Note: Using this extension on private code in the Sourcegraph browser extension requires a self-hosted Sourcegraph instance (because it needs access to the repository's files that define code owners).

  1. Enable the sourcegraph/code-ownership extension:
  2. Visit any code file in a repository containing a CODEOWNERS or .github/CODEOWNERS file.
  3. Look in the file header to see the current file's code owner(s).

On your code host

This extension adds the same features on your code host if you're using the Sourcegraph browser extension. To use it on your code host:

  1. Install the Sourcegraph browser extension.
    • If you're using it with a self-hosted Sourcegraph instance, enter the Sourcegraph instance URL into the Sourcegraph browser extension options menu.
  2. Follow the usage steps above to enable the sourcegraph/code-ownership extension.
  3. Visit any code file (on your code host) in a repository containing a CODEOWNERS or .github/CODEOWNERS file.
  4. Look in the file header to see the current file's code owner(s).

Screenshot on GitHub

Roadmap

  • More ways to define code owners (such as by directory-specific CODEOWNERS files, from an external code owners service, etc.)
  • Per-repository configuration of how code owners are defined
  • Search by code owner (e.g., codeowner:alice in a Sourcegraph search query)
  • Directory ownership
  • Filter a code review to only diffs to files you own

sourcegraph-code-ownership's People

Contributors

felixfbecker avatar renovate-bot avatar renovate[bot] avatar sqs avatar tjkandala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.