From 73889817f0dde31d9cd5bd38e4d623864b37a544 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 ..
+yarn ios
+yarn start
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 + "\n" + 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 }) +}