Skip to content

Instantly share code, notes, and snippets.

Chris Sidi hashtagchris

Block or report user

Report or block hashtagchris

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hashtagchris
hashtagchris / mark-GitHub-subscribed-notifications-read.js
Created Oct 7, 2019
Mark GitHub notifications from one repository with reason `subscribed` read.
View mark-GitHub-subscribed-notifications-read.js
require("dotenv").config();
const request = require('request-promise-native');
if (process.argv.length !== 3) {
console.log(`Usage: node unsubscribeFromNotification.js <owner>/<repository>`);
console.log("Prereqs:\n* Run 'npm install dotenv request request-promise-native'.\n* Set the GITHUB_PAT environment variable, or create an .env file and assign a value.");
return;
}
const nwo = process.argv[2];
@hashtagchris
hashtagchris / azureDevOpsPRCommentSearch.js
Last active Sep 30, 2019
Quick and dirty script to search comment threads in Azure DevOps pull requests.
View azureDevOpsPRCommentSearch.js
// Script pre-reqs
// 1. Install nodejs and npm
// 2. Run `npm install`
// 3. Set the AZURE_DEVOPS_PAT environment variable, or create a .env file and assign a value (AZURE_DEVOPS_PAT=...)
// TODO: Retrieve multiple pages of PRs, threads.
require("dotenv").config();
const request = require('request-promise-native');
You can’t perform that action at this time.