From 193ab65ee62d3788f4a14119f15c3e28451cf063 Mon Sep 17 00:00:00 2001
From: Orta Therox To run on your computer:
`
+const userBody = pr.body.split(splitter)[0]
+const localBranch = `${pr.user.login}-${pr.number}-checkout`
+const bodyFooter = `
+### Tested on Device?
+
+- [ ] @${pr.user.login}
+${pr.assignees.map(assignee => `- [ ] @${assignee.login}`).join("\n")}
+
+How to get set up with this PR?
+
+ git fetch origin pull/${pr.number}/head:${localBranch}
+git checkout ${localBranch}
+yarn install
+cd example; pod install cd ..
+open -a Simulator
+yarn start
Then run xcrun simctl launch booted net.artsy.Emission
once a the simulator has finished booting
To run inside Eigen (prod or beta) or Emission (beta): Shake the phone to get the Admin menu.
+If you see "Use Staging React Env" - click that and restart, then follow the next step.
+Click on "Choose an RN build" - then pick the one that says: "X,Y,Z"
+Note: this is a TODO for PRs, currently you can only do it on master commits.
+ +` +const newBody = userBody + splitter + "\n" + bodyFooter + +// The individual state of a ticked/unticket item in a markdown list should not +// require Danger to submit a new body (and thus overwrite those changes.) +const neuterMarkdownTicks = /- \[*.\]/g +if (pr.body.replace(neuterMarkdownTicks, "-") !== newBody.replace(neuterMarkdownTicks, "-")) { + danger.github.api.pullRequests.update({...danger.github.thisPR, body: newBody }) +}