- Check for an existing
.gitignore
file in the project directory
ls -a
################## | |
### config.yml ### | |
################## | |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/python:3.6 | |
steps: |
'use strict'; | |
/* | |
* The purpose of this function is to convert an ES6 class to either: | |
* 1) A test suite if it has "tests" as a property | |
* 2) A page object with optional "elements", "commands" and "url" | |
* @param es6Class The actual class object (not instance of the class) to convert | |
*/ | |
module.exports = function(es6Class) { | |
let properties = Object.getOwnPropertyNames(es6Class.prototype); |
'use strict'; | |
console.log('// loading function'); | |
const aws = require('aws-sdk'); | |
const s3 = new aws.S3({apiVersion: '2006-03-01'}); | |
const gzip = require('zlib').createGunzip(); | |
const fs = require('fs'); | |
const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
const asyncForEach = async (array, callback) => { | |
for (let index = 0; index < array.length; index++) { | |
await callback(array[index], index, array) | |
} | |
} | |
const start = async () => { | |
await asyncForEach([1, 2, 3], async (num) => { | |
await waitFor(50) |
const path = require('path') | |
const util = require('util') | |
const events = require('events') | |
const archiver = require('archiver') | |
const handleResult = cb => result => { | |
if (result.status !== 0) throw new Error(result.value.message) | |
cb(result.value) | |
} |
""" | |
Exports issues from a list of repositories to individual csv files. | |
Uses basic authentication (Github username + password) to retrieve issues | |
from a repository that username has access to. Supports Github API v3. | |
Forked from: patrickfuller/github_issues_to_csv.py | |
""" | |
import argparse | |
import csv | |
from getpass import getpass | |
import requests |