Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ahmadalli
ahmadalli / youtrack-notify-slack.js
Created July 21, 2019 08:35 — forked from rushimusmaximus/youtrack-notify-slack.js
YouTrack JavaScript Workflow example: Post to Slack on specific issue state changes
var entities = require('v1/entities');
var http = require('v1/http');
exports.rule = entities.Issue.onChange({
title: 'Notify-slack',
action: function(ctx) {
var issue = ctx.issue;
if (issue.becomesReported || issue.becomesResolved || issue.becomesUnresolved) {
@ahmadalli
ahmadalli / gist:386da39e4c5db3f8999e170d1b50783f
Last active March 13, 2020 01:51 — forked from JayBazuzi/gist:9e0de544cdfe0c7a4358
How to reformat all C# files in a solution, in Visual Studio
# How to reformat all C# files in a solution, in Visual Studio 2012.
#
# Open Tools->Library Package Manager->Package Manager Console, and run the
# command below. At the end, all documents will be open in the IDE. (Low-RAM
# machines will have problems with large solutions.) Changed files will be
# modified in the IDE, and not saved to disk. You can SaveAll, then Close All
# if you're ready.
#
# VS2012 removed the VB-like macro language that existed in previous version of
# Visual Studio. However, the underlying DTE interface is still there, and you