Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo sync #466

Merged
merged 7 commits into from
Oct 13, 2020
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/allowed-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = [
'actions/setup-node@v1',
'actions/setup-ruby@v1',
'actions/stale@v3',
'crowdin/github-action@1.0.10',
'dawidd6/action-delete-branch@v3',
'docker://chinthakagodawita/autoupdate-action:v1',
'github/codeql-action/analyze@v1',
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Please ping @github/docs-localization in the PR whenever you update this file!

name: Crowdin Sync

on:
push:
branches:
- main

jobs:
sync_with_crowdin:
name: Sync with Crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Sync
uses: crowdin/github-action@1.0.10
with:
upload_translations: true
download_translations: true
create_pull_request: true

# Using a custom config temporarily to avoid clobbering the existing crowdin.yml
# that is used by the github-help-docs OAuth integration.
config: 'crowdin-actions-config.yml'

# This is the name of the git branch that Crowdin will create when opening a pull request.
# This branch does NOT need to be manually created. It will be created automatically by the action.
localization_branch_name: automated-crowdin-translations

# This is the name of the top-level directory that Crowdin will use for files.
# Note that this is not a "branch" in the git sense, but more like a top-level directory in your Crowdin project.
# This branch does NOT need to be manually created. It will be created automatically by the action.
crowdin_branch_name: crowdin-main

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# This is a numeric id, not to be confused with Crowdin API v1 "project identifier" string
# See "API v2" on https://crowdin.com/project/<your-project>/settings#api
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}

# A personal access token, not to be confused with Crowdin API v1 "API key"
# See https://crowdin.com/settings#api-key to generate a token
# This token was created by logging into Crowdin with the octoglot user
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion content/admin/configuration/network-ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Application ports provide web application and Git access for end users.
| 443 | HTTPS | Access to the web application and Git over HTTPS. |
| 80 | HTTP | Access to the web application. All requests are redirected to the HTTPS port when SSL is enabled. |
| 22 | SSH | Access to Git over SSH. Supports clone, fetch, and push operations to public and private repositories. |
| 9418 | Git | Git protocol port supports clone and fetch operations to public repositories with unencrypted network communication. |
| 9418 | Git | Git protocol port supports clone and fetch operations to public repositories with unencrypted network communication. {% data reusables.enterprise_installation.when-9418-necessary %} |

