Skip to content

Instantly share code, notes, and snippets.

View tamirs9876's full-sized avatar

Tamir Shlomi tamirs9876

View GitHub Profile
@tamirs9876
tamirs9876 / ado_export_pull_requests.ps1
Created November 3, 2024 09:23
Exports Azure DevOps Pull Requests and Threads (comments) discussion.
<#
NOTES:
1. This script export *completed* pull requests and their comments while ignoring active/abandon pull requests
2. Pull request description is truncated after 400 symbols, as per Azure DevOps API documentation.
3. Linked Work Items are not exported.
4. The script uses Azure CLI to get the access token. It is also possible to use PAT from Azure DevOps.
#>
param (
[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()] $OrganizationName,
@tamirs9876
tamirs9876 / git-commit-log-stats.md
Last active November 1, 2020 17:11 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




using System;
using System.Threading.Tasks;
namespace ConsoleApp3
{
static class Test
{
private static readonly object Locker = new object();
static Test()