From 4bc9ad9822347077178bc29f451b99fb9a6cfbd8 Mon Sep 17 00:00:00 2001 From: Briana Swift Date: Mon, 3 Dec 2018 17:07:48 +0100 Subject: [PATCH 1/2] display only real branch name, not "refs/heads" --- responses/open-a-pr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responses/open-a-pr.md b/responses/open-a-pr.md index 560a073..8a59f53 100644 --- a/responses/open-a-pr.md +++ b/responses/open-a-pr.md @@ -20,7 +20,7 @@ This pull request is going to keep the changes you just made on your branch and 1. From the "Pull requests" tab, click **New pull request** 1. In the "base:" drop-down menu, make sure the "master" branch is selected -1. In the "compare:" drop-down menu, select "{{ branch | replace('refs/heads/', '') }}" +1. In the "compare:" drop-down menu, select "{{ branch | replace('') }}" 1. Click **Create pull request** 1. When you’ve selected your branch, enter a title for your pull request. For example `Add {{ user.username }}'s file` 1. The next field helps you provide a description of the changes you made. Feel free to add a description of what you’ve accomplished so far. As a reminder, you have: created a branch, created a file and made a commit, and opened a pull request From 60fe4781264172a835348c11645d43dc7846ebf1 Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Mon, 3 Dec 2018 12:25:41 -0500 Subject: [PATCH 2/2] Use Liquid's remove filter --- responses/open-a-pr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responses/open-a-pr.md b/responses/open-a-pr.md index 8a59f53..ae51b8e 100644 --- a/responses/open-a-pr.md +++ b/responses/open-a-pr.md @@ -20,7 +20,7 @@ This pull request is going to keep the changes you just made on your branch and 1. From the "Pull requests" tab, click **New pull request** 1. In the "base:" drop-down menu, make sure the "master" branch is selected -1. In the "compare:" drop-down menu, select "{{ branch | replace('') }}" +1. In the "compare:" drop-down menu, select "{{ branch | remove: 'refs/heads/' }}" 1. Click **Create pull request** 1. When you’ve selected your branch, enter a title for your pull request. For example `Add {{ user.username }}'s file` 1. The next field helps you provide a description of the changes you made. Feel free to add a description of what you’ve accomplished so far. As a reminder, you have: created a branch, created a file and made a commit, and opened a pull request