{% data reusables.enterprise_installation.terminating-tls %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ versions:

{% data reusables.codespaces.release-stage %}

### Connecting the {% data variables.product.prodname_vs_codespaces %} extension to your {% data variables.product.prodname_dotcom %} account
### Prerequisites

Before you can develop in a codespace directly in {% data variables.product.prodname_vscode %}, you must configure the {% data variables.product.prodname_vs_codespaces %} extension to connect to your {% data variables.product.product_name %} account.

Expand All @@ -29,11 +29,27 @@ Before you can develop in a codespace directly in {% data variables.product.prod
8. To authorize {% data variables.product.prodname_vscode %} to access your account on {% data variables.product.product_name %}, click **Allow**.
9. Sign in to {% data variables.product.product_name %} to approve the extension.

### Opening a codespace in {% data variables.product.prodname_vscode %}
### Creating a codespace in {% data variables.product.prodname_vscode %}

After you've connected your {% data variables.product.product_name %} account to the {% data variables.product.prodname_vs_codespaces %} extension, you can develop in a codespace that you created on {% data variables.product.product_name %} directly in {% data variables.product.prodname_vscode %}.
After you connect your {% data variables.product.product_name %} account to the {% data variables.product.prodname_vs_codespaces %} extension, you can develop in a codespace that you created on {% data variables.product.product_name %} or in {% data variables.product.prodname_vscode %}.

{% data reusables.codespaces.click-remote-explorer-icon-vscode %}
2. Click the Add icon, then click **Create New Codespace**.
![The Create new Codespace option in {% data variables.product.prodname_codespaces %}](/assets/images/help/codespaces/create-codespace-vscode.png)
3. Type, then click the repository's name you want to develop in.
![Searching for repository to create a new {% data variables.product.prodname_codespaces %}](/assets/images/help/codespaces/choose-repository-vscode.png)
4. Click the branch you want to develop in.
![Searching for a branch to create a new {% data variables.product.prodname_codespaces %}](/assets/images/help/codespaces/choose-branch-vscode.png)

### Opening a codespace in {% data variables.product.prodname_vscode %}

{% data reusables.codespaces.click-remote-explorer-icon-vscode %}
2. Under Codespaces, click the codespace you want to develop in.
3. Click the Connect to Codespace icon.
![The Connect to Codespace icon in {% data variables.product.prodname_vscode %}](/assets/images/help/codespaces/click-connect-to-codespace-icon-vscode.png)

### Deleting a codespace in {% data variables.product.prodname_vscode %}

1. Under Codespaces, right-click the codespace you want to delete.
2. In the drop-down menu, click **Delete Codespace**.
![Deleting a codespace in {% data variables.product.prodname_dotcom %}](/assets/images/help/codespaces/delete-codespace-vscode.png)
6 changes: 1 addition & 5 deletions content/rest/guides/basics-of-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ application, you should probably use [a library written in the language of your

#### Checking granted scopes

In the future, users will be able to [edit the scopes you requested][edit scopes post],
and your application might be granted less access than you originally asked for.
So, before making any requests with the token, you should check the scopes that
were granted for the token by the user.
Users can edit the scopes you requested by directly changing the URL. This can grant your application less access than you originally asked for. Before making any requests with the token, check the scopes that were granted for the token by the user. For more information about requested and granted scopes, see "[Scopes for OAuth Apps](/developers/apps/scopes-for-oauth-apps#requested-scopes-and-granted-scopes)."

The scopes that were granted are returned as a part of the response from
exchanging a token.
Expand Down Expand Up @@ -365,7 +362,6 @@ we would've seen the same confirmation dialog from earlier pop-up and warn us.
[REST Client]: https://github.com/archiloque/rest-client
[libraries]: /libraries/
[oauth scopes]: /apps/building-oauth-apps/understanding-scopes-for-oauth-apps/
[edit scopes post]: https://developer.github.com/changes/2013-10-04-oauth-changes-coming/
[platform samples]: https://github.com/github/platform-samples/tree/master/api/ruby/basics-of-authentication
[new oauth app]: https://github.com/settings/applications/new
[app settings]: https://github.com/settings/developers
25 changes: 25 additions & 0 deletions crowdin-actions-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
files:
- source: /content/**/*.md
translation: /translations/%locale%/%original_path%/%original_file_name%
ignore: [
"/content/README.md"
]
- source: /data/**/*.yml
translation: /translations/%locale%/%original_path%/%original_file_name%
- source: /data/**/*.md
translation: /translations/%locale%/%original_path%/%original_file_name%
ignore: [
"data/README.md",
"data/reusables/README.md",
"data/variables/product.yml",
"data/variables/README.md",
"data/graphql",
"data/products.yml"
]

# These end up as env vars used by the GitHub Actions workflow
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN

# https://support.crowdin.com/configuration-file-v3/#saving-directory-structure-on-server
preserve_hierarchy: true
100 changes: 0 additions & 100 deletions data/graphql/schema.docs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -93,31 +93,6 @@ type AcceptTopicSuggestionPayload {
topic: Topic
}

"""
The possible capabilities for action executions setting.
"""
enum ActionExecutionCapabilitySetting {
"""
All action executions are enabled.
"""
ALL_ACTIONS

"""
All action executions are disabled.
"""
DISABLED

"""
Only actions defined within the repo are allowed.
"""
LOCAL_ACTIONS_ONLY

"""
Organization administrators action execution capabilities.
"""
NO_POLICY
}

"""
Represents an object which can take actions on GitHub. Typically a User or Bot.
"""
Expand Down Expand Up @@ -8016,36 +7991,6 @@ type EnterpriseOutsideCollaboratorEdge {
Enterprise information only visible to enterprise owners.
"""
type EnterpriseOwnerInfo {
"""
A list of enterprise organizations configured with the provided action execution capabilities setting value.
"""
actionExecutionCapabilitySettingOrganizations(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: String

"""
Returns the elements in the list that come before the specified cursor.
"""
before: String

"""
Returns the first _n_ elements from the list.
"""
first: Int

"""
Returns the last _n_ elements from the list.
"""
last: Int

"""
Ordering options for organizations with this setting.
"""
orderBy: OrganizationOrder = {field: LOGIN, direction: ASC}
): OrganizationConnection!

"""
A list of all of the administrators for this enterprise.
"""
Expand Down Expand Up @@ -15219,11 +15164,6 @@ type Mutation {
"""
updateCheckSuitePreferences(input: UpdateCheckSuitePreferencesInput!): UpdateCheckSuitePreferencesPayload

"""
Sets the action execution capability setting for an enterprise.
"""
updateEnterpriseActionExecutionCapabilitySetting(input: UpdateEnterpriseActionExecutionCapabilitySettingInput!): UpdateEnterpriseActionExecutionCapabilitySettingPayload

"""
Updates the role of an enterprise administrator.
"""
Expand Down Expand Up @@ -36067,46 +36007,6 @@ type UpdateCheckSuitePreferencesPayload {
repository: Repository
}

"""
Autogenerated input type of UpdateEnterpriseActionExecutionCapabilitySetting
"""
input UpdateEnterpriseActionExecutionCapabilitySettingInput {
"""
The value for the action execution capability setting on the enterprise.
"""
capability: ActionExecutionCapabilitySetting!

"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
The ID of the enterprise on which to set the members can create repositories setting.
"""
enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"])
}

"""
Autogenerated return type of UpdateEnterpriseActionExecutionCapabilitySetting
"""
type UpdateEnterpriseActionExecutionCapabilitySettingPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
The enterprise with the updated action execution capability setting.
"""
enterprise: Enterprise

"""
A message confirming the result of updating the action execution capability setting.
"""
message: String
}

"""
Autogenerated input type of UpdateEnterpriseAdministratorRole
"""
Expand Down
2 changes: 1 addition & 1 deletion data/reusables/codespaces/use-visual-studio-features.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
After you open a codespace, you can develop using {% data variables.product.prodname_vscode %}'s features, such as text editing, debugging, and Git commands. For more information, see the [{% data variables.product.prodname_vscode %} documentation](https://code.visualstudio.com/docs).
You can edit code, debug, and use Git commands while developing in a codespace with {% data variables.product.prodname_vscode %}. For more information, see the [{% data variables.product.prodname_vscode %} documentation](https://code.visualstudio.com/docs).
2 changes: 1 addition & 1 deletion data/reusables/enterprise_installation/necessary_ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
| 1194/UDP | VPN | Secure replication network tunnel in high availability configuration. |
| 8080 | HTTP | Plain-text web based {% data variables.enterprise.management_console %}. *Not required unless SSL is disabled manually.* |
| 8443 | HTTPS | Secure web based {% data variables.enterprise.management_console %}. *Required for basic installation and configuration.* |
| 9418 | Git | Simple Git protocol port. Clone and fetch operations to public repositories only. *Unencrypted network communication.* |
| 9418 | Git | Simple Git protocol port. Clone and fetch operations to public repositories only. *Unencrypted network communication.* {% data reusables.enterprise_installation.when-9418-necessary %} |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If you have enabled private mode on your instance, then opening this port is only required if you also enabled anonymous Git read access. For more information, see "[Enforcing repository management policies in your enterprise](/admin/policies/enforcing-repository-management-policies-in-your-enterprise#configuring-anonymous-git-read-access)."
2 changes: 1 addition & 1 deletion lib/graphql/static/prerendered-objects.json

Large diffs are not rendered by default.

Loading