Below are examples that search repositories on Sourcegraph.com, our open source code search solution for GitHub and GitLab. You can copy and adapt the following search queries for use on your company’s private instance.
See search query syntax reference.
Recent security-related changes on all branches
type:diff repo:@*refs/heads/ after:"5 days ago" \b(auth[^o][^r]|security\b|cve|password|secure|unsafe|perms|permissions)
Admitted hacks and TODOs in app code
New usages of a function
type:diff after:"1 week ago" \.subscribe\( lang:typescript
Recent quality related changes on all branches (customize for your linters)
repo:@*refs/heads/:^master type:diff after:"1 week ago" (tslint:disable)
Recent dependency changes
file:package.json type:diff after:"1 week ago"