Skip to content

Instantly share code, notes, and snippets.

View fforres's full-sized avatar
🔥

Felipe Torres (fforres) fforres

🔥
View GitHub Profile
@fforres
fforres / pr.md
Created July 30, 2016 05:41 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

'use strict';
console.log('In Function...');
var AWS = require("aws-sdk");
var uuid = require("uuid");
var sqs = new AWS.SQS();;
var QueueUrl = "https://sqs.us-west-2.amazonaws.com/999999/cola.fifo";
exports.main = (event, context, callback) => {