Skip to content

Commit 59fbffc

Browse files
authored
Merge branch 'main' into patch-1
2 parents 649368c + 29e4de9 commit 59fbffc

File tree

12 files changed

+45
-73
lines changed

12 files changed

+45
-73
lines changed

content/github/collaborating-with-issues-and-pull-requests/about-branches.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You must have write access to a repository to create a branch, open a pull reque
2323

2424
### About the default branch
2525

26-
{% data reusables.branches.new-repo-default-branch %} The default branch is the branch that {% data variables.product.prodname_dotcom %} displays when anyone visits your repository. The default branch is also the initial branch that Git checks out locally out when someone clones the repository. {% data reusables.branches.default-branch-automatically-base-branch %}
26+
{% data reusables.branches.new-repo-default-branch %} The default branch is the branch that {% data variables.product.prodname_dotcom %} displays when anyone visits your repository. The default branch is also the initial branch that Git checks out locally when someone clones the repository. {% data reusables.branches.default-branch-automatically-base-branch %}
2727

2828
By default, {% data variables.product.product_name %} names the default branch {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" or currentVersion == "github-ae@latest" %}`main`{% else %}`master`{% endif %} in any new repository.
2929

@@ -75,7 +75,7 @@ When a branch is protected:
7575
- If required pull request reviews are enabled on the branch, you won't be able to merge changes into the branch until all requirements in the pull request review policy have been met. For more information, see "[Merging a pull request](/articles/merging-a-pull-request)."
7676
- If required review from a code owner is enabled on a branch, and a pull request modifies code that has an owner, a code owner must approve the pull request before it can be merged. For more information, see "[About code owners](/articles/about-code-owners)."
7777
- If required commit signing is enabled on a branch, you won't be able to push any commits to the branch that are not signed and verified. For more information, see "[About commit signature verification](/articles/about-commit-signature-verification)" and "[About required commit signing](/articles/about-required-commit-signing)."{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@latest" or currentVersion ver_gt "[email protected]" %}
78-
- If you use {% data variables.product.prodname_dotcom %} 's conflict editor to fix conflicts for a pull request that you created from a protected branch, {% data variables.product.prodname_dotcom %} helps you to create an alternative branch for the pull request, so that your resolution of the conflicts can be merged. For more information, see "[Resolving a merge conflict on {% data variables.product.prodname_dotcom %}](/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-on-github)."{% endif %}
78+
- If you use {% data variables.product.prodname_dotcom %}'s conflict editor to fix conflicts for a pull request that you created from a protected branch, {% data variables.product.prodname_dotcom %} helps you to create an alternative branch for the pull request, so that your resolution of the conflicts can be merged. For more information, see "[Resolving a merge conflict on {% data variables.product.prodname_dotcom %}](/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-on-github)."{% endif %}
7979

8080
### Further reading
8181

content/github/developing-online-with-codespaces/using-codespaces-in-visual-studio.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ Connecting to {% data variables.product.prodname_github_codespaces %} with the
5353

5454
### Configuring a codespace for {% data variables.product.prodname_vs %}
5555

56-
The default codespace environment created by {% data variables.product.prodname_vs %} includes popular frameworks and tools such as .NET Core, Microsoft SQL Server, Python, and the Windows SDK. {% data variables.product.prodname_github_codespaces %} created with {% data variables.product.prodname_vs %} can be customized through a subset of `devcontainers.json` properties and a new tool called devinit, included with {% data variables.product.prodname_vs %}.
56+
A codespace, created with {% data variables.product.prodname_vs %}, can be customized through a new tool called devinit, a command line tool included with {% data variables.product.prodname_vs %}.
5757

5858
#### devinit
5959

60-
The [devinit](https://docs.microsoft.com/visualstudio/devinit/getting-started-with-devinit) command-line tool lets you install additional frameworks and tools into your Windows development codespaces, as well as run PowerShell scripts or modify environment variables. devinit supports a configuration file called [devinit.json](https://docs.microsoft.com/visualstudio/devinit/devinit-json), which can be added to your project for creating customized and repeatable development environments. For more information about Windows codespace configuration and devinit, see [Customize a codespace](https://docs.microsoft.com/visualstudio/ide/codespaces/customize-codespaces) in the {% data variables.product.prodname_vs %} documentation.
60+
[devinit](https://docs.microsoft.com/visualstudio/devinit/getting-started-with-devinit) lets you install additional frameworks and tools into your Windows development codespaces, modify environment variables, and more.
61+
62+
devinit supports a configuration file called [devinit.json](https://docs.microsoft.com/visualstudio/devinit/devinit-json). You can add this file to your project if you want to create a customized and repeatable development environment. When you use devinit with a [devcontainer.json](https://docs.microsoft.com/visualstudio/ide/codespaces/customize-codespaces#running-devinit-when-creating-a-codespace) file, your codespaces will be automatically configured on creation.
63+
64+
For more information about Windows codespace configuration and devinit, see [Customize a codespace](https://docs.microsoft.com/visualstudio/ide/codespaces/customize-codespaces) in the {% data variables.product.prodname_vs %} documentation. For more information about devinit, see [Getting started with devinit](https://docs.microsoft.com/visualstudio/devinit/getting-started-with-devinit).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
```shell
2-
$ ssh-add ~/.ssh/id_rsa
2+
$ ssh-add ~/.ssh/id_ed25519
33
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
If you created your key with a different name, or if you are adding an existing key that has a different name, replace *id_rsa* in the command with the name of your private key file.
1+
If you created your key with a different name, or if you are adding an existing key that has a different name, replace *id_ed25519* in the command with the name of your private key file.

includes/article.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ <h3 id="in-this-article" class="f5 mb-2"><a class="link-gray-dark" href="#in-thi
5555
{% endfor %}
5656
</ul>
5757
{% endif %}
58-
<div class="d-none d-xl-block{% if miniTocItems.size > 1 %} border-top border-gray-light mt-4{% endif %}">
59-
{% assign helpId = 'xl' %}
60-
{% include helpfulness %}
61-
{% include contribution %}
62-
</div>
6358
</div>
6459
</div>
6560
<div id="article-contents" class="article-grid-body">
@@ -70,8 +65,7 @@ <h3 id="in-this-article" class="f5 mb-2"><a class="link-gray-dark" href="#in-thi
7065
</div>
7166
</div>
7267

73-
<div class="d-block d-xl-none border-top border-gray-light mt-4 markdown-body">
74-
{% assign helpId = 'sm' %}
68+
<div class="d-block border-top border-gray-light mt-4 markdown-body">
7569
{% include helpfulness %}
7670
{% include contribution %}
7771
</div>

includes/helpfulness.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% unless enterpriseServerReleases.isOldestReleaseDeprecated and currentVersion contains enterpriseServerReleases.oldestSupported %}
2-
<form class="js-helpfulness mt-4 f5" id="helpfulness-{{ helpId }}">
2+
<form class="js-helpfulness mt-4 f5">
33
<h4
44
data-help-start
55
data-help-yes
@@ -19,24 +19,24 @@
1919
>
2020
<input
2121
hidden
22-
id="helpfulness-yes-{{ helpId }}"
22+
id="helpfulness-yes"
2323
type="radio"
2424
name="helpfulness-vote"
2525
value="Yes"
2626
aria-label="{% data ui.helpfulness.yes %}"
2727
/>
28-
<label class="btn x-radio-label" for="helpfulness-yes-{{ helpId }}">
28+
<label class="btn x-radio-label" for="helpfulness-yes">
2929
{% octicon "thumbsup" height="24" %}
3030
</label>
3131
<input
3232
hidden
33-
id="helpfulness-no-{{ helpId }}"
33+
id="helpfulness-no"
3434
type="radio"
3535
name="helpfulness-vote"
3636
value="No"
3737
aria-label="{% data ui.helpfulness.no %}"
3838
/>
39-
<label class="btn x-radio-label" for="helpfulness-no-{{ helpId }}">
39+
<label class="btn x-radio-label" for="helpfulness-no">
4040
{% octicon "thumbsdown" height="24" %}
4141
</label>
4242
</p>
@@ -55,7 +55,7 @@
5555
<p hidden data-help-no>
5656
<label
5757
class="d-block mb-1 f6"
58-
for="helpfulness-category-{{ helpId }}"
58+
for="helpfulness-category"
5959
>
6060
{% data ui.helpfulness.category_label %}
6161
<span class="text-normal text-gray-light float-right ml-1">
@@ -65,7 +65,7 @@
6565
<select
6666
class="form-control select-sm width-full"
6767
name="helpfulness-category"
68-
id="helpfulness-category-{{ helpId }}"
68+
id="helpfulness-category"
6969
>
7070
<option value="">
7171
{% data ui.helpfulness.category_default %}
@@ -87,7 +87,7 @@
8787
<p hidden data-help-no>
8888
<label
8989
class="d-block mb-1 f6"
90-
for="helpfulness-comment-{{ helpId }}"
90+
for="helpfulness-comment"
9191
>
9292
<span>{% data ui.helpfulness.comment_label %}</span>
9393
<span class="text-normal text-gray-light float-right ml-1">
@@ -97,13 +97,13 @@
9797
<textarea
9898
class="form-control input-sm width-full"
9999
name="helpfulness-comment"
100-
id="helpfulness-comment-{{ helpId }}"
100+
id="helpfulness-comment"
101101
></textarea>
102102
</p>
103103
<p>
104104
<label
105105
class="d-block mb-1 f6"
106-
for="helpfulness-email-{{ helpId }}"
106+
for="helpfulness-email"
107107
hidden
108108
data-help-no
109109
>
@@ -116,7 +116,7 @@
116116
type="email"
117117
class="form-control input-sm width-full"
118118
name="helpfulness-email"
119-
id="helpfulness-email-{{ helpId }}"
119+
id="helpfulness-email"
120120
placeholder="{% data ui.helpfulness.email_placeholder %}"
121121
hidden
122122
data-help-yes
@@ -137,4 +137,4 @@
137137
{% data ui.helpfulness.feedback %}
138138
</p>
139139
</form>
140-
{% endunless %}
140+
{% endunless %}

javascripts/experiment.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,4 @@ export default function () {
4141
// const xbucket = bucket(testName)
4242
// if (xbucket === TREATMENT) { ... }
4343
// x.addEventListener('click', () => { sendSuccess(testName) })
44-
45-
const testName = 'helpfulness-prompt-to-bottom'
46-
const xbucket = bucket(testName)
47-
48-
if (xbucket === TREATMENT) {
49-
const bigHelpfulness = document.querySelector('#helpfulness-xl')
50-
const smallHelpfulness = document.querySelector('#helpfulness-sm')
51-
52-
// Check that helpfulness prompt is present on this page
53-
if (!(bigHelpfulness && smallHelpfulness)) {
54-
return
55-
}
56-
57-
// Remove the -xl prompts
58-
bigHelpfulness.parentElement.parentElement.removeChild(bigHelpfulness.parentElement)
59-
60-
// Always show the -sm prompt
61-
smallHelpfulness.parentElement.classList.remove('d-xl-none')
62-
}
63-
64-
const votes = Array.from(document.querySelectorAll('.js-helpfulness [type=radio]'))
65-
votes.forEach(voteEl => {
66-
voteEl.addEventListener('change', () => { sendSuccess(testName) })
67-
})
6844
}

javascripts/helpfulness.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import { sendEvent } from './events'
22

33
export default function helpfulness () {
4-
const forms = Array.from(document.querySelectorAll('.js-helpfulness'))
4+
const form = document.querySelector('.js-helpfulness')
55
const texts = Array.from(document.querySelectorAll('.js-helpfulness input, .js-helpfulness textarea'))
66
const votes = Array.from(document.querySelectorAll('.js-helpfulness [type=radio]'))
7-
if (!forms.length || !texts.length || !votes.length) return
7+
if (!form || !texts.length || !votes.length) return
88

9-
forms.forEach(form => {
10-
form.addEventListener('submit', async evt => {
11-
evt.preventDefault()
12-
await submitForm(evt.target)
13-
updateDisplay(form, 'end')
14-
})
9+
form.addEventListener('submit', async evt => {
10+
evt.preventDefault()
11+
await submitForm(evt.target)
12+
updateDisplay(form, 'end')
1513
})
1614

1715
votes.forEach(voteEl => {

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@github-docs/data-directory": "^1.2.0",
1717
"@github-docs/frontmatter": "^1.3.1",
1818
"@github-docs/render-content": "^5.2.0",
19-
"@github/rest-api-operations": "^3.7.1",
19+
"@github/rest-api-operations": "^3.7.3",
2020
"@octokit/rest": "^16.38.1",
2121
"@primer/css": "^15.1.0",
2222
"@primer/octicons": "^11.0.0",

0 commit comments

Comments
 (0)