% export CR_PAT=<PAT with packages:read for the github org>
% echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
> Login Succeeded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"templateOSS": { | |
"prettier": true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"posttest": "npm run lint && npm run style" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example usage: node gunzip_http_response.js http://www.httpbin.org/gzip | |
const http = require('http'); | |
const zlib = require('zlib'); | |
const url = process.argv[2]; | |
console.log(`Requesting ${url}...`); | |
const req = http.request(url); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'); |