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
const fs = require('fs') | |
const mongoose = require('mongoose') | |
const Batch = require('batch') | |
const models = require('lib/models') | |
const data = require('./topics.json') | |
const ObjectId = mongoose.Schema.ObjectId | |
models() |
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
dist | |
node_modules |
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
(() => { | |
const check = () => { | |
const status = document.querySelector('[data-combined-status]').dataset.combinedStatus | |
switch(status) { | |
case 'success': | |
const btn = document.querySelector('[data-details-container=".js-merge-pr"]') | |
if (!btn) { | |
alert('PR already merged.') | |
break |
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
#!/bin/bash | |
CURRENT_VERSION=$(npm show $(node -pe 'require("./package.json").name') version) | |
NEXT_VERSION=$(node -pe 'require("./package.json").version') | |
[ "$CURRENT_VERSION" != "$NEXT_VERSION" ] && npm publish |
OlderNewer