1
0
mirror of synced 2026-01-06 15:01:04 -05:00

Merge pull request #19659 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2022-08-10 12:31:50 -04:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -31,9 +31,13 @@ export const HeaderNotifications = () => {
const translationNotices: Array<Notif> = []
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 <a href="/${userLanguage}${currentPathWithoutLanguage}">${languages[userLanguage]?.name}</a>.`,
content: `This article is also available in <a href="${href}">${languages[userLanguage]?.name}</a>.`,
})
}
} else {

View File

@@ -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 %}