From 508416002477a6f8cb202e727d68de4528aab70b Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Wed, 10 Aug 2022 17:52:24 +0200 Subject: [PATCH 1/2] correct language link in header notification (#29799) --- components/page-header/HeaderNotifications.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/page-header/HeaderNotifications.tsx b/components/page-header/HeaderNotifications.tsx index b81928bdc1..6035d1e392 100644 --- a/components/page-header/HeaderNotifications.tsx +++ b/components/page-header/HeaderNotifications.tsx @@ -31,9 +31,13 @@ export const HeaderNotifications = () => { const translationNotices: Array = [] if (router.locale === 'en') { if (userLanguage && userLanguage !== 'en') { + let href = `/${userLanguage}` + if (currentPathWithoutLanguage !== '/') { + href += currentPathWithoutLanguage + } translationNotices.push({ type: NotificationType.TRANSLATION, - content: `This article is also available in ${languages[userLanguage]?.name}.`, + content: `This article is also available in ${languages[userLanguage]?.name}.`, }) } } else { From e55f3f21eb9b9eb6727de33a5c97128e1ae3256b Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Wed, 10 Aug 2022 17:07:13 +0100 Subject: [PATCH 2/2] Document that extremely large diffs may be omitted from the `push` webhook payload (#29273) --- .../webhooks/webhook-events-and-payloads.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md b/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md index d6eaa28728..d3c60ccc0e 100644 --- a/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md +++ b/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md @@ -1190,9 +1190,9 @@ Key | Type | Description `commits[][author][email]`|`string` | The git author's email address. `commits[][url]`|`url` | URL that points to the commit API resource. `commits[][distinct]`|`boolean` | Whether this commit is distinct from any that have been pushed before. -`commits[][added]`|`array` | An array of files added in the commit. -`commits[][modified]`|`array` | An array of files modified by the commit. -`commits[][removed]`|`array` | An array of files removed in the commit. +`commits[][added]`|`array` | An array of files added in the commit. For extremely large commits where {% data variables.product.product_name %} is unable to calculate this list in a timely manner, this may be empty even if files were added. +`commits[][modified]`|`array` | An array of files modified by the commit. For extremely large commits where {% data variables.product.product_name %} is unable to calculate this list in a timely manner, this may be empty even if files were modified. +`commits[][removed]`|`array` | An array of files removed in the commit. For extremely large commits where {% data variables.product.product_name %} is unable to calculate this list in a timely manner, this may be empty even if files were removed. `pusher` | `object` | The user who pushed the commits. {% data reusables.webhooks.repo_desc %} {% data reusables.webhooks.org_desc %}