Skip to content

Commit 409f234

Browse files
authored
Merge branch 'main' into patch-1
2 parents 483dd17 + 7c757ef commit 409f234

3 files changed

Lines changed: 25 additions & 5 deletions

File tree

content/developers/webhooks-and-events/github-event-types.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,20 @@ This event returns an empty `payload` object.
183183
{% data reusables.webhooks.pull_request_event_api_properties %}
184184
{% data reusables.webhooks.pull_request_properties %}
185185

186+
### PullRequestReviewEvent
187+
188+
{% data reusables.webhooks.pull_request_review_short_desc %}
189+
190+
{% data reusables.webhooks.events_api_payload %}
191+
192+
#### Event `payload` object
193+
194+
Key | Type | Description
195+
----|------|-------------
196+
`action` | `string` | The action that was performed. Can be `created`.
197+
`pull_request` | `object` | The pull request the review pertains to.
198+
`review` | `object` | The review that was affected.
199+
186200
### PullRequestReviewCommentEvent
187201

188202
{% data reusables.webhooks.pull_request_review_comment_short_desc %}
@@ -200,6 +214,8 @@ This event returns an empty `payload` object.
200214

201215
{% data reusables.webhooks.events_api_payload %}
202216

217+
#### Event `payload` object
218+
203219
Key | Type | Description
204220
----|------|-------------
205221
`push_id` | `integer` | Unique identifier for the push.

content/github/administering-a-repository/renaming-a-branch.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ intro: You can change the name of a branch in a repository.
44
permissions: People with write permissions to a repository can rename a branch in the repository. People with admin permissions can rename the default branch.
55
versions:
66
free-pro-team: '*'
7-
enterprise-server: '>=3.1'
7+
enterprise-server: '>=3.2'
88
topics:
99
- repositories
1010
---
@@ -13,7 +13,9 @@ topics:
1313

1414
You can rename a branch in a repository on {% data variables.product.product_location %}. For more information about branches, see "[About branches](/github/collaborating-with-issues-and-pull-requests/about-branches)."
1515

16-
If you rename a branch, {% data variables.product.prodname_dotcom %} will automatically redirect links on {% if currentVersion == "free-pro-team@latest" %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location_enterprise %}{% endif %} that contain the old branch name to the equivalent link on the renamed branch. {% data variables.product.prodname_dotcom %} will also update branch protection policies, as well as the base branch for open pull requests and draft releases.
16+
When you rename a branch on {% data variables.product.product_location %}, any URLs that contain the old branch name are automatically redirected to the equivalent URL for the renamed branch. Branch protection policies are also updated, as well as the base branch for open pull requests (including those for forks) and draft releases. After the rename is complete, {% data variables.product.prodname_dotcom %} provides instructions on the repository's home page directing contributors to update their local Git environments.
17+
18+
Although file URLs are automatically redirected, raw file URLs are not redirected. Also, {% data variables.product.prodname_dotcom %} does not perform any redirects if users perform a `git pull` for the previous branch name.
1719

1820
### Renaming a branch
1921

content/github/writing-on-github/creating-gists.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If your site administrator has disabled private mode, you can also use anonymous
3333
You'll receive a notification when:
3434
- You are the author of a gist.
3535
- Someone mentions you in a gist.
36-
- You subscribe to a gist, by clicking **Subscribe** at the top any gist.
36+
- You subscribe to a gist, by clicking **Subscribe** at the top of any gist.
3737

3838
{% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}
3939

@@ -55,13 +55,15 @@ Gist supports mapping GeoJSON files. These maps are displayed in embedded gists,
5555

5656
### Creating a gist
5757

58-
You can also drag and drop a text file from your desktop directly into the gist editor.
58+
Follow the steps below to create a gist.
5959

6060
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.19" or currentVersion == "github-ae@latest" %}
6161
{% note %}
6262

6363
You can also create a gist using the {% data variables.product.prodname_cli %}. For more information, see "[`gh gist create`](https://cli.github.com/manual/gh_gist_create)" in the {% data variables.product.prodname_cli %} documentation.
6464

65+
Alternatively, you can drag and drop a text file from your desktop directly into the editor.
66+
6567
{% endnote %}
6668
{% endif %}
6769

@@ -70,7 +72,7 @@ You can also create a gist using the {% data variables.product.prodname_cli %}.
7072
3. Type an optional description and name for your gist.
7173
![Gist name description](/assets/images/help/gist/gist_name_description.png)
7274

73-
4. Type the text of your gist into the gist text box.
75+
4. Type the text of your gist into the gist text box.
7476
![Gist text box](/assets/images/help/gist/gist_text_box.png)
7577

7678
5. Optionally, to create {% if currentVersion == "github-ae@latest" %}an internal{% else %}a public{% endif %} gist, click {% octicon "triangle-down" aria-label="The downwards triangle icon" %}, then click **Create {% if currentVersion == "github-ae@latest" %}internal{% else %}public{% endif %} gist**.

0 commit comments

Comments
 (0)