Skip to content

Commit 983e22e

Browse files
authored
Merge pull request #12332 from github/repo-sync
repo sync
2 parents 3718a1c + cd4a5f6 commit 983e22e

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

content/rest/reference/teams.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ This API is only available to authenticated members of the team's organization.
5252
{% if operation.subcategory == 'members' %}{% include rest_operation %}{% endif %}
5353
{% endfor %}
5454

55-
{% ifversion ghec %}
55+
{% ifversion ghec or ghae %}
5656
## External groups
5757

5858
The external groups API allows you to view the external identity provider groups that are available to your organization and manage the connection between external groups and teams in your organization.
5959

6060
To use this API, the authenticated user must be a team maintainer or an owner of the organization associated with the team.
6161

62+
{% ifversion ghec %}
6263
{% note %}
6364

6465
**Notes:**
@@ -67,6 +68,7 @@ To use this API, the authenticated user must be a team maintainer or an owner of
6768
- If your organization uses team synchronization, you can use the Team Synchronization API. For more information, see "[Team synchronization API](#team-synchronization)."
6869

6970
{% endnote %}
71+
{% endif %}
7072

7173
{% for operation in currentRestOperations %}
7274
{% if operation.subcategory == 'external-groups' %}{% include rest_operation %}{% endif %}

script/i18n/liquid-diff.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env node
2+
3+
import program from 'commander'
4+
import { compareLiquidTags } from '../../lib/liquid-tags/tokens.js'
5+
import languages from '../../lib/languages.js'
6+
7+
program
8+
.argument('<files...>', 'The file name(s) without the language dir. \nI.E. content/foo.md')
9+
.description('Shows the differences of liquid tags between two files')
10+
.requiredOption('-l, --language <language>', `Choose one of these languages to compare: ${Object.keys(languages).filter(l => l !== 'en')}`)
11+
.parse(process.argv)
12+
13+
function reportFileDifference(diff) {
14+
console.log(`File: ${diff.file}`)
15+
console.log(`Translation: ${diff.translation}`)
16+
console.log(`Differences:`)
17+
console.log(diff.diff.output)
18+
}
19+
20+
function main() {
21+
const files = program.args
22+
const options = program.opts()
23+
24+
files.forEach((file) => {
25+
const language = languages[options.language]
26+
if (!language) throw new Error(`${options.language} is not a recognized language`)
27+
const diff = compareLiquidTags(file, language)
28+
reportFileDifference(diff)
29+
})
30+
}
31+
32+
main()

0 commit comments

Comments
 (0)