diff --git a/content/actions/security-guides/automatic-token-authentication.md b/content/actions/security-guides/automatic-token-authentication.md index 8394d835deb5..16a0f24f9588 100644 --- a/content/actions/security-guides/automatic-token-authentication.md +++ b/content/actions/security-guides/automatic-token-authentication.md @@ -86,7 +86,7 @@ The following table shows the permissions granted to the `GITHUB_TOKEN` by defau | checks | read/write | none | read | | contents | read/write | read | read | | deployments | read/write | none | read |{% ifversion fpt or ghec %} -| id-token | read/write | none | read |{% endif %} +| id-token | none | none | read |{% endif %} | issues | read/write | none | read | | metadata | read | read | read | | packages | read/write | none | read | diff --git a/docker-compose.prod.tmpl.yaml b/docker-compose.prod.tmpl.yaml index 75860f3884ee..e046064bfe26 100644 --- a/docker-compose.prod.tmpl.yaml +++ b/docker-compose.prod.tmpl.yaml @@ -7,6 +7,7 @@ services: - '4000:4000' environment: NODE_ENV: ${NODE_ENV} + NODE_OPTIONS: ${NODE_OPTIONS} DD_API_KEY: ${DD_API_KEY} COOKIE_SECRET: ${COOKIE_SECRET} HYDRO_ENDPOINT: ${HYDRO_ENDPOINT} diff --git a/lib/search/indexes/github-docs-3.0-cn-records.json.br b/lib/search/indexes/github-docs-3.0-cn-records.json.br index e98c7ae3ba10..8ee022c2ca1f 100644 --- a/lib/search/indexes/github-docs-3.0-cn-records.json.br +++ b/lib/search/indexes/github-docs-3.0-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:caaec6d7d9b05f4156c7417837aab9f684a1927d319001f5e100ba0e1f1663f8 -size 663784 +oid sha256:e9681a0d1325e916b5b8ebf60a8c0737e2e4dc29afc85a819dcd111a9c693378 +size 664309 diff --git a/lib/search/indexes/github-docs-3.0-cn.json.br b/lib/search/indexes/github-docs-3.0-cn.json.br index a811e07d8f63..588868624b1f 100644 --- a/lib/search/indexes/github-docs-3.0-cn.json.br +++ b/lib/search/indexes/github-docs-3.0-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6616b6d8b37b635d989431aa1ed6c18939b7500af1a68fb4da07db03ac5c0d26 -size 1388859 +oid sha256:6866fab62f78c55e659387722affd08733c204e493ebd4077234184c68b15e24 +size 1387737 diff --git a/lib/search/indexes/github-docs-3.0-en-records.json.br b/lib/search/indexes/github-docs-3.0-en-records.json.br index 85bfa7c3a177..fefdc00631e8 100644 --- a/lib/search/indexes/github-docs-3.0-en-records.json.br +++ b/lib/search/indexes/github-docs-3.0-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aaa9913ca28f379d1002fbfda83215043729d8c83a41d4ff8397e77187f86254 -size 988574 +oid sha256:f5e0be37ef757ec76a0578055467a98be8b6aa92f636cf593e76cd6e9a5fc8b8 +size 987550 diff --git a/lib/search/indexes/github-docs-3.0-en.json.br b/lib/search/indexes/github-docs-3.0-en.json.br index 4d65a7f917e2..6231b86a8428 100644 --- a/lib/search/indexes/github-docs-3.0-en.json.br +++ b/lib/search/indexes/github-docs-3.0-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5ee485ca299ab8831741cdc7a87d23e7fd94dcbbc449e730b06ddc36f61ce178 -size 4017362 +oid sha256:dd2a7e6d7f37a5b1927e6c70f9aeb764043b208558dc087203304e29fe3edf9d +size 4018373 diff --git a/lib/search/indexes/github-docs-3.0-es-records.json.br b/lib/search/indexes/github-docs-3.0-es-records.json.br index 258e31b0ca9b..085c95d7d313 100644 --- a/lib/search/indexes/github-docs-3.0-es-records.json.br +++ b/lib/search/indexes/github-docs-3.0-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f15afaf149875fca94ed6c4a1727eb88e126db5feb28b0e2c60f6adc72ca385 -size 618942 +oid sha256:b9b2b7488243a3e38ca39907da15dbad63047832779dcbb409c915a30e6af5d5 +size 618072 diff --git a/lib/search/indexes/github-docs-3.0-es.json.br b/lib/search/indexes/github-docs-3.0-es.json.br index b9ed5e5a57cb..a88ca9b72a2c 100644 --- a/lib/search/indexes/github-docs-3.0-es.json.br +++ b/lib/search/indexes/github-docs-3.0-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:54cf98c5425c1a45c12da0fd0432216a92ea1a8cc2f4555f68d6ad9b49dc176c -size 2596089 +oid sha256:38d20949383700bbddeb75a1e75e4dd6c98557ca355a55264f6e886a0ba46794 +size 2587414 diff --git a/lib/search/indexes/github-docs-3.0-ja-records.json.br b/lib/search/indexes/github-docs-3.0-ja-records.json.br index 3c54161edf29..777b76f855f8 100644 --- a/lib/search/indexes/github-docs-3.0-ja-records.json.br +++ b/lib/search/indexes/github-docs-3.0-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:25b3333f8942df06ec0d1e73dcfdad9e7e0a928d4e82e7c32e7d4ba6108c8171 -size 683944 +oid sha256:6e9f2581091c81cd9003d48390f7283a4f9f0bcc455492eeb61671e16ae931b8 +size 682369 diff --git a/lib/search/indexes/github-docs-3.0-ja.json.br b/lib/search/indexes/github-docs-3.0-ja.json.br index 13cf616bb12f..29e967ac82ae 100644 --- a/lib/search/indexes/github-docs-3.0-ja.json.br +++ b/lib/search/indexes/github-docs-3.0-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:502a848c3ca69fdc5a1020e37b4c0e064e5b0835121a6aba53bc15a34b12d93c -size 3620241 +oid sha256:ef705f23521f2420adf09864553f870be337fed535ac7704d9ca45972276b892 +size 3609429 diff --git a/lib/search/indexes/github-docs-3.0-pt-records.json.br b/lib/search/indexes/github-docs-3.0-pt-records.json.br index 9724db833cdc..f73219771604 100644 --- a/lib/search/indexes/github-docs-3.0-pt-records.json.br +++ b/lib/search/indexes/github-docs-3.0-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:51058a35331c9c83de7f5b6ce100e87aa4a8f48400ff8ad40d861cbc8db908f7 -size 609327 +oid sha256:f35b551dbd82ea7214a1484bac68defad2e3bd65e36e053d5e3a6ba902e0503c +size 608213 diff --git a/lib/search/indexes/github-docs-3.0-pt.json.br b/lib/search/indexes/github-docs-3.0-pt.json.br index 7d4cf19ecb14..4a53b23120af 100644 --- a/lib/search/indexes/github-docs-3.0-pt.json.br +++ b/lib/search/indexes/github-docs-3.0-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0369bc7fdd6aafbefc09977c03a30605259469abe1b5bc7c0586de494f51ed21 -size 2492121 +oid sha256:c17e9c99942c67f499f5048803b126055e26ca4340e567d968fd3a3bc819d30b +size 2481817 diff --git a/lib/search/indexes/github-docs-3.1-cn-records.json.br b/lib/search/indexes/github-docs-3.1-cn-records.json.br index 64330e1e8eab..747a855fe9c8 100644 --- a/lib/search/indexes/github-docs-3.1-cn-records.json.br +++ b/lib/search/indexes/github-docs-3.1-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a308a8fe84f5f056d3836077bc308bc481994d45a1c0e35a88cfa04b9a47dbed -size 674642 +oid sha256:6c79c460afacee04a40d74c6573a3c674a93401db295d821f2c927151eb754c5 +size 674350 diff --git a/lib/search/indexes/github-docs-3.1-cn.json.br b/lib/search/indexes/github-docs-3.1-cn.json.br index 6f4c3e1154e8..710be325bff2 100644 --- a/lib/search/indexes/github-docs-3.1-cn.json.br +++ b/lib/search/indexes/github-docs-3.1-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7d694a1360a93cbbee3f5c388d415abf80c58efe9f39aae7ecf54f56af4961c0 -size 1414782 +oid sha256:d735c5a5a9dba984b967fb1e7701ebb6dedd3cf21228a82bde3715fc0f766e5b +size 1412630 diff --git a/lib/search/indexes/github-docs-3.1-en-records.json.br b/lib/search/indexes/github-docs-3.1-en-records.json.br index ce50c88cf7df..9c13ef8c4b2a 100644 --- a/lib/search/indexes/github-docs-3.1-en-records.json.br +++ b/lib/search/indexes/github-docs-3.1-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1d52d247ea19e00653753bf34380ba1f7b363ab7b2d3711a049a326da34a11ce -size 1005357 +oid sha256:dc3b6c0f7336e04a49ae233caebb75eb10d92b071f443822ef747382ce1bd63c +size 1006724 diff --git a/lib/search/indexes/github-docs-3.1-en.json.br b/lib/search/indexes/github-docs-3.1-en.json.br index 523f7c90f432..2a19665ba33f 100644 --- a/lib/search/indexes/github-docs-3.1-en.json.br +++ b/lib/search/indexes/github-docs-3.1-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d04512561e91dab406b7f583d23991c02550a66a056cf581610634174f597c1b -size 4084002 +oid sha256:9c6c04455ce0aabb7a7a207c52f41a0d6b9dcac002f81fe77f4e2a0d226ad7a5 +size 4087209 diff --git a/lib/search/indexes/github-docs-3.1-es-records.json.br b/lib/search/indexes/github-docs-3.1-es-records.json.br index 504def83525f..b7c539d8bf18 100644 --- a/lib/search/indexes/github-docs-3.1-es-records.json.br +++ b/lib/search/indexes/github-docs-3.1-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3f2e95321bd8472de20df11bb5f9086848ed8ed3cb47da64013677287ad3c788 -size 627172 +oid sha256:a6aa03ee8c4efb748fb8711c6dedb4ef331a467b69651213e8646666bc229b28 +size 626858 diff --git a/lib/search/indexes/github-docs-3.1-es.json.br b/lib/search/indexes/github-docs-3.1-es.json.br index c4278c00ed3b..e51971949131 100644 --- a/lib/search/indexes/github-docs-3.1-es.json.br +++ b/lib/search/indexes/github-docs-3.1-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:04b4e3abf4f6124e549f606b81b72f57aec924f9e4ad05f29e4051bda462e3c4 -size 2637833 +oid sha256:b862037552f69d3fabc5d68607afd0ff2055cab531b06247bcda44c5ee7f0f72 +size 2631908 diff --git a/lib/search/indexes/github-docs-3.1-ja-records.json.br b/lib/search/indexes/github-docs-3.1-ja-records.json.br index 6fc0482bb823..b63a4b54a11a 100644 --- a/lib/search/indexes/github-docs-3.1-ja-records.json.br +++ b/lib/search/indexes/github-docs-3.1-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:730d17b7da3ab84c350cdc8a610fbc688e8bd7b6e5d94fce747a5639bab2860e -size 692347 +oid sha256:7e4d992375437eea9577f80b30fea541d21a7f3987d7a716a9edd080aa581895 +size 691650 diff --git a/lib/search/indexes/github-docs-3.1-ja.json.br b/lib/search/indexes/github-docs-3.1-ja.json.br index b285b8eb293e..ef4125e41b3e 100644 --- a/lib/search/indexes/github-docs-3.1-ja.json.br +++ b/lib/search/indexes/github-docs-3.1-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7a57c355e1da7db82b4b3ff953f04a592afe7775489a4892f9b02286cd9feb95 -size 3679434 +oid sha256:4e306d1c58851c5e518b73c617d722e95526080d540288e2103c0140a315a841 +size 3669075 diff --git a/lib/search/indexes/github-docs-3.1-pt-records.json.br b/lib/search/indexes/github-docs-3.1-pt-records.json.br index 0ec3f9d80c51..97ceb1fc6e28 100644 --- a/lib/search/indexes/github-docs-3.1-pt-records.json.br +++ b/lib/search/indexes/github-docs-3.1-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:da22a1138295b35fe870703680630858f607cb4d3de0c515db5d9ae9b0d8468d -size 616807 +oid sha256:8e3a0130c43706e3efe5ae7e430f69afcbba08ca24a77d44d17751d69a93e76c +size 616823 diff --git a/lib/search/indexes/github-docs-3.1-pt.json.br b/lib/search/indexes/github-docs-3.1-pt.json.br index d20ded17d9e5..757bec3d043a 100644 --- a/lib/search/indexes/github-docs-3.1-pt.json.br +++ b/lib/search/indexes/github-docs-3.1-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:494baa9901b5bbd4385aafca3f1bf925a7609023c49c937b1c8eccdc6a15402f -size 2529799 +oid sha256:0940dafdda5982812180b40e736abc6f75cca15d281dc3a956ee7087d22bb50a +size 2520631 diff --git a/lib/search/indexes/github-docs-3.2-cn-records.json.br b/lib/search/indexes/github-docs-3.2-cn-records.json.br index 39a885d26167..9816440bdc18 100644 --- a/lib/search/indexes/github-docs-3.2-cn-records.json.br +++ b/lib/search/indexes/github-docs-3.2-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5c9a3173138a0c9ad212746dfb50e35e702902d593da36a1297d9ca8da896b80 -size 690356 +oid sha256:eacc8d8ac552d29afb01ae83e419f60c050eb85acc8fe5b2a257ff56076e02be +size 689207 diff --git a/lib/search/indexes/github-docs-3.2-cn.json.br b/lib/search/indexes/github-docs-3.2-cn.json.br index 32cec990f92a..75ef3be136ab 100644 --- a/lib/search/indexes/github-docs-3.2-cn.json.br +++ b/lib/search/indexes/github-docs-3.2-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2400512eba2ff0b9dd126ca4e03478fa8ffbdd3205127491ab6b88ee05f72db2 -size 1446257 +oid sha256:7507f67b9e9022ce2b8ac5e499f52f55df1f62c2677684a7fb79d65fd75143ab +size 1445040 diff --git a/lib/search/indexes/github-docs-3.2-en-records.json.br b/lib/search/indexes/github-docs-3.2-en-records.json.br index 19d371c1cc54..0a202e6fd946 100644 --- a/lib/search/indexes/github-docs-3.2-en-records.json.br +++ b/lib/search/indexes/github-docs-3.2-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2a1ed85171ad5d8f68ce8c2a34ae6b680af30a44a2ecbd145192b9d6ac60a9b6 -size 1042798 +oid sha256:d3af18cf561bf93efcc1d8b29d63af44a193a6b791bf6544c7cc1a05d8cb3e8d +size 1038213 diff --git a/lib/search/indexes/github-docs-3.2-en.json.br b/lib/search/indexes/github-docs-3.2-en.json.br index ed24df57f7cb..0533176e3992 100644 --- a/lib/search/indexes/github-docs-3.2-en.json.br +++ b/lib/search/indexes/github-docs-3.2-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:575a0cce8e72b3d0363ce944a72bed74280fe644e87614b5d907e1dac29920f1 -size 4216116 +oid sha256:040327356eeb3823f986ce55766c283af10f0cc0f9e865bcdf05c27e46aee724 +size 4216955 diff --git a/lib/search/indexes/github-docs-3.2-es-records.json.br b/lib/search/indexes/github-docs-3.2-es-records.json.br index 1cb533da612e..f5fb2e975d7a 100644 --- a/lib/search/indexes/github-docs-3.2-es-records.json.br +++ b/lib/search/indexes/github-docs-3.2-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:66e12c91a0fb88a3f281ac62c5334f8f48fd1fc805ffe819db6d474d14169b88 -size 641408 +oid sha256:88fac0a8366cd1f110c4f16b8eb81a914a194f1f4171155012cd8e3a97d8f6c1 +size 641553 diff --git a/lib/search/indexes/github-docs-3.2-es.json.br b/lib/search/indexes/github-docs-3.2-es.json.br index f3d0e01bc7f8..5289f6dce99d 100644 --- a/lib/search/indexes/github-docs-3.2-es.json.br +++ b/lib/search/indexes/github-docs-3.2-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9ba7ef6c62e68a082e9f8a61cd58ae760e979909507559d01f21b051d521dcbb -size 2703641 +oid sha256:00425135f6f269e69ceb1fc6a2d4e6f42543dbffde622fa9061f3274b9d0738d +size 2696303 diff --git a/lib/search/indexes/github-docs-3.2-ja-records.json.br b/lib/search/indexes/github-docs-3.2-ja-records.json.br index 50f44e562747..0f0f611feda8 100644 --- a/lib/search/indexes/github-docs-3.2-ja-records.json.br +++ b/lib/search/indexes/github-docs-3.2-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b52a0a51dd661356dc3c64a0e8fc5c2f0c696fe27549131a0cfce797e8b8a544 -size 707300 +oid sha256:76e996424067d9509704a1af8b111a124e0af8f7359658e760c020835930954a +size 707103 diff --git a/lib/search/indexes/github-docs-3.2-ja.json.br b/lib/search/indexes/github-docs-3.2-ja.json.br index 1eecbcc080ca..3350bb69f370 100644 --- a/lib/search/indexes/github-docs-3.2-ja.json.br +++ b/lib/search/indexes/github-docs-3.2-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:96b1d5a35cbcbcf11e05e2c2a513b2fea7390d9c7c5f663371116aa4dc6e3362 -size 3762187 +oid sha256:f113565a742031787b4bf797cdd804aed050b787e9f3ff27d9f0c13fe10bf43b +size 3750239 diff --git a/lib/search/indexes/github-docs-3.2-pt-records.json.br b/lib/search/indexes/github-docs-3.2-pt-records.json.br index c16dd795a7ec..a8801299e9aa 100644 --- a/lib/search/indexes/github-docs-3.2-pt-records.json.br +++ b/lib/search/indexes/github-docs-3.2-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:60b15aa1150efa34fe1411d4d18a6f599c0ef4de08bca72c83a98c48686d90d9 -size 631981 +oid sha256:5ed51409bc6471df8440b7367bcb7cf59140dea071bfd2a8c90eba53895ed2cf +size 631139 diff --git a/lib/search/indexes/github-docs-3.2-pt.json.br b/lib/search/indexes/github-docs-3.2-pt.json.br index 09d99d26dbe8..8217fb2757b1 100644 --- a/lib/search/indexes/github-docs-3.2-pt.json.br +++ b/lib/search/indexes/github-docs-3.2-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0affd100ebeb27b5bbc22b8586d613f37e43ac56246fcd802a0cf043f42d6466 -size 2585120 +oid sha256:6d04704232cc6eb2178e057d3501ff9bd29b8dfeb127b970e2c28d0b86c69557 +size 2579312 diff --git a/lib/search/indexes/github-docs-3.3-cn-records.json.br b/lib/search/indexes/github-docs-3.3-cn-records.json.br index 7773047d21ac..f4e95734082b 100644 --- a/lib/search/indexes/github-docs-3.3-cn-records.json.br +++ b/lib/search/indexes/github-docs-3.3-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5a274c54cc435b40ce06e54f2c87da4bbe88da206f629df4412740a564f6b5d1 -size 711787 +oid sha256:4e3f0c34df01fb0b17e4484d24406b2d3a4ef192cadadfb33a6d723836d349cc +size 711095 diff --git a/lib/search/indexes/github-docs-3.3-cn.json.br b/lib/search/indexes/github-docs-3.3-cn.json.br index a2bfa27ab539..432a4f74407c 100644 --- a/lib/search/indexes/github-docs-3.3-cn.json.br +++ b/lib/search/indexes/github-docs-3.3-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:df52655d181310ea26990e7f763b7f80920b4cb85c8585145c9fd751c87f9ec5 -size 1504858 +oid sha256:621b0ce42e544b55d57146956c5ac194dba7450e222a37a9a1a7cf42e6f0a4fc +size 1501738 diff --git a/lib/search/indexes/github-docs-3.3-en-records.json.br b/lib/search/indexes/github-docs-3.3-en-records.json.br index fa845a00b4be..2486f8656787 100644 --- a/lib/search/indexes/github-docs-3.3-en-records.json.br +++ b/lib/search/indexes/github-docs-3.3-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:83c735a17526896335b1341fb952dfda4d03a002ebc2e4c343ec01a05833e2ea -size 1073197 +oid sha256:974127e51dbe0a344ddb8c86dd9e33e1a260886ea05a6870944e165a75220440 +size 1075536 diff --git a/lib/search/indexes/github-docs-3.3-en.json.br b/lib/search/indexes/github-docs-3.3-en.json.br index f3db26b46bcd..01a315589df7 100644 --- a/lib/search/indexes/github-docs-3.3-en.json.br +++ b/lib/search/indexes/github-docs-3.3-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:184606c7040bf7357816c9a1c000937154fd6b439aa16bad0bcc177cda835174 -size 4317651 +oid sha256:d79c08b3d708e051425df0af330d38a6394e41dbbd11d209cd67900f02404fdf +size 4322269 diff --git a/lib/search/indexes/github-docs-3.3-es-records.json.br b/lib/search/indexes/github-docs-3.3-es-records.json.br index 389f582a1822..dec4a2464253 100644 --- a/lib/search/indexes/github-docs-3.3-es-records.json.br +++ b/lib/search/indexes/github-docs-3.3-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a190cbb5f40513697f11ab9a352d91e2e27cdbcce5591582bb3efcddc00e6bcf -size 661341 +oid sha256:e14ab4e474aac3d643e6f09f3ffe496c26be27c1e5a8c9576c38c4d5dc1a6b73 +size 660646 diff --git a/lib/search/indexes/github-docs-3.3-es.json.br b/lib/search/indexes/github-docs-3.3-es.json.br index db8f9f16bfcf..bfa7891d005e 100644 --- a/lib/search/indexes/github-docs-3.3-es.json.br +++ b/lib/search/indexes/github-docs-3.3-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:35f04a8e34da2aba0e93f3e5c5126ebb88d55dc39701a55ea8450db321faa479 -size 2807078 +oid sha256:23ac9bbf49f611ce19c6280ae2698c3914b5aa6e8ebaaf673a9e947f2eb3474b +size 2798566 diff --git a/lib/search/indexes/github-docs-3.3-ja-records.json.br b/lib/search/indexes/github-docs-3.3-ja-records.json.br index 74e60185577f..298db0d2e211 100644 --- a/lib/search/indexes/github-docs-3.3-ja-records.json.br +++ b/lib/search/indexes/github-docs-3.3-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:01637efa5b2fbccc081215a1913c4eb3fb282f62d1bd8ab55db7410b30f343da -size 730228 +oid sha256:0116b2a9322239123413ba7ba1c022434954b9ae697bb9277488d48e8d9e36e0 +size 729431 diff --git a/lib/search/indexes/github-docs-3.3-ja.json.br b/lib/search/indexes/github-docs-3.3-ja.json.br index fac65964cffb..f6bc8c081ae4 100644 --- a/lib/search/indexes/github-docs-3.3-ja.json.br +++ b/lib/search/indexes/github-docs-3.3-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ed4039a7cc060be225671656eed46de159e3e6ae22800944c36297194501242d -size 3886081 +oid sha256:ad45b19188548b2ddc7cbb9c7973367897d940af06355a9aecf8d7ba9dc48ebf +size 3874275 diff --git a/lib/search/indexes/github-docs-3.3-pt-records.json.br b/lib/search/indexes/github-docs-3.3-pt-records.json.br index 9abd2fbf8e72..909929616e40 100644 --- a/lib/search/indexes/github-docs-3.3-pt-records.json.br +++ b/lib/search/indexes/github-docs-3.3-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a4564c396b950df1b7a8db8d74500317bad657bfa55e015337f938f5dd1dc5c5 -size 650102 +oid sha256:67247dbf0e7bd6bd94b4cc505151ee45baf5434066a60dc013a5f353f51dcf1e +size 650699 diff --git a/lib/search/indexes/github-docs-3.3-pt.json.br b/lib/search/indexes/github-docs-3.3-pt.json.br index 9161ab66b39f..db5aef87ebd3 100644 --- a/lib/search/indexes/github-docs-3.3-pt.json.br +++ b/lib/search/indexes/github-docs-3.3-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:84338c81731ef90ed9ebdb601f5cdabeeaab9d68fe649096ab2fa4aa4aeb7d4d -size 2671210 +oid sha256:b016c185c67d051cde01c50ea29e9e7b63622604d424cfbabd3e87516330a067 +size 2662961 diff --git a/lib/search/indexes/github-docs-3.4-cn-records.json.br b/lib/search/indexes/github-docs-3.4-cn-records.json.br index e0defcdacefc..ee0f33024ca7 100644 --- a/lib/search/indexes/github-docs-3.4-cn-records.json.br +++ b/lib/search/indexes/github-docs-3.4-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:11dcbefe3fe44781e01e19c65fdc15aecee632b280a61f006e2b37c4d27a2bbe -size 716301 +oid sha256:21ebb59f7c44bc5b56b1175666dd5e53f894dc06318e49a8936fd141c340e40e +size 714940 diff --git a/lib/search/indexes/github-docs-3.4-cn.json.br b/lib/search/indexes/github-docs-3.4-cn.json.br index 077eedccf332..1e9d2c3b96fb 100644 --- a/lib/search/indexes/github-docs-3.4-cn.json.br +++ b/lib/search/indexes/github-docs-3.4-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ff00daba6a8cf0b3eec2ede624ed864db9fbb5ccd907042eafa8d283f673702a -size 1525532 +oid sha256:e8302921c1c6f180e8025a19545e75e44ff0b2f24f2022a21ef82806e090fdc5 +size 1521689 diff --git a/lib/search/indexes/github-docs-3.4-en-records.json.br b/lib/search/indexes/github-docs-3.4-en-records.json.br index 1ada243a41b7..e6b27eb85fc6 100644 --- a/lib/search/indexes/github-docs-3.4-en-records.json.br +++ b/lib/search/indexes/github-docs-3.4-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:92d2467a33b92a243c6aa2657bb8cd2b0554c00ca01d67944d141b077600a1ca -size 1087967 +oid sha256:be29595ffbd4bb65f33b886dd41c3dfdcbd2e0eb2c0a40567404166220c971f8 +size 1087289 diff --git a/lib/search/indexes/github-docs-3.4-en.json.br b/lib/search/indexes/github-docs-3.4-en.json.br index b8deac6b3c50..21effe920a30 100644 --- a/lib/search/indexes/github-docs-3.4-en.json.br +++ b/lib/search/indexes/github-docs-3.4-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:097d6e89294755ec6a38d7fb764cb0067f8bc12902830c5cdeaa598acd4185bc -size 4389644 +oid sha256:216b1cd7bcf77cc2559f6879dfb1abcccb6b55f2031b654384390070ebe9890e +size 4392809 diff --git a/lib/search/indexes/github-docs-3.4-es-records.json.br b/lib/search/indexes/github-docs-3.4-es-records.json.br index 3dc9cd51c495..5f7c0657d5d2 100644 --- a/lib/search/indexes/github-docs-3.4-es-records.json.br +++ b/lib/search/indexes/github-docs-3.4-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:946ecec6095e2da872437de61982063d8ae87953ecdc538077cbd78d098057c6 -size 666272 +oid sha256:bca3c07a7b36131c29baaa19bc2c200aacf6b65cfaafaa03394d184173b73ee8 +size 667086 diff --git a/lib/search/indexes/github-docs-3.4-es.json.br b/lib/search/indexes/github-docs-3.4-es.json.br index 6cbca9d3aa82..5a41c8ced289 100644 --- a/lib/search/indexes/github-docs-3.4-es.json.br +++ b/lib/search/indexes/github-docs-3.4-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c4185e198548416034e3dfa0f67f8dc67465d7f1862d8f369399672f39e25661 -size 2833030 +oid sha256:2319c2d42255276e20bf471a8480d82655c0b4fd6eb02d5687246e0e61300eb7 +size 2823969 diff --git a/lib/search/indexes/github-docs-3.4-ja-records.json.br b/lib/search/indexes/github-docs-3.4-ja-records.json.br index c7d16f278415..0c046716aff3 100644 --- a/lib/search/indexes/github-docs-3.4-ja-records.json.br +++ b/lib/search/indexes/github-docs-3.4-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:825e587baece99a095a52902e8e1c761f1893e9cb53e136e00898f3b81a48ed2 -size 734266 +oid sha256:f33ea2a819f4bf6c5b7521d86e112426735408b1101ba7e56ec270d460255a54 +size 733311 diff --git a/lib/search/indexes/github-docs-3.4-ja.json.br b/lib/search/indexes/github-docs-3.4-ja.json.br index b9eed0fa0156..a4eccc1f19c2 100644 --- a/lib/search/indexes/github-docs-3.4-ja.json.br +++ b/lib/search/indexes/github-docs-3.4-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:75e60d23d5660e8e517860fd00d3b65cc3c46c7cab38824ab00b94cabb3ebc0f -size 3911625 +oid sha256:2c0bc815bf32043e3e44b9cb18c1ad474677f88a78ff8523e43bcd4714f22379 +size 3899030 diff --git a/lib/search/indexes/github-docs-3.4-pt-records.json.br b/lib/search/indexes/github-docs-3.4-pt-records.json.br index f60b8b04faab..ac3c06805c02 100644 --- a/lib/search/indexes/github-docs-3.4-pt-records.json.br +++ b/lib/search/indexes/github-docs-3.4-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b211733e77563c21b18341e796b2ac9429a205f703933671eeba4f6296dfe77b -size 656351 +oid sha256:0ad166ad83c28504d3587b03f3c58049ef01a446fa81977f0f6da0518cce1e72 +size 655855 diff --git a/lib/search/indexes/github-docs-3.4-pt.json.br b/lib/search/indexes/github-docs-3.4-pt.json.br index f14a7e9a7082..8808f4d3e309 100644 --- a/lib/search/indexes/github-docs-3.4-pt.json.br +++ b/lib/search/indexes/github-docs-3.4-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:58d9efc7cd84065d84d934bbbf7f9e96c27b030f21cd2dcc5265a8570554423e -size 2693532 +oid sha256:12f2fbda9839bcbc8961240d2ed378f7466e81be8a13da629a2fed44b0d58083 +size 2685015 diff --git a/lib/search/indexes/github-docs-dotcom-cn-records.json.br b/lib/search/indexes/github-docs-dotcom-cn-records.json.br index 9dcb412fbb9c..4dd6a597cd20 100644 --- a/lib/search/indexes/github-docs-dotcom-cn-records.json.br +++ b/lib/search/indexes/github-docs-dotcom-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f1430a29b8077c832b8c2456a6e6ab6056f645eb1457903f3a6d10fd2a8d405f -size 913984 +oid sha256:14d8522338b66bfe5ada0bea38d249242a9eb596a58afc381ad45de1fd57720e +size 911671 diff --git a/lib/search/indexes/github-docs-dotcom-cn.json.br b/lib/search/indexes/github-docs-dotcom-cn.json.br index 07f81afb213b..5b689989d8ef 100644 --- a/lib/search/indexes/github-docs-dotcom-cn.json.br +++ b/lib/search/indexes/github-docs-dotcom-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b56119d5e01b3cd701422d3d61aeae6ad606d72d26901a03c9be098b46fc9415 -size 1678673 +oid sha256:c95cd9dfe1fa1eaf2382bed0a213d87d8f37eaa9d524537525aafd8b1c753665 +size 1671883 diff --git a/lib/search/indexes/github-docs-dotcom-en-records.json.br b/lib/search/indexes/github-docs-dotcom-en-records.json.br index 4d043a1ec06e..342549de908f 100644 --- a/lib/search/indexes/github-docs-dotcom-en-records.json.br +++ b/lib/search/indexes/github-docs-dotcom-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c8df4383b58e866e52c8cddcb3ebbd2eb4c17fee6cabbdf7ce4deed210e2b7a6 -size 1366115 +oid sha256:ece8470525cc2e6403c7823c316e3f5a0e20a1ebce993ea08617fd4b0876ef8a +size 1367119 diff --git a/lib/search/indexes/github-docs-dotcom-en.json.br b/lib/search/indexes/github-docs-dotcom-en.json.br index 1507415440b0..8685b33e34ad 100644 --- a/lib/search/indexes/github-docs-dotcom-en.json.br +++ b/lib/search/indexes/github-docs-dotcom-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a5c01e94c7459f196fd079d172dbb011d3ea8016096e65af4f1dfa9522cccf6a -size 5202390 +oid sha256:c5eb76be0170efa44c7be92030062c5713c9ab514fb461a9de1287f24facf3f5 +size 5202739 diff --git a/lib/search/indexes/github-docs-dotcom-es-records.json.br b/lib/search/indexes/github-docs-dotcom-es-records.json.br index 5edf464b64d1..69bd4563c21c 100644 --- a/lib/search/indexes/github-docs-dotcom-es-records.json.br +++ b/lib/search/indexes/github-docs-dotcom-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6d8098b94564984d2cdc0ddf738fa80501e54a30dd489f1af8e404a224f9fd6e -size 831548 +oid sha256:71c3b7fc60819689cb6b3a50d9b69af30b933a91263b550d4dae05cf88b4802e +size 830549 diff --git a/lib/search/indexes/github-docs-dotcom-es.json.br b/lib/search/indexes/github-docs-dotcom-es.json.br index 0ddcc235715a..d546b57582ec 100644 --- a/lib/search/indexes/github-docs-dotcom-es.json.br +++ b/lib/search/indexes/github-docs-dotcom-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3dad9d9a119f8322bf62e1a547ba7d7c51b6d3bfd83fed3434179b1885fb2c80 -size 3342736 +oid sha256:eab8e64bf970214943515d4cc3357ef54e35541c51b4657ca70165171abfc0e3 +size 3319736 diff --git a/lib/search/indexes/github-docs-dotcom-ja-records.json.br b/lib/search/indexes/github-docs-dotcom-ja-records.json.br index 0490abd50080..4e92002ae17c 100644 --- a/lib/search/indexes/github-docs-dotcom-ja-records.json.br +++ b/lib/search/indexes/github-docs-dotcom-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a6b4cd67e293f6d6ecf143b1a73e1a5019f4d2d07536c6f7fa7ef58612edb38c -size 933729 +oid sha256:90fe5ad52a2aea6f86e142f0e6c351e6aa03e6a04a967e97e3e48415c6d22805 +size 933172 diff --git a/lib/search/indexes/github-docs-dotcom-ja.json.br b/lib/search/indexes/github-docs-dotcom-ja.json.br index 7a979d41e953..71491d44b191 100644 --- a/lib/search/indexes/github-docs-dotcom-ja.json.br +++ b/lib/search/indexes/github-docs-dotcom-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9e001f5a4e56d2160b2e0d173c5892722bea627cb564d8e261c35422673a3a5f -size 4752591 +oid sha256:f63757ee5686312d8a807f2dc5a46d509bc1f15ddeca0a93d15ef549271f9e06 +size 4725123 diff --git a/lib/search/indexes/github-docs-dotcom-pt-records.json.br b/lib/search/indexes/github-docs-dotcom-pt-records.json.br index 6a3b862f80ea..b393f748a691 100644 --- a/lib/search/indexes/github-docs-dotcom-pt-records.json.br +++ b/lib/search/indexes/github-docs-dotcom-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d1868aac4cf60c5e84779a1c96f3535537e0c67afe9f7bf5d341fb10ec506657 -size 820624 +oid sha256:6d0dcb5e39dca6aecb34d6e362bbfc34cb256399b4f72beadb9bb5b6bacc5704 +size 819078 diff --git a/lib/search/indexes/github-docs-dotcom-pt.json.br b/lib/search/indexes/github-docs-dotcom-pt.json.br index bad0d4caea10..51a498fe21cd 100644 --- a/lib/search/indexes/github-docs-dotcom-pt.json.br +++ b/lib/search/indexes/github-docs-dotcom-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4b1726d6b41bcaa90cd2a8e22cba913908bd46348abf945177946b5393114021 -size 3196272 +oid sha256:f7c87e8b6bd3007c84f0d06f37ac0958725dd89a68a6840b0bc030088937fe9d +size 3166607 diff --git a/lib/search/indexes/github-docs-ghae-cn-records.json.br b/lib/search/indexes/github-docs-ghae-cn-records.json.br index dfbbb4c93055..7539aaba2423 100644 --- a/lib/search/indexes/github-docs-ghae-cn-records.json.br +++ b/lib/search/indexes/github-docs-ghae-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fa4ae3afd9f465fe34d08fdecf27ce5939fd1260850716300296c42440ebebe8 -size 558687 +oid sha256:9bbf96bd9b1004372cc3c4558e706d14ba0cc6e1150f444ff6fc69b7b1aad65e +size 559047 diff --git a/lib/search/indexes/github-docs-ghae-cn.json.br b/lib/search/indexes/github-docs-ghae-cn.json.br index 7c448d2919b2..d6b60d0d87dc 100644 --- a/lib/search/indexes/github-docs-ghae-cn.json.br +++ b/lib/search/indexes/github-docs-ghae-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1c4dda33e0ad0f1de3d71d7d151e375ab1bb46d62421a5c595c897b013bbf304 -size 1124546 +oid sha256:bd157f347fa4148c07333ad3b36bad9d718b6547030a35d5239a47df98140b93 +size 1123477 diff --git a/lib/search/indexes/github-docs-ghae-en-records.json.br b/lib/search/indexes/github-docs-ghae-en-records.json.br index 864b566eae5b..1799948e2773 100644 --- a/lib/search/indexes/github-docs-ghae-en-records.json.br +++ b/lib/search/indexes/github-docs-ghae-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8ad49c3450e50153ecaab4d46c4a4f650af1b6869fe91914bfb0db2055f66d7a -size 857377 +oid sha256:62a7ced51ff610603b5b24edfd978785c9971199b5460e31979ae5070e93f4ae +size 857833 diff --git a/lib/search/indexes/github-docs-ghae-en.json.br b/lib/search/indexes/github-docs-ghae-en.json.br index 8a1007834309..345896a41db2 100644 --- a/lib/search/indexes/github-docs-ghae-en.json.br +++ b/lib/search/indexes/github-docs-ghae-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4b149b2e90065ca0ad1273ca7350f1d55800765db0527acc7ccef8910b817bb9 -size 3426790 +oid sha256:a6dafa63afd814e3f2f4600cfc8d871c995c8e4e841402e8127b7e12244f90e1 +size 3427368 diff --git a/lib/search/indexes/github-docs-ghae-es-records.json.br b/lib/search/indexes/github-docs-ghae-es-records.json.br index 5223601efddf..437c7c42d18e 100644 --- a/lib/search/indexes/github-docs-ghae-es-records.json.br +++ b/lib/search/indexes/github-docs-ghae-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4b095614cc515d29fb33d100bca544a1f779b11719120d6946bd0154bee27875 -size 519990 +oid sha256:7435bece00e26fadd3c0cc15e32e55194769b037591ea0af9bb2c6dbd9d9406c +size 519459 diff --git a/lib/search/indexes/github-docs-ghae-es.json.br b/lib/search/indexes/github-docs-ghae-es.json.br index 814dfd6156c8..7eddd9de81f7 100644 --- a/lib/search/indexes/github-docs-ghae-es.json.br +++ b/lib/search/indexes/github-docs-ghae-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8561d32e9e148f227a1aafb0e546a31a596395660de168ae3250a470c79ed9dc -size 2111904 +oid sha256:3615ac5fdb0f473139cba3629e53d4f45b06c1bda3b1d57799fc395c9d727946 +size 2105096 diff --git a/lib/search/indexes/github-docs-ghae-ja-records.json.br b/lib/search/indexes/github-docs-ghae-ja-records.json.br index d037381fb0f2..289ad4e4beeb 100644 --- a/lib/search/indexes/github-docs-ghae-ja-records.json.br +++ b/lib/search/indexes/github-docs-ghae-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:165b85e064b58ac5012c6ef5ff102d784e70c0ef14f49989ee53ad83094192db -size 572593 +oid sha256:2a91f5606b8fa9c2a86b8fa4e72e0dc9091d080ecf3ab1b7825b1829a4ed05fe +size 571899 diff --git a/lib/search/indexes/github-docs-ghae-ja.json.br b/lib/search/indexes/github-docs-ghae-ja.json.br index ac0834c8adb7..8099a1db82f6 100644 --- a/lib/search/indexes/github-docs-ghae-ja.json.br +++ b/lib/search/indexes/github-docs-ghae-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:145335f48864137a520d1602a4cf9e8c0248087690c820ba479e39a2afa1dae2 -size 2935281 +oid sha256:1e8942137c4a6e0022c2e3d3c5a3da0f1a8dde8adbb4ceb56c4128645435b22e +size 2924182 diff --git a/lib/search/indexes/github-docs-ghae-pt-records.json.br b/lib/search/indexes/github-docs-ghae-pt-records.json.br index bea5787b5f99..92c21464d67b 100644 --- a/lib/search/indexes/github-docs-ghae-pt-records.json.br +++ b/lib/search/indexes/github-docs-ghae-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e2912665077635b6324ff30c7227fbb8df1e6a835be86ee646abfd48910b8140 -size 511342 +oid sha256:c629035a36be930f2b9afa7153f12a674b303752dc50c101552a85e5510ecb55 +size 511486 diff --git a/lib/search/indexes/github-docs-ghae-pt.json.br b/lib/search/indexes/github-docs-ghae-pt.json.br index 2550368bd7a1..c96c4dcdf03a 100644 --- a/lib/search/indexes/github-docs-ghae-pt.json.br +++ b/lib/search/indexes/github-docs-ghae-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bd6b70d8a3892b5e294ecb3b1e3eb2190395bfbc7b379aa3038721901687d506 -size 1999651 +oid sha256:b97151da5a91a926de8886fb6123f7b6116017516df28db23821432915112a54 +size 1992650 diff --git a/lib/search/indexes/github-docs-ghec-cn-records.json.br b/lib/search/indexes/github-docs-ghec-cn-records.json.br index a6e878426baf..9666ed64f418 100644 --- a/lib/search/indexes/github-docs-ghec-cn-records.json.br +++ b/lib/search/indexes/github-docs-ghec-cn-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:01a0d8f6d852f0833d79779b7bb32b2f01a19b6931eba1de55a19462edce0de1 -size 839959 +oid sha256:56448bdd1ea8a89a55df0a05beed1454d877f705a5cd2e16bbe3426a2c445889 +size 837954 diff --git a/lib/search/indexes/github-docs-ghec-cn.json.br b/lib/search/indexes/github-docs-ghec-cn.json.br index 917629801a66..f82ba700eb9e 100644 --- a/lib/search/indexes/github-docs-ghec-cn.json.br +++ b/lib/search/indexes/github-docs-ghec-cn.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f3df7d4ba30057fc5d831c33a5a832e1e9e3ff3bdf4f4ed0f2691b7358932159 -size 1748720 +oid sha256:cef6e7b2b54f9ab43c01d9801a8aaadcc31953a5c237c125e0f8f38eed28149b +size 1740677 diff --git a/lib/search/indexes/github-docs-ghec-en-records.json.br b/lib/search/indexes/github-docs-ghec-en-records.json.br index 3f17d6e24602..de5ee2dda8ae 100644 --- a/lib/search/indexes/github-docs-ghec-en-records.json.br +++ b/lib/search/indexes/github-docs-ghec-en-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:481e2c3271b8b0dc02089338b2fa09a851a671eeb0bd17006f6f317c1b21bc33 -size 1241835 +oid sha256:7ff8c74e3f96c5f8d00202332723777078e105ed58ea2dab3cc9591d7bf2951a +size 1238559 diff --git a/lib/search/indexes/github-docs-ghec-en.json.br b/lib/search/indexes/github-docs-ghec-en.json.br index 95cf3ebd66d5..4b8c6409cfcb 100644 --- a/lib/search/indexes/github-docs-ghec-en.json.br +++ b/lib/search/indexes/github-docs-ghec-en.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:10682ecca4d6f6526a7281d5c9c610168f18c4273e935e43e71be79535b6c154 -size 4991854 +oid sha256:e0d810d1ccc5398fa315106a78e12412074398a559d523f4c169967ae78c7453 +size 4992363 diff --git a/lib/search/indexes/github-docs-ghec-es-records.json.br b/lib/search/indexes/github-docs-ghec-es-records.json.br index f93698ed68ed..ce348a0c270e 100644 --- a/lib/search/indexes/github-docs-ghec-es-records.json.br +++ b/lib/search/indexes/github-docs-ghec-es-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:664a431939c99e7ea3d477ac92334f0071c6679d9143bfab92e65153ef845e0a -size 791706 +oid sha256:cd8b3711321c05e454b30c81764ff784a96018307c50d3652837ae3347302f66 +size 789488 diff --git a/lib/search/indexes/github-docs-ghec-es.json.br b/lib/search/indexes/github-docs-ghec-es.json.br index 7d2748f5e5c9..05cac9fa7d38 100644 --- a/lib/search/indexes/github-docs-ghec-es.json.br +++ b/lib/search/indexes/github-docs-ghec-es.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f071bfb86560019b044850bfc7015b85bd00f0766ac103494bd3ca345328c5b -size 3336507 +oid sha256:37e37d32bbcd676f7d58b8133cf9a2ab44cb60611a028cde8a4fff48ea091b16 +size 3315984 diff --git a/lib/search/indexes/github-docs-ghec-ja-records.json.br b/lib/search/indexes/github-docs-ghec-ja-records.json.br index 36d9a66d9833..ec256455299f 100644 --- a/lib/search/indexes/github-docs-ghec-ja-records.json.br +++ b/lib/search/indexes/github-docs-ghec-ja-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aca118cb62b4a873905658d07dc9c9578c4bd748e3e51fcd78e1cf03d1b339f2 -size 863978 +oid sha256:102daafbdab13a20d9ce3dc1a111f9eca96ff2035465a27ef515d19993f211f9 +size 861124 diff --git a/lib/search/indexes/github-docs-ghec-ja.json.br b/lib/search/indexes/github-docs-ghec-ja.json.br index f2b5868376c8..7d137e512145 100644 --- a/lib/search/indexes/github-docs-ghec-ja.json.br +++ b/lib/search/indexes/github-docs-ghec-ja.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3387837655e18bf7c41ff7a8dedd672bf1087ef8b3561394f169a7f29af48f83 -size 4623227 +oid sha256:f340a4568d3ed0456c0dfc2e0e811afbe185c748853a91c97babf9e4b15936da +size 4590007 diff --git a/lib/search/indexes/github-docs-ghec-pt-records.json.br b/lib/search/indexes/github-docs-ghec-pt-records.json.br index 822b3493f0bf..4209f4ac53fa 100644 --- a/lib/search/indexes/github-docs-ghec-pt-records.json.br +++ b/lib/search/indexes/github-docs-ghec-pt-records.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8c33cf70d80f4ae23e30473c9003647e4d6088b0ac8215ed794f131e5389a899 -size 779853 +oid sha256:5d67592b825252b809808e3f76dbd6658ccb987bf0f1d0711ffa1634c90ef3ee +size 778640 diff --git a/lib/search/indexes/github-docs-ghec-pt.json.br b/lib/search/indexes/github-docs-ghec-pt.json.br index ec7a73ffd458..960379f70776 100644 --- a/lib/search/indexes/github-docs-ghec-pt.json.br +++ b/lib/search/indexes/github-docs-ghec-pt.json.br @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:19938441f91a3d4455ba29d4652525956cbcf9ec5598f989406a71e1db2ffa96 -size 3182790 +oid sha256:284cca1631f87ca4a7d515288acd35d3a725e58ac15177c7cf1d6dc0a314a74d +size 3158195 diff --git a/lib/search/lunr-search.js b/lib/search/lunr-search.js index d8c9361c8283..725072ffa307 100644 --- a/lib/search/lunr-search.js +++ b/lib/search/lunr-search.js @@ -7,6 +7,7 @@ import lunrJa from 'lunr-languages/lunr.ja.js' import lunrEs from 'lunr-languages/lunr.es.js' import lunrPt from 'lunr-languages/lunr.pt.js' import { get } from 'lodash-es' +import statsd from '../statsd.js' import readFileAsync from '../readfile-async.js' import { namePrefix } from './config.js' import { decompress } from './compress.js' @@ -47,6 +48,7 @@ export default async function loadLunrResults({ version, language, query, limit if (!lunrIndexes.has(indexName) || !lunrRecords.has(indexName)) { lunrIndexes.set(indexName, await loadLunrIndex(indexName)) lunrRecords.set(indexName, await loadLunrRecords(indexName)) + statsd.gauge('memory_heap_used', process.memoryUsage().heapUsed, ['event:lunr-index']) } const index = lunrIndexes.get(indexName) const records = lunrRecords.get(indexName) diff --git a/lib/warm-server.js b/lib/warm-server.js index e3d000280b67..18b0a50a4985 100644 --- a/lib/warm-server.js +++ b/lib/warm-server.js @@ -31,6 +31,8 @@ async function warmServer() { const pageMap = await dog.loadPageMap(pageList) const redirects = await dog.loadRedirects(pageList) + statsd.gauge('memory_heap_used', process.memoryUsage().heapUsed, ['event:warm-server']) + statsd.gauge('num_redirects', Object.keys(redirects).length) statsd.gauge('num_page_map', Object.keys(pageMap).length) statsd.gauge('num_page_list', Object.keys(pageList).length) diff --git a/translations/log/cn-resets.csv b/translations/log/cn-resets.csv index 902cdaca9f19..7279a221dbf9 100644 --- a/translations/log/cn-resets.csv +++ b/translations/log/cn-resets.csv @@ -3,8 +3,9 @@ translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifi translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/sending-enterprise-contributions-to-your-githubcom-profile.md,broken liquid tags translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/viewing-contributions-on-your-profile.md,broken liquid tags translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/about-your-personal-dashboard.md,broken liquid tags +translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username.md,parsing error translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories.md,broken liquid tags -translations/zh-CN/content/actions/advanced-guides/storing-workflow-data-as-artifacts.md,broken liquid tags +translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership.md,broken liquid tags translations/zh-CN/content/actions/hosting-your-own-runners/about-self-hosted-runners.md,broken liquid tags translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md,Listed in localization-support#489 translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md,broken liquid tags @@ -13,14 +14,17 @@ translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troub translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md,broken liquid tags translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md,Listed in localization-support#489 translations/zh-CN/content/actions/using-github-hosted-runners/about-github-hosted-runners.md,broken liquid tags -translations/zh-CN/content/admin/advanced-security/configuring-code-scanning-for-your-appliance.md,broken liquid tags -translations/zh-CN/content/admin/advanced-security/configuring-secret-scanning-for-your-appliance.md,broken liquid tags +translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md,broken liquid tags +translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md,broken liquid tags +translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-an-outbound-web-proxy-server.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-your-enterprise/accessing-the-management-console.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-your-enterprise/command-line-utilities.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-backups-on-your-appliance.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-email-for-notifications.md,broken liquid tags +translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-github-pages-for-your-enterprise.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-rate-limits.md,broken liquid tags +translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-the-referrer-policy-for-your-enterprise.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-your-enterprise/managing-github-mobile-for-your-enterprise.md,broken liquid tags translations/zh-CN/content/admin/configuration/configuring-your-enterprise/site-admin-dashboard.md,broken liquid tags translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/increasing-cpu-or-memory-resources.md,broken liquid tags @@ -70,6 +74,8 @@ translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/r translations/zh-CN/content/authentication/managing-commit-signature-verification/about-commit-signature-verification.md,broken liquid tags translations/zh-CN/content/billing/managing-billing-for-github-packages/about-billing-for-github-packages.md,broken liquid tags translations/zh-CN/content/billing/managing-billing-for-your-github-account/discounted-subscriptions-for-github-accounts.md,broken liquid tags +translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md,broken liquid tags +translations/zh-CN/content/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription.md,parsing error translations/zh-CN/content/billing/managing-licenses-for-visual-studio-subscriptions-with-github-enterprise/about-visual-studio-subscriptions-with-github-enterprise.md,broken liquid tags translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning.md,broken liquid tags translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages.md,broken liquid tags @@ -85,18 +91,25 @@ translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scannin translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/installing-codeql-cli-in-your-ci-system.md,broken liquid tags translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/running-codeql-runner-in-your-ci-system.md,broken liquid tags translations/zh-CN/content/code-security/getting-started/securing-your-organization.md,broken liquid tags +translations/zh-CN/content/code-security/getting-started/securing-your-repository.md,broken liquid tags translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md,broken liquid tags translations/zh-CN/content/code-security/secret-scanning/configuring-secret-scanning-for-your-repositories.md,broken liquid tags translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md,broken liquid tags +translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies.md,Listed in localization-support#489 translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies.md,parsing error +translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates.md,broken liquid tags +translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/browsing-security-vulnerabilities-in-the-github-advisory-database.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-dependabot-security-updates.md,broken liquid tags +translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/index.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/troubleshooting-dependabot-errors.md,Listed in localization-support#489 translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/troubleshooting-dependabot-errors.md,rendering error translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/troubleshooting-the-detection-of-vulnerable-dependencies.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph.md,Listed in localization-support#489 translations/zh-CN/content/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account.md,broken liquid tags +translations/zh-CN/content/codespaces/developing-in-codespaces/developing-in-a-codespace.md,broken liquid tags +translations/zh-CN/content/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace.md,broken liquid tags translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code.md,broken liquid tags translations/zh-CN/content/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam.md,broken liquid tags translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/adding-and-cloning-repositories/adding-an-existing-project-to-github-using-github-desktop.md,broken liquid tags @@ -106,6 +119,7 @@ translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/ins translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/installing-and-authenticating-to-github-desktop/installing-github-desktop.md,broken liquid tags translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/installing-and-authenticating-to-github-desktop/setting-up-github-desktop.md,broken liquid tags translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/overview/creating-your-first-repository-using-github-desktop.md,broken liquid tags +translations/zh-CN/content/developers/apps/building-github-apps/rate-limits-for-github-apps.md,broken liquid tags translations/zh-CN/content/developers/apps/getting-started-with-apps/about-apps.md,broken liquid tags translations/zh-CN/content/developers/apps/getting-started-with-apps/activating-optional-features-for-apps.md,broken liquid tags translations/zh-CN/content/developers/apps/getting-started-with-apps/migrating-oauth-apps-to-github-apps.md,broken liquid tags @@ -122,13 +136,22 @@ translations/zh-CN/content/education/explore-the-benefits-of-teaching-and-learni translations/zh-CN/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/about-using-makecode-arcade-with-github-classroom.md,broken liquid tags translations/zh-CN/content/education/manage-coursework-with-github-classroom/learn-with-github-classroom/view-autograding-results.md,broken liquid tags translations/zh-CN/content/get-started/customizing-your-github-workflow/exploring-integrations/about-github-marketplace.md,broken liquid tags +translations/zh-CN/content/get-started/getting-started-with-git/about-remote-repositories.md,broken liquid tags translations/zh-CN/content/get-started/getting-started-with-git/updating-credentials-from-the-macos-keychain.md,broken liquid tags translations/zh-CN/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line.md,broken liquid tags translations/zh-CN/content/get-started/learning-about-github/about-github-advanced-security.md,broken liquid tags +translations/zh-CN/content/get-started/learning-about-github/githubs-products.md,parsing error +translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md,broken liquid tags +translations/zh-CN/content/get-started/onboarding/getting-started-with-github-ae.md,broken liquid tags +translations/zh-CN/content/get-started/onboarding/getting-started-with-github-team.md,broken liquid tags translations/zh-CN/content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md,broken liquid tags translations/zh-CN/content/get-started/quickstart/communicating-on-github.md,broken liquid tags translations/zh-CN/content/get-started/quickstart/git-and-github-learning-resources.md,broken liquid tags translations/zh-CN/content/get-started/quickstart/github-flow.md,broken liquid tags +translations/zh-CN/content/get-started/quickstart/set-up-git.md,broken liquid tags +translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud.md,parsing error +translations/zh-CN/content/get-started/signing-up-for-github/signing-up-for-a-new-github-account.md,broken liquid tags +translations/zh-CN/content/get-started/signing-up-for-github/verifying-your-email-address.md,broken liquid tags translations/zh-CN/content/get-started/using-git/dealing-with-non-fast-forward-errors.md,broken liquid tags translations/zh-CN/content/get-started/using-github/github-mobile.md,broken liquid tags translations/zh-CN/content/get-started/writing-on-github/editing-and-sharing-content-with-gists/creating-gists.md,broken liquid tags @@ -159,6 +182,7 @@ translations/zh-CN/content/pages/setting-up-a-github-pages-site-with-jekyll/sett translations/zh-CN/content/pages/setting-up-a-github-pages-site-with-jekyll/troubleshooting-jekyll-build-errors-for-github-pages-sites.md,broken liquid tags translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches.md,broken liquid tags translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository.md,broken liquid tags +translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md,broken liquid tags translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/viewing-deployment-activity-for-your-repository.md,broken liquid tags translations/zh-CN/content/repositories/working-with-files/managing-files/deleting-files-in-a-repository.md,broken liquid tags translations/zh-CN/content/rest/guides/basics-of-authentication.md,Listed in localization-support#489 diff --git a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/viewing-and-triaging-notifications/customizing-a-workflow-for-triaging-your-notifications.md b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/viewing-and-triaging-notifications/customizing-a-workflow-for-triaging-your-notifications.md index 7c91d2706bba..9368b0e3fb81 100644 --- a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/viewing-and-triaging-notifications/customizing-a-workflow-for-triaging-your-notifications.md +++ b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/viewing-and-triaging-notifications/customizing-a-workflow-for-triaging-your-notifications.md @@ -46,7 +46,7 @@ To follow-up on notifications, you might consider the question "What was I block 例如,您可以决定按照以下顺序采取后续行动: - 分配给您的议题和拉取请求。 立即关闭您可以关闭的任何议题或拉取请求,并添加更新。 需要时,保存通知供以后查看。 - - 查看已保存的收件箱中的通知,尤其是未读更新。 If the thread is no longer relevant, deselect {% octicon "bookmark" aria-label="The bookmark icon" %} to remove the notification from the saved inbox and unsave it. + - 查看已保存的收件箱中的通知,尤其是未读更新。 如果话题不再相关,请取消选择 {% octicon "bookmark" aria-label="The bookmark icon" %} 以从保存的收件箱中删除通知并取消保存。 ## 管理低优先级通知 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile.md index 4ca85d167c08..8e0bd269dbe8 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile.md @@ -28,23 +28,23 @@ shortTitle: 个性化 {% note %} -**Note{% ifversion ghec %}s{% endif %}**: {% ifversion ghec %} +**注意{% ifversion ghec %}s{% endif %}**:{% ifversion ghec %} -* {% endif %}Your profile picture should be a PNG, JPG, or GIF file under 1 MB in size. 为获取质量最佳的渲染,建议图像的像素保持在大约 500 x 500 像素。 -{% ifversion ghec %}* Gravatar profile pictures are not supported with {% data variables.product.prodname_emus %}.{% endif %} +* {% endif %}头像应为 1 MB 以下的 PNG、JPG 或 GIF 文件。 为获取质量最佳的渲染,建议图像的像素保持在大约 500 x 500 像素。 +{% ifversion ghec %}* {% data variables.product.prodname_emus %} 不支持 Gravatar 头像。{% endif %} {% endnote %} ### 设置头像 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 2. 在 **Profile Picture(头像)**下,单击 {% octicon "pencil" aria-label="The edit icon" %} **Edit(编辑)**。 ![编辑头像](/assets/images/help/profile/edit-profile-photo.png) 3. 单击 **Upload a photo...(上传图片...)**。 ![更新头像](/assets/images/help/profile/edit-profile-picture-options.png) 3. 裁剪图片。 完成后,单击 **Set new profile picture(设置新头像)**。 ![裁剪上传的照片](/assets/images/help/profile/avatar_crop_and_save.png) ### 将头像重置为默认肖像 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 2. 在 **Profile Picture(头像)**下,单击 {% octicon "pencil" aria-label="The edit icon" %} **Edit(编辑)**。 ![编辑头像](/assets/images/help/profile/edit-profile-photo.png) 3. 要还原为默认肖像,请单击 **Remove photo(删除照片)**。 如果您的电子邮件地址与[个人全球统一标识](https://en.gravatar.com/)关联,则无法还原到默认肖像。 此时请单击 **Revert to Gravatar(还原到个人全球统一标识)**。 ![更新头像](/assets/images/help/profile/edit-profile-picture-options.png) @@ -60,7 +60,7 @@ shortTitle: 个性化 {% endnote %} {% endif %} -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 2. 在“Name(名称)”下,键入要显示在个人资料中的名称。 ![个人资料设置中的名称字段](/assets/images/help/profile/name-field.png) ## 在个人资料中添加个人简历 @@ -79,7 +79,7 @@ shortTitle: 个性化 {% endnote %} -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 2. 在 **Bio(个人简历)**下,添加您要显示在个人资料中的内容。 个人资料字段限于 160 个字符。 ![更新个人资料中的个人简历](/assets/images/help/profile/bio-field.png) {% tip %} @@ -104,9 +104,9 @@ shortTitle: 个性化 ![申请的审查者在用户名旁边显示“忙碌”注释](/assets/images/help/profile/request-a-review-limited-availability-status.png) -如果选择“Busy(忙碌)”选项,当人们 @提及您的用户名、向您分配议题或拉取请求或者申请您进行拉取请求审查时,您的用户名旁边将会出现一条表示您在忙碌的注释。 您还将被排除在分配给您所属的任何团队的拉取请求的自动审核任务之外。 For more information, see "[Managing code review settings for your team](/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team)." +如果选择“Busy(忙碌)”选项,当人们 @提及您的用户名、向您分配议题或拉取请求或者申请您进行拉取请求审查时,您的用户名旁边将会出现一条表示您在忙碌的注释。 您还将被排除在分配给您所属的任何团队的拉取请求的自动审核任务之外。 更多信息请参阅“[管理团队的代码审查设置](/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team)”。 -1. In the top right corner of {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_name %}{% endif %}, click your profile photo, then click **Set your status** or, if you already have a status set, click your current status. ![个人资料中用于设置状态的按钮](/assets/images/help/profile/set-status-on-profile.png) +1. 在 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_name %}{% endif %}的右上角,单击您的头像,然后单击 **Set your status(设置状态)**,或者,如果您已经设置了状态,请单击您的当前状态。 ![个人资料中用于设置状态的按钮](/assets/images/help/profile/set-status-on-profile.png) 2. 要添加自定义文本到状态,请单击文本字段,然后输入状态消息。 ![用于输入状态消息的字段](/assets/images/help/profile/type-a-status-message.png) 3. (可选)要设置表情符号状态,请单击笑脸图标并从列表中选择表情符号。 ![用于选择表情符号状态的按钮](/assets/images/help/profile/select-emoji-status.png) 4. (可选)如果想表示您的可用性受限,请选择“Busy(忙碌)”。 ![在编辑状态选项中选择的忙碌选项](/assets/images/help/profile/limited-availability-status.png) @@ -119,21 +119,21 @@ shortTitle: 个性化 当您参与某些计划时, {% data variables.product.prodname_dotcom %} 会自动在您的个人资料中显示徽章。 -| 徽章 | 计划 | 描述 | -| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ![Mars 2020 Helicopter 贡献者徽章图标](/assets/images/help/profile/badge-mars-2020-small.png) | **Mars 2020 Helicopter 贡献者** | 如果您在提交历史记录中撰写了对 Mars 2020 Helicopter 任务中使用的开放源码库相关标记的任何提交, 您将在个人资料上获得 Mars 2020 Helicopter 贡献者徽章。 悬停在徽章上会显示您参与的任务中使用的几个仓库。 要查看符合您徽章资格的完整仓库列表,请参阅“[Mars 2020 Helicopter 贡献者徽章的合格仓库列表](/github/setting-up-and-managing-your-github-profile/personalizing-your-profile#list-of-qualifying-repositories-for-mars-2020-helicopter-contributor-badge)”。 | -| ![Arctic Code Vault 贡献者徽章图标](/assets/images/help/profile/badge-arctic-code-vault-small.png) | **{% data variables.product.prodname_arctic_vault %} 贡献者** | 如果您在存档于 2020 Arctic Vault 计划的仓库默认分支上编写了任何提交,您的个人资料上会获得一个 {% data variables.product.prodname_arctic_vault %} 贡献者徽章。 悬停在徽章上显示您参与的属于计划一部分的几个仓库。 有关该计划的更多信息,请参阅 [{% data variables.product.prodname_archive %}](https://archiveprogram.github.com)。 | -| ![{% data variables.product.prodname_dotcom %} 赞助者徽章图标](/assets/images/help/profile/badge-sponsors-small.png) | **{% data variables.product.prodname_dotcom %} 赞助者** | 如果您通过 {% data variables.product.prodname_sponsors %} 赞助了开源贡献者,您的个人资料中将获得一个 {% data variables.product.prodname_dotcom %} 赞助者徽章。 单击徽章将带您到个人资料的 **Sponsoring(赞助)**选项卡。 更多信息请参阅“[赞助开源贡献者](/github/supporting-the-open-source-community-with-github-sponsors/sponsoring-open-source-contributors)”。 | -| {% octicon "cpu" aria-label="The Developer Program icon" %} | **开发者计划成员** | If you're a registered member of the {% data variables.product.prodname_dotcom %} Developer Program, building an app with the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API, you'll get a Developer Program Member badge on your profile. 有关 {% data variables.product.prodname_dotcom %} 开发者计划的更多信息,请参阅 [GitHub 开发者](/program/)。 | -| {% octicon "star-fill" aria-label="The star icon" %} | **Pro** | 如果您使用 {% data variables.product.prodname_pro %},您的个人资料中将获得一个 PRO 徽章。 有关 {% data variables.product.prodname_pro %} 的更多信息,请参阅“[{% data variables.product.prodname_dotcom %} 的产品](/github/getting-started-with-github/githubs-products#github-pro)”。 | -| {% octicon "lock" aria-label="The lock icon" %} | **Security Bug Bounty Hunter** | 如果你帮助寻找安全漏洞,您的个人资料上将获得 Security Bug Bounty Hunter 徽章。 有关 {% data variables.product.prodname_dotcom %} 安全计划的更多信息,请参阅 [{% data variables.product.prodname_dotcom %} 安全性](https://bounty.github.com/)。 | -| {% octicon "mortar-board" aria-label="The mortar-board icon" %} | **{% data variables.product.prodname_dotcom %} Campus Expert** | If you participate in the {% data variables.product.prodname_campus_program %}, you will get a {% data variables.product.prodname_dotcom %} Campus Expert badge on your profile. 有关校园专家计划的更多信息,请参阅 [Campus Experts](https://education.github.com/experts)。 | +| 徽章 | 计划 | 描述 | +| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ![Mars 2020 Helicopter 贡献者徽章图标](/assets/images/help/profile/badge-mars-2020-small.png) | **Mars 2020 Helicopter 贡献者** | 如果您在提交历史记录中撰写了对 Mars 2020 Helicopter 任务中使用的开放源码库相关标记的任何提交, 您将在个人资料上获得 Mars 2020 Helicopter 贡献者徽章。 悬停在徽章上会显示您参与的任务中使用的几个仓库。 要查看符合您徽章资格的完整仓库列表,请参阅“[Mars 2020 Helicopter 贡献者徽章的合格仓库列表](/github/setting-up-and-managing-your-github-profile/personalizing-your-profile#list-of-qualifying-repositories-for-mars-2020-helicopter-contributor-badge)”。 | +| ![Arctic Code Vault 贡献者徽章图标](/assets/images/help/profile/badge-arctic-code-vault-small.png) | **{% data variables.product.prodname_arctic_vault %} 贡献者** | 如果您在存档于 2020 Arctic Vault 计划的仓库默认分支上编写了任何提交,您的个人资料上会获得一个 {% data variables.product.prodname_arctic_vault %} 贡献者徽章。 悬停在徽章上显示您参与的属于计划一部分的几个仓库。 有关该计划的更多信息,请参阅 [{% data variables.product.prodname_archive %}](https://archiveprogram.github.com)。 | +| ![{% data variables.product.prodname_dotcom %} 赞助者徽章图标](/assets/images/help/profile/badge-sponsors-small.png) | **{% data variables.product.prodname_dotcom %} 赞助者** | 如果您通过 {% data variables.product.prodname_sponsors %} 赞助了开源贡献者,您的个人资料中将获得一个 {% data variables.product.prodname_dotcom %} 赞助者徽章。 单击徽章将带您到个人资料的 **Sponsoring(赞助)**选项卡。 更多信息请参阅“[赞助开源贡献者](/github/supporting-the-open-source-community-with-github-sponsors/sponsoring-open-source-contributors)”。 | +| {% octicon "cpu" aria-label="The Developer Program icon" %} | **开发者计划成员** | 如果您是 {% data variables.product.prodname_dotcom %} 开发者计划的注册成员,使用 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API 构建应用程序,您的个人资料上将获得开发者计划成员徽章。 有关 {% data variables.product.prodname_dotcom %} 开发者计划的更多信息,请参阅 [GitHub 开发者](/program/)。 | +| {% octicon "star-fill" aria-label="The star icon" %} | **Pro** | 如果您使用 {% data variables.product.prodname_pro %},您的个人资料中将获得一个 PRO 徽章。 有关 {% data variables.product.prodname_pro %} 的更多信息,请参阅“[{% data variables.product.prodname_dotcom %} 的产品](/github/getting-started-with-github/githubs-products#github-pro)”。 | +| {% octicon "lock" aria-label="The lock icon" %} | **Security Bug Bounty Hunter** | 如果你帮助寻找安全漏洞,您的个人资料上将获得 Security Bug Bounty Hunter 徽章。 有关 {% data variables.product.prodname_dotcom %} 安全计划的更多信息,请参阅 [{% data variables.product.prodname_dotcom %} 安全性](https://bounty.github.com/)。 | +| {% octicon "mortar-board" aria-label="The mortar-board icon" %} | **{% data variables.product.prodname_dotcom %} Campus Expert** | 如果您参加 {% data variables.product.prodname_campus_program %},您的个人资料上将获得 {% data variables.product.prodname_dotcom %} 校园专家徽章。 有关校园专家计划的更多信息,请参阅 [Campus Experts](https://education.github.com/experts)。 | ## 在个人资料中禁用徽章 您可以对您参与的 {% data variables.product.prodname_dotcom %} 计划禁用某些徽章,包括 PRO、{% data variables.product.prodname_arctic_vault %} 和 Mars 2020 Helicopter 贡献者徽章。 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 2. 在“Profile settings(个人资料设置)”下,取消选择您想要禁用的徽章。 ![不再在个人资料中显示徽章的复选框](/assets/images/help/profile/profile-badge-settings.png) 3. 单击 **Update preferences(更新首选项)**。 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/publicizing-or-hiding-your-private-contributions-on-your-profile.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/publicizing-or-hiding-your-private-contributions-on-your-profile.md index 61b9b8246c90..5bb9adad2fd5 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/publicizing-or-hiding-your-private-contributions-on-your-profile.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/publicizing-or-hiding-your-private-contributions-on-your-profile.md @@ -15,11 +15,11 @@ topics: shortTitle: 私有贡献 --- -如果公开您的私有贡献,对您处理的私有仓库没有访问权限的人员将无法查看您的私有贡献详情, 而只能看到您在指定日期的贡献数。 您的公共贡献会包含详细信息。 For more information, see "[Viewing contributions on your profile page](/articles/viewing-contributions-on-your-profile-page)." +如果公开您的私有贡献,对您处理的私有仓库没有访问权限的人员将无法查看您的私有贡献详情, 而只能看到您在指定日期的贡献数。 您的公共贡献会包含详细信息。 更多信息请参阅“[在个人资料页面中查看贡献](/articles/viewing-contributions-on-your-profile-page)”。 {% note %} -**Note:** {% ifversion fpt or ghes or ghec %}On {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}{% data variables.product.product_name %}{% endif %}, public contributions on your profile are visible {% ifversion fpt or ghec %}to anyone in the world who can access {% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}only to other users of {% data variables.product.product_location%}{% endif %}.{% elsif ghae %}On {% data variables.product.prodname_ghe_managed %}, only other members of your enterprise can see the contributions on your profile.{% endif %} +**注意:** {% ifversion fpt or ghes or ghec %}在 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}{% data variables.product.product_name %}{% endif %} 上,您的个人资料上的公共贡献{% ifversion fpt or ghec %}对世界上能访问 {% data variables.product.prodname_dotcom_the_website %} 的任何人{% elsif ghes %}仅对其他 {% data variables.product.product_location%} 用户{% endif %}可见。{% elsif ghae %}在 {% data variables.product.prodname_ghe_managed %} 上,只有您企业的其他成员才可看到您的个人资料上的贡献。{% endif %} {% endnote %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/maintaining-ownership-continuity-of-your-user-accounts-repositories.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/maintaining-ownership-continuity-of-your-user-accounts-repositories.md index 3d87172888d0..92e7e8f4c0a4 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/maintaining-ownership-continuity-of-your-user-accounts-repositories.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/maintaining-ownership-continuity-of-your-user-accounts-repositories.md @@ -30,9 +30,9 @@ shortTitle: 所有权连续性 ## 邀请继承者 您邀请作为继承者的人必须拥有 {% data variables.product.company_short %} 帐户。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.account_settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.account_settings %} 3. 要邀请继承者,在“Successor settings(继承者设置)”下开始输入用户名、全名或电子邮件地址,然后单击出现的姓名。 ![继承者邀请搜索字段](/assets/images/help/settings/settings-invite-successor-search-field.png) 4. 单击 **Add successor(添加继承者)**。 -{% data reusables.user_settings.sudo-mode-popup %} +{% data reusables.user-settings.sudo-mode-popup %} 5. 您邀请的用户将被列为“Pending(待定)”,直到他们同意成为您的继承者。 ![待定继承者邀请](/assets/images/help/settings/settings-pending-successor.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository.md index 30a8d93923ca..299e9c840531 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository.md @@ -20,7 +20,7 @@ topics: shortTitle: 删除自己 --- -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} 2. In the "Code, planning, and automation" section of the sidebar, click **{% octicon "repo" aria-label="The repo icon" %} Repositories**. {% else %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account.md index 246d4686f2f1..cf2aa2c5c3f9 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/adding-an-email-address-to-your-github-account.md @@ -20,17 +20,17 @@ shortTitle: 添加电子邮件地址 {% note %} **注意**: - - {% data reusables.user_settings.no-verification-disposable-emails %} + - {% data reusables.user-settings.no-verification-disposable-emails %} - If you're a member of an {% data variables.product.prodname_emu_enterprise %}, you cannot make changes to your email address on {% data variables.product.prodname_dotcom_the_website %}. {% data reusables.enterprise-accounts.emu-more-info-account %} {% endnote %} {% endif %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} -{% data reusables.user_settings.add_and_verify_email %} -{% data reusables.user_settings.select_primary_email %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} +{% data reusables.user-settings.add_and_verify_email %} +{% data reusables.user-settings.select_primary_email %} ## 延伸阅读 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/blocking-command-line-pushes-that-expose-your-personal-email-address.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/blocking-command-line-pushes-that-expose-your-personal-email-address.md index 7b9d62e72bc1..5769b9644ff2 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/blocking-command-line-pushes-that-expose-your-personal-email-address.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/blocking-command-line-pushes-that-expose-your-personal-email-address.md @@ -16,11 +16,11 @@ shortTitle: 使用个人电子邮件阻止推送 从命令行推送提交时,您[在 Git 中设置](/articles/setting-your-commit-email-address)的电子邮件地址会与您的提交相关联。 如果您启用此设置,则每当您推送到 GitHub 时,我们将检查最近的提交。 如果提交的作者电子邮件地址是您的 GitHub 帐户上的私人电子邮件地址,我们将阻止推送并警告这样会暴露您的私人电子邮件地址。 -{% data reusables.user_settings.about-commit-email-addresses %} +{% data reusables.user-settings.about-commit-email-addresses %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} -{% data reusables.user_settings.keeping_your_email_address_private %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} +{% data reusables.user-settings.keeping_your_email_address_private %} 4. 要在您从命令行推送的提交中保密电子邮件地址,请选择 **Block command line pushes that expose my email(阻止会暴露我个人电子邮件地址的命令行推送)**。 ![阻止会暴露个人电子邮件地址的命令行推送的选项](/assets/images/help/settings/email_privacy_block_command_line_pushes.png) ## 延伸阅读 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/changing-your-primary-email-address.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/changing-your-primary-email-address.md index ba0045a867b8..81d9a9b9d8c9 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/changing-your-primary-email-address.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/changing-your-primary-email-address.md @@ -21,8 +21,8 @@ shortTitle: 主电子邮件地址 {% endnote %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} 3. 如果要添加新电子邮件地址以设置为您的主电子邮件地址,请在“Add email address(添加电子邮件地址)”下,键入新的电子邮件地址,然后单击 **Add(添加)**。 ![添加其他电子邮件地址按钮](/assets/images/help/settings/add_another_email_address.png) 4. 在“Primary email address(主电子邮件地址)”下,使用下拉菜单,单击要设为主电子邮件地址的电子邮件地址,然后单击 **Save(保存)**。 ![设为主电子邮件地址按钮](/assets/images/help/settings/set_as_primary_email.png) 5. 要从您的帐户删除旧电子邮件地址,请在旧电子邮件地址旁边,单击 {% octicon "trash" aria-label="The trash symbol" %}。 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/managing-marketing-emails-from-github.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/managing-marketing-emails-from-github.md index 138905db9c92..88a6bd842613 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/managing-marketing-emails-from-github.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/managing-marketing-emails-from-github.md @@ -22,8 +22,8 @@ shortTitle: 营销电子邮件 {% endtip %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} 3. 在 *Email preferences(电子邮件首选项)*下,选择 **Only receive account related emails, and those I subscribe to(只接收帐户相关的电子邮件和我订阅的电子邮件)**。 ![退订营销电子邮件的屏幕截图](/assets/images/help/notifications/email_preferences.png) 4. 单击 **Save email preferences(保存电子邮件首选项)**。 ![保存电子邮件首选项按钮](/assets/images/help/notifications/save_email_preferences.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-a-backup-email-address.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-a-backup-email-address.md index 269d31a1b749..152ac6cb46b7 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-a-backup-email-address.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-a-backup-email-address.md @@ -16,8 +16,8 @@ topics: shortTitle: 设置备用电子邮件地址 --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} 3. 在“Backup email address(备用电子邮件地址)”下,使用下拉菜单选择您要设置为备用电子邮件地址的地址。 ![备用电子邮件地址](/assets/images/help/settings/backup-email-address.png) 4. 单击 **Save(保存)**。 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-your-commit-email-address.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-your-commit-email-address.md index a322ca460fbd..ffc8a8ddacb9 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-your-commit-email-address.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-your-commit-email-address.md @@ -25,9 +25,9 @@ shortTitle: 设置提交电子邮件地址 ## 关于提交电子邮件地址 -{% data variables.product.prodname_dotcom %} uses your commit email address to associate commits with your account on {% data variables.product.product_location %}. 您可以选择要与从命令行以及基于 web 的 Git 操作推送的提交相关联的电子邮件地址。 +{% data variables.product.prodname_dotcom %} 使用您的提交电子邮件地址将提交与您的 {% data variables.product.product_location %} 关联。 您可以选择要与从命令行以及基于 web 的 Git 操作推送的提交相关联的电子邮件地址。 -For web-based Git operations, you can set your commit email address on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}. 对于从命令行推送的提交,您可以在 Git 中设置提交电子邮件地址。 +对于基于 Web 的 Git 操作,您可以在 {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} 上设置提交电子邮件地址。 对于从命令行推送的提交,您可以在 Git 中设置提交电子邮件地址。 {% ifversion fpt or ghec %}在更改提交电子邮件地址之前进行的提交仍与之前的电子邮件地址关联。{% else %}在 {% data variables.product.product_name %} 上更改提交电子邮件地址之后,新电子邮件地址默认在所有未来基于 web 的 Git 操作中可见。 在更改提交电子邮件地址之前进行的任何提交仍与之前的电子邮件地址关联。{% endif %} @@ -35,37 +35,37 @@ For web-based Git operations, you can set your commit email address on {% ifvers {% note %} -**注**:{% data reusables.user_settings.no-verification-disposable-emails %} +**Note**: {% data reusables.user-settings.no-verification-disposable-emails %} {% endnote %} {% endif %} -{% ifversion fpt or ghec %}If you'd like to keep your personal email address private, you can use a `no-reply` email address from {% data variables.product.product_name %} as your commit email address. 要将 `noreply` 电子邮件地址用于从命令行推送的提交,请在 Git 中设置提交电子邮件地址时使用该电子邮件地址。 要将 `noreply` 地址用于基于 web 的 Git 操作,请在 GitHub 上设置提交电子邮件地址并选择**对我的电子邮件地址保密**。 +{% ifversion fpt or ghec %}如果您想将个人电子邮件地址设为私密,则可以使用 {% data variables.product.product_name %} 的 `no-reply` 电子邮件地址作为您的提交电子邮件地址。 要将 `noreply` 电子邮件地址用于从命令行推送的提交,请在 Git 中设置提交电子邮件地址时使用该电子邮件地址。 要将 `noreply` 地址用于基于 web 的 Git 操作,请在 GitHub 上设置提交电子邮件地址并选择**对我的电子邮件地址保密**。 您也可以选择阻止从命令行推送的提交显示您的个人电子邮件地址。 更多信息请参阅“[阻止推送的命令行显示您的个人电子邮件地址](/articles/blocking-command-line-pushes-that-expose-your-personal-email-address)”。{% endif %} -To ensure that commits are attributed to you and appear in your contributions graph, use an email address that is connected to your account on {% data variables.product.product_location %}{% ifversion fpt or ghec %}, or the `noreply` email address provided to you in your email settings{% endif %}. {% ifversion not ghae %}更多信息请参阅“[添加电子邮件地址到 {% data variables.product.prodname_dotcom %} 帐户](/github/setting-up-and-managing-your-github-user-account/adding-an-email-address-to-your-github-account)”。{% endif %} +为确保提交归因于您并且出现在您的贡献图表中,请使用已连接到 {% data variables.product.product_location %} 帐户的电子邮件地址{% ifversion fpt or ghec %},或者在电子邮件设置中提供给您的 `noreply` 电子邮件地址{% endif %}。 {% ifversion not ghae %}更多信息请参阅“[添加电子邮件地址到 {% data variables.product.prodname_dotcom %} 帐户](/github/setting-up-and-managing-your-github-user-account/adding-an-email-address-to-your-github-account)”。{% endif %} {% ifversion fpt or ghec %} {% note %} -**Note:** If you created your account on {% data variables.product.product_location %} _after_ July 18, 2017, your `no-reply` email address for {% data variables.product.product_name %} is a seven-digit ID number and your username in the form of ID+username@users.noreply.github.com. If you created your account on {% data variables.product.product_location %} _prior to_ July 18, 2017, your `no-reply` email address from {% data variables.product.product_name %} is username@users.noreply.github.com. You can get an ID-based `no-reply` email address for {% data variables.product.product_name %} by selecting (or deselecting and reselecting) **Keep my email address private** in your email settings. +**注意:**如果您在 2017 年 7 月 18 日_之后_在 {% data variables.product.product_location %} 上创建了您的帐户,则 {% data variables.product.product_name %} `no-reply` 电子邮件地址是七位数的 ID 号,您的用户名以 ID+用户名@users.noreply.github.com 的形式提供。 如果您在 2017 年 7 月 18 日_之前_在 {% data variables.product.product_location %} 上创建了帐户,则 {% data variables.product.product_name %} `no-reply` 电子邮件地址是 用户名@users.noreply.github.com。 通过在电子邮件设置中选择(或取消选择并重新选择)**Keep my email address private(将我的电子邮件地址设为私密)**,您可以获得基于 ID 的 {% data variables.product.product_name %} `no-reply` 电子邮件地址。 {% endnote %} -If you use your `noreply` email address for {% data variables.product.product_name %} to make commits and then [change your username](/articles/changing-your-github-username), those commits will not be associated with your account on {% data variables.product.product_location %}. This does not apply if you're using the ID-based `noreply` address from {% data variables.product.product_name %}. 更多信息请参阅“[更改 {% data variables.product.prodname_dotcom %} 用户名](/articles/changing-your-github-username)”。{% endif %} +如果您使用 {% data variables.product.product_name %} 的 `noreply` 电子邮件地址进行提交,然后[更改用户名](/articles/changing-your-github-username),则这些提交将不会与您在 {% data variables.product.product_location %} 上的帐户相关联。 如果您使用的是基于 ID 的 {% data variables.product.product_name %} `noreply` 地址,则不适用。 更多信息请参阅“[更改 {% data variables.product.prodname_dotcom %} 用户名](/articles/changing-your-github-username)”。{% endif %} ## 在 {% data variables.product.prodname_dotcom %} 上设置提交电子邮件地址 {% data reusables.files.commit-author-email-options %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} -{% data reusables.user_settings.add_and_verify_email %} -{% data reusables.user_settings.select_primary_email %}{% ifversion fpt or ghec %} -{% data reusables.user_settings.keeping_your_email_address_private %}{% endif %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} +{% data reusables.user-settings.add_and_verify_email %} +{% data reusables.user-settings.select_primary_email %}{% ifversion fpt or ghec %} +{% data reusables.user-settings.keeping_your_email_address_private %}{% endif %} ## 在 Git 中设置您的提交电子邮件地址 @@ -74,32 +74,32 @@ If you use your `noreply` email address for {% data variables.product.product_na ### 为计算机上的每个仓库设置电子邮件地址 {% data reusables.command_line.open_the_multi_os_terminal %} -2. {% data reusables.user_settings.set_your_email_address_in_git %} +2. {% data reusables.user-settings.set_your_email_address_in_git %} ```shell $ git config --global user.email "email@example.com" ``` -3. {% data reusables.user_settings.confirm_git_email_address_correct %} +3. {% data reusables.user-settings.confirm_git_email_address_correct %} ```shell $ git config --global user.email email@example.com ``` -4. {% data reusables.user_settings.link_email_with_your_account %} +4. {% data reusables.user-settings.link_email_with_your_account %} ### 为一个仓库设置电子邮件地址 -{% data variables.product.product_name %} uses the email address set in your local Git configuration to associate commits pushed from the command line with your account on {% data variables.product.product_location %}. +{% data variables.product.product_name %} 使用在您的本地 Git 配置中设置的电子邮件地址将从命令行推送的提交与您在 {% data variables.product.product_location %} 上的帐户相关联。 -您可以更改与您在一个仓库中所进行的提交关联的电子邮件地址。 This will override your global Git configuration settings in this one repository, but will not affect any other repositories. +您可以更改与您在一个仓库中所进行的提交关联的电子邮件地址。 此操作将覆盖这一个仓库中的全局 Git 配置设置,但不会影响任何其他仓库。 {% data reusables.command_line.open_the_multi_os_terminal %} 2. 将当前工作目录更改为您想要在其中配置与 Git 提交关联的电子邮件地址的本地仓库。 -3. {% data reusables.user_settings.set_your_email_address_in_git %} +3. {% data reusables.user-settings.set_your_email_address_in_git %} ```shell $ git config user.email "email@example.com" ``` -4. {% data reusables.user_settings.confirm_git_email_address_correct %} +4. {% data reusables.user-settings.confirm_git_email_address_correct %} ```shell $ git config user.email email@example.com ``` -5. {% data reusables.user_settings.link_email_with_your_account %} +5. {% data reusables.user-settings.link_email_with_your_account %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username.md index 3e76c68755cf..4913ddd7318f 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username.md @@ -1,5 +1,5 @@ --- -title: 更改 GitHub 用户名 +title: Changing your GitHub username intro: 'You can change the username for your account on {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}{% data variables.product.product_location %} if your instance uses built-in authentication{% endif %}.' redirect_from: - /articles/how-to-change-your-username @@ -15,7 +15,7 @@ versions: ghec: '*' topics: - Accounts -shortTitle: 更改用户名 +shortTitle: Change your username --- {% ifversion ghec or ghes %} @@ -24,7 +24,7 @@ shortTitle: 更改用户名 {% ifversion ghec %} -**Note**: Members of an {% data variables.product.prodname_emu_enterprise %} cannot change usernames. Your enterprise's IdP administrator controls your username for {% data variables.product.product_name %}. 更多信息请参阅“[关于 {% data variables.product.prodname_emus %}](/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)”。 +**Note**: Members of an {% data variables.product.prodname_emu_enterprise %} cannot change usernames. Your enterprise's IdP administrator controls your username for {% data variables.product.product_name %}. For more information, see "[About {% data variables.product.prodname_emus %}](/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)." {% elsif ghes %} @@ -36,53 +36,57 @@ shortTitle: 更改用户名 {% endif %} -## 关于用户名更改 +## About username changes You can change your username to another username that is not currently in use.{% ifversion fpt or ghec %} If the username you want is not available, consider other names or unique variations. Using a number, hyphen, or an alternative spelling might help you find a similar username that's still available. -If you hold a trademark for the username, you can find more information about making a trademark complaint on our [Trademark Policy](/free-pro-team@latest/github/site-policy/github-trademark-policy) page. +If you hold a trademark for the username, you can find more information about making a trademark complaint on our [Trademark Policy](/free-pro-team@latest/github/site-policy/github-trademark-policy) page. -If you do not hold a trademark for the name, you can choose another username or keep your current username. {% data variables.contact.github_support %} 无法为您释放不可用的用户名。 更多信息请参阅“[更改用户名](#changing-your-username)”。{% endif %} +If you do not hold a trademark for the name, you can choose another username or keep your current username. {% data variables.contact.github_support %} cannot release the unavailable username for you. For more information, see "[Changing your username](#changing-your-username)."{% endif %} -更改用户名后,您的旧用户名即可供其他人申请使用。 对旧用户名下仓库的大多数引用会自动更改为新用户名。 不过,指向您个人资料的某些链接不会自动重定向。 +After changing your username, your old username becomes available for anyone else to claim. Most references to your repositories under the old username automatically change to the new username. However, some links to your profile won't automatically redirect. -{% data variables.product.product_name %} 无法为以下各项设置重定向: -- 使用旧用户名的[@提及](/articles/basic-writing-and-formatting-syntax/#mentioning-people-and-teams) -- 包含旧用户名的 [gists](/articles/creating-gists) 链接 +{% data variables.product.product_name %} cannot set up redirects for: +- [@mentions](/articles/basic-writing-and-formatting-syntax/#mentioning-people-and-teams) using your old username +- Links to [gists](/articles/creating-gists) that include your old username -{% ifversion fpt or ghec %} +{% ifversion fpt or ghec %} If you're a member of an {% data variables.product.prodname_emu_enterprise %}, you cannot make changes to your username. {% data reusables.enterprise-accounts.emu-more-info-account %} {% endif %} -## 仓库引用 +## Repository references -您更改用户名后,{% data variables.product.product_name %} 自动将引用重定向到您的仓库。 -- 指向现有仓库的 Web 链接仍然有效。 进行更改后,可能需要几分钟时间才能完成。 -- 从本地仓库克隆推送到旧的远程跟踪 URL 的命令行仍然有效。 +After you change your username, {% data variables.product.product_name %} will automatically redirect references to your repositories. +- Web links to your existing repositories will continue to work. This can take a few minutes to complete after you make the change. +- Command line pushes from your local repository clones to the old remote tracking URLs will continue to work. -如果旧用户名的新所有者创建与您的仓库同名的仓库,则会覆盖重定向条目,并且您的重定向将停止工作。 由于这种可能性,我们建议您在更改用户名后更新所有现有的远程仓库 URL。 更多信息请参阅“[管理远程仓库](/github/getting-started-with-github/managing-remote-repositories)”。 +If the new owner of your old username creates a repository with the same name as your repository, that will override the redirect entry and your redirect will stop working. Because of this possibility, we recommend you update all existing remote repository URLs after changing your username. For more information, see "[Managing remote repositories](/github/getting-started-with-github/managing-remote-repositories)." -## 指向以前的个人资料页面的链接 +## Links to your previous profile page -更改用户名后,指向以前的个人资料页面的链接(例如 `https://{% data variables.command_line.backticks %}/previoususername`)将返回 404 错误。 We recommend updating any links to your account on {% data variables.product.product_location %} from elsewhere{% ifversion fpt or ghec %}, such as your LinkedIn or Twitter profile{% endif %}. +After changing your username, links to your previous profile page, such as `https://{% data variables.command_line.backticks %}/previoususername`, will return a 404 error. We recommend updating any links to your account on {% data variables.product.product_location %} from elsewhere{% ifversion fpt or ghec %}, such as your LinkedIn or Twitter profile{% endif %}. -## 您的 Git 提交 +## Your Git commits -{% ifversion fpt or ghec %}Git commits that were associated with your {% data variables.product.product_name %}-provided `noreply` email address won't be attributed to your new username and won't appear in your contributions graph.{% endif %} If your Git commits are associated with another email address you've [added to your GitHub account](/articles/adding-an-email-address-to-your-github-account), {% ifversion fpt or ghec %}including the ID-based {% data variables.product.product_name %}-provided `noreply` email address, {% endif %}they'll continue to be attributed to you and appear in your contributions graph after you've changed your username. 有关设置电子邮件地址的更多详细信息,请参阅“[设置您的提交电子邮件地址](/articles/setting-your-commit-email-address)”。 +{% ifversion fpt or ghec %}Git commits that were associated with your {% data variables.product.product_name %}-provided `noreply` email address won't be attributed to your new username and won't appear in your contributions graph.{% endif %} If your Git commits are associated with another email address you've [added to your GitHub account](/articles/adding-an-email-address-to-your-github-account), {% ifversion fpt or ghec %}including the ID-based {% data variables.product.product_name %}-provided `noreply` email address, {% endif %}they'll continue to be attributed to you and appear in your contributions graph after you've changed your username. For more information on setting your email address, see "[Setting your commit email address](/articles/setting-your-commit-email-address)." -## 更改用户名 +## Changing your username -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.account_settings %} -3. 在“Change username(更改用户名)”部分,单击 **Change username(更改用户名)**。 ![Change Username button](/assets/images/help/settings/settings-change-username.png){% ifversion fpt or ghec %} -4. 阅读有关更改用户名的警告。 如果您仍要更改用户名,请单击 **I understand, let's change my username(我了解,让我们更改用户名)**。 ![更改用户名警告按钮](/assets/images/help/settings/settings-change-username-warning-button.png) -5. 键入新的用户名。 ![新用户名字段](/assets/images/help/settings/settings-change-username-enter-new-username.png) -6. 如果您选择的用户名可用,请单击 **Change my username(更改我的用户名)**。 如果您选择的用户名不可用,可以尝试其他用户名或您看到的建议之一。 ![更改用户名警告按钮](/assets/images/help/settings/settings-change-my-username-button.png) +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.account_settings %} +3. In the "Change username" section, click **Change username**. + ![Change Username button](/assets/images/help/settings/settings-change-username.png){% ifversion fpt or ghec %} +4. Read the warnings about changing your username. If you still want to change your username, click **I understand, let's change my username**. + ![Change Username warning button](/assets/images/help/settings/settings-change-username-warning-button.png) +5. Type a new username. + ![New username field](/assets/images/help/settings/settings-change-username-enter-new-username.png) +6. If the username you've chosen is available, click **Change my username**. If the username you've chosen is unavailable, you can try a different username or one of the suggestions you see. + ![Change Username warning button](/assets/images/help/settings/settings-change-my-username-button.png) {% endif %} -## 延伸阅读 +## Further reading - "[Why are my commits linked to the wrong user?](/pull-requests/committing-changes-to-your-project/troubleshooting-commits/why-are-my-commits-linked-to-the-wrong-user)"{% ifversion fpt or ghec %} - "[{% data variables.product.prodname_dotcom %} Username Policy](/free-pro-team@latest/github/site-policy/github-username-policy)"{% endif %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md index cf6b07895987..54fdec940d2d 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md @@ -46,8 +46,8 @@ shortTitle: 用户到组织 1. 创建新的个人帐户,转换后您将用它来登录 GitHub 以及访问组织和仓库。 2. [离开](/articles/removing-yourself-from-an-organization)要转换的用户帐户此前加入的任何组织。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.organizations %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.organizations %} 5. 在“Transform account(转换帐户)”下,单击 **Turn into an organization(将 转换为组织)**。 ![组织转换按钮](/assets/images/help/settings/convert-to-organization.png) 6. 在 Account Transformation Warning(帐户转换警告)对话框中,查看并确认转换。 请注意,此框中的信息与本文顶部的警告信息相同。 ![转换警告](/assets/images/help/organizations/organization-account-transformation-warning.png) 7. 在“Transform your user into an organization(将用户转换为组织)”页面的“Choose an organization owner(选择组织所有者)”下,选择您在前面创建的备用个人帐户或您信任的其他用户来管理组织。 ![添加组织所有者页面](/assets/images/help/organizations/organization-add-owner.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account.md index f84f91e4efbf..ff80b80603b6 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account.md @@ -38,8 +38,8 @@ shortTitle: 删除用户帐户 ## 删除用户帐户 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.account_settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.account_settings %} 3. 在帐户设置页面底部,“Delete account(删除帐户)”下,单击 **Delete your account(删除帐户)**。 然后即可删除用户帐户。 - 如果您是组织中的唯一所有者,则必须将所有权转让给其他人或删除您的组织。 - 如果组织中有其他组织所有者,则必须将自己从组织中删除。 ![帐户删除按钮](/assets/images/help/settings/settings-account-delete.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/integrating-jira-with-your-personal-projects.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/integrating-jira-with-your-personal-projects.md index 101067be1992..7fd7757db435 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/integrating-jira-with-your-personal-projects.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/integrating-jira-with-your-personal-projects.md @@ -11,8 +11,8 @@ versions: shortTitle: 将 Jira 与项目集成 --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.developer_settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.developer_settings %} {% data reusables.user-settings.oauth_apps %} 1. 单击 **Register a new application(注册新应用程序)**。 2. 在 **Application name(应用程序名称)**下输入 "Jira"。 @@ -20,7 +20,7 @@ shortTitle: 将 Jira 与项目集成 4. 在 **Authorization callback URL(授权回叫 URL)**下,输入 Jira 实例的完整 URL。 5. 单击 **Register application(注册应用程序)**。 ![注册应用程序按钮](/assets/images/help/oauth/register-application-button.png) 8. 在 **Developer applications(开发者应用程序)**下,记下 "Client ID"(客户 ID)和 "Client Secret"(客户端密钥)值。 ![客户端 ID 和客户端密码](/assets/images/help/oauth/client-id-and-secret.png) -{% data reusables.user_settings.jira_help_docs %} +{% data reusables.user-settings.jira_help_docs %} ## 延伸阅读 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings.md index e3c424a45385..17c0ed874a0e 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings.md @@ -13,7 +13,7 @@ All keyboard shortcuts are enabled by default on {% data variables.product.produ ## Managing character key shortcuts -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.accessibility_settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.accessibility_settings %} 1. Select or deselect the **Enable character key shortcuts** checkbox. ![Screenshot of the 'Enable character key shortcuts' checkbox](/assets/images/help/settings/disable-character-key-shortcuts.png) 2. 单击 **Save(保存)**。 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md index 99fc28da4674..83b947aef99b 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md @@ -29,8 +29,8 @@ You can also review the security log for all activity on your user account. 更 ## 启用或禁用现有仓库的功能 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security-analysis %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security-analysis %} 3. 在“Configure security and analysis features(配置安全性和分析功能)”下,单击功能右侧的 **Disable all(全部禁用)**或 **Enable all(全部启用)**。 {% ifversion ghes > 3.2 %}!["Enable all" or "Disable all" button for "Configure security and analysis" features](/assets/images/enterprise/3.3/settings/security-and-analysis-disable-or-enable-all.png){% else %}!["Enable all" or "Disable all" button for "Configure security and analysis" features](/assets/images/help/settings/security-and-analysis-disable-or-enable-all.png){% endif %} 6. Optionally, enable the feature by default for new repositories that you own. @@ -42,8 +42,8 @@ You can also review the security log for all activity on your user account. 更 ## 对新仓库启用或禁用功能 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security-analysis %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security-analysis %} 3. Under "Configure security and analysis features", to the right of the feature, enable or disable the feature by default for new repositories that you own. {% ifversion ghes > 3.2 %}![Checkbox for enabling or disabling a feature for new repositories](/assets/images/enterprise/3.3/settings/security-and-analysis-enable-or-disable-feature-checkbox.png){% else %}![Checkbox for enabling or disabling a feature for new repositories](/assets/images/help/settings/security-and-analysis-enable-or-disable-feature-checkbox.png){% endif %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories.md index 9e5c6fc01c76..30a3d24ddbb6 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-the-default-branch-name-for-your-repositories.md @@ -21,8 +21,8 @@ When you create a new repository on {% data variables.product.product_location % ## Setting the default branch name -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.repo-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.repo-tab %} 3. Under "Repository default branch", click **Change default branch name now**. ![Override button](/assets/images/help/settings/repo-default-name-button.png) 4. Type the default name that you would like to use for new branches. diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-tab-size-rendering-preference.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-tab-size-rendering-preference.md index e448e15fc4d2..6b5dae9360fa 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-tab-size-rendering-preference.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-tab-size-rendering-preference.md @@ -13,6 +13,6 @@ shortTitle: Managing your tab size If you feel that tabbed indentation in code rendered on {% data variables.product.product_name %} takes up too much, or too little space, you can change this in your settings. -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 1. In the left sidebar, click **{% octicon "paintbrush" aria-label="The paintbrush icon" %} Appearance**. 2. Under "Tab size preference", select the drop-down menu and choose your preference. ![Tab size preference button](/assets/images/help/settings/tab-size-preference.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings.md index 586f705ff52e..b59821c8e50e 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-your-theme-settings.md @@ -28,8 +28,8 @@ shortTitle: 管理主题设置 {% endif %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.appearance-settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.appearance-settings %} 1. Under "Theme mode", select the drop-down menu, then click a theme preference. diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/what-does-the-available-for-hire-checkbox-do.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/what-does-the-available-for-hire-checkbox-do.md index b58894780181..3dcbab51de71 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/what-does-the-available-for-hire-checkbox-do.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/what-does-the-available-for-hire-checkbox-do.md @@ -23,5 +23,5 @@ shortTitle: 可用于租用复选框 ![仪表板上的 GitHub Jobs 广告](/assets/images/help/settings/jobs-ads-on-dashboard.png) -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 2. 在 Jobs Profile(职位资料)下,选择 **Available for hire(招聘职位)**,然后单击 **Save jobs profile(保存职位资料)**。 ![职位资料设置](/assets/images/help/settings/jobs-profile-settings.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership.md index 22ac062b8d10..e4db7678d883 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/about-organization-membership.md @@ -1,6 +1,6 @@ --- -title: 关于组织成员资格 -intro: 您可以成为组织的成员,以便一次在多个仓库中与同事或开源贡献者协作。 +title: About organization membership +intro: You can become a member of an organization to collaborate with coworkers or open-source contributors across many repositories at once. redirect_from: - /articles/about-organization-membership - /github/setting-up-and-managing-your-github-user-account/about-organization-membership @@ -12,42 +12,41 @@ versions: ghec: '*' topics: - Accounts -shortTitle: 组织成员资格 +shortTitle: Organization membership --- +An organization owner can invite you to join their organization as a member, billing manager, or owner. An organization owner or member with admin privileges for a repository can invite you to collaborate in one or more repositories as an outside collaborator. For more information, see "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)." -组织所有者可邀请您作为成员、帐单管理员或所有者加入其组织。 组织所有者或者对仓库具有管理员权限的成员可邀请您作为外部协作者,协作处理一个或多个仓库。 更多信息请参阅“[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)”。 +You can access organizations you're a member of on your profile page. For more information, see "[Accessing an organization](/articles/accessing-an-organization)." -您可以在个人资料页面上访问您是其成员的组织。 更多信息请参阅“[访问组织](/articles/accessing-an-organization)”。 +When you accept an invitation to join an organization, the organization owners may be able to see: -当您接受加入组织的邀请后,组织所有者可能会看到: +- Your public profile information +- Your email address +- If you have two-factor authorization enabled +- Repositories you have access to within the organization, and your access level +- Certain activity within the organization +- Country of request origin +- Your IP address -- 您的公共资料信息 -- 您的电子邮件地址 -- 您是否启用双重身份验证 -- 您在组织内可以访问的仓库以及您的权限级别 -- 组织内的特定活动 -- 申请来源国家/地区 -- 您的 IP 地址 - -更多信息请参阅 {% data variables.product.prodname_dotcom %} 隐私声明。 +For more information, see the {% data variables.product.prodname_dotcom %} Privacy Statement. {% note %} - **注:**所有者无法在组织的审核日志中查看成员的 IP 地址。 在发生安全事件时,例如帐户被盗或因疏忽而共享敏感数据,组织所有者可能会申请详细访问私有仓库。 我们返回的信息可能包含您的 IP 地址。 + **Note:** Owners are not able to view member IP addresses in the organization's audit log. In the event of a security incident, such as an account compromise or inadvertent sharing of sensitive data, organization owners may request details of access to private repositories. The information we return may include your IP address. {% endnote %} -默认情况下,您的组织成员资格可见性会设为私密。 您可以选择在您的个人资料中公开个人组织成员资格。 更多信息请参阅“[公开或隐藏组织成员资格](/articles/publicizing-or-hiding-organization-membership)”。 +By default, your organization membership visibility is set to private. You can choose to publicize individual organization memberships on your profile. For more information, see "[Publicizing or hiding organization membership](/articles/publicizing-or-hiding-organization-membership)." {% ifversion fpt or ghec %} -如果您的组织属于某个企业帐户,您会自动成为该企业帐户的成员,企业帐户所有者能够看到您。 For more information, see "[About enterprise accounts](/enterprise-cloud@latest/admin/overview/about-enterprise-accounts){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} +If your organization belongs to an enterprise account, you are automatically a member of the enterprise account and visible to enterprise account owners. For more information, see "[About enterprise accounts](/enterprise-cloud@latest/admin/overview/about-enterprise-accounts){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} {% endif %} -您可以随时离开组织。 更多信息请参阅“[将您自己从组织删除](/articles/removing-yourself-from-an-organization)”。 +You can leave an organization at any time. For more information, see "[Removing yourself from an organization](/articles/removing-yourself-from-an-organization)." -## 延伸阅读 +## Further reading -- "[关于组织](/articles/about-organizations)" -- "[管理您在组织中的成员资格](/articles/managing-your-membership-in-organizations)" +- "[About organizations](/articles/about-organizations)" +- "[Managing your membership in organizations](/articles/managing-your-membership-in-organizations)" diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/accessing-an-organization.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/accessing-an-organization.md index eadc33827d9b..8acd2dedf908 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/accessing-an-organization.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/accessing-an-organization.md @@ -24,4 +24,4 @@ topics: {% endtip %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/managing-your-scheduled-reminders.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/managing-your-scheduled-reminders.md index 758ca92285a0..ce100d4a2975 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/managing-your-scheduled-reminders.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/managing-your-scheduled-reminders.md @@ -24,7 +24,7 @@ shortTitle: 管理预定提醒 ## 为您的用户帐户创建预定提醒 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} {% data reusables.reminders.scheduled-reminders %} 1. 在要预定提醒的组织旁边,单击 **Edit(编辑)**。 ![预定提醒编辑按钮](/assets/images/help/settings/scheduled-reminders-org-choice.png) {% data reusables.reminders.add-reminder %} @@ -38,14 +38,14 @@ shortTitle: 管理预定提醒 {% data reusables.reminders.create-reminder %} ## 管理用户帐户的预定提醒 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} {% data reusables.reminders.scheduled-reminders %} 1. 在要编辑预定提醒的组织旁边,单击 **Edit(编辑)**。 ![预定提醒编辑按钮](/assets/images/help/settings/scheduled-reminders-org-choice.png) {% data reusables.reminders.edit-page %} {% data reusables.reminders.update-buttons %} ## 删除用户帐户的预定提醒 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} {% data reusables.reminders.scheduled-reminders %} 1. 在要删除提醒的组织旁边,单击 **Edit(编辑)**。 ![预定提醒编辑按钮](/assets/images/help/settings/scheduled-reminders-org-choice.png) {% data reusables.reminders.delete %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/publicizing-or-hiding-organization-membership.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/publicizing-or-hiding-organization-membership.md index d083e1fd677e..1bacec097a56 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/publicizing-or-hiding-organization-membership.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/publicizing-or-hiding-organization-membership.md @@ -21,7 +21,7 @@ shortTitle: 显示或隐藏成员资格 ## 更改组织成员关系的可见性 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 在成员列表中找到您的用户名。 如果列表很长,可在搜索框中搜索您的用户名。 ![组织成员搜索框](/assets/images/help/organizations/member-search-box.png) 5. 在用户名右边的菜单中,选择新的可见性选项: diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/removing-yourself-from-an-organization.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/removing-yourself-from-an-organization.md index cb9a13014cac..2b1783c6a907 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/removing-yourself-from-an-organization.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/removing-yourself-from-an-organization.md @@ -28,6 +28,6 @@ shortTitle: 离开组织 {% endif %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.organizations %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.organizations %} 3. 在“Organizations(组织)”下,找到您想要从中删除自己的组织,然后单击 **Leave(离开)**。 ![显示角色的离开组织按钮](/assets/images/help/organizations/context-leave-organization-with-roles-shown.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps.md index 037585243f9f..e540196eb650 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps.md @@ -17,9 +17,9 @@ shortTitle: 请求 OAuth 应用程序批准 ## 请求组织批准您已为个人帐户授权的 {% data variables.product.prodname_oauth_app %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.access_applications %} -{% data reusables.user_settings.access_authorized_oauth_apps %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.access_applications %} +{% data reusables.user-settings.access_authorized_oauth_apps %} 3. 在应用程序列表中,单击您想要请求访问权限的 {% data variables.product.prodname_oauth_app %}的名称。 ![查看应用程序按钮](/assets/images/help/settings/settings-third-party-view-app.png) 4. 在您想要 {% data variables.product.prodname_oauth_app %}访问的组织旁边,单击 **Request access(请求访问权限)**。 ![请求访问权限按钮](/assets/images/help/settings/settings-third-party-request-access.png) 5. 审查关于请求 {% data variables.product.prodname_oauth_app %}访问权限的信息后,单击 **Request approval from owners(请求所有者的批准)**。 ![请求批准按钮](/assets/images/help/settings/oauth-access-request-approval.png) diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization.md index 09bb6d4623a5..33c244d3a0f0 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization.md @@ -20,13 +20,13 @@ shortTitle: 查看组织中的人员 ## View organization roles {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 您将看到组织中人员的列表。 要按角色过滤列表,请单击 **Role(角色)**并选择您搜索的角色。 ![单击角色](/assets/images/help/organizations/view-list-of-people-in-org-by-role.png) {% ifversion fpt %} -If your organization uses {% data variables.product.prodname_ghe_cloud %}, you can also view the enterprise owners who manage billing settings and policies for all your enterprise's organizations. For more information, see [the {% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization#view-enterprise-owners-and-their-roles-in-an-organization). +If your organization uses {% data variables.product.prodname_ghe_cloud %}, you can also view the enterprise owners who manage billing settings and policies for all your enterprise's organizations. 更多信息请参阅 [{% data variables.product.prodname_ghe_cloud %} 文档](/enterprise-cloud@latest/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization#view-enterprise-owners-and-their-roles-in-an-organization)。 {% endif %} @@ -54,7 +54,7 @@ To review all roles in an organization, see "[Roles in an organization](/organiz For more information about the enterprise owner role, see "[Roles in an enterprise](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner)." {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. In the left sidebar, under "Enterprise permissions", click **Enterprise owners**. ![Screenshot of "Enterprise owners" option in sidebar menu](/assets/images/help/organizations/enterprise-owners-sidebar.png) 5. View the list of the enterprise owners for your enterprise. If the enterprise owner is also a member of your organization, you can see their role in the organization. diff --git a/translations/zh-CN/content/actions/advanced-guides/index.md b/translations/zh-CN/content/actions/advanced-guides/index.md deleted file mode 100644 index d5765c95f40f..000000000000 --- a/translations/zh-CN/content/actions/advanced-guides/index.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: Advanced guides -shortTitle: Advanced guides -intro: 'How to cache dependencies, store output as artifacts, and use the GitHub CLI in workflows.' -versions: - fpt: '*' - ghes: '*' - ghae: '*' - ghec: '*' -redirect_from: - - /actions/guides/caching-and-storing-workflow-data -children: - - /caching-dependencies-to-speed-up-workflows - - /storing-workflow-data-as-artifacts - - /using-github-cli-in-workflows ---- - diff --git a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md index 84aeb6386da5..231c9752e68f 100644 --- a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md +++ b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md @@ -47,7 +47,7 @@ The following diagram gives an overview of how {% data variables.product.prodnam When you configure your cloud to trust {% data variables.product.prodname_dotcom %}'s OIDC provider, you **must** add conditions that filter incoming requests, so that untrusted repositories or workflows can’t request access tokens for your cloud resources: - Before granting an access token, your cloud provider checks that the [`subject`](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims) and other claims used to set conditions in its trust settings match those in the request's JSON Web Token (JWT). As a result, you must take care to correctly define the _subject_ and other conditions in your cloud provider. -- The OIDC trust configuration steps and the syntax to set conditions for cloud roles (using _Subject_ and other claims) will vary depending on which cloud provider you're using. For some examples, see "[Examples](#examples)." +- The OIDC trust configuration steps and the syntax to set conditions for cloud roles (using _Subject_ and other claims) will vary depending on which cloud provider you're using. For some examples, see "[Example subject claims](#example-subject-claims)." ### Understanding the OIDC token @@ -135,7 +135,9 @@ With OIDC, a {% data variables.product.prodname_actions %} workflow requires a t Audience and Subject claims are typically used in combination while setting conditions on the cloud role/resources to scope its access to the GitHub workflows. - **Audience**: By default, this value uses the URL of the organization or repository owner. This can be used to set a condition that only the workflows in the specific organization can access the cloud role. -- **Subject**: Has a predefined format and is a concatenation of some of the key metadata about the workflow, such as the {% data variables.product.prodname_dotcom %} organization, repository, branch or associated [`job`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idenvironment) environment. There are also many additional claims supported in the OIDC token that can also be used for setting these conditions. +- **Subject**: Has a predefined format and is a concatenation of some of the key metadata about the workflow, such as the {% data variables.product.prodname_dotcom %} organization, repository, branch, or associated [`job`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idenvironment) environment. See "[Example subject claims](#example-subject-claims)" to see how the subject claim is assembled from concatenated metadata. + +There are also many additional claims supported in the OIDC token that can also be used for setting these conditions. In addition, your cloud provider could allow you to assign a role to the access tokens, letting you specify even more granular permissions. @@ -145,46 +147,53 @@ In addition, your cloud provider could allow you to assign a role to the access {% endnote %} -### 示例 +### Example subject claims -The following examples demonstrate how to use "Subject" as a condition. The [subject](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims) uses information from the [`job` context](/actions/learn-github-actions/contexts#job-context), and instructs your cloud provider that access token requests may only be granted for requests from workflows running in specific branches, environments. The following sections describe some common subjects you can use. +The following examples demonstrate how to use "Subject" as a condition, and explain how the "Subject" is assembled from concatenated metadata. The [subject](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims) uses information from the [`job` context](/actions/learn-github-actions/contexts#job-context), and instructs your cloud provider that access token requests may only be granted for requests from workflows running in specific branches, environments. The following sections describe some common subjects you can use. #### Filtering for a specific environment +The subject claim includes the environment name when the job references an environment. + You can configure a subject that filters for a specific [environment](/actions/deployment/using-environments-for-deployment) name. In this example, the workflow run must have originated from a job that has an environment named `Production`, in a repository named `octo-repo` that is owned by the `octo-org` organization: -| | | -| --- | --------------------------------------------------- | -| 语法: | `repo:orgName/repoName:environment:environmentName` | -| 示例: | `repo:octo-org/octo-repo:environment:Production` | +| | | +| --- | ------------------------------------------------------------------- | +| 语法: | `repo::environment:` | +| 示例: | `repo:octo-org/octo-repo:environment:Production` | #### Filtering for `pull_request` events -You can configure a subject that filters for the [`pull_request`](/actions/learn-github-actions/events-that-trigger-workflows#pull_request) event. In this example, the workflow run must have been triggered by a `pull_request` event in a repository named `octo-repo` that is owned by the `octo-org` organization: +The subject claim includes the `pull_request` string when the workflow is triggered by a pull request event. +You can configure a subject that filters for the [`pull_request`](/actions/learn-github-actions/events-that-trigger-workflows#pull_request) event. In this example, the workflow run must have been triggered by a `pull_request` event in a repository named `octo-repo` that is owned by the `octo-org` organization: -| | | -| --- | -------------------------------------- | -| 语法: | `repo:orgName/repoName:pull_request` | -| 示例: | `repo:octo-org/octo-repo:pull_request` | +| | | +| --- | -------------------------------------------- | +| 语法: | `repo::pull_request` | +| 示例: | `repo:octo-org/octo-repo:pull_request` | #### Filtering for a specific branch +The subject claim includes the branch name of the workflow, but only if the job doesn't reference an environment, and if the workflow is not triggered by a pull request event. + You can configure a subject that filters for a specific branch name. In this example, the workflow run must have originated from a branch named `demo-branch`, in a repository named `octo-repo` that is owned by the `octo-org` organization: -| | | -| --- | ---------------------------------------------------- | -| 语法: | `repo:orgName/repoName:ref:refs/heads/branchName` | -| 示例: | `repo:octo-org/octo-repo:ref:refs/heads/demo-branch` | +| | | +| --- | --------------------------------------------------------- | +| 语法: | `repo::ref:refs/heads/branchName` | +| 示例: | `repo:octo-org/octo-repo:ref:refs/heads/demo-branch` | #### Filtering for a specific tag +The subject claim includes the tag name of the workflow, but only if the job doesn't reference an environment, and if the workflow is not triggered by a pull request event. + You can create a subject that filters for specific tag. In this example, the workflow run must have originated with a tag named `demo-tag`, in a repository named `octo-repo` that is owned by the `octo-org` organization: -| | | -| --- | ------------------------------------------------ | -| 语法: | `repo:orgName/repoName:ref:refs/tags/tagName` | -| 示例: | `repo:octo-org/octo-repo:ref:refs/tags/demo-tag` | +| | | +| --- | ------------------------------------------------------------- | +| 语法: | `repo::ref:refs/tags/` | +| 示例: | `repo:octo-org/octo-repo:ref:refs/tags/demo-tag` | ### Configuring the subject in your cloud provider diff --git a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services.md b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services.md index df9ff468e35d..9924912b820c 100644 --- a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services.md +++ b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services.md @@ -42,7 +42,8 @@ Edit the trust relationship to add the `sub` field to the validation conditions. ```json{:copy} "Condition": { - "StringEquals": { + "ForAllValues:StringEquals": { + "token.actions.githubusercontent.com:aud": "sts.amazonaws.com", "token.actions.githubusercontent.com:sub": "repo:octo-org/octo-repo:ref:refs/heads/octo-branch" } } diff --git a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/using-openid-connect-with-reusable-workflows.md b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/using-openid-connect-with-reusable-workflows.md index d2db72a4e880..22f32ba88c01 100644 --- a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/using-openid-connect-with-reusable-workflows.md +++ b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/using-openid-connect-with-reusable-workflows.md @@ -9,6 +9,7 @@ versions: fpt: '*' ghae: issue-4757-and-5856 ghec: '*' + ghes: '>=3.5' type: how_to topics: - Workflows diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md index 52cc87e50caa..a43a506f24e3 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md @@ -85,7 +85,7 @@ You can add self-hosted runners at the organization level, where they can be use New runners are assigned to the default group. You can modify the runner's group after you've registered the runner. For more information, see "[Managing access to self-hosted runners](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups#moving-a-self-hosted-runner-to-a-group)." {% ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} -To add a self-hosted runner to an enterprise account, you must be an enterprise owner. For information about how to add a self-hosted runner with the REST API, see the [Enterprise Administration GitHub Actions APIs](/rest/reference/enterprise-admin#github-actions). +To add a self-hosted runner to an enterprise account, you must be an enterprise owner. For information about how to add a self-hosted runner with the REST API, see the enterprise endpoints in the [{% data variables.product.prodname_actions %} REST API](/rest/reference/actions#self-hosted-runners). {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.policies-tab %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md index 2103cc051ab3..772ba7173283 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md @@ -1,6 +1,6 @@ --- -title: Autoscaling with self-hosted runners -intro: You can automatically scale your self-hosted runners in response to webhook events. +title: 使用自托管运行器自动缩放 +intro: 您可以自动扩展自托管运行器以响应 web 挂钩事件。 versions: fpt: '*' ghec: '*' @@ -12,90 +12,90 @@ type: overview {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} -## About autoscaling +## 关于自动缩放 -You can automatically increase or decrease the number of self-hosted runners in your environment in response to the webhook events you receive with a particular label. For example, you can create automation that adds a new self-hosted runner each time you receive a [`workflow_job`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) webhook event with the [`queued`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) activity, which notifies you that a new job is ready for processing. The webhook payload includes label data, so you can identify the type of runner the job is requesting. Once the job has finished, you can then create automation that removes the runner in response to the `workflow_job` [`completed`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) activity. +您可以自动增加或减少环境中自托管运行器的数量,以响应您收到的带特定标签的 web 挂钩事件。 例如,您可以创建自动化,以便在每次收到包含 [`queued`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) 活动的 [`workflow_job`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) web 挂钩事件时添加新的自托管运行器,这会通知您新作业已准备好进行处理。 Web 挂钩有效负载包含标签数据,因此您可以识别作业请求的运行器类型。 作业完成后,您可以创建自动化,以删除运行器以响应 `workflow_job` [`completed`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) 活动。 -## Recommended autoscaling solutions +## 推荐的自动缩放解决方案 -{% data variables.product.prodname_dotcom %} recommends and partners closely with two open source projects that you can use for autoscaling your runners. One or both solutions may be suitable, based on your needs. +{% data variables.product.prodname_dotcom %} 推荐两个开源项目并与之密切合作,您可以使用它们来自动缩放运行器。 根据您的需求,一个或两个解决方案可能适用。 -The following repositories have detailed instructions for setting up these autoscalers: +以下存储库提供了有关设置这些自动缩放程序的详细说明: -- [actions-runner-controller/actions-runner-controller](https://github.com/actions-runner-controller/actions-runner-controller) - A Kubernetes controller for {% data variables.product.prodname_actions %} self-hosted runners. -- [philips-labs/terraform-aws-github-runner](https://github.com/philips-labs/terraform-aws-github-runner) - A Terraform module for scalable {% data variables.product.prodname_actions %} runners on Amazon Web Services. +- [actions-runner-controller/actions-runner-controller](https://github.com/actions-runner-controller/actions-runner-controller) - Kubernetes 控制器,用于 {% data variables.product.prodname_actions %} 自托管运行器。 +- [philips-labs/terraform-aws-github-runner](https://github.com/philips-labs/terraform-aws-github-runner) - 用于 Amazon Web Services 上可扩展 {% data variables.product.prodname_actions %} 运行器的 Terraform 模块。 -Each solution has certain specifics that may be important to consider: +每个解决方案都有一些需要考虑的重要细节: -| **功能** | **actions-runner-controller** | **terraform-aws-github-runner** | -|:--------------------------- |:---------------------------------------------------------------------------------- |:--------------------------------------------------------------------- | -| Runtime | Kubernetes | Linux and Windows VMs | -| Supported Clouds | Azure, Amazon Web Services, Google Cloud Platform, on-premises | Amazon Web Services | -| Where runners can be scaled | Enterprise, organization, and repository levels. By runner label and runner group. | Organization and repository levels. By runner label and runner group. | -| How runners can be scaled | Webhook events, Scheduled, Pull-based | Webhook events, Scheduled (org-level runners only) | +| **功能** | **actions-runner-controller** | **terraform-aws-github-runner** | +|:---------- |:-------------------------------------------------- |:------------------------------- | +| Runtime | Kubernetes | Linux 和 Windows VM | +| 支持的云 | Azure、Amazon Web Services、Google Cloud Platform、本地 | Amazon Web Services | +| 运行器可以缩放的位置 | 企业、组织和存储库级别。 通过运行器标签和运行器组。 | 组织和存储库级别。 通过运行器标签和运行器组。 | +| 如何缩放运行器 | Web 挂钩事件、计划、基于拉取 | Web 挂钩事件、计划(仅限组织级运行器) | -## Using ephemeral runners for autoscaling +## 使用临时运行器进行自动缩放 -{% data variables.product.prodname_dotcom %} recommends implementing autoscaling with ephemeral self-hosted runners; autoscaling with persistent self-hosted runners is not recommended. In certain cases, {% data variables.product.prodname_dotcom %} cannot guarantee that jobs are not assigned to persistent runners while they are shut down. With ephemeral runners, this can be guaranteed because {% data variables.product.prodname_dotcom %} only assigns one job to a runner. +{% data variables.product.prodname_dotcom %} 建议使用临时的自托管运行器实现自动缩放;不建议使用持久的自托管运行器进行自动缩放。 在某些情况下, {% data variables.product.prodname_dotcom %} 无法保证作业在关闭时不会分配给持久性运行器。 对于临时运行器,这可以得到保证,因为 {% data variables.product.prodname_dotcom %} 只将一个作业分配给运行器。 -This approach allows you to manage your runners as ephemeral systems, since you can use automation to provide a clean environment for each job. This helps limit the exposure of any sensitive resources from previous jobs, and also helps mitigate the risk of a compromised runner receiving new jobs. +这种方法允许您将运行器作为临时系统进行管理,因为您可以使用自动化为每个作业提供干净的环境。 这有助于限制以前工作中任何敏感资源的暴露,也有助于降低受损运行器获得新作业的风险。 -To add an ephemeral runner to your environment, include the `--ephemeral` parameter when registering your runner using `config.sh`. 例如: +要将临时运行器添加到环境中,请在使用 `config.sh` 注册运行器时包括 `--ephemeral` 参数。 例如: ```shell ./config.sh --url https://github.com/octo-org --token example-token --ephemeral ``` -The {% data variables.product.prodname_actions %} service will then automatically de-register the runner after it has processed one job. You can then create your own automation that wipes the runner after it has been de-registered. +然后,{% data variables.product.prodname_actions %} 服务将在处理完一个作业后自动取消注册运行器。 然后,您可以创建自己的自动化,在取消注册后擦除运行器。 {% note %} -**Note:** If a job is labeled for a certain type of runner, but none matching that type are available, the job does not immediately fail at the time of queueing. Instead, the job will remain queued until the 24 hour timeout period expires. +**注意:** 如果作业标记为某种类型的运行器,但没有与该类型匹配的作业可用,则该作业在排队时不会立即失败。 相反,作业将保持排队状态,直到 24 小时超时期限到期。 {% endnote %} -## Controlling runner software updates on self-hosted runners +## 控制自托管运行器上的运行器软件更新 -By default, self-hosted runners will automatically perform a software update whenever a new version of the runner software is available. If you use ephemeral runners in containers then this can lead to repeated software updates when a new runner version is released. Turning off automatic updates allows you to update the runner version on the container image directly on your own schedule. +默认情况下,每当有新版本的运行器软件可用时,自托管运行器将自动执行软件更新。 如果在容器中使用临时运行器,则当发布新的运行器版本时,这可能会导致重复的软件更新。 关闭自动更新允许你按照自己的计划直接更新容器映像上的运行器版本。 -If you want to turn off automatic software updates and install software updates yourself, you can specify the `--disableupdate` parameter when starting the runner. 例如: +如果要关闭自动软件更新并自行安装软件更新,可以在启动运行器时指定 `--disableupdate` 参数。 例如: ```shell ./run.sh --disableupdate ``` -If you disable automatic updates, you must still update your runner version regularly. New functionality in {% data variables.product.prodname_actions %} requires changes in both the {% data variables.product.prodname_actions %} service _and_ the runner software. The runner may not be able to correctly process jobs that take advantage of new features in {% data variables.product.prodname_actions %} without a software update. +如果禁用自动更新,您仍必须定期更新运行器版本。 {% data variables.product.prodname_actions %} 中的新功能需要更改 {% data variables.product.prodname_actions %} 服务_和_运行器软件 。 在没有软件更新的情况下,运行器可能无法正确处理利用 {% data variables.product.prodname_actions %} 新功能的作业。 -If you disable automatic updates, you will be required to update your runner version within 30 days of a new version being made available. You may want to subscribe to notifications for releases in the [`actions/runner` repository](https://github.com/actions/runner/releases). 更多信息请参阅“[配置通知](/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications#about-custom-notifications)”。 +如果禁用自动更新,则需要在新版本可用后的 30 天内更新运行器版本。 您可能希望在 [`actions/runner` 仓库](https://github.com/actions/runner/releases)中订阅发布通知。 更多信息请参阅“[配置通知](/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications#about-custom-notifications)”。 -For instructions on how to install the latest runner version, see the installation instructions for [the latest release](https://github.com/actions/runner/releases). +有关如何安装最新运行器版本的说明,请参阅安装说明,了解[最新版本](https://github.com/actions/runner/releases)。 {% note %} -**Note:** If you do not perform a software update within 30 days, the {% data variables.product.prodname_actions %} service will not queue jobs to your runner. In addition, if a critical security update is required, the {% data variables.product.prodname_actions %} service will not queue jobs to your runner until it has been updated. +**注意:**如果您在 30 天内未执行软件更新,{% data variables.product.prodname_actions %} 服务将不会将作业排队到您的运行器。 此外,如果需要关键安全更新,{% data variables.product.prodname_actions %} 服务在更新之前不会将作业排队到运行器。 {% endnote %} -## Using webhooks for autoscaling +## 使用 web 挂钩进行自动缩放 -You can create your own autoscaling environment by using payloads received from the [`workflow_job`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) webhook. This webhook is available at the repository, organization, and enterprise levels, and the payload for this event contains an `action` key that corresponds to the stages of a workflow job's life-cycle; for example when jobs are `queued`, `in_progress`, and `completed`. You must then create your own scaling automation in response to these webhook payloads. +可以使用从 [`workflow_job`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) web 挂钩接收的有效负载创建自己的自动缩放环境。 此 web 挂钩在存储库、组织和企业级别可用,此事件的有效负载包含与工作流程作业生命周期的各个阶段相对应的 `action` 键;例如,当作业为 `queued`、`in_progress` 和 `completed` 时。 然后,您必须创建自己的缩放自动化以响应这些 web 挂钩有效负载。 -- For more information about the `workflow_job` webhook, see "[Webhook events and payloads](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job)." -- To learn how to work with webhooks, see "[Creating webhooks](/developers/webhooks-and-events/webhooks/creating-webhooks)." +- 有关 `workflow_job` web 挂钩的详细信息,请参阅“[web 挂钩事件和有效负载](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job)”。 +- 要了解如何使用 web 挂钩,请参阅“[创建 web 挂钩](/developers/webhooks-and-events/webhooks/creating-webhooks)”。 -## Authentication requirements +## 身份验证要求 -You can register and delete repository and organization self-hosted runners using [the API](/rest/reference/actions#self-hosted-runners). To authenticate to the API, your autoscaling implementation can use an access token or a {% data variables.product.prodname_dotcom %} app. +您可以使用 [API](/rest/reference/actions#self-hosted-runners)注册和删除存储库和组织自托管运行器。 若要向 API 进行身份验证,自动缩放实现可以使用访问令牌或 {% data variables.product.prodname_dotcom %} 应用。 -Your access token will require the following scope: +访问令牌将需要以下作用域: -- For private repositories, use an access token with the [`repo` scope](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes). -- For public repositories, use an access token with the [`public_repo` scope](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes). +- 对于私有存储库,请使用具有 [`repo` 作用域](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes)的访问令牌。 +- 对于公共存储库,请使用具有 [`public_repo` 作用域](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes)的访问令牌。 -To authenticate using a {% data variables.product.prodname_dotcom %} App, it must be assigned the following permissions: -- For repositories, assign the `administration` permission. -- For organizations, assign the `organization_self_hosted_runners` permission. +要使用 {% data variables.product.prodname_dotcom %} 应用进行身份验证,必须为其分配以下权限: +- 对于存储库,请分配`管理`权限。 +- 对于组织,请分配 `organization_self_hosted_runners` 权限。 -You can register and delete enterprise self-hosted runners using [the API](/rest/reference/enterprise-admin#github-actions). To authenticate to the API, your autoscaling implementation can use an access token. +您可以使用 [API](/rest/reference/actions#self-hosted-runners) 注册和删除企业自托管运行器。 要向 API 进行身份验证,自动缩放实现可以使用访问令牌。 -Your access token will require the `manage_runners:enterprise` scope. +访问令牌将需要 `manage_runners:enterprise` 作用域。 diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md b/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md index c00175f21b17..98789359aa79 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md @@ -88,7 +88,7 @@ shortTitle: 管理运行器组 ## 为企业创建自托管运行器组 -企业可以将其自托管的运行器添加到组以进行访问管理。 企业可以创建供企业帐户中特定组织访问的自托管运行器组。 然后,组织管理员可以为企业运行器组分配其他细致的仓库访问策略。 有关如何使用 REST API 创建自托管运行器组的信息,请参阅[企业管理 GitHub Actions API](/rest/reference/enterprise-admin#github-actions)。 +企业可以将其自托管的运行器添加到组以进行访问管理。 企业可以创建供企业帐户中特定组织访问的自托管运行器组。 然后,组织管理员可以为企业运行器组分配其他细致的仓库访问策略。 有关如何使用 REST API 创建自托管运行器组的信息,请参阅 [{% data variables.product.prodname_actions %} REST API](/rest/reference/actions#self-hosted-runner-groups) 中的企业端点。 自托管运行器在创建时会自动分配给默认组,并且每次只能成为一个组的成员。 您可以在注册过程中将运行器分配给特定组,也可以稍后将运行器从默认组移到自定义组。 diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md index e391ff8b0ae2..538925cb35df 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md @@ -86,7 +86,7 @@ shortTitle: 删除自托管的运行器 {% endnote %} -要从企业帐户删除自托管运行器,您必须是企业所有者。 建议您也访问自托管的运行器机器。 有关如何使用 REST API 删除自托管运行器的信息,请参阅[企业管理 GitHub Actions API](/rest/reference/enterprise-admin#github-actions)。 +要从企业帐户删除自托管运行器,您必须是企业所有者。 建议您也访问自托管的运行器机器。 有关如何使用 REST API 删除自托管运行器的信息,请参阅 [{% data variables.product.prodname_actions %} REST API](/rest/reference/actions#self-hosted-runners) 中的企业端点。 {% data reusables.github-actions.self-hosted-runner-reusing %} {% ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} diff --git a/translations/zh-CN/content/actions/index.md b/translations/zh-CN/content/actions/index.md index c9c954e66302..dc64c6cf0caf 100644 --- a/translations/zh-CN/content/actions/index.md +++ b/translations/zh-CN/content/actions/index.md @@ -63,7 +63,6 @@ children: - /using-github-hosted-runners - /hosting-your-own-runners - /security-guides - - /advanced-guides - /creating-actions - /guides --- diff --git a/translations/zh-CN/content/actions/learn-github-actions/contexts.md b/translations/zh-CN/content/actions/learn-github-actions/contexts.md index 0c73d0bbcf4d..24cd7474732c 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/contexts.md +++ b/translations/zh-CN/content/actions/learn-github-actions/contexts.md @@ -711,6 +711,8 @@ The `inputs` context contains input properties passed to a reusable workflow. Th There are no standard properties in the `inputs` context, only those which are defined in the reusable workflow file. +{% data reusables.actions.reusable-workflows-ghes-beta %} + For more information, see "[Reusing workflows](/actions/learn-github-actions/reusing-workflows)". | 属性名称 | 类型 | 描述 | diff --git a/translations/zh-CN/content/actions/learn-github-actions/environment-variables.md b/translations/zh-CN/content/actions/learn-github-actions/environment-variables.md index ea4aaf9dee45..1fe6b1e3e5b2 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/environment-variables.md +++ b/translations/zh-CN/content/actions/learn-github-actions/environment-variables.md @@ -143,7 +143,7 @@ The default environment variables that {% data variables.product.prodname_dotcom | `GITHUB_HEAD_REF` | The head ref or source branch of the pull request in a workflow run. This property is only set when the event that triggers a workflow run is either `pull_request` or `pull_request_target`. For example, `feature-branch-1`. | | `GITHUB_JOB` | 当前作业的 [job_id](/actions/reference/workflow-syntax-for-github-actions#jobsjob_id)。 For example, `greeting_job`. | | `GITHUB_PATH` | The path on the runner to the file that sets system `PATH` variables from workflow commands. This file is unique to the current step and changes for each step in a job. For example, `/home/runner/work/_temp/_runner_file_commands/add_path_899b9445-ad4a-400c-aa89-249f18632cf5`. 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程命令](/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path)”。 | -| `GITHUB_REF` | 触发工作流程的分支或标记参考。 For branches this is the format `refs/heads/`, and for tags it is `refs/tags/`. This variable is only set if a branch or tag is available for the event type. 例如 `refs/heads/feature-branch-1`。 | +| `GITHUB_REF` | 触发工作流程的分支或标记参考。 For branches this is the format `refs/heads/`, for tags it is `refs/tags/`, and for pull requests it is `refs/pull//merge`. This variable is only set if a branch or tag is available for the event type. 例如 `refs/heads/feature-branch-1`。 | {%- ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5338 %} | `GITHUB_REF_NAME` | {% data reusables.actions.ref_name-description %} For example, `feature-branch-1`.| | `GITHUB_REF_PROTECTED` | {% data reusables.actions.ref_protected-description %} | | `GITHUB_REF_TYPE` | {% data reusables.actions.ref_type-description %} {%- endif %} diff --git a/translations/zh-CN/content/actions/learn-github-actions/finding-and-customizing-actions.md b/translations/zh-CN/content/actions/learn-github-actions/finding-and-customizing-actions.md index bcc6d3b9bfa1..50baa8f737fd 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/finding-and-customizing-actions.md +++ b/translations/zh-CN/content/actions/learn-github-actions/finding-and-customizing-actions.md @@ -49,6 +49,16 @@ topics: 您可以将 {% data variables.product.prodname_actions %} 工作流程中引用的操作视为包含工作流程的仓库依赖图中的依赖项。 更多信息请参阅“[关于依赖关系图](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph)”。 +{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6269 %} + +{% note %} + +**注意:**为了增强安全性,{% data variables.product.prodname_actions %} 弃用了操作的重定向。 这意味着,当操作存储库的所有者或名称发生更改时,使用该操作并具有先前名称的任何工作流程都将失败。 + +{% endnote %} + +{% endif %} + ### 从 {% data variables.product.prodname_marketplace %} 添加操作 操作的列表页包括操作的版本以及使用操作所需的工作流程语法。 为使工作流程在操作有更新时也保持稳定,您可以在工作流程文件中指定 Git 或 Docker 标记号以引用所用操作的版本。 diff --git a/translations/zh-CN/content/actions/learn-github-actions/usage-limits-billing-and-administration.md b/translations/zh-CN/content/actions/learn-github-actions/usage-limits-billing-and-administration.md index d991634b400b..bc81a0d5b2e8 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/usage-limits-billing-and-administration.md +++ b/translations/zh-CN/content/actions/learn-github-actions/usage-limits-billing-and-administration.md @@ -73,6 +73,8 @@ There are some limits on {% data variables.product.prodname_actions %} usage whe {% ifversion fpt or ghes > 3.3 or ghec %} ## Billing for reusable workflows +{% data reusables.actions.reusable-workflows-ghes-beta %} + If you reuse a workflow, billing is always associated with the caller workflow. Assignment of {% data variables.product.prodname_dotcom %}-hosted runners is always evaluated using only the caller's context. The caller cannot use {% data variables.product.prodname_dotcom %}-hosted runners from the called repository. For more information see, "[Reusing workflows](/actions/learn-github-actions/reusing-workflows)." @@ -80,7 +82,7 @@ For more information see, "[Reusing workflows](/actions/learn-github-actions/reu ## 构件和日志保留策略 -您可以为仓库、组织或企业帐户配置构件和日志保留期。 +You can configure the artifact and log retention period for your repository, organization, or enterprise account. {% data reusables.actions.about-artifact-log-retention %} @@ -101,7 +103,7 @@ For more information see, "[Reusing workflows](/actions/learn-github-actions/reu ## 禁用和启用工作流程 -您可以在 {% data variables.product.prodname_dotcom %} 上启用和禁用仓库中的个别工作流程。 +You can enable and disable individual workflows in your repository on {% data variables.product.prodname_dotcom %}. {% data reusables.actions.scheduled-workflows-disabled %} diff --git a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge.md b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge.md index aa00e46dbf19..17da802f4eac 100644 --- a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge.md +++ b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge.md @@ -39,7 +39,7 @@ shortTitle: 添加状态徽章 ## 使用 `event` 参数 -This Markdown example adds a badge that displays the status of workflow runs triggered by the `push` event, which will show the status of the build for the current state of that branch. +此 Markdown 示例添加了一个标志,该标志显示由`推送`事件触发的工作流程运行状态,该事件将显示该分支当前状态的生成状态。 ```markdown ![example event parameter](https://github.com/github/docs/actions/workflows/main.yml/badge.svg?event=push) diff --git a/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md b/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md index b029a19ddd29..5697b4ae246a 100644 --- a/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md +++ b/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md @@ -141,15 +141,6 @@ with: 使用此方法, {% raw %}`${{ github.event.issue.title }}`{% endraw %} 表达式的值存储在内存中用作变量,并且不与脚本生成过程交互。 此外,考虑使用双引号 shell 变量来避免 [单词拆分](https://github.com/koalaman/shellcheck/wiki/SC2086),但这是是写入shell 脚本[的许多一般性建议之一](https://mywiki.wooledge.org/BashPitfalls),不是专门针对 {% data variables.product.prodname_actions %} 的。 -### 使用 CodeQL 分析您的代码 - -为了帮助您在开发生命周期中尽早管理危险模式的风险, {% data variables.product.prodname_dotcom %} 安全实验室开发了仓库所有者可以[集成](/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#running-additional-queries)到其 CI/CD 管道中的 [CodeQL 查询](https://github.com/github/codeql/tree/main/javascript/ql/src/experimental/Security/CWE-094)。 更多信息请参阅“[关于代码扫描](/github/finding-security-vulnerabilities-and-errors-in-your-code/about-code-scanning)”。 - -脚本目前依赖于 CodeQL JavaScript 库,这意味着分析的仓库必须包含至少一个 JavaScript 文件,并且 CodeQL 必须[配置为分析此语言](/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed)。 - -- `ExpressionInjection.ql`:涵盖本文所述的表达式注入,被认为是相当准确的。 但是,它不执行工作流程步骤之间的数据流跟踪。 -- `UntrustedCheckout.ql`:此脚本的结果需要手动检查,以确定从拉取请求的代码是否实际以不安全的方式处理。 更多信息请参阅 {% data variables.product.prodname_dotcom %} 安全实验室博客上的“[保持 GitHub Actions 和工作流程安全:阻止 pwn 请求](https://securitylab.github.com/research/github-actions-preventing-pwn-requests)”。 - ### 限制令牌权限 为了帮助降低暴露令牌的风险,请考虑限制分配的权限。 更多信息请参阅“[修改 GITHUB_TOKEN 的权限](/actions/reference/authentication-in-a-workflow#modifying-the-permissions-for-the-github_token)”。 diff --git a/translations/zh-CN/content/actions/advanced-guides/caching-dependencies-to-speed-up-workflows.md b/translations/zh-CN/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md similarity index 99% rename from translations/zh-CN/content/actions/advanced-guides/caching-dependencies-to-speed-up-workflows.md rename to translations/zh-CN/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md index c77cf9644304..993516dd1afb 100644 --- a/translations/zh-CN/content/actions/advanced-guides/caching-dependencies-to-speed-up-workflows.md +++ b/translations/zh-CN/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md @@ -7,6 +7,7 @@ redirect_from: - /actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows - /actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows - /actions/guides/caching-dependencies-to-speed-up-workflows + - /actions/advanced-guides/caching-dependencies-to-speed-up-workflows versions: fpt: '*' ghec: '*' diff --git a/translations/zh-CN/content/actions/using-workflows/index.md b/translations/zh-CN/content/actions/using-workflows/index.md index 41a3e6ba6e42..1651e2b7b34a 100644 --- a/translations/zh-CN/content/actions/using-workflows/index.md +++ b/translations/zh-CN/content/actions/using-workflows/index.md @@ -14,6 +14,7 @@ redirect_from: - /actions/automating-your-workflow-with-github-actions/configuring-workflows - /actions/configuring-and-managing-workflows - /actions/workflows + - /actions/advanced-guides versions: fpt: '*' ghes: '*' @@ -29,5 +30,8 @@ children: - /creating-starter-workflows-for-your-organization - /using-starter-workflows - /sharing-workflows-secrets-and-runners-with-your-organization + - /caching-dependencies-to-speed-up-workflows + - /storing-workflow-data-as-artifacts + - /using-github-cli-in-workflows --- diff --git a/translations/zh-CN/content/actions/using-workflows/reusing-workflows.md b/translations/zh-CN/content/actions/using-workflows/reusing-workflows.md index 8369d579c36d..fe4f9070a8b3 100644 --- a/translations/zh-CN/content/actions/using-workflows/reusing-workflows.md +++ b/translations/zh-CN/content/actions/using-workflows/reusing-workflows.md @@ -16,6 +16,7 @@ topics: --- {% data reusables.actions.enterprise-beta %} +{% data reusables.actions.reusable-workflows-ghes-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} ## 概览 @@ -62,7 +63,7 @@ The assignment of {% data variables.product.prodname_dotcom %}-hosted runners is {% endif %} -Called workflows can access self-hosted runners from caller's context. This means that a called workflow can access self-hosted runners that are: +Called workflows that are owned by the same user or organization{% ifversion ghes or ghec or ghae %} or enterprise{% endif %} as the caller workflow can access self-hosted runners from the caller's context. This means that a called workflow can access self-hosted runners that are: * In the caller repository * In the caller repository's organization{% ifversion ghes or ghec or ghae %} or enterprise{% endif %}, provided that the runner has been made available to the caller repository diff --git a/translations/zh-CN/content/actions/advanced-guides/storing-workflow-data-as-artifacts.md b/translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md similarity index 99% rename from translations/zh-CN/content/actions/advanced-guides/storing-workflow-data-as-artifacts.md rename to translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md index 11c7be049914..d550fa861d52 100644 --- a/translations/zh-CN/content/actions/advanced-guides/storing-workflow-data-as-artifacts.md +++ b/translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md @@ -8,6 +8,7 @@ redirect_from: - /actions/automating-your-workflow-with-github-actions/persisting-workflow-data-using-artifacts - /actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts - /actions/guides/storing-workflow-data-as-artifacts + - /actions/advanced-guides/storing-workflow-data-as-artifacts versions: fpt: '*' ghes: '*' diff --git a/translations/zh-CN/content/actions/using-workflows/triggering-a-workflow.md b/translations/zh-CN/content/actions/using-workflows/triggering-a-workflow.md index 4530092d78d2..d6c287cce51a 100644 --- a/translations/zh-CN/content/actions/using-workflows/triggering-a-workflow.md +++ b/translations/zh-CN/content/actions/using-workflows/triggering-a-workflow.md @@ -130,6 +130,8 @@ You can use activity types and filters to further control when your workflow wil {% ifversion fpt or ghes > 3.3 or ghae-issue-4757 or ghec %} ## Defining inputs, outputs, and secrets for reusable workflows +{% data reusables.actions.reusable-workflows-ghes-beta %} + You can define inputs and secrets that a reusable workflow should receive from a calling workflow. You can also specify outputs that a reusable workflow will make available to a calling workflow. For more information, see "[Reusing workflows](/actions/using-workflows/reusing-workflows)." {% endif %} diff --git a/translations/zh-CN/content/actions/advanced-guides/using-github-cli-in-workflows.md b/translations/zh-CN/content/actions/using-workflows/using-github-cli-in-workflows.md similarity index 97% rename from translations/zh-CN/content/actions/advanced-guides/using-github-cli-in-workflows.md rename to translations/zh-CN/content/actions/using-workflows/using-github-cli-in-workflows.md index 39160cc653eb..22b54b117c90 100644 --- a/translations/zh-CN/content/actions/advanced-guides/using-github-cli-in-workflows.md +++ b/translations/zh-CN/content/actions/using-workflows/using-github-cli-in-workflows.md @@ -4,6 +4,7 @@ shortTitle: GitHub CLI in workflows intro: 'You can script with {% data variables.product.prodname_cli %} in {% data variables.product.prodname_actions %} workflows.' redirect_from: - /actions/guides/using-github-cli-in-workflows + - /actions/advanced-guides/using-github-cli-in-workflows versions: fpt: '*' ghes: '*' diff --git a/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md index 0c958862b3a2..09f0676a241b 100644 --- a/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -56,6 +56,8 @@ miniTocMaxHeadingLevel: 4 {% ifversion fpt or ghes > 3.3 or ghae-issue-4757 or ghec %} ## `on.workflow_call` +{% data reusables.actions.reusable-workflows-ghes-beta %} + Use `on.workflow_call` to define the inputs and outputs for a reusable workflow. You can also map the secrets that are available to the called workflow. For more information on reusable workflows, see "[Reusing workflows](/actions/using-workflows/reusing-workflows)." ### `on.workflow_call.inputs` @@ -182,7 +184,7 @@ A boolean specifying whether the secret must be supplied. ## `env` -环境变量的 `map` 可用于工作流程中所有作业的步骤。 您还可以设置仅适用于单个作业的步骤或单个步骤的环境变量。 更多信息请参阅 [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv)。 +A `map` of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). {% data reusables.repositories.actions-env-var-note %} @@ -257,7 +259,7 @@ env: ## `jobs..env` -环境变量的 `map` 可用于作业中的所有步骤。 您也可以设置整个工作流程或单个步骤的环境变量。 更多信息请参阅 [`env`](#env) 和 [`jobs..steps[*].env`](#jobsjob_idstepsenv)。 +A `map` of environment variables that are available to all steps in the job. You can also set environment variables for the entire workflow or an individual step. For more information, see [`env`](#env) and [`jobs..steps[*].env`](#jobsjob_idstepsenv). {% data reusables.repositories.actions-env-var-note %} @@ -280,9 +282,9 @@ jobs: ## `jobs..steps` -作业包含一系列任务,称为 `steps`。 步骤可以运行命令、运行设置任务,或者运行您的仓库、公共仓库中的操作或 Docker 注册表中发布的操作。 并非所有步骤都会运行操作,但所有操作都会作为步骤运行。 每个步骤在运行器环境中以其自己的进程运行,且可以访问工作区和文件系统。 因为步骤以自己的进程运行,所以步骤之间不会保留环境变量的更改。 {% data variables.product.prodname_dotcom %} 提供内置的步骤来设置和完成作业。 +A job contains a sequence of tasks called `steps`. Steps can run commands, run setup tasks, or run an action in your repository, a public repository, or an action published in a Docker registry. Not all steps run actions, but all actions run as a step. Each step runs in its own process in the runner environment and has access to the workspace and filesystem. Because steps run in their own process, changes to environment variables are not preserved between steps. {% data variables.product.prodname_dotcom %} provides built-in steps to set up and complete a job. -在工作流程的使用限制之内可运行无限数量的步骤。 For more information, see {% ifversion fpt or ghec or ghes %}"[Usage limits and billing](/actions/reference/usage-limits-billing-and-administration)" for {% data variables.product.prodname_dotcom %}-hosted runners and {% endif %}"[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners/#usage-limits){% ifversion fpt or ghec or ghes %}" for self-hosted runner usage limits.{% elsif ghae %}."{% endif %} +You can run an unlimited number of steps as long as you are within the workflow usage limits. For more information, see {% ifversion fpt or ghec or ghes %}"[Usage limits and billing](/actions/reference/usage-limits-billing-and-administration)" for {% data variables.product.prodname_dotcom %}-hosted runners and {% endif %}"[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners/#usage-limits){% ifversion fpt or ghec or ghes %}" for self-hosted runner usage limits.{% elsif ghae %}."{% endif %} ### 示例 @@ -310,11 +312,11 @@ jobs: ### `jobs..steps[*].id` -步骤的唯一标识符。 您可以使用 `id` 引用上下文中的步骤。 更多信息请参阅“[上下文](/actions/learn-github-actions/contexts)”。 +A unique identifier for the step. 您可以使用 `id` 引用上下文中的步骤。 更多信息请参阅“[上下文](/actions/learn-github-actions/contexts)”。 ### `jobs..steps[*].if` -您可以使用 `if` 条件阻止步骤在条件得到满足之前运行。 您可以使用任何支持上下文和表达式来创建条件。 +You can use the `if` conditional to prevent a step from running unless a condition is met. 您可以使用任何支持上下文和表达式来创建条件。 {% data reusables.github-actions.expression-syntax-if %} For more information, see "[Expressions](/actions/learn-github-actions/expressions)." @@ -331,7 +333,7 @@ steps: #### 示例:使用状态检查功能 -`my backup step` 仅在作业的上一步失败时运行。 For more information, see "[Expressions](/actions/learn-github-actions/expressions#job-status-check-functions)." +The `my backup step` only runs when the previous step of a job fails. For more information, see "[Expressions](/actions/learn-github-actions/expressions#job-status-check-functions)." ```yaml steps: @@ -344,20 +346,20 @@ steps: ### `jobs..steps[*].name` -步骤显示在 {% data variables.product.prodname_dotcom %} 上的名称。 +A name for your step to display on {% data variables.product.prodname_dotcom %}. ### `jobs..steps[*].uses` -选择要作为作业中步骤的一部分运行的操作。 操作是一种可重复使用的代码单位。 您可以使用工作流程所在仓库中、公共仓库中或[发布 Docker 容器映像](https://hub.docker.com/)中定义的操作。 +Selects an action to run as part of a step in your job. 操作是一种可重复使用的代码单位。 您可以使用工作流程所在仓库中、公共仓库中或[发布 Docker 容器映像](https://hub.docker.com/)中定义的操作。 强烈建议指定 Git ref、SHA 或 Docker 标记编号来包含所用操作的版本。 如果不指定版本,在操作所有者发布更新时可能会中断您的工作流程或造成非预期的行为。 - 使用已发行操作版本的 SHA 对于稳定性和安全性是最安全的。 - 使用特定主要操作版本可在保持兼容性的同时接收关键修复和安全补丁。 还可确保您的工作流程继续工作。 - 使用操作的默认分支可能很方便,但如果有人新发布具有突破性更改的主要版本,您的工作流程可能会中断。 -有些操作要求必须通过 [`with`](#jobsjob_idstepswith) 关键词设置输入。 请查阅操作的自述文件,确定所需的输入。 +Some actions require inputs that you must set using the [`with`](#jobsjob_idstepswith) keyword. 请查阅操作的自述文件,确定所需的输入。 -操作为 JavaScript 文件或 Docker 容器。 如果您使用的操作是 Docker 容器,则必须在 Linux 环境中运行作业。 更多详情请参阅 [`runs-on`](#jobsjob_idruns-on)。 +Actions are either JavaScript files or Docker containers. If the action you're using is a Docker container you must run the job in a Linux environment. For more details, see [`runs-on`](#jobsjob_idruns-on). #### 示例:使用版本化操作 @@ -377,7 +379,7 @@ steps: `{owner}/{repo}@{ref}` -您可以指定公共 {% data variables.product.prodname_dotcom %} 仓库中的分支、引用或 SHA。 +You can specify a branch, ref, or SHA in a public {% data variables.product.prodname_dotcom %} repository. ```yaml jobs: @@ -395,7 +397,7 @@ jobs: `{owner}/{repo}/{path}@{ref}` -公共 {% data variables.product.prodname_dotcom %} 仓库中特定分支、引用或 SHA 上的子目录。 +A subdirectory in a public {% data variables.product.prodname_dotcom %} repository at a specific branch, ref, or SHA. ```yaml jobs: @@ -409,7 +411,7 @@ jobs: `./path/to/dir` -包含工作流程的仓库中操作的目录路径。 在使用操作之前,必须检出仓库。 +The path to the directory that contains the action in your workflow's repository. You must check out your repository before using the action. ```yaml jobs: @@ -425,7 +427,7 @@ jobs: `docker://{image}:{tag}` -[Docker 中枢](https://hub.docker.com/)上发布的 Docker 映像。 +A Docker image published on [Docker Hub](https://hub.docker.com/). ```yaml jobs: @@ -440,7 +442,7 @@ jobs: `docker://{host}/{image}:{tag}` -{% data variables.product.prodname_registry %} {% data variables.product.prodname_container_registry %} 中的 Docker 映像。 +A Docker image in the {% data variables.product.prodname_registry %} {% data variables.product.prodname_container_registry %}. ```yaml jobs: @@ -454,7 +456,7 @@ jobs: `docker://{host}/{image}:{tag}` -公共注册表中的 Docker 映像。 此示例在 `gcr.io` 使用 Google Container Registry。 +A Docker image in a public registry. This example uses the Google Container Registry at `gcr.io`. ```yaml jobs: @@ -466,9 +468,9 @@ jobs: #### 示例:在不同于工作流程的私有仓库中使用操作 -您的工作流程必须检出私有仓库,并在本地引用操作。 生成个人访问令牌并将该令牌添加为加密密钥。 更多信息请参阅“[创建个人访问令牌](/github/authenticating-to-github/creating-a-personal-access-token)”和“[加密密码](/actions/reference/encrypted-secrets)”。 +Your workflow must checkout the private repository and reference the action locally. Generate a personal access token and add the token as an encrypted secret. 更多信息请参阅“[创建个人访问令牌](/github/authenticating-to-github/creating-a-personal-access-token)”和“[加密密码](/actions/reference/encrypted-secrets)”。 -将示例中的 `PERSONAL_ACCESS_TOKEN` 替换为您的密钥名称。 +Replace `PERSONAL_ACCESS_TOKEN` in the example with the name of your secret. {% raw %} ```yaml @@ -489,11 +491,11 @@ jobs: ### `jobs..steps[*].run` -使用操作系统 shell 运行命令行程序。 如果不提供 `name`,步骤名称将默认为 `run` 命令中指定的文本。 +Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command. -命令默认使用非登录 shell 运行。 您可以选择不同的 shell,也可以自定义用于运行命令的 shell。 For more information, see [`jobs..steps[*].shell`](#jobsjob_idstepsshell). +Commands run using non-login shells by default. You can choose a different shell and customize the shell used to run commands. For more information, see [`jobs..steps[*].shell`](#jobsjob_idstepsshell). -每个 `run` 关键词代表运行器环境中一个新的进程和 shell。 当您提供多行命令时,每行都在同一个 shell 中运行。 例如: +Each `run` keyword represents a new process and shell in the runner environment. When you provide multi-line commands, each line runs in the same shell. 例如: * 单行命令: @@ -511,7 +513,7 @@ jobs: npm run build ``` -使用 `working-directory` 关键词,您可以指定运行命令的工作目录位置。 +Using the `working-directory` keyword, you can specify the working directory of where to run the command. ```yaml - name: Clean temp directory @@ -521,7 +523,7 @@ jobs: ### `jobs..steps[*].shell` -您可以使用 `shell` 关键词覆盖运行器操作系统中默认的 shell 设置。 您可以使用内置的 `shell` 关键词,也可以自定义 shell 选项集。 The shell command that is run internally executes a temporary file that contains the commands specified in the `run` keyword. +You can override the default shell settings in the runner's operating system using the `shell` keyword. You can use built-in `shell` keywords, or you can define a custom set of shell options. The shell command that is run internally executes a temporary file that contains the commands specified in the `run` keyword. | 支持的平台 | `shell` 参数 | 描述 | 内部运行命令 | | ------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | @@ -582,7 +584,7 @@ steps: #### 自定义 shell -您可以使用 `command […options] {0} [..more_options]` 将 `shell` 值设置为模板字符串。 {% data variables.product.prodname_dotcom %} 将字符串的第一个用空格分隔的词解释为命令,并在 `{0}` 处插入临时脚本的文件名。 +You can set the `shell` value to a template string using `command […options] {0} [..more_options]`. {% data variables.product.prodname_dotcom %} interprets the first whitespace-delimited word of the string as the command, and inserts the file name for the temporary script at `{0}`. 例如: @@ -594,17 +596,17 @@ steps: shell: perl {0} ``` -此示例中使用的命令 `perl` 必须安装在运行器上。 +The command used, `perl` in this example, must be installed on the runner. {% ifversion ghae %} {% data reusables.actions.self-hosted-runners-software %} {% elsif fpt or ghec %} -有关 GitHub 托管运行器中所包含软件的信息,请参阅“[GitHub 托管运行器的规格](/actions/reference/specifications-for-github-hosted-runners#supported-software)”。 +For information about the software included on GitHub-hosted runners, see "[Specifications for GitHub-hosted runners](/actions/reference/specifications-for-github-hosted-runners#supported-software)." {% endif %} #### 退出代码和错误操作首选项 -至于内置的 shell 关键词,我们提供由 {% data variables.product.prodname_dotcom %} 托管运行程序执行的以下默认值。 在运行 shell 脚本时,您应该使用这些指南。 +For built-in shell keywords, we provide the following defaults that are executed by {% data variables.product.prodname_dotcom %}-hosted runners. You should use these guidelines when running shell scripts. - `bash`/`sh`: - 使用 `set -eo pipefail` 的快速失败行为:`bash` 和内置 `shell` 的默认值。 它还是未在非 Windows 平台上提供选项时的默认值。 @@ -622,11 +624,11 @@ steps: ### `jobs..steps[*].with` -输入参数的 `map` 由操作定义。 每个输入参数都是一个键/值对。 输入参数被设置为环境变量。 该变量的前缀为 `INPUT_`,并转换为大写。 +A `map` of the input parameters defined by the action. 每个输入参数都是一个键/值对。 输入参数被设置为环境变量。 The variable is prefixed with `INPUT_` and converted to upper case. #### 示例 -定义 `hello_world` 操作所定义的三个输入参数(`first_name`、`middle_name` 和 `last_name`)。 这些输入变量将被 `hello-world` 操作作为 `INPUT_FIRST_NAME`、`INPUT_MIDDLE_NAME` 和 `INPUT_LAST_NAME` 环境变量使用。 +Defines the three input parameters (`first_name`, `middle_name`, and `last_name`) defined by the `hello_world` action. These input variables will be accessible to the `hello-world` action as `INPUT_FIRST_NAME`, `INPUT_MIDDLE_NAME`, and `INPUT_LAST_NAME` environment variables. ```yaml jobs: @@ -642,7 +644,7 @@ jobs: ### `jobs..steps[*].with.args` -`string` 定义 Docker 容器的输入。 {% data variables.product.prodname_dotcom %} 在容器启动时将 `args` 传递到容器的 `ENTRYPOINT`。 此参数不支持 `array of strings`。 +A `string` that defines the inputs for a Docker container. {% data variables.product.prodname_dotcom %} 在容器启动时将 `args` 传递到容器的 `ENTRYPOINT`。 An `array of strings` is not supported by this parameter. #### 示例 @@ -665,7 +667,7 @@ steps: ### `jobs..steps[*].with.entrypoint` -覆盖 `Dockerfile` 中的 Docker `ENTRYPOINT`,或在未指定时设置它。 与包含 shell 和 exec 表单的 Docker `ENTRYPOINT` 指令不同,`entrypoint` 关键词只接受定义要运行的可执行文件的单个字符串。 +Overrides the Docker `ENTRYPOINT` in the `Dockerfile`, or sets it if one wasn't already specified. Unlike the Docker `ENTRYPOINT` instruction which has a shell and exec form, `entrypoint` keyword accepts only a single string defining the executable to be run. #### 示例 @@ -677,15 +679,15 @@ steps: entrypoint: /a/different/executable ``` -`entrypoint` 关键词旨在用于 Docker 容器操作,但您也可以将其用于未定义任何输入的 JavaScript 操作。 +The `entrypoint` keyword is meant to be used with Docker container actions, but you can also use it with JavaScript actions that don't define any inputs. ### `jobs..steps[*].env` -设置供步骤用于运行器环境的环境变量。 您也可以设置整个工作流程或某个作业的环境变量。 更多信息请参阅 [`env`](#env) 和 [`jobs..env`](#jobsjob_idenv)。 +Sets environment variables for steps to use in the runner environment. You can also set environment variables for the entire workflow or a job. For more information, see [`env`](#env) and [`jobs..env`](#jobsjob_idenv). {% data reusables.repositories.actions-env-var-note %} -公共操作可在自述文件中指定预期的环境变量。 如果要在环境变量中设置密码,必须使用 `secrets` 上下文进行设置。 For more information, see "[Using environment variables](/actions/automating-your-workflow-with-github-actions/using-environment-variables)" and "[Contexts](/actions/learn-github-actions/contexts)." +Public actions may specify expected environment variables in the README file. If you are setting a secret in an environment variable, you must set secrets using the `secrets` context. For more information, see "[Using environment variables](/actions/automating-your-workflow-with-github-actions/using-environment-variables)" and "[Contexts](/actions/learn-github-actions/contexts)." #### 示例 @@ -702,17 +704,17 @@ steps: ### `jobs..steps[*].continue-on-error` -防止步骤失败时作业也会失败。 设置为 `true` 以允许在此步骤失败时作业能够通过。 +Prevents a job from failing when a step fails. Set to `true` to allow a job to pass when this step fails. ### `jobs..steps[*].timeout-minutes` -终止进程之前运行该步骤的最大分钟数。 +The maximum number of minutes to run the step before killing the process. ## `jobs..timeout-minutes` -在 {% data variables.product.prodname_dotcom %} 自动取消运行之前可让作业运行的最大分钟数。 默认值:360 +The maximum number of minutes to let a job run before {% data variables.product.prodname_dotcom %} automatically cancels it. Default: 360 -如果超时超过运行器的作业执行时限,作业将在达到执行时限时取消。 For more information about job execution time limits, see {% ifversion fpt or ghec or ghes %}"[Usage limits and billing](/actions/reference/usage-limits-billing-and-administration#usage-limits)" for {% data variables.product.prodname_dotcom %}-hosted runners and {% endif %}"[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners/#usage-limits){% ifversion fpt or ghec or ghes %}" for self-hosted runner usage limits.{% elsif ghae %}."{% endif %} +If the timeout exceeds the job execution time limit for the runner, the job will be canceled when the execution time limit is met instead. For more information about job execution time limits, see {% ifversion fpt or ghec or ghes %}"[Usage limits and billing](/actions/reference/usage-limits-billing-and-administration#usage-limits)" for {% data variables.product.prodname_dotcom %}-hosted runners and {% endif %}"[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners/#usage-limits){% ifversion fpt or ghec or ghes %}" for self-hosted runner usage limits.{% elsif ghae %}."{% endif %} ## `jobs..strategy` @@ -732,11 +734,11 @@ steps: ## `jobs..continue-on-error` -防止工作流程运行在作业失败时失败。 设置为 `true` 以允许工作流程运行在此作业失败时通过。 +Prevents a workflow run from failing when a job fails. Set to `true` to allow a workflow run to pass when this job fails. ### 示例:防止特定失败的矩阵作业无法运行工作流程 -您可以允许作业矩阵中的特定任务失败,但工作流程运行不失败。 For example, if you wanted to only allow an experimental job with `node` set to `15` to fail without failing the workflow run. +You can allow specific jobs in a job matrix to fail without failing the workflow run. For example, if you wanted to only allow an experimental job with `node` set to `15` to fail without failing the workflow run. {% raw %} ```yaml @@ -789,17 +791,17 @@ strategy: {% data reusables.github-actions.docker-container-os-support %} -用于为工作流程中的作业托管服务容器。 服务容器可用于创建数据库或缓存服务(如 Redis)。 运行器自动创建 Docker 网络并管理服务容器的生命周期。 +Used to host service containers for a job in a workflow. Service containers are useful for creating databases or cache services like Redis. The runner automatically creates a Docker network and manages the life cycle of the service containers. -如果将作业配置为在容器中运行,或者步骤使用容器操作,则无需映射端口来访问服务或操作。 Docker 会自动在同一个 Docker 用户定义的桥接网络上的容器之间显示所有端口。 您可以直接引用服务容器的主机名。 主机名自动映射到为工作流程中的服务配置的标签名称。 +If you configure your job to run in a container, or your step uses container actions, you don't need to map ports to access the service or action. Docker automatically exposes all ports between containers on the same Docker user-defined bridge network. You can directly reference the service container by its hostname. The hostname is automatically mapped to the label name you configure for the service in the workflow. -如果配置作业直接在运行器机器上运行,且您的步骤不使用容器操作,则必须将任何必需的 Docker 服务容器端口映射到 Docker 主机(运行器机器)。 您可以使用 localhost 和映射的端口访问服务容器。 +If you configure the job to run directly on the runner machine and your step doesn't use a container action, you must map any required Docker service container ports to the Docker host (the runner machine). You can access the service container using localhost and the mapped port. -有关网络服务容器之间差异的更多信息,请参阅“[关于服务容器](/actions/automating-your-workflow-with-github-actions/about-service-containers)”。 +For more information about the differences between networking service containers, see "[About service containers](/actions/automating-your-workflow-with-github-actions/about-service-containers)." ### 示例:使用 localhost -此示例创建分别用于 nginx 和 redis 的两项服务。 指定 Docker 主机端口但不指定容器端口时,容器端口将随机分配给空闲端口。 {% data variables.product.prodname_dotcom %} 在 {% raw %}`${{job.services..ports}}`{% endraw %} 上下文中设置分配的容器端口。 在此示例中,可以使用 {% raw %}`${{ job.services.nginx.ports['8080'] }}`{% endraw %} 和 {% raw %}`${{ job.services.redis.ports['6379'] }}`{% endraw %} 上下文访问服务容器端口。 +This example creates two services: nginx and redis. 指定 Docker 主机端口但不指定容器端口时,容器端口将随机分配给空闲端口。 {% data variables.product.prodname_dotcom %} sets the assigned container port in the {% raw %}`${{job.services..ports}}`{% endraw %} context. In this example, you can access the service container ports using the {% raw %}`${{ job.services.nginx.ports['8080'] }}`{% endraw %} and {% raw %}`${{ job.services.redis.ports['6379'] }}`{% endraw %} contexts. ```yaml services: @@ -817,7 +819,7 @@ services: ### `jobs..services..image` -要用作运行操作的服务容器的 Docker 图像。 The value can be the Docker Hub image name or a registry name. +The Docker image to use as the service container to run the action. The value can be the Docker Hub image name or a registry name. ### `jobs..services..credentials` @@ -843,15 +845,15 @@ services: ### `jobs..services..env` -在服务容器中设置环境变量的 `map`。 +Sets a `map` of environment variables in the service container. ### `jobs..services..ports` -设置要在服务容器上显示的端口 `array`。 +Sets an `array` of ports to expose on the service container. ### `jobs..services..volumes` -设置要使用的服务容器卷的 `array`。 您可以使用卷分享作业中服务或其他步骤之间的数据。 可以指定命名的 Docker 卷、匿名的 Docker 卷或主机上的绑定挂载。 +Sets an `array` of volumes for the service container to use. 您可以使用卷分享作业中服务或其他步骤之间的数据。 可以指定命名的 Docker 卷、匿名的 Docker 卷或主机上的绑定挂载。 要指定卷,需指定来源和目标路径: @@ -870,7 +872,7 @@ volumes: ### `jobs..services..options` -附加 Docker 容器资源选项。 有关选项列表,请参阅“[`docker create` options](https://docs.docker.com/engine/reference/commandline/create/#options)”。 +Additional Docker container resource options. 有关选项列表,请参阅“[`docker create` options](https://docs.docker.com/engine/reference/commandline/create/#options)”。 {% warning %} @@ -881,6 +883,8 @@ volumes: {% ifversion fpt or ghes > 3.3 or ghae-issue-4757 or ghec %} ## `jobs..uses` +{% data reusables.actions.reusable-workflows-ghes-beta %} + The location and version of a reusable workflow file to run as a job. {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6000 %}Use one of the following syntaxes:{% endif %} {% data reusables.actions.reusable-workflow-calling-syntax %} @@ -942,7 +946,7 @@ Allowed expression contexts: `github`, `needs`, and `secrets`. ## 过滤器模式备忘清单 -您可以在路径、分支和标记过滤器中使用特殊字符。 +You can use special characters in path, branch, and tag filters. - `*`: 匹配零个或多个字符,但不匹配 `/` 字符。 例如,`Octo*` 匹配 `Octocat`。 - `**`: 匹配零个或多个任何字符。 @@ -951,7 +955,7 @@ Allowed expression contexts: `github`, `needs`, and `secrets`. - `[]` 匹配列在括号中或包含在范围内的一个字符。 范围只能包含 `a-z`、`A-Z` 和 `0-9`。 例如,范围 `[0-9a-z]` 匹配任何数字或小写字母。 例如,`[CB]at` 匹配 `Cat` 或 `Bat`,`[1-2]00` 匹配 `100` 和 `200`。 - `!`:在模式开始时,它将否定以前的正模式。 如果不是第一个字符,它就没有特殊的意义。 -字符 `*`、`[` 和 `!` 是 YAML 中的特殊字符。 如果模式以 `*`、`[` 或 `!` 开头,必须用引号括住模式。 +The characters `*`, `[`, and `!` are special characters in YAML. If you start a pattern with `*`, `[`, or `!`, you must enclose the pattern in quotes. ```yaml # Valid @@ -979,7 +983,7 @@ For more information about branch, tag, and path filter syntax, see "[`on. ### 匹配文件路径的模式 -路径模式必须匹配整个路径,并从仓库根开始。 +Path patterns must match the whole path, and start from the repository's root. | 模式 | 匹配描述 | 示例匹配 | | ----------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | diff --git a/translations/zh-CN/content/admin/code-security/index.md b/translations/zh-CN/content/admin/code-security/index.md new file mode 100644 index 000000000000..d1fdeb0bf520 --- /dev/null +++ b/translations/zh-CN/content/admin/code-security/index.md @@ -0,0 +1,14 @@ +--- +title: Managing code security for your enterprise +shortTitle: Manage code security +intro: 'You can build security into your developers'' workflow with features that keep secrets and vulnerabilities out of your codebase, and that maintain your software supply chain.' +versions: + ghes: '*' + ghec: '*' +topics: + - Enterprise +children: + - /managing-github-advanced-security-for-your-enterprise + - /managing-supply-chain-security-for-your-enterprise +--- + diff --git a/translations/zh-CN/content/admin/advanced-security/configuring-code-scanning-for-your-appliance.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md similarity index 99% rename from translations/zh-CN/content/admin/advanced-security/configuring-code-scanning-for-your-appliance.md rename to translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md index 21a26ccc9ca2..59b991117170 100644 --- a/translations/zh-CN/content/admin/advanced-security/configuring-code-scanning-for-your-appliance.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md @@ -7,6 +7,7 @@ miniTocMaxHeadingLevel: 3 redirect_from: - /enterprise/admin/configuration/configuring-code-scanning-for-your-appliance - /admin/configuration/configuring-code-scanning-for-your-appliance + - /admin/advanced-security/configuring-code-scanning-for-your-appliance versions: ghes: '*' type: how_to diff --git a/translations/zh-CN/content/admin/advanced-security/configuring-secret-scanning-for-your-appliance.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md similarity index 98% rename from translations/zh-CN/content/admin/advanced-security/configuring-secret-scanning-for-your-appliance.md rename to translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md index b9f563ef85bb..7aaf539c3cd2 100644 --- a/translations/zh-CN/content/admin/advanced-security/configuring-secret-scanning-for-your-appliance.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md @@ -6,6 +6,7 @@ product: '{% data reusables.gated-features.secret-scanning %}' miniTocMaxHeadingLevel: 3 redirect_from: - /admin/configuration/configuring-secret-scanning-for-your-appliance + - /admin/advanced-security/configuring-secret-scanning-for-your-appliance versions: ghes: '*' type: how_to diff --git a/translations/zh-CN/content/admin/advanced-security/deploying-github-advanced-security-in-your-enterprise.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/deploying-github-advanced-security-in-your-enterprise.md similarity index 99% rename from translations/zh-CN/content/admin/advanced-security/deploying-github-advanced-security-in-your-enterprise.md rename to translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/deploying-github-advanced-security-in-your-enterprise.md index 2781a65aa613..107b9086cff4 100644 --- a/translations/zh-CN/content/admin/advanced-security/deploying-github-advanced-security-in-your-enterprise.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/deploying-github-advanced-security-in-your-enterprise.md @@ -1,7 +1,9 @@ --- -title: Deploying GitHub Advanced Security in your enterprise +title: 在企业中部署 GitHub Advanced Security intro: 'Learn how to plan, prepare, and implement a phased approach for rolling out {% data variables.product.prodname_GH_advanced_security %} (GHAS) in your enterprise.' product: '{% data reusables.gated-features.advanced-security %}' +redirect_from: + - /admin/advanced-security/deploying-github-advanced-security-in-your-enterprise miniTocMaxHeadingLevel: 3 versions: ghes: '*' diff --git a/translations/zh-CN/content/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise.md similarity index 94% rename from translations/zh-CN/content/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise.md rename to translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise.md index ecd31d31c610..9e8dea2efa9d 100644 --- a/translations/zh-CN/content/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise.md @@ -3,6 +3,8 @@ title: 为企业启用 GitHub Advanced Security shortTitle: 启用 GitHub Advanced Security intro: '您可以配置 {% data variables.product.product_name %} 以包括 {% data variables.product.prodname_GH_advanced_security %}。 这将提供额外的功能,帮助用户发现和修复其代码中的安全问题。' product: '{% data reusables.gated-features.ghas %}' +redirect_from: + - /admin/advanced-security/enabling-github-advanced-security-for-your-enterprise versions: ghes: '*' type: how_to @@ -54,7 +56,7 @@ topics: - {% data variables.product.prodname_code_scanning_capc %},请参阅“[为设备配置 {% data variables.product.prodname_code_scanning %}](/admin/advanced-security/configuring-code-scanning-for-your-appliance#prerequisites-for-code-scanning)”。 - {% data variables.product.prodname_secret_scanning_caps %},请参阅“[为设备配置 {% data variables.product.prodname_secret_scanning %}](/admin/advanced-security/configuring-secret-scanning-for-your-appliance#prerequisites-for-secret-scanning)”。{% endif %} - - {% data variables.product.prodname_dependabot %}, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)." + - {% data variables.product.prodname_dependabot %}, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." ## 启用和禁用 {% data variables.product.prodname_GH_advanced_security %} 功能 @@ -88,7 +90,7 @@ topics: ```shell ghe-config app.secret-scanning.enabled true ``` - - 要启用 {% data variables.product.prodname_dependabot %},请输入以下 {% ifversion ghes > 3.1 %}命令{% else %}命令{% endif %}。 + - To enable the dependency graph, enter the following {% ifversion ghes > 3.1 %}command{% else %}commands{% endif %}. {% ifversion ghes > 3.1 %}```shell ghe-config app.dependency-graph.enabled true ``` @@ -107,7 +109,7 @@ topics: ```shell ghe-config app.secret-scanning.enabled false ``` - - 要禁用 {% data variables.product.prodname_dependabot_alerts %},请输入以下 {% ifversion ghes > 3.1 %}命令{% else %}命令{% endif %}。 + - To disable the dependency graph, enter the following {% ifversion ghes > 3.1 %}command{% else %}commands{% endif %}. {% ifversion ghes > 3.1 %}```shell ghe-config app.dependency-graph.enabled false ``` diff --git a/translations/zh-CN/content/admin/advanced-security/index.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/index.md similarity index 91% rename from translations/zh-CN/content/admin/advanced-security/index.md rename to translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/index.md index aafdf7bafcee..06bed2cdc946 100644 --- a/translations/zh-CN/content/admin/advanced-security/index.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/index.md @@ -1,11 +1,12 @@ --- title: 管理企业的 GitHub Advanced Security -shortTitle: 管理 GitHub Advanced Security +shortTitle: GitHub Advanced Security intro: '您可以配置 {% data variables.product.prodname_advanced_security %} 并管理企业的使用,以满足组织的需求。' product: '{% data reusables.gated-features.ghas %}' redirect_from: - /enterprise/admin/configuration/configuring-advanced-security-features - /admin/configuration/configuring-advanced-security-features + - /admin/advanced-security versions: ghes: '*' ghec: '*' diff --git a/translations/zh-CN/content/admin/advanced-security/overview-of-github-advanced-security-deployment.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/overview-of-github-advanced-security-deployment.md similarity index 99% rename from translations/zh-CN/content/admin/advanced-security/overview-of-github-advanced-security-deployment.md rename to translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/overview-of-github-advanced-security-deployment.md index 85c4bac68087..c310d0101e8a 100644 --- a/translations/zh-CN/content/admin/advanced-security/overview-of-github-advanced-security-deployment.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/overview-of-github-advanced-security-deployment.md @@ -2,6 +2,8 @@ title: Overview of GitHub Advanced Security deployment intro: 'Help your company successfully prepare to adopt {% data variables.product.prodname_GH_advanced_security %} (GHAS) by reviewing and understanding these best practices, rollout examples, and our enterprise-tested phased approach.' product: '{% data variables.product.prodname_GH_advanced_security %} is a set of security features designed to make enterprise code more secure. It is available for {% data variables.product.prodname_ghe_server %} 3.0 or higher, {% data variables.product.prodname_ghe_cloud %}, and open source repositories. To learn more about the features, included in {% data variables.product.prodname_GH_advanced_security %}, see "[About GitHub Advanced Security](/get-started/learning-about-github/about-github-advanced-security)."' +redirect_from: + - /admin/advanced-security/overview-of-github-advanced-security-deployment miniTocMaxHeadingLevel: 3 versions: ghes: '*' diff --git a/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/about-supply-chain-security-for-your-enterprise.md b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/about-supply-chain-security-for-your-enterprise.md new file mode 100644 index 000000000000..208cb1e8443c --- /dev/null +++ b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/about-supply-chain-security-for-your-enterprise.md @@ -0,0 +1,20 @@ +--- +title: About supply chain security for your enterprise +intro: You can enable features that help your developers understand and update the dependencies their code relies on. +shortTitle: About supply chain security +permissions: '' +versions: + ghes: '*' + ghae: issue-4864 +type: how_to +topics: + - Enterprise + - Security + - Dependency graph +--- + +You can allow users to identify their projects' dependencies by enabling the dependency graph for {% data variables.product.product_location %}. For more information, see "[Enabling the dependency graph for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise)." + +You can also allow users on {% data variables.product.product_location %} to find and fix vulnerabilities in their code dependencies by enabling {% data variables.product.prodname_dependabot_alerts %}{% ifversion ghes > 3.2 %} and {% data variables.product.prodname_dependabot_updates %}{% endif %}. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." + +After you enable {% data variables.product.prodname_dependabot_alerts %}, you can view vulnerability data from the {% data variables.product.prodname_advisory_database %} on {% data variables.product.product_location %} and manually sync the data. For more information, see "[Viewing the vulnerability data for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise)." diff --git a/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise.md b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise.md new file mode 100644 index 000000000000..57103a1f8ca9 --- /dev/null +++ b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise.md @@ -0,0 +1,59 @@ +--- +title: Enabling the dependency graph for your enterprise +intro: You can allow users to identify their projects' dependencies by enabling the dependency graph. +shortTitle: Enable dependency graph +permissions: Site administrators can enable the dependency graph. +versions: + ghes: '*' +type: how_to +topics: + - Enterprise + - Security + - Dependency graph +--- + +## 关于依赖项图 + +{% data reusables.dependabot.about-the-dependency-graph %} For more information, see "[About the dependency graph](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph)" + +After you enable the dependency graph for your enterprise, you can enable {% data variables.product.prodname_dependabot %} to detect vulnerable dependencies in your repository{% ifversion ghes > 3.2 %} and automatically fix the vulnerabilities{% endif %}. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." + +{% ifversion ghes > 3.1 %} +您可以通过 {% data variables.enterprise.management_console %} 或管理 shell 启用依赖关系图。 We recommend using the {% data variables.enterprise.management_console %} unless {% data variables.product.product_location %} uses clustering. + +## 通过 {% data variables.enterprise.management_console %} 启用依赖关系图 + +If your {% data variables.product.product_location %} uses clustering, you cannot enable the dependency graph with the {% data variables.enterprise.management_console %} and must use the administrative shell instead. For more information, see "[Enabling the dependency graph via the administrative shell](#enabling-the-dependency-graph-via-the-administrative-shell)." + +{% data reusables.enterprise_site_admin_settings.sign-in %} +{% data reusables.enterprise_site_admin_settings.access-settings %} +{% data reusables.enterprise_site_admin_settings.management-console %} +{% data reusables.enterprise_management_console.advanced-security-tab %} +1. 在“Security(安全)”下,单击 **Dependency graph(依赖关系图)**。 ![启用或禁用依赖关系图的复选框](/assets/images/enterprise/3.2/management-console/enable-dependency-graph-checkbox.png) +{% data reusables.enterprise_management_console.save-settings %} +1. 单击 **Visit your instance(访问您的实例)**。 + +## 通过管理 shell 启用依赖关系图 + +{% endif %}{% ifversion ghes < 3.2 %} +## 启用依赖关系图 +{% endif %} +{% data reusables.enterprise_site_admin_settings.sign-in %} +1. 在管理 shell 中,启用 {% data variables.product.product_location %} 上的依赖关系图: + {% ifversion ghes > 3.1 %}```shell + ghe-config app.dependency-graph.enabled true + ``` + {% else %}```shell + ghe-config app.github.dependency-graph-enabled true + ghe-config app.github.vulnerability-alerting-and-settings-enabled true + ```{% endif %} + {% note %} + + **Note**: For more information about enabling access to the administrative shell via SSH, see "[Accessing the administrative shell (SSH)](/enterprise/{{ currentVersion }}/admin/configuration/accessing-the-administrative-shell-ssh)." + + {% endnote %} +2. 应用配置。 + ```shell + $ ghe-config-apply + ``` +3. 返回到 {% data variables.product.prodname_ghe_server %}。 diff --git a/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/index.md b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/index.md new file mode 100644 index 000000000000..4695b6a54e55 --- /dev/null +++ b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/index.md @@ -0,0 +1,15 @@ +--- +title: Managing supply chain security for your enterprise +shortTitle: 供应链安全 +intro: 'You can visualize, maintain, and secure the dependencies in your developers'' software supply chain.' +versions: + ghes: '*' + ghae: issue-4864 +topics: + - Enterprise +children: + - /about-supply-chain-security-for-your-enterprise + - /enabling-the-dependency-graph-for-your-enterprise + - /viewing-the-vulnerability-data-for-your-enterprise +--- + diff --git a/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise.md b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise.md new file mode 100644 index 000000000000..467911c06657 --- /dev/null +++ b/translations/zh-CN/content/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise.md @@ -0,0 +1,25 @@ +--- +title: Viewing the vulnerability data for your enterprise +intro: 'You can view vulnerability data from the {% data variables.product.prodname_advisory_database %} on {% data variables.product.product_location %}.' +shortTitle: View vulnerability data +permissions: 'Site administrators can view vulnerability data on {% data variables.product.product_location %}.' +versions: + ghes: '*' + ghae: issue-4864 +type: how_to +topics: + - Enterprise + - Security + - Dependency graph +--- + +If {% data variables.product.prodname_dependabot_alerts %} are enabled for your enterprise, you can view all vulnerabilities that were downloaded to {% data variables.product.product_location %} from the {% data variables.product.prodname_advisory_database %}. + +You can manually sync vulnerability data from {% data variables.product.prodname_dotcom_the_website %} to update the list. + +Before you can view vulnerability data, you must enable {% data variables.product.prodname_dependabot_alerts %}. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." + +{% data reusables.enterprise_site_admin_settings.access-settings %} +2. 在左侧边栏中,单击 **Vulnerabilities**。 ![站点管理员边栏中的 Vulnerabilities 选项卡](/assets/images/enterprise/business-accounts/vulnerabilities-tab.png) +3. 要同步漏洞数据,请单击 **Sync Vulnerabilities now**。 ![Sync vulnerabilities now 按钮](/assets/images/enterprise/site-admin-settings/sync-vulnerabilities-button.png) + diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/about-github-connect.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/about-github-connect.md index 749635c7d622..abdf2e2c32b8 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/about-github-connect.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/about-github-connect.md @@ -29,7 +29,7 @@ After you configure the connection between {% data variables.product.product_loc | 功能 | 描述 | 更多信息 | | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion ghes %} | Automatic user license sync | Manage license usage across your {% data variables.product.prodname_enterprise %} deployments by automatically syncing user licenses from {% data variables.product.product_location %} to {% data variables.product.prodname_ghe_cloud %}. | "[Enabling automatic user license sync for your enterprise](/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise)"{% endif %}{% ifversion ghes or ghae-issue-4864 %} -| {% data variables.product.prodname_dependabot_alerts %} | Allow users to find and fix vulnerabilities in code dependencies. | "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)"{% endif %} +| {% data variables.product.prodname_dependabot %} | Allow users to find and fix vulnerabilities in code dependencies. | "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)"{% endif %} | {% data variables.product.prodname_dotcom_the_website %} actions | Allow users to use actions from {% data variables.product.prodname_dotcom_the_website %} in workflow files. | "[Enabling automatic access to {% data variables.product.prodname_dotcom_the_website %} actions using {% data variables.product.prodname_github_connect %}](/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect)" | | Unified search | Allow users to include repositories on {% data variables.product.prodname_dotcom_the_website %} in their search results when searching from {% data variables.product.product_location %}. | "[Enabling {% data variables.product.prodname_unified_search %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise)" | | Unified contributions | Allow users to include anonymized contribution counts for their work on {% data variables.product.product_location %} in their contribution graphs on {% data variables.product.prodname_dotcom_the_website %}. | "[Enabling {% data variables.product.prodname_unified_contributions %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise)" | @@ -47,25 +47,28 @@ When you enable {% data variables.product.prodname_github_connect %} or specific - The authentication token that's used by {% data variables.product.product_location %} to make requests to {% data variables.product.prodname_ghe_cloud %} - If Transport Layer Security (TLS) is enabled and configured on {% data variables.product.product_location %}{% ifversion ghes %} - The {% data variables.product.prodname_github_connect %} features that are enabled on {% data variables.product.product_location %}, and the date and time of enablement{% endif %} +- The dormancy threshold for your enterprise +- The number of dormant users for your enterprise +- A count of license-consuming seats, which does not include suspended users {% data variables.product.prodname_github_connect %} syncs the above connection data between {% data variables.product.product_location %} and {% data variables.product.prodname_ghe_cloud %} weekly, from the day and approximate time that {% data variables.product.prodname_github_connect %} was enabled. {% note %} -**Note:** No repositories, issues, or pull requests are ever transmitted by {% data variables.product.prodname_github_connect %}. +**Note:** No repositories, issues, or pull requests are ever transmitted from {% data variables.product.product_name %} to {% data variables.product.prodname_dotcom_the_website %} by {% data variables.product.prodname_github_connect %}. {% endnote %} Additional data is transmitted if you enable individual features of {% data variables.product.prodname_github_connect %}. -| 功能 | Data | Which way does the data flow? | Where is the data used? | -| ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- |{% ifversion ghes %} -| Automatic user license sync | Each {% data variables.product.product_name %} user's user ID and email addresses | From {% data variables.product.product_name %} to {% data variables.product.prodname_ghe_cloud %} | {% data variables.product.prodname_ghe_cloud %} |{% endif %}{% ifversion ghes or ghae-issue-4864 %} -| {% data variables.product.prodname_dependabot_alerts %} | Vulnerability alerts | From {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.product_name %} | {% data variables.product.product_name%} -{% endif %} -| {% data variables.product.prodname_dotcom_the_website %} actions | Name of action, action (YAML file from {% data variables.product.prodname_marketplace %}) | From {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.product_name %}

From {% data variables.product.product_name %} to {% data variables.product.prodname_dotcom_the_website %} | {% data variables.product.product_name %} -| Unified search | Search terms, search results | From {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.product_name %}

From {% data variables.product.product_name %} to {% data variables.product.prodname_dotcom_the_website %} | {% data variables.product.product_name %} -| Unified contributions | Contribution counts | From {% data variables.product.product_name %} to {% data variables.product.prodname_dotcom_the_website %} | {% data variables.product.prodname_dotcom_the_website %} +| 功能 | Data | Which way does the data flow? | Where is the data used? | +| ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- |{% ifversion ghes %} +| Automatic user license sync | Each {% data variables.product.product_name %} user's user ID and email addresses | From {% data variables.product.product_name %} to {% data variables.product.prodname_ghe_cloud %} | {% data variables.product.prodname_ghe_cloud %} |{% endif %}{% ifversion ghes or ghae-issue-4864 %} +| {% data variables.product.prodname_dependabot_alerts %} | Vulnerability alerts | From {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.product_name %} | {% data variables.product.product_name %} |{% endif %}{% if dependabot-updates-github-connect %} +| {% data variables.product.prodname_dependabot_updates %} | Dependencies and the metadata for each dependency's repository

If a dependency is stored in a private repository on {% data variables.product.prodname_dotcom_the_website %}, data will only be transmitted if {% data variables.product.prodname_dependabot %} is configured and authorized to access that repository. | From {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.product_name %} | {% data variables.product.product_name %} {% endif %} +| {% data variables.product.prodname_dotcom_the_website %} actions | Name of action, action (YAML file from {% data variables.product.prodname_marketplace %}) | From {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.product_name %}

From {% data variables.product.product_name %} to {% data variables.product.prodname_dotcom_the_website %} | {% data variables.product.product_name %} +| Unified search | Search terms, search results | From {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.product_name %}

From {% data variables.product.product_name %} to {% data variables.product.prodname_dotcom_the_website %} | {% data variables.product.product_name %} +| Unified contributions | Contribution counts | From {% data variables.product.product_name %} to {% data variables.product.prodname_dotcom_the_website %} | {% data variables.product.prodname_dotcom_the_website %} ## 延伸阅读 diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md index 73665631cc32..718b426ffc75 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md @@ -7,7 +7,7 @@ redirect_from: - /admin/configuration/enabling-automatic-user-license-sync-between-github-enterprise-server-and-github-enterprise-cloud - /admin/configuration/managing-connections-between-github-enterprise-server-and-github-enterprise-cloud/enabling-automatic-user-license-sync-between-github-enterprise-server-and-github-enterprise-cloud - /admin/configuration/managing-connections-between-your-enterprise-accounts/enabling-automatic-user-license-sync-between-github-enterprise-server-and-github-enterprise-cloud -permissions: 'Site administrators for {% data variables.product.prodname_ghe_server %} who are also owners of the connected {% data variables.product.prodname_ghe_cloud %} organization or enterprise account can enable automatic user license synchronization.' +permissions: Enterprise owners can enable automatic user license synchronization. versions: ghes: '*' type: how_to diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md new file mode 100644 index 000000000000..3429b7873461 --- /dev/null +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md @@ -0,0 +1,126 @@ +--- +title: Enabling Dependabot for your enterprise +intro: 'You can allow users of {% data variables.product.product_location %} to find and fix vulnerabilities in code dependencies by enabling {% data variables.product.prodname_dependabot_alerts %}{% ifversion ghes > 3.2 %} and {% data variables.product.prodname_dependabot_updates %}{% endif %}.' +miniTocMaxHeadingLevel: 3 +shortTitle: Dependabot +redirect_from: + - /enterprise/admin/installation/enabling-security-alerts-for-vulnerable-dependencies-on-github-enterprise-server + - /enterprise/admin/configuration/enabling-security-alerts-for-vulnerable-dependencies-on-github-enterprise-server + - /enterprise/admin/configuration/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server + - /admin/configuration/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server + - /admin/configuration/managing-connections-between-github-enterprise-server-and-github-enterprise-cloud/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server + - /admin/configuration/managing-connections-between-your-enterprise-accounts/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server + - /admin/configuration/managing-connections-between-your-enterprise-accounts/enabling-the-dependency-graph-and-dependabot-alerts-on-your-enterprise-account + - /admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise +permissions: 'Enterprise owners can enable {% data variables.product.prodname_dependabot %}.' +versions: + ghes: '*' + ghae: issue-4864 +type: how_to +topics: + - Enterprise + - Security + - Dependency graph + - Dependabot +--- + +## About {% data variables.product.prodname_dependabot %} for {% data variables.product.product_name %} + +{% data variables.product.prodname_dependabot %} helps users of {% data variables.product.product_location %} find and fix vulnerabilities in their dependencies.{% ifversion ghes > 3.2 %} You can enable {% data variables.product.prodname_dependabot_alerts %} to notify users about vulnerable dependencies and {% data variables.product.prodname_dependabot_updates %} to fix the vulnerabilities and keep dependencies updated to the latest version. + +### About {% data variables.product.prodname_dependabot_alerts %} +{% endif %} + +{% data reusables.dependabot.dependabot-alerts-beta %} + +With {% data variables.product.prodname_dependabot_alerts %}, {% data variables.product.prodname_dotcom %} identifies vulnerable dependencies in repositories and creates alerts on {% data variables.product.product_location %}, using data from the {% data variables.product.prodname_advisory_database %} and the dependency graph service. + +{% data reusables.repositories.tracks-vulnerabilities %} + +After you enable {% data variables.product.prodname_dependabot_alerts %} for your enterprise, vulnerability data is synced from the {% data variables.product.prodname_advisory_database %} to your instance once every hour. Only {% data variables.product.company_short %}-reviewed advisories are synchronized. {% data reusables.security-advisory.link-browsing-advisory-db %} + +You can also choose to manually sync vulnerability data at any time. For more information, see "[Viewing the vulnerability data for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise)." + +{% note %} + +**Note:** When you enable enable {% data variables.product.prodname_dependabot_alerts %}, no code or information about code from {% data variables.product.product_location %} is uploaded to {% data variables.product.prodname_dotcom_the_website %}. + +{% endnote %} + +When {% data variables.product.product_location %} receives information about a vulnerability, it identifies repositories in {% data variables.product.product_location %} that use the affected version of the dependency and generates {% data variables.product.prodname_dependabot_alerts %}. You can choose whether or not to notify users automatically about new {% data variables.product.prodname_dependabot_alerts %}. + +For repositories with {% data variables.product.prodname_dependabot_alerts %} enabled, scanning is triggered on any push to the default branch that contains a manifest file or lock file. Additionally, when a new vulnerability record is added to {% data variables.product.product_location %}, {% data variables.product.product_name %} scans all existing repositories on {% data variables.product.product_location %} and generates alerts for any repository that is vulnerable. 更多信息请参阅“[关于易受攻击的依赖项的警报](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies)”。 + +{% ifversion ghes > 3.2 %} +### About {% data variables.product.prodname_dependabot_updates %} + +{% data reusables.dependabot.beta-security-and-version-updates %} + +After you enable {% data variables.product.prodname_dependabot_alerts %}, you can choose to enable {% data variables.product.prodname_dependabot_updates %}. When {% data variables.product.prodname_dependabot_updates %} are enabled for {% data variables.product.product_location %}, users can configure repositories so that their dependencies are updated and kept secure automatically. + +{% note %} + +**Note:** {% data variables.product.prodname_dependabot_updates %} on {% data variables.product.product_name %} requires {% data variables.product.prodname_actions %} with self-hosted runners. + +{% endnote %} + +With {% data variables.product.prodname_dependabot_updates %}, {% data variables.product.company_short %} automatically creates pull requests to update dependencies in two ways. + +- **{% data variables.product.prodname_dependabot_version_updates %}**: Users add a {% data variables.product.prodname_dependabot %} configuration file to the repository to enable {% data variables.product.prodname_dependabot %} to create pull requests when a new version of a tracked dependency is released. For more information, see "[About {% data variables.product.prodname_dependabot_version_updates %}](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates)." +- **{% data variables.product.prodname_dependabot_security_updates %}**: Users toggle a repository setting to enable {% data variables.product.prodname_dependabot %} to create pull requests when {% data variables.product.prodname_dotcom %} detects a vulnerability in one of the dependencies of the dependency graph for the repository. For more information, see "[About alerts for vulnerable dependencies](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies)" and "[About {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates)." +{% endif %} + +## Enabling {% data variables.product.prodname_dependabot_alerts %} + +Before you can enable {% data variables.product.prodname_dependabot_alerts %}: +- You must enable {% data variables.product.prodname_github_connect %}. For more information, see "[Managing {% data variables.product.prodname_github_connect %}](/admin/configuration/configuring-github-connect/managing-github-connect)."{% ifversion ghes %} +- You must enable the dependency graph. For more information, see "[Enabling the dependency graph for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise)."{% endif %} + +{% data reusables.enterprise-accounts.access-enterprise %} +{%- ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %} +{% data reusables.enterprise-accounts.github-connect-tab %} +{%- if dependabot-updates-github-connect %} +1. Under "{% data variables.product.prodname_dependabot %}", to the right of "Users can receive vulnerability alerts for open source code dependencies", select the dropdown menu and click **Enabled without notifications**. Optionally, to enable alerts with notifications, click **Enabled with notifications**. + + ![Screenshot of the dropdown menu to enable scanning repositories for vulnerabilities](/assets/images/enterprise/site-admin-settings/dependabot-alerts-dropdown.png) + +{%- else %} +1. Under "Repositories can be scanned for vulnerabilities", select the drop-down menu and click **Enabled without notifications**. Optionally, to enable alerts with notifications, click **Enabled with notifications**. ![Drop-down menu to enable scanning repositories for vulnerabilities](/assets/images/enterprise/site-admin-settings/enable-vulnerability-scanning-in-repositories.png) +{%- endif %} + {% tip %} + + **Tip**: We recommend configuring {% data variables.product.prodname_dependabot_alerts %} without notifications for the first few days to avoid an overload of emails. After a few days, you can enable notifications to receive {% data variables.product.prodname_dependabot_alerts %} as usual. + + {% endtip %} + +{% if dependabot-updates-github-connect %} +## Enabling {% data variables.product.prodname_dependabot_updates %} + +After you enable {% data variables.product.prodname_dependabot_alerts %} for your enterprise, you can enable {% data variables.product.prodname_dependabot_updates %}. + +{% ifversion ghes %} +Before you enable {% data variables.product.prodname_dependabot_updates %}, you must configure {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %} with self-hosted runners. 更多信息请参阅“[开始使用 GitHub Enterprise Server 的 {% data variables.product.prodname_actions %}](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/getting-started-with-github-actions-for-github-enterprise-server)”。 + +{% data variables.product.prodname_dependabot_updates %} are not supported on {% data variables.product.product_name %} if your enterprise uses clustering or a high-availability configuration. +{% endif %} + +{% data reusables.enterprise_site_admin_settings.sign-in %} +{% data reusables.enterprise_site_admin_settings.access-settings %} +{% data reusables.enterprise_site_admin_settings.management-console %} +{% data reusables.enterprise_management_console.advanced-security-tab %} +1. Under "Security", select **{% data variables.product.prodname_dependabot_security_updates %}**. + + ![Screenshot of the checkbox to enable or disable {% data variables.product.prodname_dependabot_security_updates %}](/assets/images/enterprise/management-console/enable-dependabot-updates.png) + +{% data reusables.enterprise_management_console.save-settings %} +1. 单击 **Visit your instance(访问您的实例)**。 +1. Configure self-hosted runners to create the pull requests that will update dependencies. For more information, see "[Managing self-hosted runners for {% data variables.product.prodname_dependabot_updates %} on your enterprise](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates)." +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.github-connect-tab %} +1. Under "{% data variables.product.prodname_dependabot %}", to the right of "Users can easily upgrade to non-vulnerable open source code dependencies", click **Enable**. + + ![Screenshot of the dropdown menu to enable updating vulnerable dependencies](/assets/images/enterprise/site-admin-settings/dependabot-updates-button.png) + +{% elsif ghes > 3.2 %} +When you enable {% data variables.product.prodname_dependabot_alerts %}, you should consider also setting up {% data variables.product.prodname_actions %} for {% data variables.product.prodname_dependabot_security_updates %}. This feature allows developers to fix vulnerabilities in their dependencies. For more information, see "[Managing self-hosted runners for {% data variables.product.prodname_dependabot_updates %} on your enterprise](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates)." +{% endif %} diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise.md deleted file mode 100644 index 749abaa8dc42..000000000000 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise.md +++ /dev/null @@ -1,127 +0,0 @@ ---- -title: Enabling the dependency graph and Dependabot alerts for your enterprise -intro: 'You can allow users on {% data variables.product.product_location %} to find and fix vulnerabilities in code dependencies by enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %}.' -miniTocMaxHeadingLevel: 3 -shortTitle: Dependabot -redirect_from: - - /enterprise/admin/installation/enabling-security-alerts-for-vulnerable-dependencies-on-github-enterprise-server - - /enterprise/admin/configuration/enabling-security-alerts-for-vulnerable-dependencies-on-github-enterprise-server - - /enterprise/admin/configuration/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server - - /admin/configuration/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server - - /admin/configuration/managing-connections-between-github-enterprise-server-and-github-enterprise-cloud/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server - - /admin/configuration/managing-connections-between-your-enterprise-accounts/enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server - - /admin/configuration/managing-connections-between-your-enterprise-accounts/enabling-the-dependency-graph-and-dependabot-alerts-on-your-enterprise-account -permissions: 'Enterprise owners who are also owners of the connected {% data variables.product.prodname_ghe_cloud %} organization or enterprise account can enable the dependency graph and {% data variables.product.prodname_dependabot_alerts %} on {% data variables.product.product_location %}.' -versions: - ghes: '*' - ghae: issue-4864 -type: how_to -topics: - - Enterprise - - Security - - Dependency graph - - Dependabot ---- - -## 关于 {% data variables.product.product_location %} 上易受攻击的依赖项的警报 - -{% data reusables.dependabot.dependabot-alerts-beta %} - -{% data variables.product.prodname_dotcom %} identifies vulnerable dependencies in repositories and creates {% data variables.product.prodname_dependabot_alerts %} on {% data variables.product.product_location %}, using: - -- Data from the {% data variables.product.prodname_advisory_database %} -- The dependency graph service - -For more information about these features, see "[About the dependency graph](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph)" and "[About alerts for vulnerable dependencies](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies)." - -### About synchronization of data from the {% data variables.product.prodname_advisory_database %} - -{% data reusables.repositories.tracks-vulnerabilities %} - -You can connect {% data variables.product.product_location %} to {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_github_connect %}. Once connected, vulnerability data is synced from the {% data variables.product.prodname_advisory_database %} to your instance once every hour. 您还可以随时选择手动同步漏洞数据。 代码和关于代码的信息不会从 {% data variables.product.product_location %} 上传到 {% data variables.product.prodname_dotcom_the_website %}。 - -Only {% data variables.product.company_short %}-reviewed advisories are synchronized. {% data reusables.security-advisory.link-browsing-advisory-db %} - -### About scanning of repositories with synchronized data from the {% data variables.product.prodname_advisory_database %} - -For repositories with {% data variables.product.prodname_dependabot_alerts %} enabled, scanning is triggered on any push to the default branch that contains a manifest file or lock file. Additionally, when a new vulnerability record is added to the instance, {% data variables.product.prodname_ghe_server %} scans all existing repositories in that instance and generates alerts for any repository that is vulnerable. For more information, see "[Detection of vulnerable dependencies](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies#detection-of-vulnerable-dependencies)." - -### About generation of {% data variables.product.prodname_dependabot_alerts %} - -If you enable vulnerability detection, when {% data variables.product.product_location %} receives information about a vulnerability, it identifies repositories in your instance that use the affected version of the dependency and generates {% data variables.product.prodname_dependabot_alerts %}. You can choose whether or not to notify users automatically about new {% data variables.product.prodname_dependabot_alerts %}. - -## Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for vulnerable dependencies on {% data variables.product.product_location %} - -### 基本要求 - -For {% data variables.product.product_location %} to detect vulnerable dependencies and generate {% data variables.product.prodname_dependabot_alerts %}: -- You must enable {% data variables.product.prodname_github_connect %}. {% ifversion ghae %}This also enables the dependency graph service.{% endif %}{% ifversion ghes or ghae %}For more information, see "[Managing {% data variables.product.prodname_github_connect %}](/admin/configuration/configuring-github-connect/managing-github-connect)."{% endif %} -{% ifversion ghes %}- You must enable the dependency graph service.{% endif %} -- You must enable vulnerability scanning. - -{% ifversion ghes %} -{% ifversion ghes > 3.1 %} -您可以通过 {% data variables.enterprise.management_console %} 或管理 shell 启用依赖关系图。 我们建议您遵循 {% data variables.enterprise.management_console %} 路线,除非 {% data variables.product.product_location %} 使用集群。 - -### 通过 {% data variables.enterprise.management_console %} 启用依赖关系图 -{% data reusables.enterprise_site_admin_settings.sign-in %} -{% data reusables.enterprise_site_admin_settings.access-settings %} -{% data reusables.enterprise_site_admin_settings.management-console %} -{% data reusables.enterprise_management_console.advanced-security-tab %} -1. 在“Security(安全)”下,单击 **Dependency graph(依赖关系图)**。 ![启用或禁用依赖关系图的复选框](/assets/images/enterprise/3.2/management-console/enable-dependency-graph-checkbox.png) -{% data reusables.enterprise_management_console.save-settings %} -1. 单击 **Visit your instance(访问您的实例)**。 - -### 通过管理 shell 启用依赖关系图 -{% endif %}{% ifversion ghes < 3.2 %} -### 启用依赖关系图 -{% endif %} -{% data reusables.enterprise_site_admin_settings.sign-in %} -1. 在管理 shell 中,启用 {% data variables.product.product_location %} 上的依赖关系图: - {% ifversion ghes > 3.1 %}```shell - ghe-config app.dependency-graph.enabled true - ``` - {% else %}```shell - ghe-config app.github.dependency-graph-enabled true - ghe-config app.github.vulnerability-alerting-and-settings-enabled true - ```{% endif %} - {% note %} - - **Note**: For more information about enabling access to the administrative shell via SSH, see "[Accessing the administrative shell (SSH)](/enterprise/{{ currentVersion }}/admin/configuration/accessing-the-administrative-shell-ssh)." - - {% endnote %} -2. 应用配置。 - ```shell - $ ghe-config-apply - ``` -3. 返回到 {% data variables.product.prodname_ghe_server %}。 -{% endif %} - -### 启用 {% data variables.product.prodname_dependabot_alerts %} - -{% ifversion ghes %} -在为您的实例启用 {% data variables.product.prodname_dependabot_alerts %} 之前,您需要启用依赖关系图。 更多信息请参阅上文。 -{% endif %} - -{% data reusables.enterprise-accounts.access-enterprise %} -{%- ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %} -{% data reusables.enterprise-accounts.github-connect-tab %} -1. Under "Repositories can be scanned for vulnerabilities", select the drop-down menu and click **Enabled without notifications**. Optionally, to enable alerts with notifications, click **Enabled with notifications**. ![用于启用扫描仓库有无漏洞的下拉菜单](/assets/images/enterprise/site-admin-settings/enable-vulnerability-scanning-in-repositories.png) - - {% tip %} - - **Tip**: We recommend configuring {% data variables.product.prodname_dependabot_alerts %} without notifications for the first few days to avoid an overload of emails. 几天后,您可以开启通知,像往常一样接收 {% data variables.product.prodname_dependabot_alerts %}。 - - {% endtip %} - -{% ifversion fpt or ghec or ghes > 3.2 %} -When you enable {% data variables.product.prodname_dependabot_alerts %}, you should consider also setting up {% data variables.product.prodname_actions %} for {% data variables.product.prodname_dependabot_security_updates %}. This feature allows developers to fix vulnerabilities in their dependencies. For more information, see "[Setting up {% data variables.product.prodname_dependabot %} security and version updates on your enterprise](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates)." -{% endif %} - -## 查看 {% data variables.product.product_location %} 上易受攻击的依赖项 - -您可以查看 {% data variables.product.product_location %} 中的所有漏洞,然后手动同步 {% data variables.product.prodname_dotcom_the_website %} 中的漏洞数据,以更新列表。 - -{% data reusables.enterprise_site_admin_settings.access-settings %} -2. 在左侧边栏中,单击 **Vulnerabilities**。 ![站点管理员边栏中的 Vulnerabilities 选项卡](/assets/images/enterprise/business-accounts/vulnerabilities-tab.png) -3. 要同步漏洞数据,请单击 **Sync Vulnerabilities now**。 ![Sync vulnerabilities now 按钮](/assets/images/enterprise/site-admin-settings/sync-vulnerabilities-button.png) diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md index 347265eaad71..3432a0110ece 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md @@ -11,7 +11,7 @@ redirect_from: - /admin/configuration/enabling-unified-contributions-between-github-enterprise-server-and-githubcom - /admin/configuration/managing-connections-between-github-enterprise-server-and-github-enterprise-cloud/enabling-unified-contributions-between-github-enterprise-server-and-githubcom - /admin/configuration/managing-connections-between-your-enterprise-accounts/enabling-unified-contributions-between-your-enterprise-account-and-githubcom -permissions: 'Enterprise owners who are also owners of the connected {% data variables.product.prodname_ghe_cloud %} organization or enterprise account can enable unified contributions between {% data variables.product.product_location %} and {% data variables.product.prodname_dotcom_the_website %}.' +permissions: 'Enterprise owners can enable unified contributions between {% data variables.product.product_location %} and {% data variables.product.prodname_dotcom_the_website %}.' versions: ghes: '*' ghae: '*' diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md index 6740bf22f8a3..6c2bcc83223f 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md @@ -11,7 +11,7 @@ redirect_from: - /admin/configuration/enabling-unified-search-between-github-enterprise-server-and-githubcom - /admin/configuration/managing-connections-between-github-enterprise-server-and-github-enterprise-cloud/enabling-unified-search-between-github-enterprise-server-and-githubcom - /admin/configuration/managing-connections-between-your-enterprise-accounts/enabling-unified-search-between-your-enterprise-account-and-githubcom -permissions: 'Enterprise owners who are also owners of the connected {% data variables.product.prodname_ghe_cloud %} organization or enterprise account can enable unified search between {% data variables.product.product_name %} and {% data variables.product.prodname_dotcom_the_website %}.' +permissions: 'Enterprise owners can enable unified search between {% data variables.product.product_name %} and {% data variables.product.prodname_dotcom_the_website %}.' versions: ghes: '*' ghae: '*' diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/index.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/index.md index 8d195df5ff78..baf1fbba8db2 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/index.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/index.md @@ -20,7 +20,7 @@ children: - /about-github-connect - /managing-github-connect - /enabling-automatic-user-license-sync-for-your-enterprise - - /enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise + - /enabling-dependabot-for-your-enterprise - /enabling-unified-search-for-your-enterprise - /enabling-unified-contributions-for-your-enterprise shortTitle: GitHub Connect diff --git a/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-dns-nameservers.md b/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-dns-nameservers.md index ff3c34fe96e3..79443ea858df 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-dns-nameservers.md +++ b/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-dns-nameservers.md @@ -30,14 +30,20 @@ shortTitle: 配置 DNS 服务器 ## 使用管理 shell 配置域名服务器 {% data reusables.enterprise_installation.ssh-into-instance %} + 2. 要编辑域名服务器,请输入: + ```shell - $ sudo vim /etc/resolvconf/resolv.conf.d/head + sudo vim /etc/resolvconf/resolv.conf.d/head ``` + +{% data reusables.enterprise_installation.preventing-nameservers-change %} + 3. 附加任何 `nameserver` 条目,然后保存文件。 4. 验证变更后,请保存文件。 5. 要向 {% data variables.product.product_location %} 添加新的域名服务器条目,请运行以下命令: + ```shell - $ sudo service resolvconf restart - $ sudo service dnsmasq restart + sudo service resolvconf restart + sudo service dnsmasq restart ``` diff --git a/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-tls.md b/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-tls.md index 7a492905cbbc..b0fd50df26ca 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-tls.md +++ b/translations/zh-CN/content/admin/configuration/configuring-network-settings/configuring-tls.md @@ -50,7 +50,7 @@ topics: {% warning %} - **Warning**: Your key must be an RSA key and must not have a passphrase. 更多信息请参阅“[将密码从密钥文件中移除](/admin/guides/installation/troubleshooting-ssl-errors#removing-the-passphrase-from-your-key-file)”。 + **警告**:您的密钥必须是 RSA 密钥,并且不能有密码。 更多信息请参阅“[将密码从密钥文件中移除](/admin/guides/installation/troubleshooting-ssl-errors#removing-the-passphrase-from-your-key-file)”。 {% endwarning %} {% data reusables.enterprise_management_console.save-settings %} diff --git a/translations/zh-CN/content/admin/configuration/configuring-network-settings/network-ports.md b/translations/zh-CN/content/admin/configuration/configuring-network-settings/network-ports.md index 367390021dda..bad6b8e5a969 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-network-settings/network-ports.md +++ b/translations/zh-CN/content/admin/configuration/configuring-network-settings/network-ports.md @@ -23,14 +23,14 @@ topics: 需要使用一些管理端口来配置 {% data variables.product.product_location %} 和运行某些功能。 最终用户在使用基本应用程序时不需要管理端口。 -| 端口 | 服务 | 描述 | -| -------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| 8443 | HTTPS | 基于安全 Web 的 {% data variables.enterprise.management_console %}。 进行基本安装和配置时需要。 | -| 8080 | HTTP | 基于纯文本 Web 的 {% data variables.enterprise.management_console %}。 除非手动禁用 SSL,否则不需要。 | -| 122 | SSH | 对 {% data variables.product.product_location %} 进行 Shell 访问。 Required to be open to incoming connections between all nodes in a high availability configuration. 默认 SSH 端口 (22) 专用于 Git 和 SSH 应用程序网络流量。 | -| 1194/UDP | VPN | 采用高可用性配置的安全复制网络隧道。 Required to be open for communication between all nodes in the configuration. | -| 123/UDP | NTP | 为时间协议操作所需。 | -| 161/UDP | SNMP | 为网络监视协议操作所需。 | +| 端口 | 服务 | 描述 | +| -------- | ----- | ---------------------------------------------------------------------------------------------------------------------------- | +| 8443 | HTTPS | 基于安全 Web 的 {% data variables.enterprise.management_console %}。 进行基本安装和配置时需要。 | +| 8080 | HTTP | 基于纯文本 Web 的 {% data variables.enterprise.management_console %}。 除非手动禁用 SSL,否则不需要。 | +| 122 | SSH | 对 {% data variables.product.product_location %} 进行 Shell 访问。 需要对高可用性配置中所有节点之间的传入连接开放。 默认 SSH 端口 (22) 专用于 Git 和 SSH 应用程序网络流量。 | +| 1194/UDP | VPN | 采用高可用性配置的安全复制网络隧道。 需要对配置中所有节点之间的通信开放。 | +| 123/UDP | NTP | 为时间协议操作所需。 | +| 161/UDP | SNMP | 为网络监视协议操作所需。 | ## 最终用户的应用程序端口 diff --git a/translations/zh-CN/content/admin/configuration/configuring-network-settings/using-github-enterprise-server-with-a-load-balancer.md b/translations/zh-CN/content/admin/configuration/configuring-network-settings/using-github-enterprise-server-with-a-load-balancer.md index 48bdd0324eb0..37f828aad7c6 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-network-settings/using-github-enterprise-server-with-a-load-balancer.md +++ b/translations/zh-CN/content/admin/configuration/configuring-network-settings/using-github-enterprise-server-with-a-load-balancer.md @@ -17,7 +17,7 @@ topics: shortTitle: 使用负载平衡器 --- -## About load balancers +## 关于负载均衡器 {% data reusables.enterprise_clustering.load_balancer_intro %} diff --git a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-github-pages-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-github-pages-for-your-enterprise.md index 976bd594c4a3..d341653ffe6e 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-github-pages-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-github-pages-for-your-enterprise.md @@ -1,5 +1,5 @@ --- -title: 为企业配置 GitHub Pages +title: Configuring GitHub Pages for your enterprise intro: 'You can enable or disable {% data variables.product.prodname_pages %} for your enterprise{% ifversion ghes %} and choose whether to make sites publicly accessible{% endif %}.' redirect_from: - /enterprise/admin/guides/installation/disabling-github-enterprise-pages @@ -16,35 +16,37 @@ type: how_to topics: - Enterprise - Pages -shortTitle: 配置 GitHub Pages +shortTitle: Configure GitHub Pages --- {% ifversion ghes %} -## 为 {% data variables.product.prodname_pages %} 启用公共站点 +## Enabling public sites for {% data variables.product.prodname_pages %} If private mode is enabled on your enterprise, the public cannot access {% data variables.product.prodname_pages %} sites hosted by your enterprise unless you enable public sites. {% warning %} -**警告**:如果为 {% data variables.product.prodname_pages %} 启用公共站点,则企业上每个仓库中的每个站点均可由公众访问。 +**Warning:** If you enable public sites for {% data variables.product.prodname_pages %}, every site in every repository on your enterprise will be accessible to the public. {% endwarning %} {% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %} {% data reusables.enterprise_management_console.pages-tab %} -4. 选择 **Public Pages**。 ![启用公共页面复选框](/assets/images/enterprise/management-console/public-pages-checkbox.png) +4. Select **Public Pages**. + ![Checkbox to enable Public Pages](/assets/images/enterprise/management-console/public-pages-checkbox.png) {% data reusables.enterprise_management_console.save-settings %} -## 为企业禁用 {% data variables.product.prodname_pages %} +## Disabling {% data variables.product.prodname_pages %} for your enterprise -如果为企业禁用了子域隔离,则还应禁用 {% data variables.product.prodname_pages %},以免遭受潜在安全漏洞的攻击。 更多信息请参阅“[启用子域隔离](/admin/configuration/enabling-subdomain-isolation)”。 +If subdomain isolation is disabled for your enterprise, you should also disable {% data variables.product.prodname_pages %} to protect yourself from potential security vulnerabilities. For more information, see "[Enabling subdomain isolation](/admin/configuration/enabling-subdomain-isolation)." {% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %} {% data reusables.enterprise_management_console.pages-tab %} -4. 取消选择 **Enable Pages**。 ![禁用 {% data variables.product.prodname_pages %} 复选框](/assets/images/enterprise/management-console/pages-select-button.png) +4. Unselect **Enable Pages**. + ![Checkbox to disable {% data variables.product.prodname_pages %}](/assets/images/enterprise/management-console/pages-select-button.png) {% data reusables.enterprise_management_console.save-settings %} {% endif %} @@ -54,13 +56,14 @@ If private mode is enabled on your enterprise, the public cannot access {% data {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.policies-tab %} {% data reusables.enterprise-accounts.pages-tab %} -5. 在“Pages policies(页面策略)”下,取消选择 **Enable {% data variables.product.prodname_pages %}(启用 Github)**。 ![禁用 {% data variables.product.prodname_pages %} 复选框](/assets/images/enterprise/business-accounts/enable-github-pages-checkbox.png) +5. Under "Pages policies", deselect **Enable {% data variables.product.prodname_pages %}**. + ![Checkbox to disable {% data variables.product.prodname_pages %}](/assets/images/enterprise/business-accounts/enable-github-pages-checkbox.png) {% data reusables.enterprise-accounts.pages-policies-save %} {% endif %} {% ifversion ghes %} -## 延伸阅读 +## Further reading -- "[启用私人模式](/admin/configuration/enabling-private-mode)" +- "[Enabling private mode](/admin/configuration/enabling-private-mode)" {% endif %} diff --git a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-the-referrer-policy-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-the-referrer-policy-for-your-enterprise.md index 44c98b1b3aea..ebca4a967cf1 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-the-referrer-policy-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/configuring-the-referrer-policy-for-your-enterprise.md @@ -32,5 +32,7 @@ You can enable the `same-origin` referrer policy to instruct modern browsers to {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} -1. Under "User Agent Referrer Policy", select **Enable same origin referrer policy for all organizations**. ![Checkbox for enabling same origin referrer policy](/assets/images/enterprise/settings/referrer-policy-checkbox.png) -1. 单击 **Save(保存)**。 ![Save button for enabling same origin referrer policy](/assets/images/enterprise/settings/referrer-policy-save-button.png) +1. Under "User Agent Referrer Policy", select **Enable same origin referrer policy for all organizations**. + ![Checkbox for enabling same origin referrer policy](/assets/images/enterprise/settings/referrer-policy-checkbox.png) +1. Click **Save**. + ![Save button for enabling same origin referrer policy](/assets/images/enterprise/settings/referrer-policy-save-button.png) diff --git a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/troubleshooting-ssl-errors.md b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/troubleshooting-ssl-errors.md index 3a5dd85f32d9..38f9a46c2e76 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/troubleshooting-ssl-errors.md +++ b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/troubleshooting-ssl-errors.md @@ -81,6 +81,6 @@ $ cat yourdomain.com.crt bundle-certificates.crt > yourdomain.combined.crt $ ghe-ssl-ca-certificate-install -c rootCA.crt ``` -## Updating an SSL certificate +## 更新 SSL 证书 -You can generate a new self-signed certificate or update an existing SSL certificate for {% data variables.product.product_location %} with the `ghe-ssl-certificate-setup` command line utility. 更多信息请参阅“[命令行实用程序](/admin/configuration/configuring-your-enterprise/command-line-utilities#ghe-ssl-ca-certificate-setup)”。 +您可以使用 `ghe-ssl-certificate-setup` 命令行实用工具生成新的自签名证书或更新 {% data variables.product.product_location %} 的现有 SSL 证书。 更多信息请参阅“[命令行实用程序](/admin/configuration/configuring-your-enterprise/command-line-utilities#ghe-ssl-ca-certificate-setup)”。 diff --git a/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/differences-between-clustering-and-high-availability-ha.md b/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/differences-between-clustering-and-high-availability-ha.md index 46445e5ec1ae..f3f5dfa2f768 100644 --- a/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/differences-between-clustering-and-high-availability-ha.md +++ b/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/differences-between-clustering-and-high-availability-ha.md @@ -35,7 +35,7 @@ shortTitle: 选择集群或 HA ## 备份和灾难恢复 -Neither HA nor Clustering should be considered a replacement for regular backups. 更多信息请参阅“[在设备上配置备份](/enterprise/admin/guides/installation/configuring-backups-on-your-appliance)”。 +HA 或集群都不应被视为常规备份的替代品。 更多信息请参阅“[在设备上配置备份](/enterprise/admin/guides/installation/configuring-backups-on-your-appliance)”。 ## 监视 diff --git a/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/evacuating-a-cluster-node.md b/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/evacuating-a-cluster-node.md index 6afc1546f43e..2d207e894adc 100644 --- a/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/evacuating-a-cluster-node.md +++ b/translations/zh-CN/content/admin/enterprise-management/configuring-clustering/evacuating-a-cluster-node.md @@ -13,55 +13,73 @@ topics: - Enterprise --- -如果数据服务集群中只有三个节点,则无法撤出节点,因为 `ghe-spoke` 没有其他位置可以进行复制。 如果您有四个或更多节点,则 `ghe-spoke ` 会将所有仓库移出已撤出的节点。 +## 关于撤出群集节点 -如果您正在使具有任何数据服务(如 git、页面或存储)的某个节点离线,请在使节点离线之前撤出每个节点。 +在 {% data variables.product.product_name %}的群集配置中,您可以在使节点脱机之前撤出该节点。 撤出可确保服务层中的其余节点包含服务的所有数据。 例如,替换群集中节点的虚拟机时,应先撤出该节点。 -1. 用 `ghe-config` 命令查找节点的 `uuid`。 +有关 {% data variables.product.prodname_ghe_server %} 的节点和服务层的详细信息,请参阅“[关于群集节点](/admin/enterprise-management/configuring-clustering/about-cluster-nodes)”。 - ```shell - $ ghe-config cluster.HOSTNAME.uuid - ``` +{% warning %} -2. 在复制数据时,您需要监视节点的状态。 理想情况下,在复制完成之前,不应使该节点离线。 要监视节点的状态,请运行以下任意命令: +**警告**: - 对于 Git - ``` - ghe-spokes evac-status - ``` - 对于 {% data variables.product.prodname_pages %} +- 为避免数据丢失,{% data variables.product.company_short %} 强烈建议您在使节点脱机之前撤出该节点。 - ```shell - echo "select count(*) from pages_replicas where host = 'pages-server-UUID'" | ghe-dbconsole -y - ``` +- 如果数据服务集群中只有三个节点,则无法撤出节点,因为 `ghe-spoke` 没有其他位置可以进行复制。 如果您有四个或更多节点,则 `ghe-spoke ` 会将所有仓库移出已撤出的节点。 - 对于存储 - ``` - ghe-storage evacuation-status - ``` +{% endwarning %} -3. 复制完成后,您可以撤出存储服务。 运行以下任意命令: +## 撤出集群节点 - 对于 Git +如果计划使某个节点脱机,并且该节点运行数据服务角色(如 `git-server`、`pages-server` 或 `storage-server`),请在使节点脱机之前撤出每个节点。 - ```shell - ghe-spokes server evacuate git-server-UUID \'REASON FOR EVACUATION\' - ``` +{% data reusables.enterprise_clustering.ssh-to-a-node %} +1. 若要查找要撤出的节点的 UUID,请运行以下命令。 将 `HOSTNAME` 替换为节点的主机名。 - 对于 {% data variables.product.prodname_pages %} + ```shell + $ ghe-config cluster.HOSTNAME.uuid + ``` +1. 在 {% data variables.product.product_name %} 复制数据时监控节点的状态。 在复制完成之前,不要使节点脱机。 要监控节点的状态,请运行以下任一命令,将 `UUID` 替换为步骤 2 中的 UUID。 - ```shell - ghe-dpages evacuate pages-server-UUID - ``` + - **Git**: - 对于存储,请使节点离线 + ```shell + $ ghe-spokes evac-status git-server-UUID + ``` - ```shell - ghe-storage offline storage-server-UUID - ``` + - **{% data variables.product.prodname_pages %}**: - 然后撤出 + ```shell + $ echo "select count(*) from pages_replicas where host = 'pages-server-UUID'" | ghe-dbconsole -y + ``` - ```shell - ghe-storage evacuate storage-server-UUID - ``` + - **存储**: + + ```shell + $ ghe-storage evacuation-status storage-server-UUID + ``` +1. 复制完成后,可以通过运行以下任一命令来撤出节点,将 `UUID` 替换为步骤 2 中的 UUID。 + + - **Git**: + + ```shell + $ ghe-spokes server evacuate git-server-UUID \'REASON FOR EVACUATION\' + ``` + + - **{% data variables.product.prodname_pages %}**: + + ```shell + $ ghe-dpages evacuate pages-server-UUID + ``` + + - 对于**存储**,先通过运行以下命令使节点脱机。 + + ```shell + $ ghe-storage offline storage-server-UUID + ``` + + 存储节点脱机后,可以通过运行以下命令撤出该节点。 + + ```shell + $ ghe-storage evacuate storage-server-UUID + ``` diff --git a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-geo-replication.md b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-geo-replication.md index ab10b07669e7..3223a9397880 100644 --- a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-geo-replication.md +++ b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-geo-replication.md @@ -23,7 +23,7 @@ Git 请求和特定的文件服务器请求(例如 LFS 和文件上传)可 ## 限制 -将请求写入副本需要将数据发送到主设备和所有副本。 This means that the performance of all writes is limited by the slowest replica, although new geo-replicas can seed the majority of their data from existing co-located geo-replicas, rather than from the primary. {% ifversion ghes > 3.2 %}To reduce the latency and bandwidth caused by distributed teams and large CI farms without impacting write throughput, you can configure repository caching instead. For more information, see "[About repository caching](/admin/enterprise-management/caching-repositories/about-repository-caching)."{% endif %} +将请求写入副本需要将数据发送到主设备和所有副本。 这意味着所有写入操作的性能都受限于最慢的副本,虽然新的地理副本可以从现有共同位置地理副本(而不是从主设备)播种大部分数据。 {% ifversion ghes > 3.2 %}若要在不影响写入吞吐量的情况下减少分布式团队和大型 CI 服务器场导致的延迟和带宽,可以改为配置仓库缓存。 更多信息请参阅“[关于仓库缓存](/admin/enterprise-management/caching-repositories/about-repository-caching)”。{% endif %} Geo-replication 不会增大 {% data variables.product.prodname_ghe_server %} 实例的容量,也不会解决与 CPU 或内存资源不足相关的性能问题。 如果主设备处于脱机状态,则活动副本将无法满足任何读取或写入请求。 diff --git a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-high-availability-configuration.md b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-high-availability-configuration.md index 6ec77e8fa774..dda78cca5952 100644 --- a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-high-availability-configuration.md +++ b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/about-high-availability-configuration.md @@ -15,11 +15,11 @@ topics: shortTitle: 关于 HA 配置 --- -配置高可用性时,会自动设置将所有数据存储(Git 仓库、MySQL、Redis 和 Elasticsearch)单向、异步地从主设备复制到副本。 Most {% data variables.product.prodname_ghe_server %} configuration settings are also replicated, including the {% data variables.enterprise.management_console %} password. For more information, see "[Accessing the management console](/admin/configuration/configuring-your-enterprise/accessing-the-management-console)." +配置高可用性时,会自动设置将所有数据存储(Git 仓库、MySQL、Redis 和 Elasticsearch)单向、异步地从主设备复制到副本。 还会复制大多数 {% data variables.product.prodname_ghe_server %} 配置设置,包括 {% data variables.enterprise.management_console %} 密码。 For more information, see "[Accessing the management console](/admin/configuration/configuring-your-enterprise/accessing-the-management-console)." {% data variables.product.prodname_ghe_server %} 支持主动/被动配置,在这些配置下,副本作为备用设备运行,并且数据库服务在复制模式下运行,但应用程序服务将停止。 -After replication has been established, the {% data variables.enterprise.management_console %} is no longer accessible on replica appliances. If you navigate to the replica's IP address or hostname on port 8443, you'll see a "Server in replication mode" message, which indicates that the appliance is currently configured as a replica. +建立复制后,副本设备上将不再可访问 {% data variables.enterprise.management_console %} 。 如果在端口 8443 上导航到副本的 IP 地址或主机名,您将看到“Server in replication mode(服务器处于复制模式)”消息,表示设备当前已配置为副本。 {% data reusables.enterprise_installation.replica-limit %} ## 有针对性的故障场景 @@ -30,8 +30,8 @@ After replication has been established, the {% data variables.enterprise.managem 高可用性配置不适用于: - - **扩展**。 虽然可以使用 Geo-replication 将流量分布在不同地理位置,但写入性能受限于主设备的速度和可用性。 For more information, see "[About geo-replication](/enterprise/{{ currentVersion }}/admin/guides/installation/about-geo-replication/)."{% ifversion ghes > 3.2 %} - - **CI/CD load**. If you have a large number of CI clients that are geographically distant from your primary instance, you may benefit from configuring a repository cache. For more information, see "[About repository caching](/admin/enterprise-management/caching-repositories/about-repository-caching)."{% endif %} + - **扩展**。 虽然可以使用 Geo-replication 将流量分布在不同地理位置,但写入性能受限于主设备的速度和可用性。 更多信息请参阅“[关于 Geo-replication](/enterprise/{{ currentVersion }}/admin/guides/installation/about-geo-replication/)”。{% ifversion ghes > 3.2 %} + - **CI/CD 负载**。 如果您有大量在地理位置上远离主实例的 CI 客户端,则配置仓库缓存可能会使您受益匪浅。 更多信息请参阅“[关于仓库缓存](/admin/enterprise-management/caching-repositories/about-repository-caching)”。{% endif %} - **备份主设备**。 高可用性副本不会替代灾难恢复计划中的非现场备份。 某些形式的数据损坏或数据丢失可能会立即从主设备复制到副本。 为确保安全回滚到稳定的过去状态,必须通过历史快照执行定期备份。 - **零停机时间升级**。 为避免受控升级场景下出现数据丢失和裂脑的状况,请先将主设备置于维护模式并等待所有写入操作完成,然后再对副本进行升级。 @@ -45,13 +45,13 @@ After replication has been established, the {% data variables.enterprise.managem 在故障转移期间,必须将主设备置于维护模式,并将其 DNS 记录重定向到副本的 IP 地址。 将流量从主设备重新定向到副本所需的时间将取决于 TTL 配置以及更新 DNS 记录所需的时间。 -如果您要使用 Geo-replication,则必须配置 Geo DNS,将流量定向到距离最近的副本。 For more information, see "[About geo-replication](/enterprise/{{ currentVersion }}/admin/guides/installation/about-geo-replication/)." +如果您要使用 Geo-replication,则必须配置 Geo DNS,将流量定向到距离最近的副本。 更多信息请参阅“[关于 Geo-replication](/enterprise/{{ currentVersion }}/admin/guides/installation/about-geo-replication/)”。 ### 负载均衡器 {% data reusables.enterprise_clustering.load_balancer_intro %} {% data reusables.enterprise_clustering.load_balancer_dns %} -在故障转移期间,您必须将主设备置于维护模式。 您可以将负载均衡器配置为自动检测副本何时已升级为主设备,或者可能需要手动更改配置。 您必须先将副本手动升级为主设备,随后副本才能对用户流量作出响应。 For more information, see "[Using {% data variables.product.prodname_ghe_server %} with a load balancer](/enterprise/{{ currentVersion }}/admin/guides/installation/using-github-enterprise-server-with-a-load-balancer/)." +在故障转移期间,您必须将主设备置于维护模式。 您可以将负载均衡器配置为自动检测副本何时已升级为主设备,或者可能需要手动更改配置。 您必须先将副本手动升级为主设备,随后副本才能对用户流量作出响应。 更多信息请参阅“[结合使用 {% data variables.product.prodname_ghe_server %} 和负载均衡器](/enterprise/{{ currentVersion }}/admin/guides/installation/using-github-enterprise-server-with-a-load-balancer/)”。 {% data reusables.enterprise_installation.monitoring-replicas %} @@ -188,4 +188,4 @@ Success: Replica has been promoted to primary and is now accepting requests. ## 延伸阅读 - “[创建高可用性副本](/enterprise/{{ currentVersion }}/admin/guides/installation/creating-a-high-availability-replica)” -- "[Network ports](/admin/configuration/configuring-network-settings/network-ports)" +- "[网络端口](/admin/configuration/configuring-network-settings/network-ports)" diff --git a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/creating-a-high-availability-replica.md b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/creating-a-high-availability-replica.md index d9288c2f26b7..712817f2f2b3 100644 --- a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/creating-a-high-availability-replica.md +++ b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/creating-a-high-availability-replica.md @@ -20,7 +20,7 @@ shortTitle: 创建 HA 副本 ## 创建高可用性副本 1. 在所需平台上设置新的 {% data variables.product.prodname_ghe_server %} 设备。 副本设备应镜像主设备的 CPU、RAM 和存储设置。 建议您在独立环境中安装副本设备。 底层硬件、软件和网络组件应与主设备的相应部分隔离。 如果要使用云提供商,请使用单独的区域或分区。 更多信息请参阅“[设置 {% data variables.product.prodname_ghe_server %} 实例](/enterprise/{{ currentVersion }}/admin/guides/installation/setting-up-a-github-enterprise-server-instance)”。 -1. Ensure that both the primary appliance and the new replica appliance can communicate with each other over ports 122/TCP and 1194/UDP. 更多信息请参阅“[网络端口](/admin/configuration/configuring-network-settings/network-ports#administrative-ports)”。 +1. 确保主设备和新的副本设备可以通过端口 122/TCP 和 1194/UDP 相互通信。 更多信息请参阅“[网络端口](/admin/configuration/configuring-network-settings/network-ports#administrative-ports)”。 1. 在浏览器中,导航到新副本设备的 IP 地址并上传您的 {% data variables.product.prodname_enterprise %} 许可。 {% data reusables.enterprise_installation.replica-steps %} 1. 使用 SSH 连接到副本设备的 IP 地址。 diff --git a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/recovering-a-high-availability-configuration.md b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/recovering-a-high-availability-configuration.md index d958f181d4a0..be5fc0a2e8fe 100644 --- a/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/recovering-a-high-availability-configuration.md +++ b/translations/zh-CN/content/admin/enterprise-management/configuring-high-availability/recovering-a-high-availability-configuration.md @@ -15,20 +15,29 @@ topics: shortTitle: 恢复 HA 配置 --- +## 关于高可用性配置的恢复 + 如果故障转移是在计划内进行的,或者与设备的健康状态无关,则可以将之前的主设备用作新的副本设备。 如果故障转移与主设备的问题相关,则最好创建新的副本设备。 更多信息请参阅“[创建高可用性副本](/enterprise/{{ currentVersion }}/admin/guides/installation/creating-a-high-availability-replica/)”。 +{% warning %} + +**警告:** 在将以前的主设备配置为新副本之前,必须启用维护模式。 如果不启用维护模式,将导致生产中断。 + +{% endwarning %} + ## 将之前的主设备配置为新副本 1. 使用 SSH 连接到之前的主设备的 IP 地址。 ```shell $ ssh -p 122 admin@FORMER PRIMARY IP ``` -2. 在之前的主设备上,使用之前副本的 IP 地址运行 `ghe-repl-setup`。 +1. 在以前的主设备上启用维护模式。 更多信息请参阅“[启用和排定维护模式](/admin/configuration/configuring-your-enterprise/enabling-and-scheduling-maintenance-mode)”。 +1. 在之前的主设备上,使用之前副本的 IP 地址运行 `ghe-repl-setup`。 ```shell $ ghe-repl-setup FORMER REPLICA IP ``` {% data reusables.enterprise_installation.add-ssh-key-to-primary %} -4. 要验证与新的主设备的连接并为新副本启用副本模式,请再次运行 `ghe-repl-setup`。 +1. 要验证与新的主设备的连接并为新副本启用副本模式,请再次运行 `ghe-repl-setup`。 ```shell $ ghe-repl-setup FORMER REPLICA IP ``` diff --git a/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/configuring-collectd.md b/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/configuring-collectd.md index de18025f1ae7..54eba19595c1 100644 --- a/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/configuring-collectd.md +++ b/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/configuring-collectd.md @@ -47,7 +47,7 @@ topics: ## 使用 `ghe-export-graphs` 导出 collectd 数据 -命令行工具 `ghe-export-graphs` 将导出 `collectd` 存储在 RRD 数据库中的数据。 This command turns the data into XML and exports it into a single tarball (`.tgz`). +命令行工具 `ghe-export-graphs` 将导出 `collectd` 存储在 RRD 数据库中的数据。 此命令会将数据转换为 XML 格式并导出到一个 tarball (`.tgz`) 中。 此文件的主要用途是为 {% data variables.contact.contact_ent_support %} 团队提供关于 VM 性能的数据(无需下载整个支持包), 不应包含在常规备份导出范围中,也没有对应的导入文件。 如果您联系 {% data variables.contact.contact_ent_support %},我们可能会要求您提供此数据,以便协助故障排查。 diff --git a/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/generating-a-health-check-for-your-enterprise.md b/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/generating-a-health-check-for-your-enterprise.md new file mode 100644 index 000000000000..df21b5a2fefd --- /dev/null +++ b/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/generating-a-health-check-for-your-enterprise.md @@ -0,0 +1,56 @@ +--- +title: Generating a Health Check for your enterprise +intro: 'You can gain insight into the general health and Git and API requests of {% data variables.product.product_location %} by generating a Health Check.' +versions: + ghes: '*' +type: how_to +topics: + - Enterprise + - Fundamentals + - Infrastructure + - Monitoring + - Performance +product: '{% data reusables.gated-features.generated-health-checks %}' +--- + +{% note %} + +**Note:** Generating a Health Check is currently in beta for {% data variables.product.prodname_ghe_server %} and subject to change. + +{% endnote %} + +## About generated Health Checks + +You can create a support bundle for {% data variables.product.product_location %} that contains a lot of data, such as diagnostics and log files. To help analyze and interpret this data, you can generate a Health Check. For more information about support bundles, see "[Providing data to {% data variables.contact.github_support %}](/support/contacting-github-support/providing-data-to-github-support#creating-and-sharing-support-bundles)." + +A Health Check provides the following information about {% data variables.product.product_location %}. +- Insights into the general health of {% data variables.product.product_location %}, such as upgrade status, storage, and license seat consumption +- A security section, which focuses on subdomain isolation and user authentication +- Analysis of Git requests, with details about the busiest repositories and Git users +- Analysis of API requests, including the busiest times, most frequently requested endpoints, and most active callers + +## Generating a Health Check + +Before you can generate a Health Check, you must create a support bundle. 更多信息请参阅“[将数据提供给 {% data variables.contact.github_support %}](/support/contacting-github-support/providing-data-to-github-support#creating-and-sharing-support-bundles)”。 + +1. Navigate to the [{% data variables.contact.support_portal %}](https://support.github.com/). +2. In the upper-right corner of the page, click **Premium**. + + ![Screenshot of the "Premium" link in the GitHub Support Portal header.](/assets/images/enterprise/support/support-portal-header-premium.png) + +3. To the right of **Health Checks**, click **Request Health Check**. + + ![Screenshot of the "Request Health Check" button.](/assets/images/enterprise/support/support-portal-request-health-check.png) + +4. Under "Select an enterprise account", select the dropdown menu and click an enterprise account. + + ![Screenshot of the "enterprise account" dropdown menu.](/assets/images/enterprise/support/health-check-dialog-ea.png) + +5. Under "Upload a support bundle", click **Chose File** and choose a file to upload. Then, click **Request Health Check**. + + ![Screenshot of the "Choose file" and "Request Health Check" buttons.](/assets/images/enterprise/support/health-check-dialog-choose-file.png) + + +After you request a Health Check, a job is scheduled to generate the Health Check. After several hours to one day, the generated Health Check will appear in the "Health Checks" section of the {% data variables.contact.support_portal %}. + +![Screenshot of the Health Checks section of the {% data variables.contact.support_portal %}.](/assets/images/enterprise/support/support-portal-health-checks-section.png) diff --git a/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/index.md b/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/index.md index 589b99db6943..04656927f4dd 100644 --- a/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/index.md +++ b/translations/zh-CN/content/admin/enterprise-management/monitoring-your-appliance/index.md @@ -16,5 +16,6 @@ children: - /setting-up-external-monitoring - /configuring-collectd - /monitoring-using-snmp + - /generating-a-health-check-for-your-enterprise --- diff --git a/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/increasing-storage-capacity.md b/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/increasing-storage-capacity.md index f4a2d40b5cda..45ccd11f6aac 100644 --- a/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/increasing-storage-capacity.md +++ b/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/increasing-storage-capacity.md @@ -71,7 +71,7 @@ shortTitle: 增加存储容量 $ sudo parted /dev/xvdg mkpart primary ext4 0% 50% $ sudo parted /dev/xvdg mkpart primary ext4 50% 100% ``` -1. To stop replication, run the `ghe-repl-stop` command. +1. 若要停止复制,请运行 `ghe-repl-stop` 命令。 ```shell $ ghe-repl-stop @@ -90,4 +90,4 @@ shortTitle: 增加存储容量 1. 启动设备。 1. 确保系统服务正常运行,然后释放维护模式。 更多信息请参阅“[启用和排定维护模式](/admin/guides/installation/enabling-and-scheduling-maintenance-mode)”。 -If your appliance is configured for high-availability or geo-replication, remember to start replication on each replica node using `ghe-repl-start` after the storage on all nodes has been upgraded. +如果您的设备配置为高可用性或异地复制,请记住在所有节点上的存储升级后,使用 `ghe-repl-start` 在每个副本节点上开始复制。 diff --git a/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/upgrading-github-enterprise-server.md b/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/upgrading-github-enterprise-server.md index 8b9bea4d7531..70ad4d0b2cdc 100644 --- a/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/upgrading-github-enterprise-server.md +++ b/translations/zh-CN/content/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/upgrading-github-enterprise-server.md @@ -27,7 +27,7 @@ shortTitle: 升级 GHES ## 准备升级 -1. 确定升级策略并选择要升级到的版本。 For more information, see "[Upgrade requirements](/enterprise/{{ currentVersion }}/admin/guides/installation/upgrade-requirements/)" and refer to the [{% data variables.enterprise.upgrade_assistant %}](https://support.github.com/enterprise/server-upgrade) to find the upgrade path from your current release version. +1. 确定升级策略并选择要升级到的版本。 更多信息请参阅“[升级要求](/enterprise/{{ currentVersion }}/admin/guides/installation/upgrade-requirements/)”,并参考 [{% data variables.enterprise.upgrade_assistant %}](https://support.github.com/enterprise/server-upgrade) 以查找当前发行版的升级路径。 3. 使用 {% data variables.product.prodname_enterprise_backup_utilities %} 创建全新的主实例备份。 更多信息请参阅 [{% data variables.product.prodname_enterprise_backup_utilities %} README.md 文件](https://github.com/github/backup-utils#readme)。 4. 如果您要使用升级包进行升级,请为 {% data variables.product.prodname_ghe_server %} 最终用户排定维护窗口。 如果您要使用热补丁,则不需要使用维护模式。 @@ -41,7 +41,7 @@ shortTitle: 升级 GHES ## 生成快照 -快照是虚拟机 (VM) 在某一时间点的检查点。 强烈建议在升级虚拟机之前生成快照,这样一来,如果升级失败,您可以将 VM 还原到快照状态。 We only recommend taking a VM snapshot when the appliance is powered down or in maintenance mode and all background jobs have finished. +快照是虚拟机 (VM) 在某一时间点的检查点。 强烈建议在升级虚拟机之前生成快照,这样一来,如果升级失败,您可以将 VM 还原到快照状态。 我们仅建议在设备关闭电源或处于维护模式且所有后台作业都已完成时拍摄 VM 快照。 如果您要升级到新的功能版本,则必须生成 VM 快照。 如果您要升级到补丁版本,可以连接现有数据磁盘。 @@ -71,7 +71,7 @@ shortTitle: 升级 GHES {% data reusables.enterprise_installation.hotpatching-explanation %} -Using the {% data variables.enterprise.management_console %}, you can install a hotpatch immediately or schedule it for later installation. 您可以使用管理 shell 的 `ghe-upgrade` 实用程序安装热补丁。 更多信息请参阅“[升级要求](/enterprise/{{ currentVersion }}/admin/guides/installation/upgrade-requirements/)”。 +使用 {% data variables.enterprise.management_console %},您可以立即安装热补丁,也可以安排以后安装。 您可以使用管理 shell 的 `ghe-upgrade` 实用程序安装热补丁。 更多信息请参阅“[升级要求](/enterprise/{{ currentVersion }}/admin/guides/installation/upgrade-requirements/)”。 {% note %} @@ -88,9 +88,9 @@ Using the {% data variables.enterprise.management_console %}, you can install a #### 使用 {% data variables.enterprise.management_console %} 安装热补丁 -You can use the {% data variables.enterprise.management_console %} to upgrade with a hotpatch by enabling automatic updates. You will then be presented with the latest available version of {% data variables.product.prodname_ghe_server %} that you can upgrade to. +您可以通过启用自动更新来使用 {% data variables.enterprise.management_console %} 通过热补丁进行升级。 然后,您将看到可升级到的最新可用 {% data variables.product.prodname_ghe_server %} 版本。 -If the upgrade target you're presented with is a feature release instead of a patch release, you cannot use the {% data variables.enterprise.management_console %} to install a hotpatch. You must install the hotpatch using the administrative shell instead. For more information, see "[Installing a hotpatch using the administrative shell](#installing-a-hotpatch-using-the-administrative-shell)." +如果显示的升级目标是功能版本而不是修补程序版本,则无法使用 {% data variables.enterprise.management_console %} 来安装修补程序。 您必须改为使用管理 shell 安装热补丁。 更多信息请参阅“[使用管理 shell 安装热补丁](#installing-a-hotpatch-using-the-administrative-shell)”。 1. 启用自动更新。 更多信息请参阅“[启用自动更新](/enterprise/{{ currentVersion }}/admin/guides/installation/enabling-automatic-update-checks/)”。 {% data reusables.enterprise_site_admin_settings.access-settings %} @@ -221,7 +221,7 @@ If the upgrade target you're presented with is a feature release instead of a pa {% endnote %} - If `ghe-repl-status` did not return `OK`, contact {% data variables.contact.enterprise_support %}. 更多信息请参阅“[从 {% data variables.contact.github_support %} 获取帮助](/admin/enterprise-support/receiving-help-from-github-support)”。 + 如果 `ghe-repl-status` 未返回 `OK`,请联系 {% data variables.contact.enterprise_support %}。 更多信息请参阅“[从 {% data variables.contact.github_support %} 获取帮助](/admin/enterprise-support/receiving-help-from-github-support)”。 6. 最后一个副本升级完毕且重新同步完成后,请禁用维护模式,以便用户能够使用 {% data variables.product.product_location %}。 @@ -231,9 +231,9 @@ If the upgrade target you're presented with is a feature release instead of a pa ### 回滚补丁版本 -要回滚补丁版本,请使用带 `--allow-patch-rollback` 开关的 `ghe-upgrade` 命令。 Before rolling back, replication must be temporarily stopped by running `ghe-repl-stop` on all replica instances. {% data reusables.enterprise_installation.command-line-utilities-ghe-upgrade-rollback %} +要回滚补丁版本,请使用带 `--allow-patch-rollback` 开关的 `ghe-upgrade` 命令。 在回滚之前,必须通过在所有副本实例上运行 `ghe-repl-stop` 来暂时停止复制。 {% data reusables.enterprise_installation.command-line-utilities-ghe-upgrade-rollback %} -Once the rollback is complete, restart replication by running `ghe-repl-start` on all replicas. +回滚完成后,通过在所有副本上运行 `ghe-repl-start` 来重新启动复制。 更多信息请参阅“[命令行实用程序](/enterprise/{{ currentVersion }}/admin/guides/installation/command-line-utilities/#ghe-upgrade)”。 diff --git a/translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/troubleshooting-github-actions-for-your-enterprise.md b/translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/troubleshooting-github-actions-for-your-enterprise.md index be6dc809eb09..cd563300ed74 100644 --- a/translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/troubleshooting-github-actions-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/github-actions/advanced-configuration-and-troubleshooting/troubleshooting-github-actions-for-your-enterprise.md @@ -185,3 +185,43 @@ There are three ways to resolve this problem: 1. Return to {% data variables.product.prodname_ghe_server %}. {% endif %} + +{% ifversion ghes > 3.3 %} + + + +## Troubleshooting bundled actions in {% data variables.product.prodname_actions %} + +If you receive the following error when installing {% data variables.product.prodname_actions %} in {% data variables.product.prodname_ghe_server %}, you can resolve the problem by installing the official bundled actions and starter workflows. + +```shell +A part of the Actions setup had problems and needs an administrator to resolve. +``` + +To install the official bundled actions and starter workflows within a designated organization in {% data variables.product.prodname_ghe_server %}, follow this procedure. + +1. Identify an organization that will store the official bundled actions and starter worflows. You can create a new organization or reuse an existing one. + - To create a new organization, see "[Creating a new organization from scratch](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch)." + - For assistance with choosing a name for this organization, see "[Reserved Names](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server#reserved-names)." + +1. Log in to the administrative shell using SSH. For more information, see "[Accessing the administrative shell (SSH)](/admin/configuration/accessing-the-administrative-shell-ssh)." +1. To designate your organization as the location to store the bundled actions, use the `ghe-config` command, replacing `ORGANIZATION` with the name of your organization. + ```shell + $ ghe-config app.actions.actions-org ORGANIZATION + ``` + and: + ```shell + $ ghe-config app.actions.github-org ORGANIZATION + ``` +1. To add the bundled actions to your organization, unset the SHA. + ```shell + $ ghe-config --unset 'app.actions.actions-repos-sha1sum' + ``` +1. Apply the configuration. + ```shell + $ ghe-config-apply + ``` + +After you've completed these steps, you can resume configuring {% data variables.product.prodname_actions %} at "[Managing access permissions for GitHub Actions in your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server#managing-access-permissions-for-github-actions-in-your-enterprise)." + +{% endif %} diff --git a/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/index.md b/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/index.md index ee0f477635a1..b41450a5394f 100644 --- a/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/index.md +++ b/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/index.md @@ -9,7 +9,7 @@ children: - /enabling-github-actions-with-azure-blob-storage - /enabling-github-actions-with-amazon-s3-storage - /enabling-github-actions-with-minio-gateway-for-nas-storage - - /setting-up-dependabot-updates + - /managing-self-hosted-runners-for-dependabot-updates shortTitle: Enable GitHub Actions --- diff --git a/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates.md b/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates.md similarity index 51% rename from translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates.md rename to translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates.md index 4a97dde58398..ca70cb7b4af1 100644 --- a/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates.md +++ b/translations/zh-CN/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates.md @@ -1,6 +1,8 @@ --- -title: Setting up Dependabot security and version updates on your enterprise +title: Managing self-hosted runners for Dependabot updates on your enterprise intro: 'You can create dedicated runners for {% data variables.product.product_location %} that {% data variables.product.prodname_dependabot %} uses to create pull requests to help secure and maintain the dependencies used in repositories on your enterprise.' +redirect_from: + - /admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates allowTitleToDifferFromFilename: true miniTocMaxHeadingLevel: 3 versions: @@ -10,38 +12,31 @@ topics: - Security - Dependabot - Dependencies -shortTitle: Set up Dependabot updates +shortTitle: Dependabot updates --- {% data reusables.dependabot.beta-security-and-version-updates %} -{% tip %} +## About self-hosted runners for {% data variables.product.prodname_dependabot_updates %} -**Tip**: If {% data variables.product.product_location %} uses clustering, you cannot set up {% data variables.product.prodname_dependabot %} security and version updates as {% data variables.product.prodname_actions %} are not supported in cluster mode. +You can help users of {% data variables.product.product_location %} to create and maintain secure code by setting up {% data variables.product.prodname_dependabot %} security and version updates. With {% data variables.product.prodname_dependabot_updates %}, developers can configure repositories so that their dependencies are updated and kept secure automatically. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." -{% endtip %} +To use {% data variables.product.prodname_dependabot_updates %} on {% data variables.product.product_location %}, you must configure self-hosted runners to create the pull requests that will update dependencies. -## 关于 {% data variables.product.prodname_dependabot %} 更新 +## 基本要求 -When you set up {% data variables.product.prodname_dependabot %} security and version updates for {% data variables.product.product_location %}, users can configure repositories so that their dependencies are updated and kept secure automatically. This is an important step in helping developers create and maintain secure code. +{% if dependabot-updates-github-connect %} +Configuring self-hosted runners is only one step in the middle of the process for enabling {% data variables.product.prodname_dependabot_updates %}. There are several steps you must follow before these steps, including configuring {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %} with self-hosted runners. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." +{% else %} +Before you configure self-hosted runners for {% data variables.product.prodname_dependabot_updates %}, you must: -Users can set up {% data variables.product.prodname_dependabot %} to create pull requests to update their dependencies using two features. +- Configure {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %} with self-hosted runners. 更多信息请参阅“[开始使用 GitHub Enterprise Server 的 {% data variables.product.prodname_actions %}](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/getting-started-with-github-actions-for-github-enterprise-server)”。 +- Enable {% data variables.product.prodname_dependabot_alerts %} for your enterprise. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." +{% endif %} -- **{% data variables.product.prodname_dependabot_version_updates %}**: Users add a {% data variables.product.prodname_dependabot %} configuration file to the repository to enable {% data variables.product.prodname_dependabot %} to create pull requests when a new version of a tracked dependency is released. 更多信息请参阅“[关于 {% data variables.product.prodname_dependabot_version_updates %}](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates)“。 -- **{% data variables.product.prodname_dependabot_security_updates %}**: Users toggle a repository setting to enable {% data variables.product.prodname_dependabot %} to create pull requests when {% data variables.product.prodname_dotcom %} detects a vulnerability in one of the dependencies of the dependency graph for the repository. For more information, see "[About alerts for vulnerable dependencies](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies)" and "[About {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates)." +## Configuring self-hosted runners for {% data variables.product.prodname_dependabot_updates %} -## Prerequisites for {% data variables.product.prodname_dependabot %} updates - -Both types of {% data variables.product.prodname_dependabot %} update have the following requirements. - -- Configure {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %}. For more information, see "[Getting started with {% data variables.product.prodname_actions %} for GitHub Enterprise Server](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/getting-started-with-github-actions-for-github-enterprise-server)." -- Set up one or more {% data variables.product.prodname_actions %} self-hosted runners for {% data variables.product.prodname_dependabot %}. For more information, see "[Setting up self-hosted runners for {% data variables.product.prodname_dependabot %} updates](#setting-up-self-hosted-runners-for-dependabot-updates)" below. - -Additionally, {% data variables.product.prodname_dependabot_security_updates %} rely on the dependency graph, vulnerability data from {% data variables.product.prodname_github_connect %}, and {% data variables.product.prodname_dependabot_alerts %}. These features must be enabled on {% data variables.product.product_location %}. For more information, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)." - -## Setting up self-hosted runners for {% data variables.product.prodname_dependabot %} updates - -When you have configured {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %}, you need to add self-hosted runners for {% data variables.product.prodname_dependabot %} updates. For more information, see "[Getting started with {% data variables.product.prodname_actions %} for GitHub Enterprise Server](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/getting-started-with-github-actions-for-github-enterprise-server)." +After you configure {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %}, you need to add self-hosted runners for {% data variables.product.prodname_dependabot_updates %}. ### System requirements for {% data variables.product.prodname_dependabot %} runners diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md index a3801a0252d1..8d5d97d5d6c2 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md @@ -31,7 +31,7 @@ This article explains how site administrators can configure {% data variables.pr {% data reusables.actions.migrating-enterprise %} -## Review hardware considerations +## Review hardware requirements {% ifversion ghes = 3.0 %} @@ -45,7 +45,7 @@ This article explains how site administrators can configure {% data variables.pr {%- ifversion ghes < 3.2 %} -The CPU and memory resources available to {% data variables.product.product_location %} determine the maximum job throughput for {% data variables.product.prodname_actions %}. +The CPU and memory resources available to {% data variables.product.product_location %} determine the maximum job throughput for {% data variables.product.prodname_actions %}. {% data reusables.actions.minimum-hardware %} Internal testing at {% data variables.product.company_short %} demonstrated the following maximum throughput for {% data variables.product.prodname_ghe_server %} instances with a range of CPU and memory configurations. You may see different throughput depending on the overall levels of activity on your instance. @@ -53,7 +53,7 @@ Internal testing at {% data variables.product.company_short %} demonstrated the {%- ifversion ghes > 3.1 %} -The CPU and memory resources available to {% data variables.product.product_location %} determine the number of jobs that can be run concurrently without performance loss. +The CPU and memory resources available to {% data variables.product.product_location %} determine the number of jobs that can be run concurrently without performance loss. {% data reusables.actions.minimum-hardware %} The peak quantity of concurrent jobs running without performance loss depends on such factors as job duration, artifact usage, number of repositories running Actions, and how much other work your instance is doing not related to Actions. Internal testing at GitHub demonstrated the following performance targets for GitHub Enterprise Server on a range of CPU and memory configurations: @@ -73,9 +73,17 @@ Maximum concurrency was measured using multiple repositories, job duration of ap {%- endif %} -{%- ifversion ghes > 3.2 %} +{%- ifversion ghes = 3.3 %} -{% data reusables.actions.hardware-requirements-after %} +{% data reusables.actions.hardware-requirements-3.3 %} + +Maximum concurrency was measured using multiple repositories, job duration of approximately 10 minutes, and 10 MB artifact uploads. You may experience different performance depending on the overall levels of activity on your instance. + +{%- endif %} + +{%- ifversion ghes = 3.4 %} + +{% data reusables.actions.hardware-requirements-3.4 %} Maximum concurrency was measured using multiple repositories, job duration of approximately 10 minutes, and 10 MB artifact uploads. You may experience different performance depending on the overall levels of activity on your instance. diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md index 01341eb374eb..5ffc8bb19f95 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md @@ -71,6 +71,7 @@ Think about how your enterprise can use features of {% data variables.product.pr {% data reusables.actions.internal-actions-summary %} {% ifversion ghec or ghes > 3.3 or ghae-issue-4757 %} +{% data reusables.actions.reusable-workflows-ghes-beta %} With reusable workflows, your team can call one workflow from another workflow, avoiding exact duplication. Reusable workflows promote best practice by helping your team use workflows that are well designed and have already been tested. For more information, see "[Reusing workflows](/actions/learn-github-actions/reusing-workflows)." {% endif %} diff --git a/translations/zh-CN/content/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-saml.md b/translations/zh-CN/content/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-saml.md index 4492cab6c852..06da89bfff28 100644 --- a/translations/zh-CN/content/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-saml.md +++ b/translations/zh-CN/content/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-saml.md @@ -7,7 +7,7 @@ redirect_from: - /enterprise/admin/authentication/using-saml - /admin/authentication/using-saml - /enterprise/admin/authentication/authenticating-users-for-your-github-enterprise-server-instance/using-saml -intro: 'SAML 是一种基于 XML 的身份验证和授权标准。 {% data variables.product.prodname_ghe_server %} 可以作为您的内部 SAML 身份提供程序 (IdP) 的服务提供程序 (SP)。' +intro: 'You can configure SAML single sign-on (SSO) for {% data variables.product.product_name %}, which allows users to authenticate through a SAML identity provider (IdP) to access your instance.' versions: ghes: '*' type: how_to @@ -19,12 +19,24 @@ topics: - SSO --- +## About SAML for {% data variables.product.product_name %} + +SAML SSO allows people to authenticate and access {% data variables.product.product_location %} through an external system for identity management. + +SAML 是一种基于 XML 的身份验证和授权标准。 When you configure SAML for {% data variables.product.product_location %}, the external system for authentication is called an identity provider (IdP). Your instance acts as a SAML service provider (SP). For more information, see [Security Assertion Markup Language](https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language) on Wikipedia. + {% data reusables.enterprise_user_management.built-in-authentication %} ## 支持的 SAML 服务 {% data reusables.saml.saml-supported-idps %} +{% ifversion ghes > 3.3 %} + +If your IdP supports encrypted assertions, you can configure encrypted assertions on {% data variables.product.product_name %} for increased security during the authentication process. + +{% endif %} + {% data reusables.saml.saml-single-logout-not-supported %} ## 使用 SAML 时的用户名考量因素 @@ -55,7 +67,7 @@ topics: ## SAML 元数据 -您的 {% data variables.product.prodname_ghe_server %} 实例的服务提供程序元数据位于 `http(s)://[hostname]/saml/metadata` 下。 +The service provider metadata for {% data variables.product.product_location %} is available at `http(s)://[hostname]/saml/metadata`. 要手动配置您的身份提供程序,断言使用者服务 (ACS) URL 为 `http(s)://[hostname]/saml/consume`。 它使用 `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST` 绑定。 @@ -87,24 +99,92 @@ To specify more than one value for an attribute, use multiple ` 3.3 %} + +## Enabling encrypted assertions + +To enable encrypted assertions, your SAML IdP must also support encrypted assertions. You must provide {% data variables.product.product_location %}'s public certificate to your IdP, and configure encryption settings that match your IdP. + +{% warning %} + +**Warning**: Incorrectly configuring encrypted assertions can cause all authentication to {% data variables.product.product_location %} to fail. {% data variables.product.company_short %} strongly recommends testing your SAML configuration in a staging environment. For more information about staging instances, see "[Setting up a staging instance](/admin/installation/setting-up-a-github-enterprise-server-instance/setting-up-a-staging-instance)." + +{% endwarning %} + +1. Configure SAML for {% data variables.product.product_location %}. For more information, see "[Configuring SAML settings](#configuring-saml-settings)." +{% data reusables.enterprise_installation.ssh-into-instance %} +1. Run the following command to output {% data variables.product.product_location %}'s public certificate. + + openssl pkcs12 -in /data/user/common/saml-sp.p12 -nokeys -passin pass: +1. In the output, copy the text beginning with `-----BEGIN CERTIFICATE-----` and ending with `-----END CERTIFICATE-----`, and paste the output into a plaintext file. +1. Sign into your SAML IdP as an administrator. +1. In the application for {% data variables.product.product_location %}, enable encrypted assertions. + - Note the encryption method and key transport method. + - Provide the public certificate from step 3. +{% data reusables.enterprise_site_admin_settings.access-settings %} +{% data reusables.enterprise_site_admin_settings.management-console %} +{% data reusables.enterprise_management_console.authentication %} +1. Select **Require encrypted assertions**. + + ![Screenshot of "Enable encrypted assertions" checkbox within management console's "Authentication" section](/assets/images/help/saml/management-console-enable-encrypted-assertions.png) +1. To the right of "Encryption Method", select the encryption method for your IdP from step 5. + + ![Screenshot of "Encryption Method" for encrypted assertions](/assets/images/help/saml/management-console-encrypted-assertions-encryption-method.png) +1. To the right of "Key Transport Method", select the key transport method for your IdP from step 5. + + ![Screenshot of "Key Transport Method" for encrypted assertions](/assets/images/help/saml/management-console-encrypted-assertions-key-transport-method.png) +1. 单击 **Save settings(保存设置)**。 +{% data reusables.enterprise_site_admin_settings.wait-for-configuration-run %} + +{% endif %} ## Updating a user's SAML `NameID` @@ -116,8 +196,6 @@ To specify more than one value for an attribute, use multiple `SHORT-CODE_admin**. -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.developer_settings %} -{% data reusables.user_settings.personal_access_tokens %} -{% data reusables.user_settings.generate_new_token %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.developer_settings %} +{% data reusables.user-settings.personal_access_tokens %} +{% data reusables.user-settings.generate_new_token %} 1. Under **Note**, give your token a descriptive name. ![Screenshot showing the token's name](/assets/images/help/enterprises/emu-pat-name.png) 1. Select the **Expiration** drop-down menu, then click **No expiration**. ![Screenshot showing token expiration set to no expiration](/assets/images/help/enterprises/emu-pat-no-expiration.png) 1. Select the **admin:enterprise** scope. ![Screenshot showing the admin:enterprise scope](/assets/images/help/enterprises/enterprise-pat-scope.png) diff --git a/translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/managing-team-memberships-with-identity-provider-groups.md b/translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/managing-team-memberships-with-identity-provider-groups.md index 66323f168fc3..e5ab7798e263 100644 --- a/translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/managing-team-memberships-with-identity-provider-groups.md +++ b/translations/zh-CN/content/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/managing-team-memberships-with-identity-provider-groups.md @@ -37,7 +37,7 @@ To manage repository access for any team in your enterprise, including teams con Any member of an organization can create a new team and connect the team to an IdP group. {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.new_team %} {% data reusables.organizations.team_name %} {% data reusables.organizations.team_description %} diff --git a/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/accessing-your-enterprise-account-if-your-identity-provider-is-unavailable.md b/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/accessing-your-enterprise-account-if-your-identity-provider-is-unavailable.md new file mode 100644 index 000000000000..6e541cfa5ee4 --- /dev/null +++ b/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/accessing-your-enterprise-account-if-your-identity-provider-is-unavailable.md @@ -0,0 +1,28 @@ +--- +title: Accessing your enterprise account if your identity provider is unavailable +shortTitle: Access your enterprise account +intro: 'You can sign into {% data variables.product.product_name %} even if your identity provider is unavailable by bypassing SAML single sign-on (SSO) with a recovery code.' +versions: + ghec: '*' +type: how_to +topics: + - Accounts + - Authentication + - Enterprise + - SSO +permissions: Enterprise owners can use a recovery code to access an enterprise account. +--- + +You can use a recovery code to access your enterprise account when a SAML configuration error or an issue with your identity provider (IdP) prevents you from using SAML SSO. + +In order to access your enterprise account this way, you must have previously downloaded and stored the recovery codes for your enterprise. For more information, see "[Downloading your enterprise account's SAML single sign-on recovery codes](/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/downloading-your-enterprise-accounts-saml-single-sign-on-recovery-codes)." + +{% data reusables.saml.recovery-code-caveats %} + +{% note %} + +**Note:** If your enterprises uses {% data variables.product.prodname_emus %}, you must sign in as the setup user to use a recovery code. + +{% endnote %} + +{% data reusables.saml.recovery-code-access %} diff --git a/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/downloading-your-enterprise-accounts-saml-single-sign-on-recovery-codes.md b/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/downloading-your-enterprise-accounts-saml-single-sign-on-recovery-codes.md new file mode 100644 index 000000000000..f6dae92be5e8 --- /dev/null +++ b/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/downloading-your-enterprise-accounts-saml-single-sign-on-recovery-codes.md @@ -0,0 +1,26 @@ +--- +title: Downloading your enterprise account's SAML single sign-on recovery codes +shortTitle: Download recovery codes +intro: 'To ensure that you can access {% data variables.product.product_name %} if your identity provider (IdP) is unavailable, you should download your enterprise account''s SAML single sign-on (SSO) recovery codes.' +versions: + ghec: '*' +type: how_to +topics: + - Accounts + - Authentication + - Enterprise + - SSO +permissions: Enterprise owners can download the SAML SSO recovery codes for the enterprise account. +--- + +In the event that your IdP is unavailable, you can use a recovery code to sign in and access your enterprise on {% data variables.product.product_location %}. For more information, see "[Accessing your enterprise account if your identity provider is unavailable](/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/accessing-your-enterprise-account-if-your-identity-provider-is-unavailable)." + +If you did not save your recovery codes when you configured SAML SSO, you can still access the codes from your enterprise's settings. + +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.settings-tab %} +{% data reusables.enterprise-accounts.security-tab %} + +1. Under "Require SAML authentication", click **Save your recovery codes**. ![Screenshot of the button to test SAML configuration before enforcing](/assets/images/help/enterprises/saml-recovery-codes-link.png) + +2. To save your recovery codes, click **Download**, **Print**, or **Copy**. ![Screenshot of the buttons to download, print, or copy your recovery codes](/assets/images/help/saml/saml_recovery_code_options.png) diff --git a/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/index.md b/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/index.md new file mode 100644 index 000000000000..52e8a21ed025 --- /dev/null +++ b/translations/zh-CN/content/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/index.md @@ -0,0 +1,16 @@ +--- +title: Managing recovery codes for your enterprise +shortTitle: Manage recovery codes +intro: 'With SAML single sign-on recovery codes, you can access your enterprise account even when your identity provider is unavailable.' +versions: + ghec: '*' +topics: + - Accounts + - Authentication + - Enterprise + - SSO +children: + - /downloading-your-enterprise-accounts-saml-single-sign-on-recovery-codes + - /accessing-your-enterprise-account-if-your-identity-provider-is-unavailable +--- + diff --git a/translations/zh-CN/content/admin/index.md b/translations/zh-CN/content/admin/index.md index d34933c9072a..941c9adc115b 100644 --- a/translations/zh-CN/content/admin/index.md +++ b/translations/zh-CN/content/admin/index.md @@ -127,7 +127,7 @@ children: - /enterprise-management - /github-actions - /packages - - /advanced-security + - /code-security - /guides - /release-notes - /all-releases diff --git a/translations/zh-CN/content/admin/installation/setting-up-a-github-enterprise-server-instance/installing-github-enterprise-server-on-azure.md b/translations/zh-CN/content/admin/installation/setting-up-a-github-enterprise-server-instance/installing-github-enterprise-server-on-azure.md index 82d6d0897795..8f176fab01e7 100644 --- a/translations/zh-CN/content/admin/installation/setting-up-a-github-enterprise-server-instance/installing-github-enterprise-server-on-azure.md +++ b/translations/zh-CN/content/admin/installation/setting-up-a-github-enterprise-server-instance/installing-github-enterprise-server-on-azure.md @@ -40,12 +40,12 @@ shortTitle: 在 Azure 上安装 {% data reusables.enterprise_installation.create-ghe-instance %} -1. 找到最新的 {% data variables.product.prodname_ghe_server %} 设备映像。 For more information about the `vm image list` command, see "[`az vm image list`](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest#az_vm_image_list)" in the Microsoft documentation. +1. 找到最新的 {% data variables.product.prodname_ghe_server %} 设备映像。 更多关于 `vm image list` 命令的信息,请参阅 Microsoft 文档中的“[`az vm image list`](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest#az_vm_image_list)”。 ```shell $ az vm image list --all -f GitHub-Enterprise | grep '"urn":' | sort -V ``` -2. 使用找到的设备映像创建新的 VM。 For more information, see "[`az vm create`](https://docs.microsoft.com/cli/azure/vm?view=azure-cli-latest#az_vm_create)" in the Microsoft documentation. +2. 使用找到的设备映像创建新的 VM。 更多信息请参阅 Microsoft 文档中的“[`az vm create`](https://docs.microsoft.com/cli/azure/vm?view=azure-cli-latest#az_vm_create)”。 传入以下选项:VM 名称、资源组、VM 大小、首选 Azure 地区名称、上一步中列出的设备映像 VM 的名称,以及用于高级存储的存储 SKU。 更多关于资源组的信息,请参阅 Microsoft 文档中的“[资源组](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-overview#resource-groups)”。 @@ -53,7 +53,7 @@ shortTitle: 在 Azure 上安装 $ az vm create -n VM_NAME -g RESOURCE_GROUP --size VM_SIZE -l REGION --image APPLIANCE_IMAGE_NAME --storage-sku Premium_LRS ``` -3. 在 VM 上配置安全设置,以打开所需端口。 For more information, see "[`az vm open-port`](https://docs.microsoft.com/cli/azure/vm?view=azure-cli-latest#az_vm_open_port)" in the Microsoft documentation. 请参阅下表中对每个端口的说明,以确定需要打开的端口。 +3. 在 VM 上配置安全设置,以打开所需端口。 更多信息请参阅 Microsoft 文档中的“[`az vm open-port`](https://docs.microsoft.com/cli/azure/vm?view=azure-cli-latest#az_vm_open_port)”。 请参阅下表中对每个端口的说明,以确定需要打开的端口。 ```shell $ az vm open-port -n VM_NAME -g RESOURCE_GROUP --port PORT_NUMBER @@ -63,7 +63,7 @@ shortTitle: 在 Azure 上安装 {% data reusables.enterprise_installation.necessary_ports %} -4. 创建新的未加密数据磁盘并将其附加至 VM,然后根据用户许可数配置大小。 For more information, see "[`az vm disk attach`](https://docs.microsoft.com/cli/azure/vm/disk?view=azure-cli-latest#az_vm_disk_attach)" in the Microsoft documentation. +4. 创建新的未加密数据磁盘并将其附加至 VM,然后根据用户许可数配置大小。 更多信息请参阅 Microsoft 文档中的“[`az vm disk attach`](https://docs.microsoft.com/cli/azure/vm/disk?view=azure-cli-latest#az_vm_disk_attach)”。 传入以下选项:VM 名称(例如 `ghe-acme-corp`)、资源组、高级存储 SKU、磁盘大小(例如 `100`)以及生成的 VHD 的名称。 @@ -79,7 +79,7 @@ shortTitle: 在 Azure 上安装 ## 配置 {% data variables.product.prodname_ghe_server %} 虚拟机 -1. 在配置 VM 之前,您必须等待其进入 ReadyRole 状态。 使用 `vm list` 命令检查 VM 的状态。 For more information, see "[`az vm list`](https://docs.microsoft.com/cli/azure/vm?view=azure-cli-latest#az_vm_list)" in the Microsoft documentation. +1. 在配置 VM 之前,您必须等待其进入 ReadyRole 状态。 使用 `vm list` 命令检查 VM 的状态。 更多信息请参阅 Microsoft 文档中的“[`az vm list`](https://docs.microsoft.com/cli/azure/vm?view=azure-cli-latest#az_vm_list)”。 ```shell $ az vm list -d -g RESOURCE_GROUP -o table > Name ResourceGroup PowerState PublicIps Fqdns Location Zones diff --git a/translations/zh-CN/content/admin/overview/about-github-ae.md b/translations/zh-CN/content/admin/overview/about-github-ae.md index 25d0efb8b04b..74623d569ea7 100644 --- a/translations/zh-CN/content/admin/overview/about-github-ae.md +++ b/translations/zh-CN/content/admin/overview/about-github-ae.md @@ -37,5 +37,5 @@ topics: ## 延伸阅读 -- "[About versions of {% data variables.product.prodname_docs %}](/get-started/learning-about-github/about-versions-of-github-docs)" +- "[关于 {% data variables.product.prodname_docs %} 的版本](/get-started/learning-about-github/about-versions-of-github-docs)" - "[从 {% data variables.product.company_short %} 支持获得帮助](/admin/enterprise-support/receiving-help-from-github-support)" diff --git a/translations/zh-CN/content/admin/overview/system-overview.md b/translations/zh-CN/content/admin/overview/system-overview.md index da57a15e323f..2403137358ee 100644 --- a/translations/zh-CN/content/admin/overview/system-overview.md +++ b/translations/zh-CN/content/admin/overview/system-overview.md @@ -102,6 +102,12 @@ topics: 默认情况下,该设备还为使用 Git 的仓库访问和管理目的提供安全 Shell (SSH) 访问。 更多信息请参阅“[关于 SSH](/enterprise/user/articles/about-ssh)”和“[访问管理 shell (SSH)](/enterprise/{{ currentVersion }}/admin/installation/accessing-the-administrative-shell-ssh)“。 +{% ifversion ghes > 3.3 %} + +如果您为 {% data variables.product.product_location %} 配置 SAML 身份验证,则可以在实例和 SAML IdP 之间启用加密断言。 更多信息请参阅“[使用 SAML](/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-saml#enabling-encrypted-assertions)”。 + +{% endif %} + ### 用户和访问权限 {% data variables.product.prodname_ghe_server %} 提供三种类型的帐户。 diff --git a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/adding-people-to-teams.md b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/adding-people-to-teams.md index ad14b7c8e696..2879a9f35708 100644 --- a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/adding-people-to-teams.md +++ b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/adding-people-to-teams.md @@ -26,7 +26,7 @@ topics: ## 设置团队 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.invite_to_team %} {% data reusables.organizations.review-team-repository-access %} diff --git a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md index e638566bb127..d22e7db956b1 100644 --- a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md +++ b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md @@ -25,7 +25,7 @@ Organizations can create multiple levels of nested teams to reflect a company or A prudent combination of teams is a powerful way to control repository access. For example, if your organization allows only your release engineering team to push code to the default branch of any repository, you could give only the release engineering team **admin** permissions to your organization's repositories and give all other teams **read** permissions. {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.new_team %} {% data reusables.organizations.team_name %} {% data reusables.organizations.team_description %} @@ -54,7 +54,7 @@ You must be a site admin and an organization owner to create a team with LDAP sy 1. Ensure that [LDAP Sync is enabled](/enterprise/admin/authentication/using-ldap#enabling-ldap-sync). {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.new_team %} {% data reusables.organizations.team_name %} 6. Search for an LDAP group's DN to map the team to. If you don't know the DN, type the LDAP group's name. {% data variables.product.prodname_ghe_server %} will search for and autocomplete any matches. diff --git a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/removing-users-from-teams-and-organizations.md b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/removing-users-from-teams-and-organizations.md index 734bd86ad495..914b759aedd5 100644 --- a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/removing-users-from-teams-and-organizations.md +++ b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/removing-users-from-teams-and-organizations.md @@ -39,7 +39,7 @@ shortTitle: 删除用户成员资格 {% endif %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} 4. 选择您想要删除的一个或多个人员。 ![组织成员旁的复选框](/assets/images/help/teams/team-member-check-box.png) 5. 在团队成员列表上方,使用下拉菜单,然后单击 **Remove from team(从团队中删除)**。 ![包含更改角色选项的下拉菜单](/assets/images/help/teams/bulk-edit-drop-down.png) @@ -47,7 +47,7 @@ shortTitle: 删除用户成员资格 ## 从组织中移除用户 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 在您想要从组织中移除的用户的名称旁,单击复选框。![Remove user 复选框](/assets/images/help/organizations/Organization-remove-user.png) 5. 在页面顶部的组织名称下,单击 **Remove from organization**。 ![从组织删除按钮](/assets/images/help/organizations/Organization-remove-from-organization-button.png) diff --git a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/auditing-users-across-your-enterprise.md b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/auditing-users-across-your-enterprise.md index 0cfe2759a388..55647e651703 100644 --- a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/auditing-users-across-your-enterprise.md +++ b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/auditing-users-across-your-enterprise.md @@ -1,6 +1,6 @@ --- title: 审核整个企业的用户 -intro: The audit log dashboard shows site administrators the actions performed by all users and organizations across your enterprise within the current month and previous six months. 审核日志包含操作执行人、操作内容和执行时间等详细信息。 +intro: 审核日志仪表板向站点管理员显示企业中所有用户和组织在当前月份和前六个月内执行的操作。 审核日志包含操作执行人、操作内容和执行时间等详细信息。 redirect_from: - /enterprise/admin/guides/user-management/auditing-users-across-an-organization - /enterprise/admin/user-management/auditing-users-across-your-instance @@ -47,7 +47,7 @@ shortTitle: 审计用户 **注意:** - 您无法使用文本搜索审核条目,但您可以使用多个筛选器构建搜索查询。 {% data variables.product.product_name %} 支持在 {% data variables.product.product_name %} 中使用多种运算符进行搜索。 更多信息请参阅“[关于在 {% data variables.product.prodname_dotcom %} 上搜索](/github/searching-for-information-on-github/about-searching-on-github)”。 -- Audit records are available for the current month and every day of the previous six months. +- 提供当月和前六个月每天的审核记录。 {% endwarning %} diff --git a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/best-practices-for-user-security.md b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/best-practices-for-user-security.md index 1491967e702b..1fa9a0c69092 100644 --- a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/best-practices-for-user-security.md +++ b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/best-practices-for-user-security.md @@ -31,4 +31,4 @@ shortTitle: 用户安全最佳实践 要限制出现安全漏洞时的潜在攻击面,我们强烈建议仅向用户授予完成工作所需的团队和仓库的访问权限。 由于具有所有者角色的成员可以访问组织中的所有团队和仓库,我们强烈建议尽可能减小团队的规模。 -For more information on configuring teams and team permissions, see "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)." +有关配置团队和团队权限的详细信息,请参阅“[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)”。 diff --git a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/managing-dormant-users.md b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/managing-dormant-users.md index 35b5499de5fe..0860cdaa1375 100644 --- a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/managing-dormant-users.md +++ b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/managing-dormant-users.md @@ -54,14 +54,14 @@ topics: {% warning %} -**Note:** During the private beta, ongoing improvements to the report download feature may limit its availability. +**注意:** 在私人测试期间,对报告下载功能的持续改进可能会限制其可用性。 {% endwarning %} -## Downloading the dormant users report from your enterprise account +## 从企业帐户下载休眠用户报告 {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.enterprise-accounts-compliance-tab %} -1. To download your Dormant Users (beta) report as a CSV file, under "Other", click {% octicon "download" aria-label="The Download icon" %} **Download**. ![Download button under "Other" on the Compliance page](/assets/images/help/business-accounts/dormant-users-download-button.png) +1. 要将休眠用户(测试版)报告下载为 CSV 文件,请在“Other(其他)”下点击 {% octicon "download" aria-label="The Download icon" %} **Download(下载)**。 ![Compliance(合规)页面上"Other(其他)"下的 Download(下载)按钮](/assets/images/help/business-accounts/dormant-users-download-button.png) {% endif %} diff --git a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise.md b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise.md index 4ebd5860df33..af46aa649c9c 100644 --- a/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise.md +++ b/translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise.md @@ -22,7 +22,7 @@ topics: {% data reusables.enterprise-accounts.enterprise-administrators %} {% ifversion ghec %} -如果您的企业没有使用 {% data variables.product.prodname_emus %},您可以邀请他人使用他们控制的 {% data variables.product.product_name %} 用户帐户来管理角色。 更多信息请参阅“[邀请人们管理您的企业](/github/setting-up-and-managing-your-enterprise/inviting-people-to-manage-your-enterprise)”。 +如果您的企业没有使用 {% data variables.product.prodname_emus %},您可以邀请他人使用他们控制的 {% data variables.product.product_name %} 用户帐户来管理角色。 For more information, see "[Inviting people to manage your enterprise](/github/setting-up-and-managing-your-enterprise/inviting-people-to-manage-your-enterprise)." 在使用 {% data variables.product.prodname_emus %} 的企业中,必须通过身份提供商预配新所有者和成员。 企业所有者和组织所有者不能使用 {% data variables.product.prodname_dotcom %} 向企业添加新成员或所有者。 您可以使用 IdP 选择成员的企业角色,它不能在 {% data variables.product.prodname_dotcom %} 上更改。 您可以在 {% data variables.product.prodname_dotcom %} 上选择成员在组织中的角色。 更多信息请参阅“[关于 {% data variables.product.prodname_emus %}](/enterprise-cloud@latest/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)”。 {% else %} diff --git a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audit-logging.md b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audit-logging.md index 395133a0456e..c672486e81a0 100644 --- a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audit-logging.md +++ b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audit-logging.md @@ -26,7 +26,7 @@ topics: {% ifversion ghes %} ## 系统事件 -All audited system events are logged to `/var/log/github/audit.log`. 日志每 24 小时自动轮换一次,并会保留七天。 +所有审核的系统事件都将记录到 `/var/log/github/audit.log`。 日志每 24 小时自动轮换一次,并会保留七天。 支持包中包含系统日志。 更多信息请参阅“[向 {% data variables.product.prodname_dotcom %} Support 提供数据](/admin/enterprise-support/providing-data-to-github-support)”。 diff --git a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md index 77ebe597893d..ac48242da25d 100644 --- a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md +++ b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md @@ -98,18 +98,18 @@ topics: ## 受保护分支 -| 操作 | 描述 | -| ------------------------------------------------------------------ | ------------------------------------------------------------------------------------- | -| `protected_branch.create` | 已在分支上启用分支保护。 | -| `protected_branch.destroy` | 已在分支上禁用分支保护。 | -| `protected_branch.update_admin_enforced` | 已为仓库管理员强制执行分支保护。 | -| `protected_branch.update_require_code_owner_review` | 已在分支上更新必需代码所有者审查的强制执行。 | -| `protected_branch.dismiss_stale_reviews` | 已在分支上更新忽略旧拉取请求的强制执行。 | -| `protected_branch.update_signature_requirement_enforcement_level` | 已在分支上更新必需提交签名的强制执行。 | -| `protected_branch.update_pull_request_reviews_enforcement_level` | 已在分支上更新必需拉取请求审查的强制执行。 Can be one of `0`(deactivated), `1`(non-admins), `2`(everyone). | -| `protected_branch.update_required_status_checks_enforcement_level` | 已在分支上更新必需状态检查的强制执行。 | -| `protected_branch.rejected_ref_update` | 分支更新尝试被拒。 | -| `protected_branch.policy_override` | 分支保护要求被仓库管理员覆盖。 | +| 操作 | 描述 | +| ------------------------------------------------------------------ | ------------------------------------------------------- | +| `protected_branch.create` | 已在分支上启用分支保护。 | +| `protected_branch.destroy` | 已在分支上禁用分支保护。 | +| `protected_branch.update_admin_enforced` | 已为仓库管理员强制执行分支保护。 | +| `protected_branch.update_require_code_owner_review` | 已在分支上更新必需代码所有者审查的强制执行。 | +| `protected_branch.dismiss_stale_reviews` | 已在分支上更新忽略旧拉取请求的强制执行。 | +| `protected_branch.update_signature_requirement_enforcement_level` | 已在分支上更新必需提交签名的强制执行。 | +| `protected_branch.update_pull_request_reviews_enforcement_level` | 已在分支上更新必需拉取请求审查的强制执行。 可以是 `0`(已停用)、`1`(非管理员)`2`(所有人)之一。 | +| `protected_branch.update_required_status_checks_enforcement_level` | 已在分支上更新必需状态检查的强制执行。 | +| `protected_branch.rejected_ref_update` | 分支更新尝试被拒。 | +| `protected_branch.policy_override` | 分支保护要求被仓库管理员覆盖。 | ## 仓库 @@ -133,21 +133,21 @@ topics: ## 站点管理员工具 -| 操作 | 描述 | -| ----------------------- | ------------------------------------------------------------------------------------------------------ | -| `staff.disable_repo` | 站点管理员已禁用对仓库及其所有复刻的访问。 | -| `staff.enable_repo` | A site admin re-enabled access to a repository and all of its forks.{% ifversion ghae or ghes > 3.2 %} -| `staff.exit_fake_login` | A site admin ended an impersonation session on {% data variables.product.product_name %}. | -| `staff.fake_login` | A site admin signed into {% data variables.product.product_name %} as another user.{% endif %} -| `staff.repo_unlock` | 站点管理员已解锁(临时获得完全访问权限)用户的一个私有仓库。 | -| `staff.unlock` | 站点管理员已解锁(临时获得完全访问权限)用户的所有私有仓库。 | +| 操作 | 描述 | +| ----------------------- | --------------------------------------------------------------------- | +| `staff.disable_repo` | 站点管理员已禁用对仓库及其所有复刻的访问。 | +| `staff.enable_repo` | 站点管理员重新启用了对仓库及其所有复刻的访问权限。{% ifversion ghae or ghes > 3.2 %} +| `staff.exit_fake_login` | 站点管理员在 {% data variables.product.product_name %} 上结束了模拟会话。 | +| `staff.fake_login` | 站点管理员以另一用户的身份登录 {% data variables.product.product_name %}。{% endif %} +| `staff.repo_unlock` | 站点管理员已解锁(临时获得完全访问权限)用户的一个私有仓库。 | +| `staff.unlock` | 站点管理员已解锁(临时获得完全访问权限)用户的所有私有仓库。 | ## 团队 -| 操作 | 描述 | -| ------------------------- | --------------------------------------------------------------------------------- | -| `team.create` | 已向团队添加用户帐户或仓库。 | -| `team.delete` | A user account or repository was removed from a team.{% ifversion ghes or ghae %} +| 操作 | 描述 | +| ------------------------- | ------------------------------------------- | +| `team.create` | 已向团队添加用户帐户或仓库。 | +| `team.delete` | 用户帐户或仓库已从团队中删除。{% ifversion ghes or ghae %} | `team.demote_maintainer` | 用户从团队维护员降级为团队成员。{% endif %} | `team.destroy` | 团队被删除。{% ifversion ghes or ghae %} | `team.promote_maintainer` | 用户从团队成员晋升为团队维护员。{% endif %} diff --git a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/log-forwarding.md b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/log-forwarding.md index 8581f6b36ef9..e5a909657398 100644 --- a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/log-forwarding.md +++ b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/log-forwarding.md @@ -22,7 +22,7 @@ topics: 支持使用任何支持 syslog-style 日志流的日志收集系统(例如 [Logstash](http://logstash.net/) 和 [Splunk](http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports))。 -When you enable log forwarding, you must upload a CA certificate to encrypt communications between syslog endpoints. Your appliance and the remote syslog server will perform two-way SSL, each providing a certificate to the other and validating the certificate which is received. +启用日志转发时,必须上传 CA 证书以加密 syslog 端点之间的通信。 您的设备和远程 syslog 服务器将执行双向 SSL,每个服务器向另一个服务器提供证书并验证收到的证书。 ## 启用日志转发 @@ -31,8 +31,8 @@ When you enable log forwarding, you must upload a CA certificate to encrypt comm 1. 选择 **Enable log forwarding**。 1. 在 **Server address** 字段中,输入要将日志转发到的服务器的地址。 您可以在以逗号分隔的列表中指定多个地址。 1. 在 Protocol 下拉菜单中,选择用于与日志服务器通信的协议。 该协议将应用到所有指定的日志目标。 -1. Optionally, select **Enable TLS**. We recommend enabling TLS according to your local security policies, especially if there are untrusted networks between the appliance and any remote log servers. -1. To encrypt communication between syslog endpoints, click **Choose File** and choose a CA certificate for the remote syslog server. You should upload a CA bundle containing a concatenation of the certificates of the CAs involved in signing the certificate of the remote log server. 将对整个证书链进行验证,且证书链必须以根证书结束。 更多信息请参阅 [syslog-ng 文档中的 TLS 选项](https://support.oneidentity.com/technical-documents/syslog-ng-open-source-edition/3.16/administration-guide/56#TOPIC-956599)。 +1. (可选)选择 **Enable TLS(启用 TLS)**。 我们建议根据本地安全策略启用 TLS,尤其是在设备和任何远程日志服务器之间存在不受信任的网络时。 +1. 要加密 syslog 端点之间的通信,请单击 **Choose File(选择文件)** ,然后为远程 syslog 服务器选择 CA 证书。 您应上传 CA 捆绑包,其中包含对远程日志服务器的证书进行签名所涉及的 CA 的证书串联。 将对整个证书链进行验证,且证书链必须以根证书结束。 更多信息请参阅 [syslog-ng 文档中的 TLS 选项](https://support.oneidentity.com/technical-documents/syslog-ng-open-source-edition/3.16/administration-guide/56#TOPIC-956599)。 {% elsif ghae %} {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} diff --git a/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on.md b/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on.md index 57ed78311a98..8db7d648238e 100644 --- a/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on.md +++ b/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on.md @@ -17,9 +17,9 @@ shortTitle: 使用 SAML 的 PAT {% data reusables.saml.authorized-creds-info %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.developer_settings %} -{% data reusables.user_settings.personal_access_tokens %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.developer_settings %} +{% data reusables.user-settings.personal_access_tokens %} 3. Next to the token you'd like to authorize, click **Configure SSO**. ![Screenshot of the dropdown menu to configure SSO for a personal access token](/assets/images/help/settings/sso-allowlist-button.png) 4. To the right of the organization you'd like to authorize the token for, click **Authorize**. ![令牌授权按钮](/assets/images/help/settings/token-authorize-button.png) diff --git a/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on.md b/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on.md index 93a49f7f3e95..61b2d55b9259 100644 --- a/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on.md +++ b/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on.md @@ -23,8 +23,8 @@ shortTitle: 使用 SAML 的 SSH 密钥 {% endnote %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 3. 在要授权的 SSH 密钥旁边,单击 **Enable SSO(启用 SSO)**或 **Disable SSO(禁用 SSO)**。 ![SSO 令牌授权按钮](/assets/images/help/settings/ssh-sso-button.png) 4. 找到要为其授权访 SSH 密钥的组织。 5. 单击 **Authorize(授权)**。 ![令牌授权按钮](/assets/images/help/settings/ssh-sso-authorize.png) diff --git a/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/viewing-and-managing-your-active-saml-sessions.md b/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/viewing-and-managing-your-active-saml-sessions.md index bde8d338748f..b1621bf273d6 100644 --- a/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/viewing-and-managing-your-active-saml-sessions.md +++ b/translations/zh-CN/content/authentication/authenticating-with-saml-single-sign-on/viewing-and-managing-your-active-saml-sessions.md @@ -12,8 +12,8 @@ topics: shortTitle: 活动的 SAML 会话 --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} 3. 在“Sessions(会话)”下,您可以看到活动的 SAML 会话。 ![活动 SAML 会话列表](/assets/images/help/settings/saml-active-sessions.png) 4. 要查看会话详细信息,请单击 **See more(查看更多)**。 ![用于打开 SAML 会话详细信息的按钮](/assets/images/help/settings/saml-expand-session-details.png) 5. 要撤销会话,请单击 **Revoke SAML(撤销 SAML)**。 ![撤销 SAML 会话的按钮](/assets/images/help/settings/saml-revoke-session.png) diff --git a/translations/zh-CN/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md b/translations/zh-CN/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md index 8c0e96f27fad..66c18a2774a9 100644 --- a/translations/zh-CN/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md +++ b/translations/zh-CN/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md @@ -42,13 +42,13 @@ After adding a new SSH key to your account on {% ifversion ghae %}{% data variab {% endtip %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 4. 单击 **New SSH key(新 SSH 密钥)**或 **Add SSH key(添加 SSH 密钥)**。 ![SSH 密钥按钮](/assets/images/help/settings/ssh-add-ssh-key.png) 5. 在 "Title"(标题)字段中,为新密钥添加描述性标签。 例如,如果您使用的是个人 Mac,此密钥名称可能是 "Personal MacBook Air"。 6. 将密钥粘贴到 "Key"(密钥)字段。 ![密钥字段](/assets/images/help/settings/ssh-key-paste.png) 7. 单击 **Add SSH key(添加 SSH 密钥)**。 ![添加密钥按钮](/assets/images/help/settings/ssh-add-key.png) -{% data reusables.user_settings.sudo-mode-popup %} +{% data reusables.user-settings.sudo-mode-popup %} {% endwebui %} @@ -73,8 +73,8 @@ After adding a new SSH key to your account on {% ifversion ghae %}{% data variab {% endtip %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 4. 单击 **New SSH key(新 SSH 密钥)**或 **Add SSH key(添加 SSH 密钥)**。 ![SSH 密钥按钮](/assets/images/help/settings/ssh-add-ssh-key.png) 5. 在 "Title"(标题)字段中,为新密钥添加描述性标签。 例如,如果您使用的是个人 Mac,此密钥名称可能是 "Personal MacBook Air"。 6. 将密钥粘贴到 "Key"(密钥)字段。 ![密钥字段](/assets/images/help/settings/ssh-key-paste.png) @@ -105,8 +105,8 @@ After adding a new SSH key to your account on {% ifversion ghae %}{% data variab {% endtip %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 4. 单击 **New SSH key(新 SSH 密钥)**或 **Add SSH key(添加 SSH 密钥)**。 ![SSH 密钥按钮](/assets/images/help/settings/ssh-add-ssh-key.png) 5. 在 "Title"(标题)字段中,为新密钥添加描述性标签。 例如,如果您使用的是个人 Mac,此密钥名称可能是 "Personal MacBook Air"。 6. 将密钥粘贴到 "Key"(密钥)字段。 ![密钥字段](/assets/images/help/settings/ssh-key-paste.png) diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/about-authentication-to-github.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/about-authentication-to-github.md index 91249e7e4e7b..3c61925687ef 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/about-authentication-to-github.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/about-authentication-to-github.md @@ -64,11 +64,11 @@ You can work with all repositories on {% data variables.product.product_name %} If you authenticate with {% data variables.product.prodname_cli %}, you can either authenticate with a personal access token or via the web browser. For more information about authenticating with {% data variables.product.prodname_cli %}, see [`gh auth login`](https://cli.github.com/manual/gh_auth_login). -If you authenticate without {% data variables.product.prodname_cli %}, you must authenticate with a personal access token. {% data reusables.user_settings.password-authentication-deprecation %} Every time you use Git to authenticate with {% data variables.product.product_name %}, you'll be prompted to enter your credentials to authenticate with {% data variables.product.product_name %}, unless you cache them a [credential helper](/github/getting-started-with-github/caching-your-github-credentials-in-git). +If you authenticate without {% data variables.product.prodname_cli %}, you must authenticate with a personal access token. {% data reusables.user-settings.password-authentication-deprecation %} Every time you use Git to authenticate with {% data variables.product.product_name %}, you'll be prompted to enter your credentials to authenticate with {% data variables.product.product_name %}, unless you cache them a [credential helper](/github/getting-started-with-github/caching-your-github-credentials-in-git). ### SSH -You can work with all repositories on {% data variables.product.product_name %} over SSH, although firewalls and proxys might refuse to allow SSH connections. +You can work with all repositories on {% data variables.product.product_name %} over SSH, although firewalls and proxies might refuse to allow SSH connections. If you authenticate with {% data variables.product.prodname_cli %}, the CLI will find SSH public keys on your machine and will prompt you to select one for upload. If {% data variables.product.prodname_cli %} does not find a SSH public key for upload, it can generate a new SSH public/private keypair and upload the public key to your account on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}. Then, you can either authenticate with a personal access token or via the web browser. For more information about authenticating with {% data variables.product.prodname_cli %}, see [`gh auth login`](https://cli.github.com/manual/gh_auth_login). diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/authorizing-oauth-apps.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/authorizing-oauth-apps.md index 496a5c86832c..33170c565838 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/authorizing-oauth-apps.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/authorizing-oauth-apps.md @@ -35,7 +35,7 @@ When an {% data variables.product.prodname_oauth_app %} wants to identify you by {% tip %} -**Tip:** {% data reusables.user_settings.review_oauth_tokens_tip %} +**Tip:** {% data reusables.user-settings.review_oauth_tokens_tip %} {% endtip %} diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications.md index 3666f89c500d..85141c8ca2d2 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications.md @@ -55,7 +55,7 @@ shortTitle: 第三方应用程序 {% tip %} -**提示:**{% data reusables.user_settings.review_oauth_tokens_tip %} +**提示:** {% data reusables.user-settings.review_oauth_tokens_tip %} {% endtip %} diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token.md index 9218ddf5b7d4..a9636c5a7076 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token.md @@ -22,7 +22,7 @@ shortTitle: 创建 PAT {% note %} -**注意:** 如果您在命令行上使用 {% data variables.product.prodname_cli %} 向 {% data variables.product.product_name %} 验证,您可以跳过生成个人访问令牌,并通过网页浏览器进行身份验证。 For more information about authenticating with {% data variables.product.prodname_cli %}, see [`gh auth login`](https://cli.github.com/manual/gh_auth_login). +**注意:** 如果您在命令行上使用 {% data variables.product.prodname_cli %} 向 {% data variables.product.product_name %} 验证,您可以跳过生成个人访问令牌,并通过网页浏览器进行身份验证。 有关使用 {% data variables.product.prodname_cli %} 进行身份验证的详细信息,请参阅 [`gh auth login`](https://cli.github.com/manual/gh_auth_login)。 {% endnote %} @@ -30,17 +30,17 @@ shortTitle: 创建 PAT {% ifversion fpt or ghec %}如果要使用 PAT 访问使用 SAML SSO 的组织所拥有的资源,则必须授权 PAT。 For more information, see "[About authentication with SAML single sign-on](/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on)" and "[Authorizing a personal access token for use with SAML single sign-on](/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %}{% endif %} -{% ifversion fpt or ghec %}{% data reusables.user_settings.removes-personal-access-tokens %}{% endif %} +{% ifversion fpt or ghec %}{% data reusables.user-settings.removes-personal-access-tokens %}{% endif %} 没有指定范围的令牌只能访问公共信息。 要使用令牌从命令行访问仓库,请选择 `repo(仓库)`。 For more information, see "[Available scopes](/apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes)". ## 创建令牌 {% ifversion fpt or ghec %}1. [验证您的电子邮件地址](/github/getting-started-with-github/verifying-your-email-address)(如果尚未验证)。{% endif %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.developer_settings %} -{% data reusables.user_settings.personal_access_tokens %} -{% data reusables.user_settings.generate_new_token %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.developer_settings %} +{% data reusables.user-settings.personal_access_tokens %} +{% data reusables.user-settings.generate_new_token %} 5. 给令牌一个描述性名称。 ![Token description field](/assets/images/help/settings/token_description.png){% ifversion fpt or ghes > 3.2 or ghae-issue-4374 or ghec %} 6. 要使令牌过期,请选择 **Expiration(到期)**下拉菜单,然后单击默认值或使用日历选择器。 ![Token expiration field](/assets/images/help/settings/token_expiration.png){% endif %} 7. 选择要授予此令牌的作用域或权限。 要使用令牌从命令行访问仓库,请选择 **repo(仓库)**。 diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-strong-password.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-strong-password.md index ba6945d758ee..de1b76ed8b4c 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-strong-password.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/creating-a-strong-password.md @@ -31,7 +31,7 @@ You must choose or generate a password for your account on {% ifversion ghae %}{ 您只能使用密码通过浏览器登录 {% data variables.product.product_name %}。 使用其他方式(例如命令行或 API)向 {% data variables.product.product_name %} 验证时,应使用其他凭据。 更多信息请参阅“[关于 {% data variables.product.prodname_dotcom %} 向验证身份](/github/authenticating-to-github/about-authentication-to-github)”。 -{% ifversion fpt or ghec %}{% data reusables.user_settings.password-authentication-deprecation %}{% endif %} +{% ifversion fpt or ghec %}{% data reusables.user-settings.password-authentication-deprecation %}{% endif %} ## 延伸阅读 diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-applications-oauth.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-applications-oauth.md index 1afc72a4e606..5edc4b0512ef 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-applications-oauth.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-applications-oauth.md @@ -16,10 +16,10 @@ topics: shortTitle: 查看 OAuth 应用程序 --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.access_applications %} -{% data reusables.user_settings.access_authorized_oauth_apps %} -{% data reusables.user_settings.review-oauth-apps %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.access_applications %} +{% data reusables.user-settings.access_authorized_oauth_apps %} +{% data reusables.user-settings.review-oauth-apps %} ## 延伸阅读 {% ifversion fpt or ghec %} diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations.md index 432761091350..e2129592d762 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations.md @@ -18,15 +18,15 @@ shortTitle: 授权集成 ## 审查授权的 {% data variables.product.prodname_oauth_apps %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.access_applications %} -{% data reusables.user_settings.access_authorized_oauth_apps %} -{% data reusables.user_settings.review-oauth-apps %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.access_applications %} +{% data reusables.user-settings.access_authorized_oauth_apps %} +{% data reusables.user-settings.review-oauth-apps %} ## 审查授权的 {% data variables.product.prodname_github_apps %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.access_applications %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.access_applications %} 3. 单击 **Authorized {% data variables.product.prodname_github_apps %}s(授权的 GitHub 应用程序)**选项卡。 ![授权的 {% data variables.product.prodname_github_apps %}选项卡](/assets/images/help/settings/settings-authorized-github-apps-tab.png) 3. 审查有您帐户访问权限的 {% data variables.product.prodname_github_apps %}。 对于您无法识别或已过期的应用程序,请单击 **Revoke(撤销)**。 要撤销所有 {% data variables.product.prodname_github_apps %},请单击 **Revoke all(全部撤销)**。 ![授权的 {% data variables.product.prodname_github_app %}列表](/assets/images/help/settings/revoke-github-app.png) diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log.md index 50e80e183433..1caa26c03295 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log.md @@ -21,7 +21,7 @@ shortTitle: 安全日志 安全日志列出了过去 90 天内执行的所有操作。 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} 1. In the "Archives" section of the sidebar, click **{% octicon "log" aria-label="The log icon" %} Security log**. {% else %} diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys.md index 94030647d152..8eb2f692b708 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys.md @@ -21,8 +21,8 @@ topics: {% mac %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 3. 在 SSH Settings(SSH 设置)页面中,记下与您的帐户关联的 SSH 密钥。 对于您无法识别或已过期的密钥,请单击 **Delete(删除)**。 如果有您要保留的有效 SSH 密钥,请单击 **Approve(批准)**。 ![SSH 密钥列表](/assets/images/help/settings/settings-ssh-key-review.png) {% tip %} @@ -47,8 +47,8 @@ topics: {% windows %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 3. 在 SSH Settings(SSH 设置)页面中,记下与您的帐户关联的 SSH 密钥。 对于您无法识别或已过期的密钥,请单击 **Delete(删除)**。 如果有您要保留的有效 SSH 密钥,请单击 **Approve(批准)**。 ![SSH 密钥列表](/assets/images/help/settings/settings-ssh-key-review.png) {% tip %} @@ -75,8 +75,8 @@ topics: {% linux %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 3. 在 SSH Settings(SSH 设置)页面中,记下与您的帐户关联的 SSH 密钥。 对于您无法识别或已过期的密钥,请单击 **Delete(删除)**。 如果有您要保留的有效 SSH 密钥,请单击 **Approve(批准)**。 ![SSH 密钥列表](/assets/images/help/settings/settings-ssh-key-review.png) {% tip %} diff --git a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials.md b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials.md index e6cf3e25a07e..30a6a2364383 100644 --- a/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials.md +++ b/translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials.md @@ -40,8 +40,8 @@ shortTitle: 更新访问凭据 {% data reusables.repositories.blocked-passwords %} 1. {% data variables.product.signin_link %}到 {% data variables.product.product_name %}。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} 4. 在“Change password(更改密码)”下,输入旧密码、强新密码并确认新密码。 有关创建强密码的帮助,请参阅“[创建强密码](/articles/creating-a-strong-password)” 5. 单击 **Update password(更新密码)**。 diff --git a/translations/zh-CN/content/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account.md b/translations/zh-CN/content/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account.md index ffb7480da512..e37e98f1a96e 100644 --- a/translations/zh-CN/content/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account.md +++ b/translations/zh-CN/content/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account.md @@ -26,8 +26,8 @@ Before adding a new GPG key to your account on {% ifversion ghae %}{% data varia ## 添加 GPG 密钥 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 3. 单击 **New GPG key(新 GPG 密钥)**。 ![GPG 密钥按钮](/assets/images/help/settings/gpg-add-gpg-key.png) 4. 在 "Key"(密钥)字段中,粘贴在[生成 GPG 密钥](/articles/generating-a-new-gpg-key)时复制的 GPG 密钥。 ![密钥字段](/assets/images/help/settings/gpg-key-paste.png) 5. 单击 **Add GPG key(添加 GPG 密钥)**。 ![添加密钥按钮](/assets/images/help/settings/gpg-add-key.png) diff --git a/translations/zh-CN/content/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits.md b/translations/zh-CN/content/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits.md index a16de3434db9..056ffdc6fa88 100644 --- a/translations/zh-CN/content/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits.md +++ b/translations/zh-CN/content/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits.md @@ -33,8 +33,8 @@ redirect_from: ## 启用警戒模式 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 3. 在 SSH 设置页面的“Vigilant mode(警戒模式)”下,选择 **Flag unsigned commits as unverified(将未签名的提交标记为未验证)**。 ![将未签名的提交标记为未验证的复选框](/assets/images/help/commits/vigilant-mode-checkbox.png) diff --git a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device.md b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device.md index 65e29af12c1e..eed532fe7e1f 100644 --- a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device.md +++ b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device.md @@ -20,8 +20,8 @@ shortTitle: 更改 2FA 递送方式 {% endnote %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} 3. 在“SMS delivery(SMS 递送)旁边,单击 **Edit(编辑)**。 ![编辑 SMS 递送选项](/assets/images/help/2fa/edit-sms-delivery-option.png) 4. 在“Delivery options(递送选项)”下,单击 **Reconfigure two-factor authentication(重新配置双重身份验证)**。 ![切换 2FA 递送选项](/assets/images/help/2fa/2fa-switching-methods.png) 5. 决定是使用 TOTP 移动应用程序还是使用短信设置双重身份验证。 更多信息请参阅“[配置双重身份验证](/articles/configuring-two-factor-authentication)”。 diff --git a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods.md b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods.md index 793aef5ce02c..d1c7a841f4e2 100644 --- a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods.md +++ b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods.md @@ -31,8 +31,8 @@ shortTitle: 配置 2FA 恢复 如果您生成新的恢复代码或禁用并重新启用 2FA,则安全设置中的恢复代码会自动更新。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} {% data reusables.two_fa.show-recovery-codes %} 4. 将恢复代码保存在安全的位置。 在失去访问权限时,恢复代码可帮助您恢复帐户登录。 - 要在设备上保存恢复代码,请单击 **Download(下载)**。 @@ -43,8 +43,8 @@ shortTitle: 配置 2FA 恢复 使用某个恢复代码恢复帐户访问后,该代码无法再用。 用完全部 16 个恢复代码后,可以生成另一个代码列表。 生成一组新的恢复代码将导致此前生成的任何代码失效。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} {% data reusables.two_fa.show-recovery-codes %} 3. 要创建另一批恢复代码,请单击 **Generate new recovery codes(生成新的恢复代码)**。 ![生成新恢复代码按钮](/assets/images/help/2fa/generate-new-recovery-codes.png) @@ -68,8 +68,8 @@ shortTitle: 配置 2FA 恢复 {% endwarning %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} 3. 在“Fallback SMS number(后备 SMS 号码)”旁边,单击 **Add(添加)**。 ![添加后备 SMS 号码按钮](/assets/images/help/2fa/add-fallback-sms-number-button.png) 4. 在“Fallback SMS number(后备 SMS 号码)”下,单击 **Add fallback SMS number(添加后备 SMS 号码)**。 ![添加后备 SMS 号码文本](/assets/images/help/2fa/add_fallback_sms_number_text.png) 5. 选择您的国家/地区代码并键入您的手机号码,包括区号。 确认信息无误后,单击 **Set fallback(设置后备号码)**。 ![设置后备 SMS 号码](/assets/images/help/2fa/2fa-fallback-number.png) diff --git a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication.md b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication.md index 22198ea7677d..86b80e2357fd 100644 --- a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication.md +++ b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication.md @@ -50,8 +50,8 @@ If you're a member of an {% data variables.product.prodname_emu_enterprise %}, y {% endtip %} 1. 下载 TOTP 应用程序。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} {% data reusables.two_fa.enable-two-factor-authentication %} {%- ifversion fpt or ghes > 3.1 %} 5. 在“Two-factor authentication(双重身份验证)”下选择 **Set up using an app(使用应用程序设置)**并点击 **Continue(继续)**。 @@ -88,8 +88,8 @@ If you're a member of an {% data variables.product.prodname_emu_enterprise %}, y {% endwarning %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} {% data reusables.two_fa.enable-two-factor-authentication %} 4. 在“Two-factor authentication(双重身份验证)”下选择 **Set up using SMS(使用 SMS 设置)**并点击 **Continue(继续)**。 5. 在“Authentication verification(身份验证)”下,选择您的国家/地区代码并键入您的手机号码,包括区号。 确认信息无误后,单击 **Send authentication code(发送验证码)**。 @@ -114,8 +114,8 @@ If you're a member of an {% data variables.product.prodname_emu_enterprise %}, y 1. 必须已通过 TOTP 移动应用程序{% ifversion fpt or ghec %} 或通过 SMS{% endif %} 配置了 2FA。 2. 确保您的计算机中已插入 WebAuthn 兼容安全密钥。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} 5. 在“Security keys(安全密钥)”旁边,单击 **添加**。 ![添加安全密钥选项](/assets/images/help/2fa/add-security-keys-option.png) 6. 在“Security keys(安全密钥)”下,单击 **Register new security key(注册新安全密钥)**。 ![注册新安全密钥](/assets/images/help/2fa/security-key-register.png) 7. 键入安全密钥的昵称,然后单击 **Add(添加)**。 ![为安全密钥提供昵称](/assets/images/help/2fa/security-key-nickname.png) diff --git a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account.md b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account.md index 12b091e7cd7c..a52ac6f7096d 100644 --- a/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account.md +++ b/translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account.md @@ -28,8 +28,8 @@ shortTitle: 禁用 2FA - 作为组织成员或所有者,请参阅“[从组织中删除自己](/articles/removing-yourself-from-an-organization/)”。 - 作为外部协作者,请要求组织所有者或仓库管理员从组织的仓库中删除自己。 更多信息请参阅“[查看组织中的人员角色](/articles/viewing-people-s-roles-in-an-organization)”和“[从组织仓库中删除外部协作者](/articles/removing-an-outside-collaborator-from-an-organization-repository/)”。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.security %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.security %} 3. 单击 **Disable(禁用)**。 ![禁用双重身份验证](/assets/images/help/2fa/disable-two-factor-authentication.png) ## 延伸阅读 diff --git a/translations/zh-CN/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md b/translations/zh-CN/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md index a1a80195b413..667eee42e0d9 100644 --- a/translations/zh-CN/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md +++ b/translations/zh-CN/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md @@ -154,8 +154,8 @@ $ ssh -vT git@{% data variables.command_line.codeblock %} > 2048 SHA256:274ffWxgaxq/tSINAykStUL7XWyRNcRTlcST1Ei7gBQ /Users/USERNAME/.ssh/id_rsa (RSA) ``` -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 6. 比较 SSH 公钥列表与 `ssh-add` 命令的输出。 ![{% data variables.product.product_name %} 中的 SSH 密钥列表](/assets/images/help/settings/ssh_key_listing.png) {% endmac %} @@ -174,8 +174,8 @@ $ ssh -vT git@{% data variables.command_line.codeblock %} > 2048 SHA256:274ffWxgaxq/tSINAykStUL7XWyRNcRTlcST1Ei7gBQ /Users/USERNAME/.ssh/id_rsa (RSA) ``` -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 6. 比较 SSH 公钥列表与 `ssh-add` 命令的输出。 ![{% data variables.product.product_name %} 中的 SSH 密钥列表](/assets/images/help/settings/ssh_key_listing.png) {% endwindows %} @@ -200,8 +200,8 @@ $ ssh -vT git@{% data variables.command_line.codeblock %} > 2048 MD5:a0:dd:42:3c:5a:9d:e4:2a:21:52:4e:78:07:6e:c8:4d /Users/USERNAME/.ssh/id_rsa (RSA) ``` -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.ssh %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.ssh %} 6. 比较 SSH 公钥列表与 `ssh-add` 命令的输出。 ![{% data variables.product.product_name %} 中的 SSH 密钥列表](/assets/images/help/settings/ssh_key_listing.png) {% endlinux %} diff --git a/translations/zh-CN/content/billing/index.md b/translations/zh-CN/content/billing/index.md index a9553b7ec033..6067da5b9b07 100644 --- a/translations/zh-CN/content/billing/index.md +++ b/translations/zh-CN/content/billing/index.md @@ -1,7 +1,7 @@ --- title: GitHub 上的帐单和付款 shortTitle: 计费和付款 -intro: '{% ifversion fpt %}{% data variables.product.product_name %} offers free and paid products for every account. You can upgrade or downgrade your account''s subscription and manage your billing settings at any time.{% elsif ghec or ghes or ghae %}{% data variables.product.company_short %} bills for your enterprise members'' {% ifversion ghec or ghae %}usage of {% data variables.product.product_name %}{% elsif ghes %} licence seats for {% data variables.product.product_name %}{% ifversion ghes > 3.0 %} and any additional services that you purchase{% endif %}{% endif %}. {% endif %}{% ifversion ghec %} You can view your subscription and manage your billing settings at any time. {% endif %}{% ifversion fpt or ghec %} You can also view usage and manage spending limits for {% data variables.product.product_name %} features such as {% data variables.product.prodname_actions %}, {% data variables.product.prodname_registry %}, and {% data variables.product.prodname_codespaces %}.{% endif %}' +intro: '{% ifversion fpt %}{% data variables.product.product_name %} 为每个帐户提供免费和付费产品。 您可以随时升级或降级帐户的订阅和管理结算设置。{% elsif ghec or ghes or ghae %}{% data variables.product.company_short %} 对企业成员{% ifversion ghec or ghae %}使用 {% data variables.product.product_name %}{% elsif ghes %} {% data variables.product.product_name %}的许可席位{% ifversion ghes > 3.0 %} 以及您购买的任何其他服务{% endif %}{% endif %}计费。 {% endif %}{% ifversion ghec %} 您可以随时查看订阅和管理结算设置。 {% endif %}{% ifversion fpt or ghec %} 您还可以查看使用情况和管理 {% data variables.product.product_name %} 功能(如 {% data variables.product.prodname_actions %}、{% data variables.product.prodname_registry %} 和 {% data variables.product.prodname_codespaces %})的支出限制。{% endif %}' redirect_from: - /github/setting-up-and-managing-billing-and-payments-on-github - /categories/setting-up-and-managing-billing-and-payments-on-github diff --git a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/about-billing-for-git-large-file-storage.md b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/about-billing-for-git-large-file-storage.md index 12de0ab228d1..26dd3cdbf623 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/about-billing-for-git-large-file-storage.md +++ b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/about-billing-for-git-large-file-storage.md @@ -21,7 +21,7 @@ shortTitle: 关于 Git LFS 计费 {% data reusables.large_files.owner_quota_only %} -{% data reusables.user_settings.context_switcher %} +{% data reusables.user-settings.context_switcher %} ## 购买附加存储空间和带宽 diff --git a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/downgrading-git-large-file-storage.md b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/downgrading-git-large-file-storage.md index 3f169c1f7d87..c76d2ff17b47 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/downgrading-git-large-file-storage.md +++ b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/downgrading-git-large-file-storage.md @@ -23,8 +23,8 @@ shortTitle: 降级 Git LFS 存储 ## 降级个人帐户的存储和带宽 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.lfs-remove-data %} {% data reusables.large_files.downgrade_data_packs %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/upgrading-git-large-file-storage.md b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/upgrading-git-large-file-storage.md index fe63bf23c7c4..0465f4580c1b 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/upgrading-git-large-file-storage.md +++ b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/upgrading-git-large-file-storage.md @@ -21,8 +21,8 @@ shortTitle: 升级 Git LFS 存储 ## 为个人帐户购买额外的存储空间和带宽 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.lfs-add-data %} {% data reusables.large_files.pack_selection %} {% data reusables.large_files.pack_confirm %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/viewing-your-git-large-file-storage-usage.md b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/viewing-your-git-large-file-storage-usage.md index 20224d8250fb..f93693155244 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/viewing-your-git-large-file-storage-usage.md +++ b/translations/zh-CN/content/billing/managing-billing-for-git-large-file-storage/viewing-your-git-large-file-storage-usage.md @@ -22,8 +22,8 @@ shortTitle: 查看 Git LFS 使用情况 ## 查看个人帐户的存储空间和带宽使用情况 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.lfs-data %} ## 查看组织的存储空间和带宽使用情况 diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-actions/about-billing-for-github-actions.md b/translations/zh-CN/content/billing/managing-billing-for-github-actions/about-billing-for-github-actions.md index 4d398cf069e3..cc4f1864709b 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-actions/about-billing-for-github-actions.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-actions/about-billing-for-github-actions.md @@ -66,7 +66,7 @@ shortTitle: GitHub Actions 的计费 可在用户或组织帐户的所有仓库中同时运行的作业数量取决于您的 GitHub 计划。 更多信息请参阅“[使用限制和计费](/actions/reference/usage-limits-billing-and-administration)”(对于 {% data variables.product.prodname_dotcom %} 托管的运行器)和“[关于自托管运行器](/actions/hosting-your-own-runners/about-self-hosted-runners/#usage-limits)”(对于自托管运行器使用限制)。 -{% data reusables.user_settings.context_switcher %} +{% data reusables.user-settings.context_switcher %} ## 计算分钟和存储支出 @@ -76,15 +76,15 @@ shortTitle: GitHub Actions 的计费 ### 样品分钟数成本计算 -For example, if your organization uses {% data variables.product.prodname_team %} and allows unlimited spending, using 5,000 minutes could have a total storage and minute overage cost of $56 USD, depending on the operating systems used to run jobs. +例如,如果您的组织使用 {% data variables.product.prodname_team %} 并允许无限制支出,则使用 5,000 分钟可能会产生 56 美元的总存储空间和分钟数超额费用,具体取决于用于运行作业的操作系统。 -- 5,000 (3,000 Linux and 2,000 Windows) minutes = $56 USD ($24 USD + $32 USD). - - 3,000 Linux minutes at $0.008 USD per minute = $24 USD. - - 2,000 Windows minutes at $0.016 USD per minute = $32 USD. +- 5,000(3,000 Linux 加 2,000 Windows)分钟 = $56 ($24 + $32)。 + - 3,000 Linux 分钟(每分钟 $0.008)= $24。 + - 2,000 Windows 分钟(每分钟 $0.016)= $32。 {% data variables.product.prodname_dotcom %} 根据每个月的小时用量计算该月的存储使用量。 -### Sample storage cost calculation +### 样品存储成本计算 例如,如果您在 3 月的 10 天中使用了 3 GB 的存储量,在 3 月的 21 天中使用了 12 GB 的存储量,则您的存储使用量为: diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-actions/managing-your-spending-limit-for-github-actions.md b/translations/zh-CN/content/billing/managing-billing-for-github-actions/managing-your-spending-limit-for-github-actions.md index 99358a27efec..a367668018e0 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-actions/managing-your-spending-limit-for-github-actions.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-actions/managing-your-spending-limit-for-github-actions.md @@ -37,8 +37,8 @@ shortTitle: Actions 支出限制 任何人都可管理其用户帐户的 {% data variables.product.prodname_actions %} 支出限额。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.manage-spending-limit %} {% data reusables.dotcom_billing.monthly-spending-limit %} {% data reusables.dotcom_billing.update-spending-limit %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-actions/viewing-your-github-actions-usage.md b/translations/zh-CN/content/billing/managing-billing-for-github-actions/viewing-your-github-actions-usage.md index 027a36eef382..e6a272d49371 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-actions/viewing-your-github-actions-usage.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-actions/viewing-your-github-actions-usage.md @@ -22,8 +22,8 @@ shortTitle: 查看 Actions 使用情况 任何人都可以查看自己用户帐户的 {% data variables.product.prodname_actions %} 使用情况。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.actions-minutes %} {% data reusables.dotcom_billing.actions-packages-storage %} {% data reusables.dotcom_billing.actions-packages-report-download %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md index c310eb7a78e0..d31fa7bb6258 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md @@ -1,5 +1,5 @@ --- -title: Managing billing for GitHub Advanced Security +title: 管理 GitHub Advanced Security 的计费 shortTitle: GitHub Advanced Security intro: '您可以查看和管理 {% data variables.product.prodname_advanced_security %} 许可证上的席位使用。' product: '{% data reusables.gated-features.ghas %}' diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces.md b/translations/zh-CN/content/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces.md index 32a7457745b5..2da1a3e51f8a 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces.md @@ -49,7 +49,7 @@ If you purchased {% data variables.product.prodname_enterprise %} through a Micr {% data reusables.dotcom_billing.monthly-spending-limit %} {% data reusables.dotcom_billing.update-spending-limit %} -## Exporting changes when you have reached your spending limit +## 在达到支出限制时导出更改 {% data reusables.codespaces.exporting-changes %} ## 管理使用和支出限制电子邮件通知 @@ -63,4 +63,4 @@ You can disable these notifications anytime by navigating to the bottom of the * ## 延伸阅读 - "[Restricting access to machine types](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)" -- "[Managing billing for Codespaces in your organization](/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization)" +- "[管理组织中代码空间的计费](/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization)" diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/about-billing-for-github-marketplace.md b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/about-billing-for-github-marketplace.md index fb2ca689998f..d552263caac3 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/about-billing-for-github-marketplace.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/about-billing-for-github-marketplace.md @@ -41,7 +41,7 @@ shortTitle: GitHub Marketplace 的计费 - 如果您有其他付费计划或订阅,则在 14 天免费试用结束后,将立即按照备案的付款方式收取到下一个计费日期剩余的时间所应分摊的费用。 - 如果您有其他付费计划或订阅,则在下个计费日期,您的收据会列出对您的付费 {% data variables.product.prodname_dotcom %} 计划和应用程序订阅收取的费用。 -{% data reusables.user_settings.context_switcher %} +{% data reusables.user-settings.context_switcher %} ## 单元计划限制 diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/canceling-a-github-marketplace-app.md b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/canceling-a-github-marketplace-app.md index 68983776b1ed..3109a2f58905 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/canceling-a-github-marketplace-app.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/canceling-a-github-marketplace-app.md @@ -28,15 +28,15 @@ shortTitle: 取消 Marketplace app ## 取消个人帐户的应用程序 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.marketplace.cancel-app-billing-settings %} {% data reusables.marketplace.cancel-app %} ## 取消个人帐户的应用程序免费试用 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.marketplace.cancel-free-trial-billing-settings %} {% data reusables.marketplace.cancel-app %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/downgrading-the-billing-plan-for-a-github-marketplace-app.md b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/downgrading-the-billing-plan-for-a-github-marketplace-app.md index d10c6dcc717d..9aa8e9bbe45a 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/downgrading-the-billing-plan-for-a-github-marketplace-app.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/downgrading-the-billing-plan-for-a-github-marketplace-app.md @@ -25,8 +25,8 @@ shortTitle: 降级结算方案 ## 降级个人帐户的应用程序 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.marketplace.downgrade-app-billing-settings %} {% data reusables.marketplace.choose-new-plan %} {% data reusables.marketplace.choose-new-quantity %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/upgrading-the-billing-plan-for-a-github-marketplace-app.md b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/upgrading-the-billing-plan-for-a-github-marketplace-app.md index 8aa67ab9a073..c4b723da37c9 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/upgrading-the-billing-plan-for-a-github-marketplace-app.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-marketplace-apps/upgrading-the-billing-plan-for-a-github-marketplace-app.md @@ -23,8 +23,8 @@ shortTitle: 升级结算方案 ## 升级个人帐户的应用程序 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.marketplace.upgrade-app-billing-settings %} {% data reusables.marketplace.choose-new-plan %} {% data reusables.marketplace.choose-new-quantity %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-packages/about-billing-for-github-packages.md b/translations/zh-CN/content/billing/managing-billing-for-github-packages/about-billing-for-github-packages.md index 3cba501e379e..27867b71cbbe 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-packages/about-billing-for-github-packages.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-packages/about-billing-for-github-packages.md @@ -66,7 +66,7 @@ At the end of the month, {% data variables.product.prodname_dotcom %} rounds you Your {% data variables.product.prodname_registry %} usage shares your account's existing billing date, payment method, and receipt. {% data reusables.dotcom_billing.view-all-subscriptions %} -{% data reusables.user_settings.context_switcher %} +{% data reusables.user-settings.context_switcher %} ## About spending limits diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-packages/managing-your-spending-limit-for-github-packages.md b/translations/zh-CN/content/billing/managing-billing-for-github-packages/managing-your-spending-limit-for-github-packages.md index 131c913602c5..20144f40f7ba 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-packages/managing-your-spending-limit-for-github-packages.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-packages/managing-your-spending-limit-for-github-packages.md @@ -38,8 +38,8 @@ shortTitle: 您的支出限制 任何人都可管理其用户帐户的 {% data variables.product.prodname_registry %} 支出限额。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.manage-spending-limit %} {% data reusables.dotcom_billing.monthly-spending-limit %} {% data reusables.dotcom_billing.update-spending-limit %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-packages/viewing-your-github-packages-usage.md b/translations/zh-CN/content/billing/managing-billing-for-github-packages/viewing-your-github-packages-usage.md index e47a9f2e2594..8acd686c4fd6 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-packages/viewing-your-github-packages-usage.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-packages/viewing-your-github-packages-usage.md @@ -21,8 +21,8 @@ shortTitle: 查看使用情况 任何人都可以查看自己用户帐户的 {% data variables.product.prodname_registry %} 使用情况。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.packages-data %} {% data reusables.dotcom_billing.actions-packages-storage %} {% data reusables.dotcom_billing.actions-packages-report-download %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/about-billing-for-github-sponsors.md b/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/about-billing-for-github-sponsors.md index b3204acaaccf..b04ef5b37876 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/about-billing-for-github-sponsors.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/about-billing-for-github-sponsors.md @@ -20,7 +20,7 @@ shortTitle: 关于计费 {% data reusables.dotcom_billing.view-all-subscriptions %} -{% data reusables.user_settings.context_switcher %} +{% data reusables.user-settings.context_switcher %} ## 延伸阅读 diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/downgrading-a-sponsorship.md b/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/downgrading-a-sponsorship.md index 48673119b029..4a3a758cd767 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/downgrading-a-sponsorship.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-sponsors/downgrading-a-sponsorship.md @@ -31,8 +31,8 @@ topics: ## 取消赞助 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.sponsors.billing-switcher %} 3. 在“{% data variables.product.prodname_sponsors %}”下的被赞助开源贡献者右侧,单击被赞助帐户旁边的 {% octicon "triangle-down" aria-label="The down triangle octicon" %},然后单击 **Cancel sponsorship(取消赞助)**。 ![取消赞助按钮](/assets/images/help/billing/edit-sponsor-billing.png) 4. 审查有关取消赞助的信息,然后单击 **OK(确定)**。 ![取消确认框](/assets/images/help/billing/confirm-sponsorship-cancellation.png) diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-github-accounts.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-github-accounts.md index f3dbcf61c4ce..e3ef140a2a9c 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-github-accounts.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-github-accounts.md @@ -24,7 +24,7 @@ topics: shortTitle: 关于计费 --- -For more information about the products available for your account, see "[{% data variables.product.prodname_dotcom %}'s products](/articles/github-s-products)." 您可以在 <{% data variables.product.pricing_url %}> 上查看每款产品的价格和完整功能列表。 {% data variables.product.product_name %} 不提供自定义产品或订阅。 +有关可用于您帐户的产品的更多信息,请参阅“[{% data variables.product.prodname_dotcom %} 的产品](/articles/github-s-products)”。 您可以在 <{% data variables.product.pricing_url %}> 上查看每款产品的价格和完整功能列表。 {% data variables.product.product_name %} 不提供自定义产品或订阅。 您可以选择月度或年度计费,也可以随时升级或降级订阅。 更多信息请参阅“[管理您的 {% data variables.product.prodname_dotcom %} 帐户的计费](/articles/managing-billing-for-your-github-account)”。 @@ -32,7 +32,7 @@ For more information about the products available for your account, see "[{% dat {% data reusables.accounts.accounts-billed-separately %} -{% data reusables.user_settings.context_switcher %} +{% data reusables.user-settings.context_switcher %} {% tip %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md index 9b3ff7437ea8..9dabd4a4e85b 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md @@ -1,6 +1,6 @@ --- title: About billing for your enterprise -intro: 您可以查看企业的帐单信息。 +intro: 'You can view billing information for your enterprise{% ifversion ghec or ghes %} account on {% data variables.product.prodname_dotcom_the_website %}{% endif %}.' redirect_from: - /admin/overview/managing-billing-for-your-enterprise - /enterprise/admin/installation/managing-billing-for-github-enterprise @@ -53,17 +53,19 @@ Each user on {% data variables.product.product_location %} consumes a seat on yo {% endif %} -{% data reusables.billing.about-invoices-for-enterprises %} For more information about usage and invoices, see "[Viewing the subscription and usage for your enterprise account](/billing/managing-billing-for-your-github-account/viewing-the-subscription-and-usage-for-your-enterprise-account)" and {% ifversion ghes %}"[Managing invoices for your enterprise](/enterprise-cloud@latest/billing/managing-billing-for-your-github-account/managing-invoices-for-your-enterprise)" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% elsif ghec %}"[Managing invoices for your enterprise](/billing/managing-billing-for-your-github-account/managing-invoices-for-your-enterprise)."{% endif %} +{% data reusables.billing.about-invoices-for-enterprises %} For more information about {% ifversion ghes %}licensing, usage, and invoices{% elsif ghec %}usage and invoices{% endif %}, see the following{% ifversion ghes %} in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}.{% endif %} -Administrators for your enterprise account on {% data variables.product.prodname_dotcom_the_website %} can access and manage billing for the enterprise. +{%- ifversion ghes %} +- “[关于每用户定价](/enterprise-cloud@latest/billing/managing-billing-for-your-github-account/about-per-user-pricing)” +{%- endif %} +- "[Viewing the subscription and usage for your enterprise account]({% ifversion ghes %}/enterprise-cloud@latest{% endif %}/billing/managing-billing-for-your-github-account/viewing-the-subscription-and-usage-for-your-enterprise-account)" +- "[Managing invoices for your enterprise]({% ifversion ghes %}/enterprise-cloud@latest{% endif %}/billing/managing-billing-for-your-github-account/managing-invoices-for-your-enterprise)" -{% ifversion ghec %} - -Each member of your enterprise account with a unique email address consumes a license. Billing managers do not consume a license. Each outside collaborator on a private repository that an organization in your enterprise owns consumes a license, unless the private repository is a fork. Each invitee to your enterprise account, including owners, members of organizations, and outside collaborators, consume a license. For more information about roles in an enterprise account, see "[Roles in an enterprise](/github/setting-up-and-managing-your-enterprise/managing-users-in-your-enterprise/roles-in-an-enterprise)" and "[Inviting people to manage your enterprise](/admin/user-management/managing-users-in-your-enterprise/inviting-people-to-manage-your-enterprise)." +Administrators for your enterprise account on {% data variables.product.prodname_dotcom_the_website %} can access and manage billing for the enterprise. For more information, see "[Roles in an enterprise]({% ifversion ghes %}/enterprise-cloud@latest{% endif %}/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise){% ifversion ghec %}."{% elsif ghes %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% endif %} {% ifversion ghec %} + {% data reusables.enterprise-accounts.billing-microsoft-ea-overview %} For more information, see "[Connecting an Azure subscription to your enterprise](/billing/managing-billing-for-your-github-account/connecting-an-azure-subscription-to-your-enterprise)." -{% endif %} {% endif %} @@ -73,6 +75,20 @@ Each member of your enterprise account with a unique email address consumes a li {% endif %} +{% ifversion ghec %} + +## Per-user pricing + +{% data variables.product.company_short %} bills for services consumed on {% data variables.product.prodname_dotcom_the_website %}, each user for deployments of {% data variables.product.prodname_ghe_server %}, and each member of organizations on {% data variables.product.prodname_ghe_cloud %}. For more information about per-user pricing, see "[About per-user pricing](/billing/managing-billing-for-your-github-account/about-per-user-pricing)." + +{% data reusables.billing.per-user-pricing-reference %} + +For more information about roles, see "[Roles in an enterprise](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise)" or "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)." + +有关外部协作者的详细信息,请参阅“[将外部协作者添加到组织中的仓库](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization)”。 + +{% endif %} + ## About synchronization of license usage {% data reusables.enterprise.about-deployment-methods %} diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-per-user-pricing.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-per-user-pricing.md index a19ac108c489..c2719e5a9847 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-per-user-pricing.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-per-user-pricing.md @@ -1,6 +1,6 @@ --- title: 关于每用户定价 -intro: 通过每用户定价,组织根据团队规模付款,以访问团队高级协作和管理工具,并选择性访问安全、合规和部署控件。 +intro: '通过每用户定价,组织{% ifversion ghec %}和企业{% endif %}根据团队规模付款,以访问团队高级协作和管理工具,并选择性访问安全、合规和部署控件。' redirect_from: - /github/setting-up-and-managing-billing-and-payments-on-github/about-per-user-pricing - /articles/about-per-user-pricing @@ -10,34 +10,75 @@ versions: ghec: '*' type: overview topics: + - Downgrades + - Enterprise - Licensing - Organizations --- -新组织可以使用 {% data variables.product.prodname_free_team %} 构建公共和开源项目,或者[升级]({% data variables.product.pricing_url %})至采用每用户定价的付费产品。 +## 关于每用户定价 -在 2016 年 5 月 11 日之前使用付费订阅的组织可以选择保留其现有的每仓库计划,或者切换到每用户定价。 如果您的订阅有任何强制性更改,我们会提前十二个月通知您。 有关切换订阅的更多信息,请参阅“[升级 {% data variables.product.prodname_dotcom %} 订阅](/articles/upgrading-your-github-subscription)”。 +{% data variables.product.prodname_dotcom_the_website %} 上的新组织可以使用 {% data variables.product.prodname_free_team %} 构建公共和开源项目,或者升级到按用户定价的付费产品。 更多信息请参阅“[{% data variables.product.company_short %} 的产品](/get-started/learning-about-github/githubs-products)”和“[升级 {% data variables.product.prodname_dotcom %} 订阅](/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription)”。 -有关采用每用户定价的产品的更多信息,请参阅“[{% data variables.product.prodname_dotcom %} 的产品](/articles/githubs-products)”。 +{% ifversion ghec %}每用户定价适用于 {% data variables.product.prodname_dotcom_the_website %} 上属于您的企业的所有组织,以及使用不属于企业的 {% data variables.product.prodname_ghe_cloud %} 的组织。 每个{% elsif fpt %}每用户定价意味着每个{% endif %} 计费周期,{% data variables.product.company_short %} 对组织{% ifversion ghec %}或企业{% endif %}内每个成员或外部协作者收费。 您还需要为尚未接受邀请的每个待处理成员或外部协作者付费。 {% data variables.product.company_short %} 不向具有帐单管理员角色的成员收费{% ifversion ghec %},也不向不是企业中至少一个组织的成员的企业所有者收费{% endif %}。 更多信息请参阅{% ifversion ghec %}“[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise)”或{% endif %}{% ifversion fpt or ghec %}“[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)”。{% endif %} -## 我的组织需要多少许可? +出于计费目的, {% data variables.product.company_short %} 对每个 {% ifversion ghec %}成员或{% endif %}外部协作者计数一次,即使此人在企业中的多个组织中具有{% ifversion ghec %}企业中多个组织的成员身份或{% endif %}对组织拥有的多个存储库具有访问权限也是如此。 -组织所有者和成员各占一个许可。 如果已发送待处理邀请给潜在组织成员,邀请会占一个许可。 {% data reusables.organizations.org-invite-scim %} +有关外部协作者的详细信息,请参阅“[将外部协作者添加到组织中的仓库](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization)”。 -外部协作者和自动程序帐户如有获得私有仓库访问权限,将计入组织的付费许可总数。 +{% ifversion ghec %} -## 如何添加或降级组织的付费许可? +如果您部署 {% data variables.product.prodname_ghe_server %},则您的使用量包括实例上每个用户的许可证。 有关 {% data variables.product.prodname_ghe_cloud %} 的其他服务和计费的详细信息,请参阅“[关于企业的计费](/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise)”。 -您可随时为组织添加付费许可。 如果您付费的许可数超过使用的许可数,也可以从组织删除付费的许可。 更多信息请参阅“[升级 {% data variables.product.prodname_dotcom %} 订阅](/articles/upgrading-your-github-subscription)”和“[降级 {% data variables.product.prodname_dotcom %} 订阅](/articles/downgrading-your-github-subscription)”。 +{% elsif fpt %} -如果对组织的订阅有任何疑问,请联系 {% data variables.contact.contact_support %}。 +在 2016 年 5 月 11 日之前使用付费订阅的组织可以选择保留其现有的每仓库计划,或者切换到每用户定价。 {% data variables.product.company_short %} 将在您的订阅发生任何必要更改之前的 12 个月通知您。 有关切换订阅的更多信息,请参阅“[升级 {% data variables.product.prodname_dotcom %} 订阅](/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription)”。 -## 如果我们的组织保持每仓库计划,我能否升级或降级到不同的每仓库计划? +{% endif %} -您可以在组织的帐单设置中升级或降级旧付费计划。 在升级到私有仓库更多的计划时,我们会立即将您的帐户移至新计划,并且在结算周期剩余的天数以不同的价格为您计费。 +## 每用户定价概述 + +{% data reusables.billing.per-user-pricing-reference %} + +## 关于对订阅的更改 + +{% ifversion fpt %} + +您可以随时更改 {% data variables.product.prodname_dotcom %} 订阅。 + +### 关于每用户计划中组织的更改 + +{% endif %} + +您可以随时向组织{% ifversion ghec %} 或企业{% endif %} 添加更多用户。 如果您支付的用户数多于当前活跃的用户,也可以减少付费用户的数量。{% ifversion fpt %} 更多信息请参阅“[升级 {% data variables.product.prodname_dotcom %} 订阅](/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription)”和“[降级 {% data variables.product.prodname_dotcom %} 订阅](/billing/managing-billing-for-your-github-account/downgrading-your-github-subscription)”。 + +如果对您的订阅有任何疑问,请联系 {% data variables.contact.contact_support %}。 + +为了进一步支持团队的协作能力,您可以升级到 {% data variables.product.prodname_ghe_cloud %},其中包括受保护的分支机构和私有仓库的代码所有者等功能。 {% data reusables.enterprise.link-to-ghec-trial %} + +有关 {% data variables.product.prodname_ghe_cloud %} 的每用户定价的详细信息,请参阅 [{% data variables.product.prodname_ghe_cloud %} 文档](/enterprise-cloud@latest/billing/managing-billing-for-your-github-account/about-per-user-pricing)。 + +{% elsif ghec %} + +如果您在 {% data variables.product.prodname_dotcom_the_website %} 上使用企业帐户,但对订阅的更改有疑问,请联系 {% data variables.contact.contact_enterprise_sales %}。 + +如果您在 {% data variables.product.prodname_ghe_cloud %} 上使用单个组织,则可以升级或降级您的订阅。 更多信息请参阅“[升级 {% data variables.product.prodname_dotcom %} 订阅](/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription)”或“[降级 {% data variables.product.prodname_dotcom %} 订阅](/billing/managing-billing-for-your-github-account/downgrading-your-github-subscription)”。 如果对您的订阅有任何疑问,请联系 {% data variables.contact.contact_support %}。 + +{% endif %} + +{% ifversion fpt %} + +### 关于每存储库计划中组织的更改 + +您可以在组织的帐单设置中升级或降级旧付费计划。 当您升级到具有更多私有存储库的计划时, {% data variables.product.company_short %} 会立即将您的帐户移动到新计划,按价格差额向您收取费用,并根据结算周期剩余的天数按比例分配。 在降级至私有仓库更少的旧付费计划时,您的新计划将在下一个帐单日期生效。 如果私有仓库多于新计划允许的数量,则当新计划生效时,您的私有仓库将被锁定。 要减少私有仓库的数量,可以将一些私有仓库设为公共,或者在本地克隆私有仓库,并删除 {% data variables.product.prodname_dotcom %} 上的副本。 +{% endif %} + ## 延伸阅读 -- "[升级或降级对结算过程有何影响?](/articles/how-does-upgrading-or-downgrading-affect-the-billing-process)" +{%- ifversion ghec %} +- “[关于企业帐户](/admin/overview/about-enterprise-accounts)” +{%- endif %} +- "[关于仓库](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility)" diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/connecting-an-azure-subscription-to-your-enterprise.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/connecting-an-azure-subscription-to-your-enterprise.md index e5c16d9eda4e..169f69d6a421 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/connecting-an-azure-subscription-to-your-enterprise.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/connecting-an-azure-subscription-to-your-enterprise.md @@ -28,6 +28,12 @@ shortTitle: 连接 Azure 订阅 1. 要登录到您的 Microsoft 帐户,请按照提示执行。 1. 查看“请求的权限”提示。 如果您同意条款,请单击 **Accept(接受)**。 1. 在“Select a subscription(选择订阅)”下,选择您想要连接到企业的 Azure 订阅 ID。 + + {% note %} + + **Note:** {% data variables.product.company_short %}'s Subscription Permission Validation requests read-only access to display the list of available subscriptions. To select an Azure subscription, you must have owner permissions to the subscription. If the default tenant does not have the right permissions, you may need to specify a different tenant ID. For more information, see [Microsoft identity platform and OAuth 2.0 authorization code flow](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code) in Microsoft Docs. + + {% endnote %} 1. 单击 **Connect(连接)**。 ## 从企业帐户断开您的 Azure 订阅 diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/downgrading-your-github-subscription.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/downgrading-your-github-subscription.md index 405b2f74aa57..46a36be1d0c4 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/downgrading-your-github-subscription.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/downgrading-your-github-subscription.md @@ -37,8 +37,8 @@ shortTitle: 降级订阅 如果您将您的用户帐户从 {% data variables.product.prodname_pro %} 降级为 {% data variables.product.prodname_free_user %},该帐户将失去对私有仓库中高级代码审查工具的访问权限。 {% data reusables.gated-features.more-info %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} 1. 在“Current plan(当前计划)”下,使用 **Edit(编辑)**下拉菜单并单击 **Downgrade to Free(降级到免费 )**。 ![降级到免费按钮](/assets/images/help/billing/downgrade-to-free.png) 5. 阅读有关信息,了解您的用户帐户在下一个结算日期将不再拥有访问权限的功能,然后单击 **I understand. Continue with downgrade(我明白。继续降级)**。 ![继续降级按钮](/assets/images/help/billing/continue-with-downgrade.png) diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md index fe8d48392964..e1b7c5221c24 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md @@ -1,6 +1,6 @@ --- -title: 管理 GitHub 帐户的计费 -shortTitle: 您的 GitHub 帐户 +title: Managing billing for your GitHub account +shortTitle: Your GitHub account intro: '{% ifversion fpt %}{% data variables.product.product_name %} offers free and paid products for every account. You can upgrade, downgrade, and view pending changes to your account''s subscription at any time.{% elsif ghec or ghes or ghae %}You can manage billing for {% data variables.product.product_name %}{% ifversion ghae %}.{% elsif ghec or ghes %} from your enterprise account on {% data variables.product.prodname_dotcom_the_website %}.{% endif %}{% endif %}' redirect_from: - /github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-your-github-account @@ -29,6 +29,6 @@ children: - /managing-invoices-for-your-enterprise - /connecting-an-azure-subscription-to-your-enterprise - /how-does-upgrading-or-downgrading-affect-the-billing-process + - /one-time-payments-for-customers-in-india - /discounted-subscriptions-for-github-accounts --- - diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/managing-invoices-for-your-enterprise.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/managing-invoices-for-your-enterprise.md index 0d8db709e49e..14023f6a42f7 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/managing-invoices-for-your-enterprise.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/managing-invoices-for-your-enterprise.md @@ -1,7 +1,7 @@ --- -title: Managing invoices for your enterprise -shortTitle: Manage invoices -intro: 'You can view, pay, or download a current invoice for your enterprise, and you can view your payment history.' +title: 管理企业的发票 +shortTitle: 管理发票 +intro: 您可以查看、支付或下载企业的当前发票,也可以查看付款历史记录。 versions: ghec: '*' type: how_to @@ -10,11 +10,11 @@ topics: - Licensing --- -## About invoices for your enterprise +## 关于企业的发票 -{% data reusables.billing.about-invoices-for-enterprises %} For more information, see "[About billing for your enterprise](/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise)." +{% data reusables.billing.about-invoices-for-enterprises %} 更多信息请参阅“[关于企业的计费](/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise)”。 -For more information about viewing the subscription and usage for your enterprise account, see "[Viewing the subscription and usage for your enterprise account](/billing/managing-billing-for-your-github-account/viewing-the-subscription-and-usage-for-your-enterprise-account)." +有关查看企业帐户的订阅和使用情况的详细信息,请参阅“[查看企业帐户的订阅和使用情况](/billing/managing-billing-for-your-github-account/viewing-the-subscription-and-usage-for-your-enterprise-account)”。 {% data reusables.billing.ghes-with-no-enterprise-account %} @@ -23,7 +23,7 @@ For more information about viewing the subscription and usage for your enterpris {% data reusables.enterprise-accounts.access-enterprise-on-dotcom %} {% data reusables.enterprise-accounts.settings-tab %} {% data reusables.enterprise-accounts.billing-tab %} -4. Under "Current Invoice", click **View invoice**. ![查看发票链接](/assets/images/help/business-accounts/view-invoice-link.png) +4. 在“Current Invoice(当前发票)”下,点击 **View invoice(查看发票)**。 ![查看发票链接](/assets/images/help/business-accounts/view-invoice-link.png) ## 支付当前发票 diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/one-time-payments-for-customers-in-india.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/one-time-payments-for-customers-in-india.md new file mode 100644 index 000000000000..1d3af722b28e --- /dev/null +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/one-time-payments-for-customers-in-india.md @@ -0,0 +1,65 @@ +--- +title: One-time payments for customers in India +intro: Customers in India who have been impacted by the Reserve Bank of India's recurring payment regulation can now make one-time payments for their GitHub subscriptions and services. +redirect_from: + - /early-access/billing/india-rbi-regulation +versions: + fpt: '*' + ghec: '*' +topics: + - Billing + - Sponsors + - Policy +shortTitle: India one-time payments +--- + + +## About the Reserve Bank of India's recurring payments regulation + +A new payments regulation from the Reserve Bank of India (RBI) recently came into effect. This regulation places additional requirements on recurring online transactions and has prevented some {% data variables.product.company_short %} customers in India from making recurring payments. Customers using payment methods issued in India for any recurring transactions on {% data variables.product.product_name %} may find that their payments are declined by their banks or card issuers. For more information, see [the RBI's press release](https://www.rbi.org.in/Scripts/BS_PressReleaseDisplay.aspx?prid=51353). + +The regulation applies to all recurring transactions, including: +- {% data variables.product.prodname_dotcom %} plan subscriptions (Pro, Team, Enterprise) +- {% data variables.product.prodname_marketplace %} purchases +- {% data variables.product.prodname_sponsors %} transactions +- Git Large File Storage purchases +- {% data variables.product.prodname_actions %}, {% data variables.product.prodname_registry %}, and {% data variables.product.prodname_codespaces %} consumption + +In order to minimize disruption, recurring payments for our affected customers were paused on October 29th, 2021. Paid features and services have remained available to customers impacted by the RBI regulation. + +## About one-time payments on {% data variables.product.company_short %} + +As we work with our payment gateway provider to meet the new requirements, we are providing a temporary one-time payment option for impacted customers in India. From February 15th 2022, {% data variables.product.company_short %} customers in India who have been affected by the new RBI regulation will be able to make one-time payments on their regular billing cycle cadence. + +### For customers on monthly billing + +Customers on monthly billing plans will be able to make a one-time payment on the same day their billing cycle usually renews. For example, if you're usually billed on the 7th of each month, you will now be able to make a one-time payment from your account from the 7th of each month. Your first one-time payment will also include any accrued usage from October 2021 onwards. + +If you are currently billed monthly, and would like to switch to yearly billing, you can reduce the frequency of your one-time payments. For more information, see "[Changing the duration of your billing cycle](/en/billing/managing-your-github-billing-settings/changing-the-duration-of-your-billing-cycle)." + +### For customers on yearly billing + +If you are billed yearly, and your renewal date was between October 1st, 2021 and February 14th, 2022, you will be able to make a one-time payment for your annual subscriptions from February 15th. This initial payment will include the prorated outstanding cost of your subscription for the period since your previous billing cycle ended. + +If your billing cycle is due to renew after February 15th, we will attempt to take the recurring payment. If the payment attempt is declined, you will then be able to make a one-time payment through your account's billing page. + +In the meantime, we are actively working with our payment partners to restore recurring payments for impacted customers. For more information or questions, you can contact [GitHub Support](https://support.github.com/contact). + +### Impact to {% data variables.product.prodname_sponsors %} + +Existing sponsorships will remain in place during this period and maintainers will continue to be paid out as expected. Payments for the accrued sponsorship amounts from the funding account will be collected at the same time as other accrued charges. + +## Making a one-time payment for a GitHub subscription + +{% note %} + +**Note**: Affected customers will receive an email notification with a link to their billing settings when payment is due. Two further reminder emails will be sent 7 and 14 days later if payment has not been made. After 14 days, paid features and services will be locked until payment is made. + +{% endnote %} + +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} +3. At the top of the page, click **Pay now**. ![One-time payment pay now button](/assets/images/help/billing/pay-now-button.png) +4. Review your billing and payment information. If you need to make an edit, click **Edit** next to the relevant section. Otherwise, click **Submit payment**. ![One-time payment summary](/assets/images/help/billing/payment-summary.png) +5. Optionally, if you clicked **Edit**, make any necessary changes, and then click **Submit payment**. ![One-time payment edit summary](/assets/images/help/billing/payment-summary-edit.png) +6. Once payment for the current billing cycle has been successfully made, the **Pay now** button on your "Billing & plans" page will be disabled until your next payment is due. ![One-time payment pay now button disabled](/assets/images/help/billing/pay-now-button-disabled.png) diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription.md index 779d674db19a..7e8c2a9b1de8 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/upgrading-your-github-subscription.md @@ -1,5 +1,5 @@ --- -title: 升级 GitHub 订阅 +title: Upgrading your GitHub subscription intro: 'You can upgrade the subscription for any type of account on {% data variables.product.product_location %} at any time.' miniTocMaxHeadingLevel: 3 redirect_from: @@ -29,7 +29,7 @@ topics: - Troubleshooting - Upgrades - User account -shortTitle: 升级订阅 +shortTitle: Upgrade your subscription --- ## About subscription upgrades @@ -38,14 +38,15 @@ shortTitle: 升级订阅 When you upgrade the subscription for an account, the upgrade changes the paid features available for that account only, and not any other accounts you use. -## 升级个人帐户的订阅 +## Upgrading your personal account's subscription You can upgrade your personal account from {% data variables.product.prodname_free_user %} to {% data variables.product.prodname_pro %} to get advanced code review tools on private repositories owned by your user account. Upgrading your personal account does not affect any organizations you may manage or repositories owned by those organizations. {% data reusables.gated-features.more-info %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} -1. 在“Current plan(当前计划)”旁边,单击 **Upgrade(升级)**。 ![升级按钮](/assets/images/help/billing/settings_billing_user_upgrade.png) -2. 在“Compare plans(比较计划)”页面的 "Pro" 下,单击 **Upgrade to Pro(升级到 Pro)**。 +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} +1. Next to "Current plan", click **Upgrade**. + ![Upgrade button](/assets/images/help/billing/settings_billing_user_upgrade.png) +2. Under "Pro" on the "Compare plans" page, click **Upgrade to Pro**. {% data reusables.dotcom_billing.choose-monthly-or-yearly-billing %} {% data reusables.dotcom_billing.show-plan-details %} {% data reusables.dotcom_billing.enter-billing-info %} @@ -56,9 +57,9 @@ You can upgrade your personal account from {% data variables.product.prodname_fr You can upgrade your organization's subscription to a different product, add seats to your existing product, or switch from per-repository to per-user pricing. -### 升级组织的订阅 +### Upgrading your organization's subscription -您可以将组织从 {% data variables.product.prodname_free_team %} 升级到 {% data variables.product.prodname_team %},以访问团队的高级协作和管理工具,也可以将组织升级到 {% data variables.product.prodname_ghe_cloud %} 以使用更多的安全性、合规性和部署控件。 Upgrading an organization does not affect your personal account or repositories owned by your personal account. {% data reusables.gated-features.more-info-org-products %} +You can upgrade your organization from {% data variables.product.prodname_free_team %} for an organization to {% data variables.product.prodname_team %} to access advanced collaboration and management tools for teams, or upgrade your organization to {% data variables.product.prodname_ghe_cloud %} for additional security, compliance, and deployment controls. Upgrading an organization does not affect your personal account or repositories owned by your personal account. {% data reusables.gated-features.more-info-org-products %} {% data reusables.dotcom_billing.org-billing-perms %} @@ -71,39 +72,41 @@ You can upgrade your organization's subscription to a different product, add sea {% data reusables.dotcom_billing.owned_by_business %} {% data reusables.dotcom_billing.finish_upgrade %} -### 使用 {% data variables.product.prodname_ghe_cloud %} 的组织的后续步骤 +### Next steps for organizations using {% data variables.product.prodname_ghe_cloud %} -如果您已将组织升级到 {% data variables.product.prodname_ghe_cloud %},便可设置组织的身份和访问管理。 For more information, see "[Managing SAML single sign-on for your organization](/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} +If you upgraded your organization to {% data variables.product.prodname_ghe_cloud %}, you can set up identity and access management for your organization. For more information, see "[Managing SAML single sign-on for your organization](/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} -如果想要将企业帐户与 {% data variables.product.prodname_ghe_cloud %} 一起使用,请联系 {% data variables.contact.contact_enterprise_sales %}。 For more information, see "[About enterprise accounts](/enterprise-cloud@latest/admin/overview/about-enterprise-accounts){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} +If you'd like to use an enterprise account with {% data variables.product.prodname_ghe_cloud %}, contact {% data variables.contact.contact_enterprise_sales %}. For more information, see "[About enterprise accounts](/enterprise-cloud@latest/admin/overview/about-enterprise-accounts){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} -### 将席位添加到您的组织 +### Adding seats to your organization -如果希望其他用户能够访问您 {% data variables.product.prodname_team %} 组织的私有仓库,您可以随时购买更多席位。 +If you'd like additional users to have access to your {% data variables.product.prodname_team %} organization's private repositories, you can purchase more seats anytime. {% data reusables.organizations.billing-settings %} {% data reusables.dotcom_billing.add-seats %} {% data reusables.dotcom_billing.number-of-seats %} {% data reusables.dotcom_billing.confirm-add-seats %} -### 将组织从按仓库定价切换为按用户定价 +### Switching your organization from per-repository to per-user pricing -{% data reusables.dotcom_billing.switch-legacy-billing %} 更多信息请参阅“[关于每用户定价](/articles/about-per-user-pricing)”。 +{% data reusables.dotcom_billing.switch-legacy-billing %} For more information, see "[About per-user pricing](/articles/about-per-user-pricing)." {% data reusables.organizations.billing-settings %} -5. 在计划名称的右侧,使用 **Edit(编辑)**下拉菜单,然后选择 **Edit plan(编辑计划)**。 ![编辑下拉菜单](/assets/images/help/billing/per-user-upgrade-button.png) -6. 在“Advanced tools for teams(团队的高级工具)”右侧,单击 **Upgrade now(立即升级)**。 ![立即升级按钮](/assets/images/help/billing/per-user-upgrade-now-button.png) +5. To the right of your plan name, use the **Edit** drop-down menu, and select **Edit plan**. + ![Edit drop-down menu](/assets/images/help/billing/per-user-upgrade-button.png) +6. To the right of "Advanced tools for teams", click **Upgrade now**. + ![Upgrade now button](/assets/images/help/billing/per-user-upgrade-now-button.png) {% data reusables.dotcom_billing.choose_org_plan %} {% data reusables.dotcom_billing.choose-monthly-or-yearly-billing %} {% data reusables.dotcom_billing.owned_by_business %} {% data reusables.dotcom_billing.finish_upgrade %} -## 升级时对 500 错误进行故障排除 +## Troubleshooting a 500 error when upgrading {% data reusables.dotcom_billing.500-error %} -## 延伸阅读 +## Further reading -- “[{% data variables.product.prodname_dotcom %} 的产品](/articles/github-s-products)” -- "[升级或降级对结算过程有何影响?](/articles/how-does-upgrading-or-downgrading-affect-the-billing-process)" -- “[关于 {% data variables.product.prodname_dotcom %} 的计费](/articles/about-billing-on-github)” +- "[{% data variables.product.prodname_dotcom %}'s products](/articles/github-s-products)" +- "[How does upgrading or downgrading affect the billing process?](/articles/how-does-upgrading-or-downgrading-affect-the-billing-process)" +- "[About billing on {% data variables.product.prodname_dotcom %}](/articles/about-billing-on-github)." diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/viewing-and-managing-pending-changes-to-your-subscription.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/viewing-and-managing-pending-changes-to-your-subscription.md index f7c49ff9dc9e..3388f96a5d0c 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/viewing-and-managing-pending-changes-to-your-subscription.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/viewing-and-managing-pending-changes-to-your-subscription.md @@ -24,8 +24,8 @@ shortTitle: 待定订阅更改 ## 查看和管理对个人帐户订阅的待定更改 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.review-pending-changes %} {% data reusables.dotcom_billing.cancel-pending-changes %} {% data reusables.dotcom_billing.confirm-cancel-pending-changes %} diff --git a/translations/zh-CN/content/billing/managing-your-github-billing-settings/about-billing-on-github.md b/translations/zh-CN/content/billing/managing-your-github-billing-settings/about-billing-on-github.md index 355ecead5900..8782f0c05b2b 100644 --- a/translations/zh-CN/content/billing/managing-your-github-billing-settings/about-billing-on-github.md +++ b/translations/zh-CN/content/billing/managing-your-github-billing-settings/about-billing-on-github.md @@ -33,10 +33,10 @@ topics: 如果您是组织或企业所有者,您可以使用设置中的上下文切换器在不同帐户的设置之间切换。 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 1. 在页面顶部用户名的右侧,单击 **Switch to another account(切换到另一个帐户)**。 ![上下文切换器按钮](/assets/images/help/settings/context-switcher-button.png) 1. 开始键入要切换到的帐户名称,然后单击帐户的名称。 ![上下文切换器菜单](/assets/images/help/settings/context-switcher-menu.png) -1. In the left sidebar, click **{% octicon "credit-card" aria-label="The credit card icon" %} Billing and plans**. +1. 在左侧边栏中,单击 **{% octicon "credit-card" aria-label="The credit card icon" %} 帐单和计划**。 ## 延伸阅读 diff --git a/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-information-to-your-receipts.md b/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-information-to-your-receipts.md index c38ca6cb65b5..b4da3603c323 100644 --- a/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-information-to-your-receipts.md +++ b/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-information-to-your-receipts.md @@ -34,9 +34,9 @@ shortTitle: 添加到收据中 ## 添加信息到个人帐户的收据 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} -{% data reusables.user_settings.payment-info-link %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} +{% data reusables.user-settings.payment-info-link %} {% data reusables.dotcom_billing.extra_info_receipt %} ## 添加信息到组织的收据 @@ -49,5 +49,5 @@ shortTitle: 添加到收据中 {% data reusables.organizations.billing-settings %} -{% data reusables.user_settings.payment-info-link %} +{% data reusables.user-settings.payment-info-link %} {% data reusables.dotcom_billing.extra_info_receipt %} diff --git a/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-or-editing-a-payment-method.md b/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-or-editing-a-payment-method.md index 876e2c4710c0..ea1fd74fb941 100644 --- a/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-or-editing-a-payment-method.md +++ b/translations/zh-CN/content/billing/managing-your-github-billing-settings/adding-or-editing-a-payment-method.md @@ -33,11 +33,11 @@ shortTitle: 管理付款方式 ## 更新个人帐户的付款方式 -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.update_payment_method %} -1. If your account has existing billing information that you want to update, click **Edit**. ![计费新卡按钮](/assets/images/help/billing/billing-information-edit-button.png) +1. 如果您的帐户包含要更新的现有帐单信息,请单击 **Edit(编辑)**。 ![计费新卡按钮](/assets/images/help/billing/billing-information-edit-button.png) {% data reusables.dotcom_billing.enter-billing-info %} -1. If your account has an existing payment method that you want to update, click **Edit**. ![计费新卡按钮](/assets/images/help/billing/billing-payment-method-edit-button.png) +1. 如果您的帐户具有要更新的现有付款方式,请单击 **Edit(编辑)**。 ![计费新卡按钮](/assets/images/help/billing/billing-payment-method-edit-button.png) {% data reusables.dotcom_billing.enter-payment-info %} ## 更新组织的付款方式 diff --git a/translations/zh-CN/content/billing/managing-your-github-billing-settings/changing-the-duration-of-your-billing-cycle.md b/translations/zh-CN/content/billing/managing-your-github-billing-settings/changing-the-duration-of-your-billing-cycle.md index 6c940d95109a..69ef2f13194b 100644 --- a/translations/zh-CN/content/billing/managing-your-github-billing-settings/changing-the-duration-of-your-billing-cycle.md +++ b/translations/zh-CN/content/billing/managing-your-github-billing-settings/changing-the-duration-of-your-billing-cycle.md @@ -23,8 +23,8 @@ shortTitle: 结算周期 ## 更改个人帐户结算周期的时长 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.change_plan_duration %} {% data reusables.dotcom_billing.confirm_duration_change %} diff --git a/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-payment-history-and-receipts.md b/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-payment-history-and-receipts.md index e54af49be24f..80f6eb96eefc 100644 --- a/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-payment-history-and-receipts.md +++ b/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-payment-history-and-receipts.md @@ -22,8 +22,8 @@ shortTitle: 查看历史记录和收据 ## 查看个人帐户的收据 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.view-payment-history %} {% data reusables.dotcom_billing.download_receipt %} diff --git a/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-subscriptions-and-billing-date.md b/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-subscriptions-and-billing-date.md index 506f24c547ca..a4a4f391fc9f 100644 --- a/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-subscriptions-and-billing-date.md +++ b/translations/zh-CN/content/billing/managing-your-github-billing-settings/viewing-your-subscriptions-and-billing-date.md @@ -22,8 +22,8 @@ shortTitle: 订阅和计费日期 ## 查找个人帐户的下一个结算日期 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.billing_plans %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.billing_plans %} {% data reusables.dotcom_billing.next_billing_date %} ## 查找组织的下一个结算日期 diff --git a/translations/zh-CN/content/billing/setting-up-paid-organizations-for-procurement-companies/creating-and-paying-for-an-organization-on-behalf-of-a-client.md b/translations/zh-CN/content/billing/setting-up-paid-organizations-for-procurement-companies/creating-and-paying-for-an-organization-on-behalf-of-a-client.md index 20236ad9643e..9022176aa434 100644 --- a/translations/zh-CN/content/billing/setting-up-paid-organizations-for-procurement-companies/creating-and-paying-for-an-organization-on-behalf-of-a-client.md +++ b/translations/zh-CN/content/billing/setting-up-paid-organizations-for-procurement-companies/creating-and-paying-for-an-organization-on-behalf-of-a-client.md @@ -38,8 +38,8 @@ shortTitle: 代表客户 ## 第 2 步:创建组织。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.organizations %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.organizations %} {% data reusables.organizations.new-organization %} 3. 在“Choose a plan(选择计划)”下,单击 **选择 {% data variables.product.prodname_free_team %}**。 您将在下一步升级组织。 {% data reusables.organizations.organization-name %} @@ -71,7 +71,7 @@ shortTitle: 代表客户 ## 第 5 步:邀请客户加入组织 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.invite_member_from_people_tab %} 5. 键入客户的 {% data variables.product.prodname_dotcom %} 用户名,然后按 **Enter** 键。 ![键入客户用户名的字段](/assets/images/help/organizations/org-invite-modal.png) @@ -81,7 +81,7 @@ shortTitle: 代表客户 ## 第 6 步:将组织所有权转让给客户 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 确认您的客户在组织成员名单中,并被授予 *owner(所有者)*角色。 5. 在您的用户名右侧,使用 {% octicon "gear" aria-label="The Settings gear" %} 下拉菜单,单击 **Manage(管理)**。 ![管理访问链接](/assets/images/help/organizations/member-manage-access.png) diff --git a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests.md b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests.md index 8abac897b10a..4ad724494203 100644 --- a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests.md +++ b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests.md @@ -29,44 +29,44 @@ topics: 在仓库中,如果 {% data variables.product.prodname_code_scanning %} 被配置为拉取请求检查,则 {% data variables.product.prodname_code_scanning %} 将检查拉取请求中的代码。 默认情况下,这仅限于针对默认分支的拉取请求,但是您可以在 {% data variables.product.prodname_actions %} 或第三方 CI/CD 系统中更改此配置。 如果合并分支给目标分支带来新的 {% data variables.product.prodname_code_scanning %} 警报,这些警报将在拉取请求中被报告为检查结果。 警报还将在拉取请求的 **Files changed(文件已更改)**选项卡中显示为注释。 如果您拥有仓库的写入权限,您可以在 **Security(安全)**选项卡中查看任何现有的 {% data variables.product.prodname_code_scanning %} 警报。 有关仓库警报的更多信息,请参阅“[管理仓库的 {% data variables.product.prodname_code_scanning %} 警报](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository)”。 {% ifversion fpt or ghes > 3.2 or ghae-issue-5093 or ghec %} -In repositories where {% data variables.product.prodname_code_scanning %} is configured to scan each time code is pushed, {% data variables.product.prodname_code_scanning %} will also map the results to any open pull requests and add the alerts as annotations in the same places as other pull request checks. For more information, see "[Scanning on push](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#scanning-on-push)." +在 {% data variables.product.prodname_code_scanning %} 配置为在每次推送代码时扫描的存储库中,{% data variables.product.prodname_code_scanning %} 还会将结果映射到任何打开的拉取请求,并将警报作为注释添加到与其他拉取请求检查相同的位置。 更多信息请参阅“[在推送时扫描](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#scanning-on-push)”。 {% endif %} -If your pull request targets a protected branch that uses {% data variables.product.prodname_code_scanning %}, and the repository owner has configured required status checks, then the "{% data variables.product.prodname_code_scanning_capc %} results" check must pass before you can merge the pull request. 更多信息请参阅“[关于受保护分支](/github/administering-a-repository/about-protected-branches#require-status-checks-before-merging)”。 +如果拉取请求针对使用 {% data variables.product.prodname_code_scanning %} 的受保护分支,并且存储库所有者已配置所需的状态检查,则“{% data variables.product.prodname_code_scanning_capc %} 结果”检查必须先通过,然后才能合并拉取请求。 更多信息请参阅“[关于受保护分支](/github/administering-a-repository/about-protected-branches#require-status-checks-before-merging)”。 ## 关于 {% data variables.product.prodname_code_scanning %} 作为拉取请求检查 有许多选项可将 {% data variables.product.prodname_code_scanning %} 配置为拉取请求检查,因此每个仓库的确切设置会有所不同,有些仓库还会有多个检查。 -### {% data variables.product.prodname_code_scanning_capc %} results check +### {% data variables.product.prodname_code_scanning_capc %} 结果检查 -For all configurations of {% data variables.product.prodname_code_scanning %}, the check that contains the results of {% data variables.product.prodname_code_scanning %} is: **{% data variables.product.prodname_code_scanning_capc %} results**. The results for each analysis tool used are shown separately. Any new alerts caused by changes in the pull request are shown as annotations. +对于 {% data variables.product.prodname_code_scanning %} 的所有配置,包含 {% data variables.product.prodname_code_scanning %} 结果的检查为:**{% data variables.product.prodname_code_scanning_capc %} 结果**。 所使用的每个分析工具的结果将单独显示。 由拉取请求中的更改引起的任何新警报都显示为注释。 -{% ifversion fpt or ghes > 3.2 or ghae-issue-4902 or ghec %} To see the full set of alerts for the analyzed branch, click **View all branch alerts**. This opens the full alert view where you can filter all the alerts on the branch by type, severity, tag, etc. 更多信息请参阅“[管理仓库的代码扫描警报](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository#filtering-and-searching-for-code-scanning-alerts)”。 +{% ifversion fpt or ghes > 3.2 or ghae-issue-4902 or ghec %} 要查看所分析分支的完整警报集,请单击“**查看所有分支警报**”。 这将打开完整的警报视图,您可以在其中按类型、严重性、标记等筛选分支上的所有警报。 更多信息请参阅“[管理仓库的代码扫描警报](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository#filtering-and-searching-for-code-scanning-alerts)”。 -![{% data variables.product.prodname_code_scanning_capc %} results check on a pull request](/assets/images/help/repository/code-scanning-results-check.png) +![拉取请求的 {% data variables.product.prodname_code_scanning_capc %} 结果检查](/assets/images/help/repository/code-scanning-results-check.png) {% endif %} -### {% data variables.product.prodname_code_scanning_capc %} results check failures +### {% data variables.product.prodname_code_scanning_capc %} 结果检查失败 -If the {% data variables.product.prodname_code_scanning %} results check finds any problems with a severity of `error`{% ifversion fpt or ghes > 3.1 or ghae or ghec %}, `critical`, or `high`,{% endif %} the check fails and the error is reported in the check results. If all the results found by {% data variables.product.prodname_code_scanning %} have lower severities, the alerts are treated as warnings or notes and the check succeeds. +如果 {% data variables.product.prodname_code_scanning %} 结果检查发现严重性为`错误`{% ifversion fpt or ghes > 3.1 or ghae or ghec %}、`严重`或`高`的问题,{% endif %} 检查将失败并在检查结果中报告错误。 如果 {% data variables.product.prodname_code_scanning %} 发现的所有结果的严重性都较低,则警报将被视为警告或通知,检查成功。 ![拉取请求上失败的 {% data variables.product.prodname_code_scanning %} 检查](/assets/images/help/repository/code-scanning-check-failure.png) -{% ifversion fpt or ghes > 3.1 or ghae or ghec %}You can override the default behavior in your repository settings, by specifying the level of severities {% ifversion fpt or ghes > 3.1 or ghae or ghec %}and security severities {% endif %}that will cause a pull request check failure. For more information, see "[Defining the severities causing pull request check failure](/code-security/secure-coding/configuring-code-scanning#defining-the-severities-causing-pull-request-check-failure)". +{% ifversion fpt or ghes > 3.1 or ghae or ghec %}您可以通过指定会导致拉取请求检查失败的严重程度{% ifversion fpt or ghes > 3.1 or ghae or ghec %}和安全严重性{% endif %}来覆盖仓库设置中的默认行为。 更多信息请参阅“[定义导致拉取请求检查失败的严重程度](/code-security/secure-coding/configuring-code-scanning#defining-the-severities-causing-pull-request-check-failure)”。 {% endif %} -### Other {% data variables.product.prodname_code_scanning %} checks +### 其他 {% data variables.product.prodname_code_scanning %} 检查 -Depending on your configuration, you may see additional checks running on pull requests with {% data variables.product.prodname_code_scanning %} configured. These are usually workflows that analyze the code or that upload {% data variables.product.prodname_code_scanning %} results. These checks are useful for troubleshooting when there are problems with the analysis. +根据您的配置,您可能会看到在配置了 {% data variables.product.prodname_code_scanning %} 的拉取请求上运行其他检查。 这些通常是分析代码或上传 {% data variables.product.prodname_code_scanning %} 结果的工作流程。 当分析出现问题时,这些检查对于故障排除非常有用。 -For example, if the repository uses the {% data variables.product.prodname_codeql_workflow %} a **{% data variables.product.prodname_codeql %} / Analyze (LANGUAGE)** check is run for each language before the results check runs. 如果存在配置问题,或者拉取请求中断了分析需要编译的语言(例如 C/C ++、C# 或 Java)的构建,则分析检查可能会失败。 +例如,如果仓库使用 {% data variables.product.prodname_codeql_workflow %},则在结果检查运行之前,将针对每种语言运行 **{% data variables.product.prodname_codeql %} / Analyze (LANGUAGE)** 检查。 如果存在配置问题,或者拉取请求中断了分析需要编译的语言(例如 C/C ++、C# 或 Java)的构建,则分析检查可能会失败。 与其他拉取请求检查一样,您可以在 **Checks(检查)**选项卡上查看检查失败的完整细节。 有关配置和故障排除的详细信息,请参阅“[配置 {% data variables.product.prodname_code_scanning %}](/code-security/secure-coding/configuring-code-scanning)”或“[排查 {% data variables.product.prodname_codeql %} 工作流程故障](/code-security/secure-coding/troubleshooting-the-codeql-workflow)”。 -## Viewing an alert on your pull request +## 查看拉取请求上的警报 -You can see any {% data variables.product.prodname_code_scanning %} alerts introduced in a pull request by displaying the **Files changed** tab. Each alert is shown as an annotation on the lines of code that triggered the alert. The severity of the alert is displayed in the annotation. +您可以通过显示 **Files changed(已更改的文件)**选项卡来查看拉取请求中引入的任何 {% data variables.product.prodname_code_scanning %} 警报。 每个警报都显示为触发警报的代码行上的注释。 警报的严重性显示在注释中。 ![拉取请求差异中的警报注释](/assets/images/help/repository/code-scanning-pr-annotation.png) diff --git a/translations/zh-CN/content/code-security/code-scanning/index.md b/translations/zh-CN/content/code-security/code-scanning/index.md index c33b298179cd..094e8dbf8064 100644 --- a/translations/zh-CN/content/code-security/code-scanning/index.md +++ b/translations/zh-CN/content/code-security/code-scanning/index.md @@ -1,5 +1,5 @@ --- -title: Finding security vulnerabilities and errors in your code with code scanning +title: 通过代码扫描查找代码中的安全漏洞和错误 shortTitle: 代码扫描 intro: '使用{% data variables.product.prodname_code_scanning %}来识别和修复代码中潜在的安全漏洞和其他错误,以确保代码的安全。' product: '{% data reusables.gated-features.code-scanning %}' diff --git a/translations/zh-CN/content/code-security/getting-started/github-security-features.md b/translations/zh-CN/content/code-security/getting-started/github-security-features.md index dd984cf9deba..e997984b3299 100644 --- a/translations/zh-CN/content/code-security/getting-started/github-security-features.md +++ b/translations/zh-CN/content/code-security/getting-started/github-security-features.md @@ -63,7 +63,7 @@ topics: 您可以在仓库的 **Insights(洞察)**选项卡上找到依赖项图。 更多信息请参阅“[关于依赖关系图](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph)”。 {% endif %} -## Available with {% data variables.product.prodname_GH_advanced_security %} +## 通过 {% data variables.product.prodname_GH_advanced_security %} 可用 {% data reusables.advanced-security.ghas-availability %} @@ -73,9 +73,9 @@ topics: ### {% data variables.product.prodname_secret_scanning_caps %} -Automatically detect tokens or credentials that have been checked into a repository. {% ifversion fpt or ghec %}For secrets identified in public repositories, the service is informed that the secret may be compromised.{% endif %} +自动检测已签入存储库的令牌或凭据。 {% ifversion fpt or ghec %}{% data variables.product.prodname_secret_scanning_caps %} 在所有公共存储库中查找泄露的机密,并通知相关服务提供商该机密可能已泄露。 有关支持的机密和服务提供商的详细信息,请参阅“[{% data variables.product.prodname_secret_scanning_caps %} 合作伙伴](/code-security/secret-scanning/secret-scanning-partners)”。{% endif %} {%- ifversion ghec or ghes or ghae %} -{% ifversion ghec %}For private repositories, you can view {% elsif ghes or ghae %}View {% endif %}any secrets that {% data variables.product.company_short %} has found in your code. You should treat tokens or credentials that have been checked into the repository as compromised.{% endif %} For more information, see "[About secret scanning](/github/administering-a-repository/about-secret-scanning)." +{% ifversion ghec %}在私有存储库中,可以查看 {% elsif ghes or ghae %}可以查看{% endif %} {% data variables.product.company_short %} 在代码中找到的任何机密。 应将已签入存储库的令牌或凭据视为已泄露。{% endif %} 更多信息请参阅“[关于秘密扫描](/github/administering-a-repository/about-secret-scanning)”。 {% ifversion fpt or ghes > 3.1 or ghae-issue-4864 or ghec %} ### 依赖项审查 @@ -86,7 +86,7 @@ Automatically detect tokens or credentials that have been checked into a reposit {% ifversion ghec or ghes > 3.1 %} ### 安全概述 -Review the security configuration and alerts for your organization and identify the repositories at greatest risk. For more information, see "[About the security overview](/code-security/security-overview/about-the-security-overview)." +检查组织的安全配置和警报,并确定风险最大的存储库。 更多信息请参阅“[关于安全概述](/code-security/security-overview/about-the-security-overview)”。 {% endif %} ## 延伸阅读 diff --git a/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md b/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md index b8cc5ff4a484..9344b01f50a8 100644 --- a/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md +++ b/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md @@ -1,6 +1,6 @@ --- -title: 保护您的仓库 -intro: '您可以使用许多 {% data variables.product.prodname_dotcom %} 功能来帮助保护仓库的安全。' +title: Securing your repository +intro: 'You can use a number of {% data variables.product.prodname_dotcom %} features to help keep your repository secure.' permissions: Repository administrators and organization owners can configure repository security settings. redirect_from: - /github/administering-a-repository/about-securing-your-repository @@ -16,83 +16,83 @@ topics: - Dependencies - Vulnerabilities - Advanced Security -shortTitle: 保护您的仓库 +shortTitle: Secure your repository --- -## 简介 -本指南向您展示如何配置仓库的安全功能。 您必须是仓库管理员或组织所有者才能配置仓库的安全设置。 +## Introduction +This guide shows you how to configure security features for a repository. You must be a repository administrator or organization owner to configure security settings for a repository. -您的安全需求是仓库独有的,因此您可能不需要启用仓库的每个功能。 更多信息请参阅“[{% data variables.product.prodname_dotcom %} 安全功能](/code-security/getting-started/github-security-features)”。 +Your security needs are unique to your repository, so you may not need to enable every feature for your repository. For more information, see "[{% data variables.product.prodname_dotcom %} security features](/code-security/getting-started/github-security-features)." {% data reusables.advanced-security.security-feature-availability %} -## 管理对仓库的访问 +## Managing access to your repository -保护仓库的第一步是设置谁可以查看和修改您的代码。 更多信息请参阅“[管理仓库设置](/github/administering-a-repository/managing-repository-settings)”。 +The first step to securing a repository is to set up who can see and modify your code. For more information, see "[Managing repository settings](/github/administering-a-repository/managing-repository-settings)." -从仓库主页点击 **{% octicon "gear" aria-label="The Settings gear" %}设置**,然后向下滚动到“危险区”。 +From the main page of your repository, click **{% octicon "gear" aria-label="The Settings gear" %}Settings**, then scroll down to the "Danger Zone." -- 要更改谁可以查看您的仓库,请点击 **Change visibility(更改可见性)**。 For more information, see "[Setting repository visibility](/github/administering-a-repository/setting-repository-visibility)."{% ifversion fpt or ghec %} -- 要更改谁可以访问您的仓库并调整权限,请点击 **Manage access(管理访问)**。 更多信息请参阅“[管理有权访问仓库的团队和人员](/github/administering-a-repository/managing-teams-and-people-with-access-to-your-repository)”。{% endif %} +- To change who can view your repository, click **Change visibility**. For more information, see "[Setting repository visibility](/github/administering-a-repository/setting-repository-visibility)."{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +- To change who can access your repository and adjust permissions, click **Manage access**. For more information, see"[Managing teams and people with access to your repository](/github/administering-a-repository/managing-teams-and-people-with-access-to-your-repository)."{% endif %} {% ifversion fpt or ghes > 3.0 or ghae or ghec %} -## 设置安全策略 +## Setting a security policy -1. 从仓库的主页点击 **{% octicon "shield" aria-label="The shield symbol" %} Security(安全性)**。 -2. 点击 **Security policy(安全策略)**。 -3. 单击 **Start setup(开始设置)**。 -4. 添加关于项目受支持版本以及如何报告漏洞的信息。 +1. From the main page of your repository, click **{% octicon "shield" aria-label="The shield symbol" %} Security**. +2. Click **Security policy**. +3. Click **Start setup**. +4. Add information about supported versions of your project and how to report vulnerabilities. -更多信息请参阅“[添加安全政策到仓库](/code-security/getting-started/adding-a-security-policy-to-your-repository)”。 +For more information, see "[Adding a security policy to your repository](/code-security/getting-started/adding-a-security-policy-to-your-repository)." {% endif %} {% ifversion fpt or ghes or ghae-issue-4864 or ghec %} -## 管理依赖关系图 +## Managing the dependency graph {% ifversion fpt or ghec %} The dependency graph is automatically generated for all public repositories, and you can choose to enable it for private repositories. It interprets manifest and lock files in a repository to identify dependencies. -1. 从仓库的主页点击 **{% octicon "gear" aria-label="The Settings gear" %} Settings(设置)**。 -2. 点击 **Security & analysis(安全和分析)**。 -3. 在依赖关系图旁边,单击 **Enable(启用)**或 **Disable(禁用)**。 +1. From the main page of your repository, click **{% octicon "gear" aria-label="The Settings gear" %} Settings**. +2. Click **Security & analysis**. +3. Next to Dependency graph, click **Enable** or **Disable**. {% endif %} {% data reusables.dependabot.dependabot-alerts-dependency-graph-enterprise %} -更多信息请参阅“[探索仓库的依赖项](/code-security/supply-chain-security/exploring-the-dependencies-of-a-repository#enabling-and-disabling-the-dependency-graph-for-a-private-repository)”。 +For more information, see "[Exploring the dependencies of a repository](/code-security/supply-chain-security/exploring-the-dependencies-of-a-repository#enabling-and-disabling-the-dependency-graph-for-a-private-repository)." {% endif %} {% ifversion fpt or ghes or ghae-issue-4864 or ghec %} -## 管理 {% data variables.product.prodname_dependabot_alerts %} +## Managing {% data variables.product.prodname_dependabot_alerts %} {% data variables.product.prodname_dependabot_alerts %} are generated when {% data variables.product.prodname_dotcom %} identifies a dependency in the dependency graph with a vulnerability. {% ifversion fpt or ghec %}You can enable {% data variables.product.prodname_dependabot_alerts %} for any repository.{% endif %} {% ifversion fpt or ghec %} -1. 单击您的个人资料照片,然后单击 **Settings(设置)**。 -2. 点击 **Security & analysis(安全和分析)**。 -3. 单击 {% data variables.product.prodname_dependabot_alerts %} 旁边的 **Enable all(全部启用)**。 +1. Click your profile photo, then click **Settings**. +2. Click **Security & analysis**. +3. Click **Enable all** next to {% data variables.product.prodname_dependabot_alerts %}. {% endif %} {% data reusables.dependabot.dependabot-alerts-beta %} {% data reusables.dependabot.dependabot-alerts-dependency-graph-enterprise %} -更多信息请参阅“[关于漏洞依赖项的警报](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies){% ifversion fpt or ghec %}”和“[管理用户帐户的安全性和分析设置](/github/setting-up-and-managing-your-github-user-account/managing-security-and-analysis-settings-for-your-user-account){% endif %}”。 +For more information, see "[About alerts for vulnerable dependencies](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies){% ifversion fpt or ghec %}" and "[Managing security and analysis settings for your user account](/github/setting-up-and-managing-your-github-user-account/managing-security-and-analysis-settings-for-your-user-account){% endif %}." {% endif %} {% ifversion fpt or ghes > 3.1 or ghae-issue-4864 or ghec %} -## 管理依赖项审查 +## Managing dependency review -依赖项审查可让您在合并到仓库之前在拉取请求中显示依赖关系的变化。 更多信息请参阅“[关于依赖项审查](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review)”。 +Dependency review lets you visualize dependency changes in pull requests before they are merged into your repositories. For more information, see "[About dependency review](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review)." -Dependency review is a {% data variables.product.prodname_GH_advanced_security %} feature. {% ifversion fpt or ghec %}Dependency review is already enabled for all public repositories. {% ifversion fpt %}Organizations that use {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_advanced_security %} can additionally enable dependency review for private and internal repositories. 更多信息请参阅 [{% data variables.product.prodname_ghe_cloud %} 文档](/enterprise-cloud@latest/code-security/getting-started/securing-your-repository#managing-dependency-review)。 {% endif %}{% endif %}{% ifversion ghec or ghes or ghae %}To enable dependency review for a {% ifversion ghec %}private or internal {% endif %}repository, ensure that the dependency graph is enabled and enable {% data variables.product.prodname_GH_advanced_security %}. +Dependency review is a {% data variables.product.prodname_GH_advanced_security %} feature. {% ifversion fpt or ghec %}Dependency review is already enabled for all public repositories. {% ifversion fpt %}Organizations that use {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_advanced_security %} can additionally enable dependency review for private and internal repositories. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/code-security/getting-started/securing-your-repository#managing-dependency-review). {% endif %}{% endif %}{% ifversion ghec or ghes or ghae %}To enable dependency review for a {% ifversion ghec %}private or internal {% endif %}repository, ensure that the dependency graph is enabled and enable {% data variables.product.prodname_GH_advanced_security %}. -1. 从仓库的主页点击 **{% octicon "gear" aria-label="The Settings gear" %} Settings(设置)**。 -2. 点击 **Security & analysis(安全和分析)**。 +1. From the main page of your repository, click **{% octicon "gear" aria-label="The Settings gear" %}Settings**. +2. Click **Security & analysis**. 3. {% ifversion ghec %}If dependency graph is not already enabled, click **Enable**.{% elsif ghes or ghae %}Check that dependency graph is configured for your enterprise.{% endif %} -4. 如果 {% data variables.product.prodname_GH_advanced_security %} 尚未启用,请点击 **Enable(启用)**。 +4. If {% data variables.product.prodname_GH_advanced_security %} is not already enabled, click **Enable**. {% endif %} @@ -100,42 +100,42 @@ Dependency review is a {% data variables.product.prodname_GH_advanced_security % {% ifversion fpt or ghec or ghes > 3.2 %} -## 管理 {% data variables.product.prodname_dependabot_security_updates %} +## Managing {% data variables.product.prodname_dependabot_security_updates %} -对于任何使用 {% data variables.product.prodname_dependabot_alerts %} 的仓库,您可以启用 {% data variables.product.prodname_dependabot_security_updates %} 在检测到漏洞时提出带有安全更新的拉取请求。 +For any repository that uses {% data variables.product.prodname_dependabot_alerts %}, you can enable {% data variables.product.prodname_dependabot_security_updates %} to raise pull requests with security updates when vulnerabilities are detected. -1. 从仓库的主页点击 **{% octicon "gear" aria-label="The Settings gear" %} Settings(设置)**。 -2. 点击 **Security & analysis(安全和分析)**。 -3. 在 {% data variables.product.prodname_dependabot_security_updates %} 旁边,单击 **Enable(启用)**。 +1. From the main page of your repository, click **{% octicon "gear" aria-label="The Settings gear" %}Settings**. +2. Click **Security & analysis**. +3. Next to {% data variables.product.prodname_dependabot_security_updates %}, click **Enable**. -更多信息请参阅“[关于 {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/about-dependabot-security-updates)”和“[配置 {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/configuring-dependabot-security-updates)”。 +For more information, see "[About {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/about-dependabot-security-updates)" and "[Configuring {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/configuring-dependabot-security-updates)." -## 管理 {% data variables.product.prodname_dependabot_version_updates %} +## Managing {% data variables.product.prodname_dependabot_version_updates %} -您可以让 {% data variables.product.prodname_dependabot %} 自动提出拉取请求以保持依赖项的更新。 更多信息请参阅“[关于 {% data variables.product.prodname_dependabot_version_updates %}](/code-security/supply-chain-security/about-dependabot-version-updates)“。 +You can enable {% data variables.product.prodname_dependabot %} to automatically raise pull requests to keep your dependencies up-to-date. For more information, see "[About {% data variables.product.prodname_dependabot_version_updates %}](/code-security/supply-chain-security/about-dependabot-version-updates)." -要启用 {% data variables.product.prodname_dependabot_version_updates %},您必须创建 *dependabot.yml* 配置文件。 For more information, see "[Enabling and disabling {% data variables.product.prodname_dependabot %} version updates](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates)." +To enable {% data variables.product.prodname_dependabot_version_updates %}, you must create a *dependabot.yml* configuration file. For more information, see "[Enabling and disabling {% data variables.product.prodname_dependabot %} version updates](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates)." {% endif %} -## 配置 {% data variables.product.prodname_code_scanning %} +## Configuring {% data variables.product.prodname_code_scanning %} -您可以设置 {% data variables.product.prodname_code_scanning %} 使用 {% data variables.product.prodname_codeql_workflow %} 或第三方工具自动识别仓库中存储的代码中的漏洞和错误。 更多信息请参阅“[为仓库设置 {% data variables.product.prodname_code_scanning %}](/code-security/secure-coding/setting-up-code-scanning-for-a-repository)”。 +You can set up {% data variables.product.prodname_code_scanning %} to automatically identify vulnerabilities and errors in the code stored in your repository by using a {% data variables.product.prodname_codeql_workflow %} or third-party tool. For more information, see "[Setting up {% data variables.product.prodname_code_scanning %} for a repository](/code-security/secure-coding/setting-up-code-scanning-for-a-repository)." {% data variables.product.prodname_code_scanning_capc %} is available {% ifversion fpt or ghec %}for all public repositories, and for private repositories owned by organizations that are part of an enterprise with a license for {% else %}for organization-owned repositories if your enterprise uses {% endif %}{% data variables.product.prodname_GH_advanced_security %}. -## 配置 {% data variables.product.prodname_secret_scanning %} +## Configuring {% data variables.product.prodname_secret_scanning %} {% data variables.product.prodname_secret_scanning_caps %} is {% ifversion fpt or ghec %}enabled for all public repositories and is available for private repositories owned by organizations that are part of an enterprise with a license for {% else %}available for organization-owned repositories if your enterprise uses {% endif %}{% data variables.product.prodname_GH_advanced_security %}. {% ifversion fpt %}For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/code-security/getting-started/securing-your-repository#configuring-secret-scanning).{% else %}{% data variables.product.prodname_secret_scanning_caps %} may already be enabled for your repository, depending upon your organization's settings. -1. 从仓库的主页点击 **{% octicon "gear" aria-label="The Settings gear" %} Settings(设置)**。 -2. 点击 **Security & analysis(安全和分析)**。 -3. 如果 {% data variables.product.prodname_GH_advanced_security %} 尚未启用,请点击 **Enable(启用)**。 -4. 在 {% data variables.product.prodname_secret_scanning_caps %} 旁边,单击 **Enable(启用)**。 +1. From the main page of your repository, click **{% octicon "gear" aria-label="The Settings gear" %}Settings**. +2. Click **Security & analysis**. +3. If {% data variables.product.prodname_GH_advanced_security %} is not already enabled, click **Enable**. +4. Next to {% data variables.product.prodname_secret_scanning_caps %}, click **Enable**. {% endif %} -## 后续步骤 -您可以查看和管理来自安全功能的警报,以解决代码中的依赖项和漏洞。 For more information, see {% ifversion fpt or ghes or ghec %} "[Viewing and updating vulnerable dependencies in your repository](/code-security/supply-chain-security/viewing-and-updating-vulnerable-dependencies-in-your-repository),"{% endif %} {% ifversion fpt or ghec or ghes > 3.2 %}"[Managing pull requests for dependency updates](/code-security/supply-chain-security/managing-pull-requests-for-dependency-updates)," {% endif %}"[Managing {% data variables.product.prodname_code_scanning %} for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository)," and "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/managing-alerts-from-secret-scanning)." +## Next steps +You can view and manage alerts from security features to address dependencies and vulnerabilities in your code. For more information, see {% ifversion fpt or ghes or ghec %} "[Viewing and updating vulnerable dependencies in your repository](/code-security/supply-chain-security/viewing-and-updating-vulnerable-dependencies-in-your-repository),"{% endif %} {% ifversion fpt or ghec or ghes > 3.2 %}"[Managing pull requests for dependency updates](/code-security/supply-chain-security/managing-pull-requests-for-dependency-updates)," {% endif %}"[Managing {% data variables.product.prodname_code_scanning %} for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository)," and "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/managing-alerts-from-secret-scanning)." -{% ifversion fpt or ghec %}If you have a security vulnerability, you can create a security advisory to privately discuss and fix the vulnerability. 更多信息请参阅“[关于 {% data variables.product.prodname_security_advisories %}](/code-security/security-advisories/about-github-security-advisories)”和“[创建安全通告](/code-security/security-advisories/creating-a-security-advisory)”。 +{% ifversion fpt or ghec %}If you have a security vulnerability, you can create a security advisory to privately discuss and fix the vulnerability. For more information, see "[About {% data variables.product.prodname_security_advisories %}](/code-security/security-advisories/about-github-security-advisories)" and "[Creating a security advisory](/code-security/security-advisories/creating-a-security-advisory)." {% endif %} diff --git a/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md b/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md index 96af1ff1aa0b..f4f8a419e970 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md +++ b/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md @@ -55,7 +55,7 @@ Organizations using {% data variables.product.prodname_ghe_cloud %} with {% data {% data variables.product.prodname_secret_scanning_caps %} is available on all organization-owned repositories as part of {% data variables.product.prodname_GH_advanced_security %}. It is not available on user-owned repositories. {% endif %} -If you're a repository administrator or an organization owner, you can enable {% data variables.product.prodname_secret_scanning %} for {% ifversion ghec %} private{% endif %} repositories that are owned by organizations. You can enable {% data variables.product.prodname_secret_scanning %} for all your organization's repositories, or for all new repositories within your organization.{% ifversion ghec %} {% data variables.product.prodname_secret_scanning_caps %} is not available for private repositories owned by user accounts.{% endif %} For more information, see "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)" and "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)." +If you're a repository administrator or an organization owner, you can enable {% data variables.product.prodname_secret_scanning %} for {% ifversion ghec %} private{% endif %} repositories{% ifversion ghec or ghes > 3.4 or ghae-issue-6329 %}, including archived repositories,{% endif %} that are owned by organizations. You can enable {% data variables.product.prodname_secret_scanning %} for all your organization's repositories, or for all new repositories within your organization.{% ifversion ghec %} {% data variables.product.prodname_secret_scanning_caps %} is not available for private repositories owned by user accounts.{% endif %} For more information, see "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)" and "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)." {% ifversion ghes > 3.1 or ghae or ghec %}You can also define custom {% data variables.product.prodname_secret_scanning %} patterns for a repository, organization, or enterprise. For more information, see "[Defining custom patterns for {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/defining-custom-patterns-for-secret-scanning)." {% elsif ghes < 3.2 %} diff --git a/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md b/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md index 6e7ae7a841ae..8024c8b22a8c 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md +++ b/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md @@ -29,7 +29,7 @@ topics: However, there can be situations where you want to scan for other secret patterns in your {% ifversion fpt or ghec %}private{% endif %} repositories. For example, you might have a secret pattern that is internal to your organization. For these situations, you can define custom {% data variables.product.prodname_secret_scanning %} patterns in your enterprise, organization, or {% ifversion fpt or ghec %}private{% endif %} repository on {% data variables.product.product_name %}. You can define up to {%- ifversion fpt or ghec or ghes > 3.3 %} 500 custom patterns for each organization or enterprise account, and up to 100 custom patterns per {% ifversion fpt or ghec %}private{% endif %} repository. -{%- elsif ghes = 3.3 %} 100 custom patterns for each organization or enterprise account, and per repository. +{%- elsif ghes = 3.3 %} 100 custom patterns for each organization or enterprise account, and 20 per repository. {%- else %} 20 custom patterns for each organization or enterprise account, and per repository. {%- endif %} diff --git a/translations/zh-CN/content/code-security/secret-scanning/index.md b/translations/zh-CN/content/code-security/secret-scanning/index.md index 0d5a0faa91ef..7574de85f143 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/index.md +++ b/translations/zh-CN/content/code-security/secret-scanning/index.md @@ -1,5 +1,5 @@ --- -title: Keeping secrets secure with secret scanning +title: 通过秘密扫描确保机密安全 shortTitle: 秘密扫描 intro: '让 {% data variables.product.company_short %} 努力确保令牌、私钥和其他代码机密不会暴露在您的仓库中。' product: '{% data reusables.gated-features.secret-scanning %}' diff --git a/translations/zh-CN/content/code-security/security-advisories/about-github-security-advisories.md b/translations/zh-CN/content/code-security/security-advisories/about-github-security-advisories.md index 9c60944e23fa..15910663bc99 100644 --- a/translations/zh-CN/content/code-security/security-advisories/about-github-security-advisories.md +++ b/translations/zh-CN/content/code-security/security-advisories/about-github-security-advisories.md @@ -46,7 +46,7 @@ shortTitle: 安全通告 {% data variables.product.prodname_security_advisories %} 基于通用漏洞披露 (CVE) 列表而构建。 在 {% data variables.product.prodname_dotcom %} 上的安全通告表是符合 CVE 描述格式的标准化表格。 -{% data variables.product.prodname_dotcom %} 是 CVE 编号颁发机构 (CNA),被授权分配 CVE 标识号。 更多信息请参阅 CVE 网站上的“[关于 CVE](https://cve.mitre.org/about/index.html)”和“[CVE 编号颁发机构](https://cve.mitre.org/cve/cna.html)”。 +{% data variables.product.prodname_dotcom %} 是 CVE 编号颁发机构 (CNA),被授权分配 CVE 标识号。 更多信息请参阅 CVE 网站上的“[关于 CVE](https://www.cve.org/About/Overview)”和“[CVE 编号颁发机构](https://www.cve.org/ProgramOrganization/CNAs)”。 在 {% data variables.product.prodname_dotcom %} 上为公共仓库创建安全通告时,您可以选择为安全漏洞提供现有的 CVE 标识号。 {% data reusables.repositories.request-security-advisory-cve-id %} diff --git a/translations/zh-CN/content/code-security/security-overview/viewing-the-security-overview.md b/translations/zh-CN/content/code-security/security-overview/viewing-the-security-overview.md index ee6d9c8629eb..4f2809cf01b0 100644 --- a/translations/zh-CN/content/code-security/security-overview/viewing-the-security-overview.md +++ b/translations/zh-CN/content/code-security/security-overview/viewing-the-security-overview.md @@ -48,7 +48,7 @@ shortTitle: View the security overview ## 查看团队的安全概述 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team-security-overview %} {% data reusables.organizations.filter-security-overview %} diff --git a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates.md b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates.md index 11cc3dd00614..414c8deb2a7b 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates.md @@ -30,9 +30,9 @@ shortTitle: Dependabot 版本更新 通过将配置文件检入仓库,可启用 {% data variables.product.prodname_dependabot_version_updates %}。 配置文件指定存储在仓库中的清单或其他包定义文件的位置。 {% data variables.product.prodname_dependabot %} 使用此信息来检查过时的软件包和应用程序。 {% data variables.product.prodname_dependabot %} 确定依赖项是否有新版本,它通过查看依赖的语义版本 ([semver](https://semver.org/)) 来决定是否应更新该版本。 对于某些软件包管理器,{% data variables.product.prodname_dependabot_version_updates %} 也支持供应。 供应(或缓存)的依赖项是检入仓库中特定目录的依赖项,而不是在清单中引用的依赖项。 即使包服务器不可用,供应的依赖项在生成时也可用。 {% data variables.product.prodname_dependabot_version_updates %} 可以配置为检查为新版本供应的依赖项,并在必要时更新它们。 -当 {% data variables.product.prodname_dependabot %} 发现过时的依赖项时,它会发起拉取请求以将清单更新到依赖项的最新版本。 对于供应和依赖项,{% data variables.product.prodname_dependabot %} 提出拉取请求以直接将过时的依赖项替换为新版本。 检查测试是否通过,查看拉取请求摘要中包含的更改日志和发行说明,然后合并它。 For more information, see "[Enabling and disabling {% data variables.product.prodname_dependabot %} version updates](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates)." +当 {% data variables.product.prodname_dependabot %} 发现过时的依赖项时,它会发起拉取请求以将清单更新到依赖项的最新版本。 对于供应和依赖项,{% data variables.product.prodname_dependabot %} 提出拉取请求以直接将过时的依赖项替换为新版本。 检查测试是否通过,查看拉取请求摘要中包含的更改日志和发行说明,然后合并它。 更多信息请参阅“[启用和禁用 {% data variables.product.prodname_dependabot %} 版本更新](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates)”。 -If you enable _security updates_, {% data variables.product.prodname_dependabot %} also raises pull requests to update vulnerable dependencies. 更多信息请参阅“[关于 {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/about-dependabot-security-updates)”。 +如果启用_安全更新_,{% data variables.product.prodname_dependabot %} 还会发起拉取请求以更新易受攻击依赖项。 更多信息请参阅“[关于 {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/about-dependabot-security-updates)”。 {% data reusables.dependabot.pull-request-security-vs-version-updates %} @@ -60,8 +60,8 @@ If you enable _security updates_, {% data variables.product.prodname_dependabot {% data reusables.dependabot.supported-package-managers %} -如果您的仓库已使用集成进行依赖项管理,则在启用 {% data variables.product.prodname_dependabot %} 前需要禁用此集成。 {% ifversion fpt or ghec %}For more information, see "[About integrations](/github/customizing-your-github-workflow/about-integrations)."{% endif %} +如果您的仓库已使用集成进行依赖项管理,则在启用 {% data variables.product.prodname_dependabot %} 前需要禁用此集成。 {% ifversion fpt or ghec %}更多信息请参阅“[关于集成](/github/customizing-your-github-workflow/about-integrations)”。{% endif %} ## 关于 {% data variables.product.prodname_dependabot %} 版本更新通知 -You can filter your notifications on {% data variables.product.company_short %} to show notifications for pull requests created by {% data variables.product.prodname_dependabot %}. 更多信息请参阅“[从收件箱管理通知](/github/managing-subscriptions-and-notifications-on-github/managing-notifications-from-your-inbox)”。 +您可以按 {% data variables.product.company_short %} 筛选通知,以显示由 {% data variables.product.prodname_dependabot %}创建的拉取请求的通知。 更多信息请参阅“[从收件箱管理通知](/github/managing-subscriptions-and-notifications-on-github/managing-notifications-from-your-inbox)”。 diff --git a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md index 1401e0a13467..9b97e577a9dc 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md @@ -1,6 +1,6 @@ --- -title: 通过 GitHub Actions 自动化 Dependabot -intro: '如何使用 {% data variables.product.prodname_actions %} 来自动执行常见 {% data variables.product.prodname_dependabot %} 相关任务的示例。' +title: Automating Dependabot with GitHub Actions +intro: 'Examples of how you can use {% data variables.product.prodname_actions %} to automate common {% data variables.product.prodname_dependabot %} related tasks.' permissions: 'People with write permissions to a repository can configure {% data variables.product.prodname_actions %} to respond to {% data variables.product.prodname_dependabot %}-created pull requests.' miniTocMaxHeadingLevel: 3 versions: @@ -22,11 +22,11 @@ shortTitle: Use Dependabot with Actions {% data reusables.dependabot.beta-security-and-version-updates %} {% data reusables.dependabot.enterprise-enable-dependabot %} -## 关于 {% data variables.product.prodname_dependabot %} 与 {% data variables.product.prodname_actions %} +## About {% data variables.product.prodname_dependabot %} and {% data variables.product.prodname_actions %} -{% data variables.product.prodname_dependabot %} 创建拉动请求以保持依赖项的最新状态,并且当创建这些拉取请求时,您可以使用 {% data variables.product.prodname_actions %} 执行自动任务。 例如,获取其他构件、添加标签、运行测试或修改拉取请求。 +{% data variables.product.prodname_dependabot %} creates pull requests to keep your dependencies up to date, and you can use {% data variables.product.prodname_actions %} to perform automated tasks when these pull requests are created. For example, fetch additional artifacts, add labels, run tests, or otherwise modifying the pull request. -## 响应事件 +## Responding to events {% data variables.product.prodname_dependabot %} is able to trigger {% data variables.product.prodname_actions %} workflows on its pull requests and comments; however, certain events are treated differently. @@ -41,7 +41,7 @@ For workflows initiated by {% data variables.product.prodname_dependabot %} (`gi For workflows initiated by {% data variables.product.prodname_dependabot %} (`github.actor == "dependabot[bot]"`) using the `pull_request_target` event, if the base ref of the pull request was created by {% data variables.product.prodname_dependabot %} (`github.actor == "dependabot[bot]"`), the `GITHUB_TOKEN` will be read-only and secrets are not available. {% endif %} -更多信息请参阅“[保持 GitHub Actions 和工作流程安全:阻止 pwn 请求](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)”。 +For more information, see ["Keeping your GitHub Actions and workflows secure: Preventing pwn requests"](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/). {% ifversion fpt or ghec or ghes > 3.3 %} @@ -70,7 +70,7 @@ jobs: For more information, see "[Modifying the permissions for the GITHUB_TOKEN](/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token)." -### 访问密钥 +### Accessing secrets When a {% data variables.product.prodname_dependabot %} event triggers a workflow, the only secrets available to the workflow are {% data variables.product.prodname_dependabot %} secrets. {% data variables.product.prodname_actions %} secrets are not available. Consequently, you must store any secrets that are used by a workflow triggered by {% data variables.product.prodname_dependabot %} events as {% data variables.product.prodname_dependabot %} secrets. For more information, see "[Managing encrypted secrets for Dependabot](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot)". @@ -120,11 +120,11 @@ If the restrictions are removed, when a workflow is triggered by {% data variabl {% endnote %} -### 处理 `pull_request` 事件 +### Handling `pull_request` events -如果您的工作流程需要访问具有写入权限的密码或 `GITHUB_TOKEN`,则有两个选项:使用 `pull_request_target` 或使用两个单独的工作流程。 我们将在本节中详述使用 `pull_request_target`,以及在 [处理 `push` 事件](#handling-push-events)“中使用下面两个工作流程。 +If your workflow needs access to secrets or a `GITHUB_TOKEN` with write permissions, you have two options: using `pull_request_target`, or using two separate workflows. We will detail using `pull_request_target` in this section, and using two workflows below in "[Handling `push` events](#handling-push-events)." -下面是现在可能失败的 `pull_request` 工作流程的简单示例: +Below is a simple example of a `pull_request` workflow that might now be failing: {% raw %} @@ -145,11 +145,11 @@ jobs: {% endraw %} -您可以将 `pull_request` 替换为 `pull_request_target`,这用于复刻中的拉取请求,并明确检出拉取请求 `HEAD`。 +You can replace `pull_request` with `pull_request_target`, which is used for pull requests from forks, and explicitly check out the pull request `HEAD`. {% warning %} -**警告:**使用 `pull_request_target` 替代 `pull_request` 会使您暴露在不安全的行为中。 我们建议您使用两种工作流程方法,如下面的“[处理 `push` 事件](#handling-push-events)”中所述。 +**Warning:** Using `pull_request_target` as a substitute for `pull_request` exposes you to insecure behavior. We recommend you use the two workflow method, as described below in "[Handling `push` events](#handling-push-events)." {% endwarning %} @@ -178,13 +178,13 @@ jobs: {% endraw %} -还强烈建议您缩小授予 `GITHUB_TOKEN` 的权限范围,以避免泄露具有不必要特权的令牌。 更多信息请参阅“[`GITHUB_TOKEN`](/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token) 的权限”。 +It is also strongly recommended that you downscope the permissions granted to the `GITHUB_TOKEN` in order to avoid leaking a token with more privilege than necessary. For more information, see "[Permissions for the `GITHUB_TOKEN`](/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token)." -### 处理 `push` 事件 +### Handling `push` events -因为没有等效于 `push` 事件的 `pull_request_target_` ,因此您必须使用两个工作流程:一个通过上传构件而结束不可信工作流程, 触发第二个下载构件并继续处理的可信任工作流程。 +As there is no `pull_request_target` equivalent for `push` events, you will have to use two workflows: one untrusted workflow that ends by uploading artifacts, which triggers a second trusted workflow that downloads artifacts and continues processing. -第一个工作流程执行任何不信任的工作: +The first workflow performs any untrusted work: {% raw %} @@ -204,7 +204,7 @@ jobs: {% endraw %} -第二个工作流程在第一个工作流程成功完成后执行受信任的工作: +The second workflow performs trusted work after the first workflow completes successfully: {% raw %} @@ -232,13 +232,13 @@ jobs: {% endif %} -### 手动重新运行工作流程 +### Manually re-running a workflow -您还可以手动重新运行失败的 Dependabot 工作流程,它将以读写令牌运行并访问密码。 在手动重新运行失败的工作流程之前,您应始终检查更新的依赖项,以确保更改不会引入任何恶意或意外行为。 +You can also manually re-run a failed Dependabot workflow, and it will run with a read-write token and access to secrets. Before manually re-running a failed workflow, you should always check the dependency being updated to ensure that the change doesn't introduce any malicious or unintended behavior. -## 常用 Dependabot 自动化 +## Common Dependabot automations -以下是可以使用 {% data variables.product.prodname_actions %} 自动化的几个常见场景。 +Here are several common scenarios that can be automated using {% data variables.product.prodname_actions %}. {% ifversion ghes = 3.3 %} @@ -250,11 +250,11 @@ jobs: {% endif %} -### 获取有关拉取请求的元数据 +### Fetch metadata about a pull request -大量自动化需要了解拉取请求内容的信息:依赖项名称是什么,是否为生产依赖项,以及是否为主要、次要或补丁更新。 +A large amount of automation requires knowing information about the contents of the pull request: what the dependency name was, if it's a production dependency, and if it's a major, minor, or patch update. -`dependabot/fetch-metadata` 操作为您提供所有这些信息: +The `dependabot/fetch-metadata` action provides all that information for you: {% ifversion ghes = 3.3 %} @@ -320,13 +320,13 @@ jobs: {% endif %} -更多信息请参阅 [`dependabot/fetch-metadata`](https://github.com/dependabot/fetch-metadata) 仓库。 +For more information, see the [`dependabot/fetch-metadata`](https://github.com/dependabot/fetch-metadata) repository. -### 标记拉取请求 +### Label a pull request -如果您有基于 {% data variables.product.prodname_dotcom %} 标签的其他自动化或分类工作流程,则可以配置操作以根据提供的元数据分配标签。 +If you have other automation or triage workflows based on {% data variables.product.prodname_dotcom %} labels, you can configure an action to assign labels based on the metadata provided. -例如,如果您想用标签标记所有生产依赖项更新: +For example, if you want to flag all production dependency updates with a label: {% ifversion ghes = 3.3 %} @@ -394,9 +394,9 @@ jobs: {% endif %} -### 批准拉取请求 +### Approve a pull request -如果您想要自动批准 Dependabot 拉取请求,您可以在工作流程中使用 {% data variables.product.prodname_cli %}: +If you want to automatically approve Dependabot pull requests, you can use the {% data variables.product.prodname_cli %} in a workflow: {% ifversion ghes = 3.3 %} @@ -460,11 +460,11 @@ jobs: {% endif %} -### 在拉取请求上启用自动合并 +### Enable auto-merge on a pull request -如果您要自动合并拉取请求,可以使用 {% data variables.product.prodname_dotcom %} 的自动合并功能。 这样,当所有所需的测试和批准都成功满足时,拉取请求即可合并。 For more information on auto-merge, see "[Automatically merging a pull request"](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)." +If you want to auto-merge your pull requests, you can use {% data variables.product.prodname_dotcom %}'s auto-merge functionality. This enables the pull request to be merged when all required tests and approvals are successfully met. For more information on auto-merge, see "[Automatically merging a pull request"](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)." -这是为所有补丁更新启用自动合并到 `my-dependency` 的示例: +Here is an example of enabling auto-merge for all patch updates to `my-dependency`: {% ifversion ghes = 3.3 %} @@ -532,24 +532,24 @@ jobs: {% endif %} -## 失败的工作流程运行故障排除 +## Troubleshooting failed workflow runs -如果您的工作流程运行失败,请检查以下情况: +If your workflow run fails, check the following: {% ifversion ghes = 3.3 %} -- 只有当正确的角色触发工作流程时,才运行工作流程。 -- 您在为 `pull_request` 检出正确的 `ref`。 -- 您没有尝试从 Dependabot 触发的 `pull_request`、`pull_request_review`、`pull_request_review_comment` 或 `push` 事件访问密码。 -- 您没有尝试从 Dependabot 触发的 `pull_request`、`pull_request_review`、`pull_request_review_comment` 或 `push` 事件执行任何 `write` 操作。 +- You are running the workflow only when the correct actor triggers it. +- You are checking out the correct `ref` for your `pull_request`. +- You aren't trying to access secrets from within a Dependabot-triggered `pull_request`, `pull_request_review`, `pull_request_review_comment`, or `push` event. +- You aren't trying to perform any `write` actions from within a Dependabot-triggered `pull_request`, `pull_request_review`, `pull_request_review_comment`, or `push` event. {% else %} -- 只有当正确的角色触发工作流程时,才运行工作流程。 -- 您在为 `pull_request` 检出正确的 `ref`。 +- You are running the workflow only when the correct actor triggers it. +- You are checking out the correct `ref` for your `pull_request`. - Your secrets are available in {% data variables.product.prodname_dependabot %} secrets rather than as {% data variables.product.prodname_actions %} secrets. - You have a `GITHUB_TOKEN` with the correct permissions. {% endif %} -有关编写和调试 {% data variables.product.prodname_actions %} 的信息,请参阅“[了解 GitHub Actions](/actions/learn-github-actions)”。 +For information on writing and debugging {% data variables.product.prodname_actions %}, see "[Learning GitHub Actions](/actions/learn-github-actions)." diff --git a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates.md b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates.md index 0bbd0b0aa6db..3d87ddd38605 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates.md @@ -27,9 +27,9 @@ shortTitle: 配置选项 {% data variables.product.prodname_dependabot %} 配置文件 *dependabot.yml* 使用 YAML 语法。 如果您是 YAML 的新用户并想要了解更多信息,请参阅“[五分钟了解 YAML](https://www.codeproject.com/Articles/1214409/Learn-YAML-in-five-minutes)”。 -必须将此文件存储在仓库的 `.github` 目录中。 添加或更新 *dependabot.yml* 文件时,这将触发对版本更新的立即检查。 For more information and an example, see "[Enabling and disabling {% data variables.product.prodname_dependabot %} version updates](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates#enabling-dependabot-version-updates)." +必须将此文件存储在仓库的 `.github` 目录中。 添加或更新 *dependabot.yml* 文件时,这将触发对版本更新的立即检查。 有关详细信息和示例,请参阅“[启用和禁用 {% data variables.product.prodname_dependabot %} 版本更新](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates#enabling-dependabot-version-updates)”。 -下次安全警报触发安全更新的拉取请求时将使用所有同时影响安全更新的选项。 For more information, see "[Configuring {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-dependabot-security-updates)." +下次安全警报触发安全更新的拉取请求时将使用所有同时影响安全更新的选项。 更多信息请参阅“[配置 {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-dependabot-security-updates)。” *dependabot.yml* 文件有两个必需的顶级密钥:`version` 和 `updates`。 您可以选择性包括一个顶级`注册表`键。 该文件必须以 `version: 2` 开头。 @@ -343,7 +343,7 @@ updates: {% note %} -**注意**:即使您将不可访问的依赖项添加到配置文件的`忽略`选项,{% data variables.product.prodname_dependabot %} 也仅在可以访问文件中的所有依赖项时才可在清单文件或锁定文件上运行版本更新。 For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization#allowing-dependabot-to-access-private-dependencies)" and "[Troubleshooting {% data variables.product.prodname_dependabot %} errors](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/troubleshooting-dependabot-errors#dependabot-cant-resolve-your-dependency-files)." +**注意**:即使您将不可访问的依赖项添加到配置文件的`忽略`选项,{% data variables.product.prodname_dependabot %} 也仅在可以访问文件中的所有依赖项时才可在清单文件或锁定文件上运行版本更新。 更多信息请参阅“[管理组织的安全性和分析设置](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization#allowing-dependabot-to-access-private-dependencies)”和“[排除 {% data variables.product.prodname_dependabot %} 错误](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/troubleshooting-dependabot-errors#dependabot-cant-resolve-your-dependency-files)”。 {% endnote %} @@ -491,9 +491,9 @@ updates: ### `registries` -要允许 {% data variables.product.prodname_dependabot %} 在执行版本更新时访问私人包注册表,您必须在相关的 `updates` 配置中包括 `registries` 设置。 您可以通过将 `registrations` 设置为 `"*"` 来允许使用所有定义的注册表。 或者,您可以列出更新可以使用的注册表。 要执行此操作,请使用 _dependabot.yml_ 文件的顶层 `registries` 部分定义的注册表。 For more information, see "[Configuration options for private registries](#configuration-options-for-private-registries)" below. +要允许 {% data variables.product.prodname_dependabot %} 在执行版本更新时访问私人包注册表,您必须在相关的 `updates` 配置中包括 `registries` 设置。 您可以通过将 `registrations` 设置为 `"*"` 来允许使用所有定义的注册表。 或者,您可以列出更新可以使用的注册表。 要执行此操作,请使用 _dependabot.yml_ 文件的顶层 `registries` 部分定义的注册表。 更多信息请参阅下面的“[私有注册表的配置选项](#configuration-options-for-private-registries)”。 -要允许 {% data variables.product.prodname_dependabot %} 使用 `bundler`、`mix` 和 `pip` 包管理器来更新私人注册表中的依赖项,您可以选择允许外部代码执行。 For more information, see [`insecure-external-code-execution`](#insecure-external-code-execution) above. +要允许 {% data variables.product.prodname_dependabot %} 使用 `bundler`、`mix` 和 `pip` 包管理器来更新私人注册表中的依赖项,您可以选择允许外部代码执行。 更多信息请参阅上面的 [`insecure-external-code-execution`](#insecure-external-code-execution)。 ```yaml # Allow {% data variables.product.prodname_dependabot %} to use one of the two defined private registries @@ -747,15 +747,15 @@ updates: 您使用以下选项来指定访问设置。 注册表设置必须包含 `type` 和 `url`,通常是一个 `username` 和 `password` 组合或 `token`。 -| 选项                 | 描述 | -|:-------------------------------------------------------------------------------------------------- |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | 识别注册表的类型。 请参阅下面的完整类型列表。 | -| `url` | 用于访问此注册表中的依赖项的 URL。 协议是可选的。 如果未指定,则假定是 `https:///`。 {% data variables.product.prodname_dependabot %} 根据需要添加或忽略尾随斜线。 | -| `用户名` | {% data variables.product.prodname_dependabot %} 用于访问注册表的用户名。 | -| `密码` | 引用包含指定用户密码的 {% data variables.product.prodname_dependabot %} 机密。 For more information, see "[Managing encrypted secrets for Dependabot](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot)." | -| `键` | 引用包含此注册表访问密钥的 {% data variables.product.prodname_dependabot %} 机密。 For more information, see "[Managing encrypted secrets for Dependabot](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot)." | -| `令牌` | 引用包含此注册表访问令牌的 {% data variables.product.prodname_dependabot %} 机密。 For more information, see "[Managing encrypted secrets for Dependabot](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot)." | -| `replaces-base` | 对于具有 `type: python-index` 的注册表,如果布尔值是 `true`,pip 将使用指定的 URL 而不是 Python Package Index 的基础 URL(默认 `https://pypi.org/simple`)来解析依赖项。 | +| 选项                 | 描述 | +|:-------------------------------------------------------------------------------------------------- |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | 识别注册表的类型。 请参阅下面的完整类型列表。 | +| `url` | 用于访问此注册表中的依赖项的 URL。 协议是可选的。 如果未指定,则假定是 `https:///`。 {% data variables.product.prodname_dependabot %} 根据需要添加或忽略尾随斜线。 | +| `用户名` | {% data variables.product.prodname_dependabot %} 用于访问注册表的用户名。 | +| `密码` | 引用包含指定用户密码的 {% data variables.product.prodname_dependabot %} 机密。 更多信息请参阅“[管理 Dependabot 的加密密码](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot)”。 | +| `键` | 引用包含此注册表访问密钥的 {% data variables.product.prodname_dependabot %} 机密。 更多信息请参阅“[管理 Dependabot 的加密密码](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot)”。 | +| `令牌` | 引用包含此注册表访问令牌的 {% data variables.product.prodname_dependabot %} 机密。 更多信息请参阅“[管理 Dependabot 的加密密码](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot)”。 | +| `replaces-base` | 对于具有 `type: python-index` 的注册表,如果布尔值是 `true`,pip 将使用指定的 URL 而不是 Python Package Index 的基础 URL(默认 `https://pypi.org/simple`)来解析依赖项。 | 每个配置 `type` 需要您提供特定的设置。 某些类型允许多种连接方式。 以下各节提供了您应用于每个 `type` 的设置的详细信息。 diff --git a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/listing-dependencies-configured-for-version-updates.md b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/listing-dependencies-configured-for-version-updates.md index 16008171aef7..566aaa88d817 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/listing-dependencies-configured-for-version-updates.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/listing-dependencies-configured-for-version-updates.md @@ -22,7 +22,7 @@ shortTitle: 列出已配置的依赖项 ## 查看由 {% data variables.product.prodname_dependabot %} 监视的依赖项 -启用版本更新后,可以使用仓库依赖关系图中的 **{% data variables.product.prodname_dependabot %}** 选项卡确认配置是否正确。 For more information, see "[Enabling and disabling {% data variables.product.prodname_dependabot %} version updates](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates)." +启用版本更新后,可以使用仓库依赖关系图中的 **{% data variables.product.prodname_dependabot %}** 选项卡确认配置是否正确。 更多信息请参阅“[启用和禁用 {% data variables.product.prodname_dependabot %} 版本更新](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/enabling-and-disabling-dependabot-version-updates)”。 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.accessing-repository-graphs %} diff --git a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-pull-requests-for-dependency-updates.md b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-pull-requests-for-dependency-updates.md index 233514fb9492..6c94f6c3715e 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-pull-requests-for-dependency-updates.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-pull-requests-for-dependency-updates.md @@ -27,7 +27,7 @@ shortTitle: 管理 Dependabot PR {% data reusables.dependabot.pull-request-introduction %} 当 {% data variables.product.prodname_dependabot %} 提出拉取请求时,将以您为仓库选择的方式通知您。 每个拉取请求都包含关于来自包管理器的拟议变更的详细信息。 这些拉取请求将遵循仓库中定义的正常检查和测试。 -{% ifversion fpt or ghec %}In addition, where enough information is available, you'll see a compatibility score. 这也有助于您决定是否合并变更。 For information about this score, see "[About {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/about-dependabot-security-updates)."{% endif %} +{% ifversion fpt or ghec %}此外,如果有足够的信息,您将看到兼容性分数。 这也有助于您决定是否合并变更。 有关此分数的信息,请参阅“[关于 {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/about-dependabot-security-updates)”。{% endif %} 如果您有多个依赖项要管理,可能会希望为每个包管理器自定义配置,以便拉取请求拥有特定的审查者、受理人和标签。 更多信息请参阅“[自定义依赖项更新](/github/administering-a-repository/customizing-dependency-updates)。” @@ -35,8 +35,8 @@ shortTitle: 管理 Dependabot PR {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-pr %} -1. Any pull requests for security or version updates are easy to identify. - - The author is {% ifversion fpt or ghec %}[dependabot](https://github.com/dependabot){% else %}dependabot{% endif %}, the bot account used by {% data variables.product.prodname_dependabot %}. +1. 安全或版本更新的任何拉取请求都很容易识别。 + - 作者为 {% ifversion fpt or ghec %}[dependabot](https://github.com/dependabot){% else %}dependabot{% endif %},即 {% data variables.product.prodname_dependabot %} 使用的自动程序帐户。 - 默认情况下,它们拥有 `dependencies` 标签。 ## 更改 {% data variables.product.prodname_dependabot %} 拉取请求的变基策略 diff --git a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/upgrading-from-dependabotcom-to-github-native-dependabot.md b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/upgrading-from-dependabotcom-to-github-native-dependabot.md index ed71c81e3234..88f7d256ee2a 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/upgrading-from-dependabotcom-to-github-native-dependabot.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/upgrading-from-dependabotcom-to-github-native-dependabot.md @@ -52,4 +52,4 @@ Dependabot Preview 已直接植入 {% data variables.product.prodname_dotcom %} 如果使用私人注册表,则必须将现有的 Dependabot Preview 密钥添加到仓库或组织的“ Dependabot 密钥”中。 更多信息请参阅“[管理 Dependabot 的加密密码](/code-security/supply-chain-security/managing-encrypted-secrets-for-dependabot)”。 -If you have any questions or need help migrating, you can view or open issues in the [`dependabot/dependabot-core`](https://github.com/dependabot/dependabot-core/issues/new?assignees=%40dependabot%2Fpreview-migration-reviewers&labels=E%3A+preview-migration&template=migration-issue.md&title=) repository. +如果您在迁移方面有任何问题或需要帮助,您可以在 [`dependabot/dependabot-core`](https://github.com/dependabot/dependabot-core/issues/new?assignees=%40dependabot%2Fpreview-migration-reviewers&labels=E%3A+preview-migration&template=migration-issue.md&title=) 仓库中查看或打开议题。 diff --git a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates.md b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates.md index 91f7fa444bc9..b283a4b5e09c 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates.md @@ -1,7 +1,7 @@ --- -title: 关于 Dependabot 安全更新 -intro: '{% data variables.product.prodname_dependabot %} 可通过提出安全更新拉取请求为您修复有漏洞依赖项。' -shortTitle: Dependabot 安全更新 +title: About Dependabot security updates +intro: '{% data variables.product.prodname_dependabot %} can fix vulnerable dependencies for you by raising pull requests with security updates.' +shortTitle: Dependabot security updates redirect_from: - /github/managing-security-vulnerabilities/about-github-dependabot-security-updates - /github/managing-security-vulnerabilities/about-dependabot-security-updates @@ -25,42 +25,42 @@ topics: {% data reusables.dependabot.beta-security-and-version-updates %} {% data reusables.dependabot.enterprise-enable-dependabot %} -## 关于 {% data variables.product.prodname_dependabot_security_updates %} +## About {% data variables.product.prodname_dependabot_security_updates %} -{% data variables.product.prodname_dependabot_security_updates %} 使您更容易修复仓库中的有漏洞依赖项。 如果启用此功能,当 {% data variables.product.prodname_dependabot %} 针对仓库依赖关系图中的有漏洞依赖项发出警报时,{% data variables.product.prodname_dependabot %} 将自动尝试修复它。 更多信息请参阅“[关于漏洞依赖项的警报](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)”和“[配置 {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/configuring-dependabot-security-updates)”。 +{% data variables.product.prodname_dependabot_security_updates %} make it easier for you to fix vulnerable dependencies in your repository. If you enable this feature, when a {% data variables.product.prodname_dependabot %} alert is raised for a vulnerable dependency in the dependency graph of your repository, {% data variables.product.prodname_dependabot %} automatically tries to fix it. For more information, see "[About alerts for vulnerable dependencies](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)" and "[Configuring {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/configuring-dependabot-security-updates)." {% data variables.product.prodname_dotcom %} may send {% data variables.product.prodname_dependabot_alerts %} to repositories affected by a vulnerability disclosed by a recently published {% data variables.product.prodname_dotcom %} security advisory. {% data reusables.security-advisory.link-browsing-advisory-db %} -{% data variables.product.prodname_dependabot %} 将检查是否可以在不破坏仓库依赖关系图的情况下将有漏洞依赖项升级到已修复版本。 然后,{% data variables.product.prodname_dependabot %} 提出拉取请求以将依赖项更新到包含补丁的最低版本,并将拉取请求链接到 {% data variables.product.prodname_dependabot %} 警报,或者在警报中报告错误。 更多信息请参阅“[排查 {% data variables.product.prodname_dependabot %} 错误](/github/managing-security-vulnerabilities/troubleshooting-dependabot-errors)”。 +{% data variables.product.prodname_dependabot %} checks whether it's possible to upgrade the vulnerable dependency to a fixed version without disrupting the dependency graph for the repository. Then {% data variables.product.prodname_dependabot %} raises a pull request to update the dependency to the minimum version that includes the patch and links the pull request to the {% data variables.product.prodname_dependabot %} alert, or reports an error on the alert. For more information, see "[Troubleshooting {% data variables.product.prodname_dependabot %} errors](/github/managing-security-vulnerabilities/troubleshooting-dependabot-errors)." {% note %} -**注** +**Note** -{% data variables.product.prodname_dependabot_security_updates %} 功能适用于已启用依赖关系图和 {% data variables.product.prodname_dependabot_alerts %} 的仓库。 您将在完整的依赖关系图中看到针对已发现的每个有漏洞依赖项的 {% data variables.product.prodname_dependabot %} 警报。 但是,安全更新仅针对清单或锁定文件中指定的依赖项而触发。 {% data variables.product.prodname_dependabot %} 无法更新未明确定义的间接或过渡依赖项。 更多信息请参阅“[关于依赖关系图](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#dependencies-included)”。 +The {% data variables.product.prodname_dependabot_security_updates %} feature is available for repositories where you have enabled the dependency graph and {% data variables.product.prodname_dependabot_alerts %}. You will see a {% data variables.product.prodname_dependabot %} alert for every vulnerable dependency identified in your full dependency graph. However, security updates are triggered only for dependencies that are specified in a manifest or lock file. {% data variables.product.prodname_dependabot %} is unable to update an indirect or transitive dependency that is not explicitly defined. For more information, see "[About the dependency graph](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#dependencies-included)." {% endnote %} -您可以启用相关功能 {% data variables.product.prodname_dependabot_version_updates %},这样无论 {% data variables.product.prodname_dependabot %} 是否检测到过期的依赖项,都可以提出拉取请求,以将清单更新到依赖项的最新版本。 更多信息请参阅“[关于 {% data variables.product.prodname_dependabot %} 版本更新](/github/administering-a-repository/about-dependabot-version-updates)”。 +You can enable a related feature, {% data variables.product.prodname_dependabot_version_updates %}, so that {% data variables.product.prodname_dependabot %} raises pull requests to update the manifest to the latest version of the dependency, whenever it detects an outdated dependency. For more information, see "[About {% data variables.product.prodname_dependabot %} version updates](/github/administering-a-repository/about-dependabot-version-updates)." {% data reusables.dependabot.pull-request-security-vs-version-updates %} -## 关于安全更新的拉取请求 +## About pull requests for security updates -每个拉取请求都包含快速、安全地查看提议的修复程序并将其合并到项目中所需的全部内容。 这包括漏洞的相关信息,如发行说明、变更日志条目和提交详细信息。 无法访问仓库的 {% data variables.product.prodname_dependabot_alerts %} 的任何人都看不到拉取请求所解决的漏洞详细信息。 +Each pull request contains everything you need to quickly and safely review and merge a proposed fix into your project. This includes information about the vulnerability like release notes, changelog entries, and commit details. Details of which vulnerability a pull request resolves are hidden from anyone who does not have access to {% data variables.product.prodname_dependabot_alerts %} for the repository. -当您合并包含安全更新的拉取请求时,仓库的相应 {% data variables.product.prodname_dependabot %} 警报将被标记为已解决。 有关 {% data variables.product.prodname_dependabot %} 拉取请求的更多信息,请参阅“[管理依赖项更新的拉取请求](/github/administering-a-repository/managing-pull-requests-for-dependency-updates)”。 +When you merge a pull request that contains a security update, the corresponding {% data variables.product.prodname_dependabot %} alert is marked as resolved for your repository. For more information about {% data variables.product.prodname_dependabot %} pull requests, see "[Managing pull requests for dependency updates](/github/administering-a-repository/managing-pull-requests-for-dependency-updates)." {% data reusables.dependabot.automated-tests-note %} {% ifversion fpt or ghec %} -## 关于兼容性分数 +## About compatibility scores -{% data variables.product.prodname_dependabot_security_updates %} 可能包括兼容性分数,以便您了解更新依赖项是否可能导致对项目的重大更改。 这些分数是根据已生成相同安全更新的其他公共仓库中的 CI 测试计算的。 更新的兼容性分数是在依赖项的特定版本之间进行更新时,CI 运行被视为通过的百分比。 +{% data variables.product.prodname_dependabot_security_updates %} may include compatibility scores to let you know whether updating a dependency could cause breaking changes to your project. These are calculated from CI tests in other public repositories where the same security update has been generated. An update's compatibility score is the percentage of CI runs that passed when updating between specific versions of the dependency. {% endif %} -## 关于 {% data variables.product.prodname_dependabot %} 安全更新通知 +## About notifications for {% data variables.product.prodname_dependabot %} security updates -您可以在 {% data variables.product.company_short %} 上过滤通知以显示 {% data variables.product.prodname_dependabot %} 安全更新。 更多信息请参阅“[从收件箱管理通知](/github/managing-subscriptions-and-notifications-on-github/managing-notifications-from-your-inbox#dependabot-custom-filters)”。 +You can filter your notifications on {% data variables.product.company_short %} to show {% data variables.product.prodname_dependabot %} security updates. For more information, see "[Managing notifications from your inbox](/github/managing-subscriptions-and-notifications-on-github/managing-notifications-from-your-inbox#dependabot-custom-filters)." diff --git a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/browsing-security-vulnerabilities-in-the-github-advisory-database.md b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/browsing-security-vulnerabilities-in-the-github-advisory-database.md index 5e31410c347e..ce774b3d75bc 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/browsing-security-vulnerabilities-in-the-github-advisory-database.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/browsing-security-vulnerabilities-in-the-github-advisory-database.md @@ -1,7 +1,7 @@ --- -title: 浏览 GitHub Advisory Database 中的安全漏洞 -intro: '{% data variables.product.prodname_advisory_database %} 允许您浏览或搜索影响 {% data variables.product.company_short %} 上开源项目的漏洞。' -shortTitle: 浏览公告数据库 +title: Browsing security vulnerabilities in the GitHub Advisory Database +intro: 'The {% data variables.product.prodname_advisory_database %} allows you to browse or search for vulnerabilities that affect open source projects on {% data variables.product.company_short %}.' +shortTitle: Browse Advisory Database miniTocMaxHeadingLevel: 3 redirect_from: - /github/managing-security-vulnerabilities/browsing-security-vulnerabilities-in-the-github-advisory-database @@ -17,14 +17,13 @@ topics: - Vulnerabilities - CVEs --- - -## 关于安全漏洞 +## About security vulnerabilities {% data reusables.repositories.a-vulnerability-is %} -## 关于 {% data variables.product.prodname_advisory_database %} +## About the {% data variables.product.prodname_advisory_database %} The {% data variables.product.prodname_advisory_database %} contains a list of known security vulnerabilities, grouped in two categories: {% data variables.product.company_short %}-reviewed advisories and unreviewed advisories. @@ -36,82 +35,85 @@ The {% data variables.product.prodname_advisory_database %} contains a list of k We carefully review each advisory for validity. Each {% data variables.product.company_short %}-reviewed advisory has a full description, and contains both ecosystem and package information. -If you enable {% data variables.product.prodname_dependabot_alerts %} for your repositories, you are automatically notified when a new {% data variables.product.company_short %}-reviewed advisory affects packages you depend on. 更多信息请参阅“[关于易受攻击的依赖项的警报](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)”。 +If you enable {% data variables.product.prodname_dependabot_alerts %} for your repositories, you are automatically notified when a new {% data variables.product.company_short %}-reviewed advisory affects packages you depend on. For more information, see "[About alerts for vulnerable dependencies](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)." ### About unreviewed advisories -Unreviewed advisories are security vulnerabilites that we publish automatically into the {% data variables.product.prodname_advisory_database %}, directly from the National Vulnerability Database feed. +Unreviewed advisories are security vulnerabilites that we publish automatically into the {% data variables.product.prodname_advisory_database %}, directly from the National Vulnerability Database feed. {% data variables.product.prodname_dependabot %} doesn't create {% data variables.product.prodname_dependabot_alerts %} for unreviewed advisories as this type of advisory isn't checked for validity or completion. ## About security advisories -Each security advisory contains information about the vulnerability, which may include the description, severity, affected package, package ecosystem, affected versions and patched versions, impact, and optional information such as references, workarounds, and credits. 此外,国家漏洞数据库列表中的公告包含 CVE 记录链接,通过链接可以查看漏洞、其 CVSS 得分及其质化严重等级的更多详细信息。 更多信息请参阅国家标准和技术研究所 (National Institute of Standards and Technology) 的“[国家漏洞数据库](https://nvd.nist.gov/)”。 +Each security advisory contains information about the vulnerability, which may include the description, severity, affected package, package ecosystem, affected versions and patched versions, impact, and optional information such as references, workarounds, and credits. In addition, advisories from the National Vulnerability Database list contain a link to the CVE record, where you can read more details about the vulnerability, its CVSS scores, and its qualitative severity level. For more information, see the "[National Vulnerability Database](https://nvd.nist.gov/)" from the National Institute of Standards and Technology. -我们在[常见漏洞评分系统 (CVSS) 第 5 节](https://www.first.org/cvss/specification-document)中定义了以下四种可能的严重性等级。 -- 低 -- 中 -- 高 -- 关键 +The severity level is one of four possible levels defined in the "[Common Vulnerability Scoring System (CVSS), Section 5](https://www.first.org/cvss/specification-document)." +- Low +- Medium/Moderate +- High +- Critical -{% data variables.product.prodname_advisory_database %} 使用上述 CVSS 级别。 如果 {% data variables.product.company_short %} 获取 CVE,{% data variables.product.prodname_advisory_database %} 将使用 CVSS 版本 3.1。 如果 CVE 是导入的,则 {% data variables.product.prodname_advisory_database %} 支持 CVSS 版本 3.0 和 3.1。 +The {% data variables.product.prodname_advisory_database %} uses the CVSS levels described above. If {% data variables.product.company_short %} obtains a CVE, the {% data variables.product.prodname_advisory_database %} uses CVSS version 3.1. If the CVE is imported, the {% data variables.product.prodname_advisory_database %} supports both CVSS versions 3.0 and 3.1. {% data reusables.repositories.github-security-lab %} -## 访问 {% data variables.product.prodname_advisory_database %} 中的通告 +## Accessing an advisory in the {% data variables.product.prodname_advisory_database %} -1. 导航到 https://github.com/advisories。 -2. (可选)要过滤列表,请使用任意下拉菜单。 ![下拉过滤器](/assets/images/help/security/advisory-database-dropdown-filters.png) +1. Navigate to https://github.com/advisories. +2. Optionally, to filter the list, use any of the drop-down menus. + ![Dropdown filters](/assets/images/help/security/advisory-database-dropdown-filters.png) {% tip %} **Tip:** You can use the sidebar on the left to explore {% data variables.product.company_short %}-reviewed and unreviewed advisories separately. {% endtip %} -3. 单击任何通告以查看详情。 +3. Click on any advisory to view details. {% note %} -也可以使用 GraphQL API 访问数据库。 更多信息请参阅“[`security_advisory` web 挂钩事件](/webhooks/event-payloads/#security_advisory)”。 +The database is also accessible using the GraphQL API. For more information, see the "[`security_advisory` webhook event](/webhooks/event-payloads/#security_advisory)." {% endnote %} -## 搜索 {% data variables.product.prodname_advisory_database %} +## Searching the {% data variables.product.prodname_advisory_database %} -您可以搜索数据库,并使用限定符缩小搜索范围。 例如,您可以搜索在特定日期、特定生态系统或特定库中创建的通告。 +You can search the database, and use qualifiers to narrow your search. For example, you can search for advisories created on a certain date, in a specific ecosystem, or in a particular library. {% data reusables.time_date.date_format %} {% data reusables.time_date.time_format %} {% data reusables.search.date_gt_lt %} -| 限定符 | 示例 | -| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type:reviewed` | [**type:reviewed**](https://github.com/advisories?query=type%3Areviewed) will show {% data variables.product.company_short %}-reviewed advisories. | -| `type:unreviewed` | [**type:unreviewed**](https://github.com/advisories?query=type%3Aunreviewed) will show unreviewed advisories. | -| `GHSA-ID` | [**GHSA-49wp-qq6x-g2rf**](https://github.com/advisories?query=GHSA-49wp-qq6x-g2rf) 将显示使用此 {% data variables.product.prodname_advisory_database %} ID 的通告。 | -| `CVE-ID` | [**CVE-2020-28482**](https://github.com/advisories?query=CVE-2020-28482) 将显示使用此 CVE ID 号的通告。 | -| `ecosystem:ECOSYSTEM` | [**ecosystem:npm**](https://github.com/advisories?utf8=%E2%9C%93&query=ecosystem%3Anpm) 只显示影响 NPM 包的通告。 | -| `severity:LEVEL` | [**severity:high**](https://github.com/advisories?utf8=%E2%9C%93&query=severity%3Ahigh) 只显示严重程度高的公告。 | -| `affects:LIBRARY` | [**affects:lodash**](https://github.com/advisories?utf8=%E2%9C%93&query=affects%3Alodash) 只显示影响 lodash 库的通告。 | -| `cwe:ID` | [**cwe:352**](https://github.com/advisories?query=cwe%3A352) 将只显示使用此 CWE 编号的通告。 | -| `credit:USERNAME` | [**credit:octocat**](https://github.com/advisories?query=credit%3Aoctocat) 将只显示计入“octocat”用户帐户的通告。 | -| `sort:created-asc` | [**sort:created-asc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Acreated-asc) 按照时间顺序对通告排序,最早的通告排在最前面。 | -| `sort:created-desc` | [**sort:created-desc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Acreated-desc) 按照时间顺序对通告排序,最新的通告排在最前面。 | -| `sort:updated-asc` | [**sort:updated-asc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Aupdated-asc) 按照更新顺序排序,最早更新的排在最前面。 | -| `sort:updated-desc` | [**sort:updated-desc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Aupdated-desc) 按照更新顺序排序,最近更新的排在最前面。 | -| `is:withdrawn` | [**is:withdrawn**](https://github.com/advisories?utf8=%E2%9C%93&query=is%3Awithdrawn) 只显示已经撤销的通告。 | -| `created:YYYY-MM-DD` | [**created:2021-01-13**](https://github.com/advisories?utf8=%E2%9C%93&query=created%3A2021-01-13) 只显示此日期创建的通告。 | -| `updated:YYYY-MM-DD` | [**updated:2021-01-13**](https://github.com/advisories?utf8=%E2%9C%93&query=updated%3A2021-01-13) 只显示此日期更新的通告。 | - -## 查看有漏洞的仓库 - -For any {% data variables.product.company_short %}-reviewed advisory in the {% data variables.product.prodname_advisory_database %}, you can see which of your repositories are affected by that security vulnerability. 要查看有漏洞的仓库,您必须有权访问该仓库的 {% data variables.product.prodname_dependabot_alerts %}。 更多信息请参阅“[关于易受攻击的依赖项的警报](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies#access-to-dependabot-alerts)”。 - -1. 导航到 https://github.com/advisories。 -2. 单击通告。 -3. 在通告页面的顶部,单击 **Dependabot alerts(Dependabot 警报)**。 ![Dependabot 警报](/assets/images/help/security/advisory-database-dependabot-alerts.png) -4. (可选)要过滤列表,请使用搜索栏或下拉菜单。 “Organization(组织)”下拉菜单用于按所有者(组织或用户)过滤 {% data variables.product.prodname_dependabot_alerts %}。 ![用于过滤警报的搜索栏和下拉菜单](/assets/images/help/security/advisory-database-dependabot-alerts-filters.png) -5. 有关漏洞的更多详细信息,以及有关如何修复有漏洞的仓库的建议,请单击仓库名称。 - -## 延伸阅读 - -- MITRE 的[“漏洞”定义](https://cve.mitre.org/about/terminology.html#vulnerability) +| Qualifier | Example | +| ------------- | ------------- | +| `type:reviewed`| [**type:reviewed**](https://github.com/advisories?query=type%3Areviewed) will show {% data variables.product.company_short %}-reviewed advisories. | +| `type:unreviewed`| [**type:unreviewed**](https://github.com/advisories?query=type%3Aunreviewed) will show unreviewed advisories. | +| `GHSA-ID`| [**GHSA-49wp-qq6x-g2rf**](https://github.com/advisories?query=GHSA-49wp-qq6x-g2rf) will show the advisory with this {% data variables.product.prodname_advisory_database %} ID. | +| `CVE-ID`| [**CVE-2020-28482**](https://github.com/advisories?query=CVE-2020-28482) will show the advisory with this CVE ID number. | +| `ecosystem:ECOSYSTEM`| [**ecosystem:npm**](https://github.com/advisories?utf8=%E2%9C%93&query=ecosystem%3Anpm) will show only advisories affecting NPM packages. | +| `severity:LEVEL`| [**severity:high**](https://github.com/advisories?utf8=%E2%9C%93&query=severity%3Ahigh) will show only advisories with a high severity level. | +| `affects:LIBRARY`| [**affects:lodash**](https://github.com/advisories?utf8=%E2%9C%93&query=affects%3Alodash) will show only advisories affecting the lodash library. | +| `cwe:ID`| [**cwe:352**](https://github.com/advisories?query=cwe%3A352) will show only advisories with this CWE number. | +| `credit:USERNAME`| [**credit:octocat**](https://github.com/advisories?query=credit%3Aoctocat) will show only advisories credited to the "octocat" user account. | +| `sort:created-asc`| [**sort:created-asc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Acreated-asc) will sort by the oldest advisories first. | +| `sort:created-desc`| [**sort:created-desc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Acreated-desc) will sort by the newest advisories first. | +| `sort:updated-asc`| [**sort:updated-asc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Aupdated-asc) will sort by the least recently updated first. | +| `sort:updated-desc`| [**sort:updated-desc**](https://github.com/advisories?utf8=%E2%9C%93&query=sort%3Aupdated-desc) will sort by the most recently updated first. | +| `is:withdrawn`| [**is:withdrawn**](https://github.com/advisories?utf8=%E2%9C%93&query=is%3Awithdrawn) will show only advisories that have been withdrawn. | +| `created:YYYY-MM-DD`| [**created:2021-01-13**](https://github.com/advisories?utf8=%E2%9C%93&query=created%3A2021-01-13) will show only advisories created on this date. | +| `updated:YYYY-MM-DD`| [**updated:2021-01-13**](https://github.com/advisories?utf8=%E2%9C%93&query=updated%3A2021-01-13) will show only advisories updated on this date. | + +## Viewing your vulnerable repositories + +For any {% data variables.product.company_short %}-reviewed advisory in the {% data variables.product.prodname_advisory_database %}, you can see which of your repositories are affected by that security vulnerability. To see a vulnerable repository, you must have access to {% data variables.product.prodname_dependabot_alerts %} for that repository. For more information, see "[About alerts for vulnerable dependencies](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies#access-to-dependabot-alerts)." + +1. Navigate to https://github.com/advisories. +2. Click an advisory. +3. At the top of the advisory page, click **Dependabot alerts**. + ![Dependabot alerts](/assets/images/help/security/advisory-database-dependabot-alerts.png) +4. Optionally, to filter the list, use the search bar or the drop-down menus. The "Organization" drop-down menu allows you to filter the {% data variables.product.prodname_dependabot_alerts %} per owner (organization or user). + ![Search bar and drop-down menus to filter alerts](/assets/images/help/security/advisory-database-dependabot-alerts-filters.png) +5. For more details about the vulnerability, and for advice on how to fix the vulnerable repository, click the repository name. + +## Further reading + +- MITRE's [definition of "vulnerability"](https://www.cve.org/ResourcesSupport/Glossary#vulnerability) diff --git a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-notifications-for-vulnerable-dependencies.md b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-notifications-for-vulnerable-dependencies.md index b57950cdeb31..3fe7596f1a0f 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-notifications-for-vulnerable-dependencies.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-notifications-for-vulnerable-dependencies.md @@ -1,7 +1,7 @@ --- title: 配置有漏洞依赖项的通知 shortTitle: 配置通知 -intro: 'Optimize how you receive notifications about {% data variables.product.prodname_dependabot_alerts %}.' +intro: '优化接收 {% data variables.product.prodname_dependabot_alerts %} 相关通知的方式。' redirect_from: - /github/managing-security-vulnerabilities/configuring-notifications-for-vulnerable-dependencies - /code-security/supply-chain-security/configuring-notifications-for-vulnerable-dependencies @@ -33,7 +33,7 @@ topics: {% ifversion ghes or ghae-issue-4864 %} 默认情况下,如果您的企业所有者已配置电子邮件以获取有关企业的通知,您将收到 {% data variables.product.prodname_dependabot_alerts %} 电子邮件。 -企业所有者也可以在没有通知的情况下启用 {% data variables.product.prodname_dependabot_alerts %}。 For more information, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)." +企业所有者也可以在没有通知的情况下启用 {% data variables.product.prodname_dependabot_alerts %}。 For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." {% endif %} ## 配置 {% data variables.product.prodname_dependabot_alerts %} 的通知 @@ -51,7 +51,7 @@ topics: {% note %} -**Note:** You can filter your notifications on {% data variables.product.company_short %} to show {% data variables.product.prodname_dependabot_alerts %}. 更多信息请参阅“[从收件箱管理通知](/github/managing-subscriptions-and-notifications-on-github/managing-notifications-from-your-inbox#dependabot-custom-filters)”。 +**注意:**您可以在 {% data variables.product.company_short %} 上过滤通知以显示 {% data variables.product.prodname_dependabot_alerts %}。 更多信息请参阅“[从收件箱管理通知](/github/managing-subscriptions-and-notifications-on-github/managing-notifications-from-your-inbox#dependabot-custom-filters)”。 {% endnote %} diff --git a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/index.md b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/index.md index d406465ced1a..067cab1c4a7c 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/index.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/index.md @@ -1,5 +1,5 @@ --- -title: 管理项目依赖项中的漏洞 +title: Managing vulnerabilities in your project's dependencies intro: 'You can track your repository''s dependencies and receive {% data variables.product.prodname_dependabot_alerts %} when {% data variables.product.product_name %} detects vulnerable dependencies.' redirect_from: - /articles/updating-your-project-s-dependencies @@ -30,6 +30,6 @@ children: - /viewing-and-updating-vulnerable-dependencies-in-your-repository - /troubleshooting-the-detection-of-vulnerable-dependencies - /troubleshooting-dependabot-errors -shortTitle: 修复有漏洞的依赖项 +shortTitle: Fix vulnerable dependencies --- diff --git a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/viewing-and-updating-vulnerable-dependencies-in-your-repository.md b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/viewing-and-updating-vulnerable-dependencies-in-your-repository.md index 4f6be9e0d5ca..fd82748fab1f 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/viewing-and-updating-vulnerable-dependencies-in-your-repository.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/viewing-and-updating-vulnerable-dependencies-in-your-repository.md @@ -25,7 +25,7 @@ topics: {% data reusables.dependabot.beta-security-and-version-updates %} {% data reusables.dependabot.enterprise-enable-dependabot %} -Your repository's {% data variables.product.prodname_dependabot_alerts %} tab lists all open and closed {% data variables.product.prodname_dependabot_alerts %}{% ifversion fpt or ghec or ghes > 3.2 %} and corresponding {% data variables.product.prodname_dependabot_security_updates %}{% endif %}. You can{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5638 %} filter alerts by package, ecosystem, or manifest. You can also{% endif %} sort the list of alerts, and you can click into specific alerts for more details. 更多信息请参阅“[关于易受攻击的依赖项的警报](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)”。 +仓库的 {% data variables.product.prodname_dependabot_alerts %} 选项卡列出所有打开和关闭的 {% data variables.product.prodname_dependabot_alerts %}{% ifversion fpt or ghec or ghes > 3.2 %} 以及对应的 {% data variables.product.prodname_dependabot_security_updates %}{% endif %}。 可以{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5638 %} 按程序包、生态系统或清单筛选警报。 您还可以{% endif %} 对警报列表进行排序,单击特定警报以获取更多详细信息。 更多信息请参阅“[关于易受攻击的依赖项的警报](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)”。 {% ifversion fpt or ghec or ghes > 3.2 %} 您可以为使用 {% data variables.product.prodname_dependabot_alerts %} 和依赖关系图的任何仓库启用自动安全更新。 更多信息请参阅“[关于 {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates)“。 @@ -38,9 +38,9 @@ Your repository's {% data variables.product.prodname_dependabot_alerts %} tab li {% data variables.product.product_name %} 在检测到您的代码库正在使用具有已知漏洞的依赖项时会生成 {% data variables.product.prodname_dependabot_alerts %}。 对于启用了 {% data variables.product.prodname_dependabot_security_updates %} 的仓库,当 {% data variables.product.product_name %} 在默认分支中检测到有漏洞的依赖项时,{% data variables.product.prodname_dependabot %} 会创建拉取请求来修复它。 拉取请求会将依赖项升级到避免漏洞所需的最低安全版本。 -{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5638 %}You can sort and filter {% data variables.product.prodname_dependabot_alerts %} with the dropdown menus in the {% data variables.product.prodname_dependabot_alerts %} tab or by typing filters as `key:value` pairs into the search bar. The available filters are repository (for example, `repo:my-repository`), package (for example, `package:django`), ecosystem (for example, `ecosystem:npm`), manifest (for example, `manifest:webwolf/pom.xml`), state (for example, `is:open`), and whether an advisory has a patch (for example, `has: patch`). +{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5638 %}您可以使用 {% data variables.product.prodname_dependabot_alerts %} 选项卡中的下拉菜单对 {% data variables.product.prodname_dependabot_alerts %} 进行排序和过滤,也可以在搜索栏中键入过滤条件作为`键:值`对。 可用的过滤器包括仓库(例如 `repo:my-repository`)、包(例如 `package:django`)、生态系统(例如 `ecosystem:npm`)、清单(例如 `manifest:webwolf/pom.xml`)、状态(例如 `is:open`)以及公告是否有补丁(例如 `has: patch`)。 -Each {% data variables.product.prodname_dependabot %} alert has a unique numeric identifier and the {% data variables.product.prodname_dependabot_alerts %} tab lists an alert for every detected vulnerability. Legacy {% data variables.product.prodname_dependabot_alerts %} grouped vulnerabilities by dependency and generated a single alert per dependency. If you navigate to a legacy {% data variables.product.prodname_dependabot %} alert, you will be redirected to a {% data variables.product.prodname_dependabot_alerts %} tab filtered for that package. {% endif %} +每个 {% data variables.product.prodname_dependabot %} 警报都有一个唯一的数字标识符,{% data variables.product.prodname_dependabot_alerts %} 选项卡列出了每个检测到的漏洞的警报。 旧版 {% data variables.product.prodname_dependabot_alerts %} 按依赖项对漏洞进行分组,并为每个依赖项生成一个警报。 如果导航到旧版 {% data variables.product.prodname_dependabot %} 警报,则会将您重定向到为该包筛选的 {% data variables.product.prodname_dependabot_alerts %} 选项卡。 {% endif %} {% endif %} ## 查看和更新有漏洞的依赖项 @@ -49,8 +49,8 @@ Each {% data variables.product.prodname_dependabot %} alert has a unique numeric {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-dependabot-alerts %} -1. Optionally, to filter alerts, select the **Repository**, **Package**, **Ecosystem**, or **Manifest** dropdown menu then click the filter that you would like to apply. You can also type filters into the search bar. For example, `ecosystem:npm` or `has:patch`. To sort alerts, select the **Sort** dropdown menu then click the option that you would like to sort by. ![Screenshot of the filter and sort menus in the {% data variables.product.prodname_dependabot_alerts %} tab](/assets/images/help/graphs/dependabot-alerts-filters.png) -1. Click the alert that you would like to view. ![在警报列表中选择的警报](/assets/images/help/graphs/click-alert-in-alerts-list-ungrouped.png) +1. (可选)若要筛选警报,请选择 **Repository(仓库)**、**Package(包)**、**Ecosystem(生态系统)**或 **Manifest(清单)**下拉菜单,然后单击要应用的筛选器。 您还可以在搜索栏中键入过滤条件。 例如 `ecosystem:npm` 或 `has:patch`。 要对警报进行排序,请选择 **Sort(排序)**下拉菜单,然后单击要作为排序依据的选项。 ![{% data variables.product.prodname_dependabot_alerts %} 选项卡中过滤器和排序菜单的屏幕截图](/assets/images/help/graphs/dependabot-alerts-filters.png) +1. 单击要查看的警报。 ![在警报列表中选择的警报](/assets/images/help/graphs/click-alert-in-alerts-list-ungrouped.png) 1. 查看漏洞的详细信息以及包含自动安全更新的拉取请求(如果有)。 1. (可选)如果还没有针对该警报的 {% data variables.product.prodname_dependabot_security_updates %} 更新,要创建拉取请求以解决该漏洞,请单击 **Create {% data variables.product.prodname_dependabot %} security update(创建 Dependabot 安全更新)**。 ![创建 {% data variables.product.prodname_dependabot %} 安全更新按钮](/assets/images/help/repository/create-dependabot-security-update-button-ungrouped.png) 1. 当您准备好更新依赖项并解决漏洞时,合并拉取请求。 {% data variables.product.prodname_dependabot %} 提出的每个拉取请求都包含可用于控制 {% data variables.product.prodname_dependabot %} 的命令的相关信息。 更多信息请参阅“[管理依赖项更新的拉取请求](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-pull-requests-for-dependency-updates#managing-dependabot-pull-requests-with-comment-commands)”。 diff --git a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review.md b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review.md index 1485e332020f..0e7e9cfcaaba 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review.md @@ -46,4 +46,4 @@ redirect_from: ## 启用依赖项审查 -启用依赖关系图时,依赖项审查功能可用。 {% ifversion fpt or ghec %}For more information, see "[Enabling the dependency graph](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph#enabling-the-dependency-graph)."{% endif %}{% ifversion ghes or ghae %}For more information, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)."{% endif %} +启用依赖关系图时,依赖项审查功能可用。 {% ifversion fpt or ghec %}更多信息请参阅“[启用依赖关系图](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph#enabling-the-dependency-graph)”。{% endif %}{% ifversion ghes or ghae %}更多信息请参阅“[为企业启用依赖关系图](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise)”。{% endif %} diff --git a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph.md b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph.md index 0956aede4116..de81712e3730 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph.md @@ -27,10 +27,7 @@ shortTitle: Dependency graph ## About the dependency graph -The dependency graph is a summary of the manifest and lock files stored in a repository. For each repository, it shows{% ifversion fpt or ghec %}: - -- Dependencies, the ecosystems and packages it depends on -- Dependents, the repositories and packages that depend on it{% else %} dependencies, that is, the ecosystems and packages it depends on. {% data variables.product.product_name %} does not calculate information about dependents, the repositories and packages that depend on a repository.{% endif %} +{% data reusables.dependabot.about-the-dependency-graph %} When you push a commit to {% data variables.product.product_name %} that changes or adds a supported manifest or lock file to the default branch, the dependency graph is automatically updated.{% ifversion fpt or ghec %} In addition, the graph is updated when anyone pushes a change to the repository of one of your dependencies.{% endif %} For information on the supported ecosystems and manifest files, see "[Supported package ecosystems](#supported-package-ecosystems)" below. @@ -65,7 +62,7 @@ You can use the dependency graph to: {% ifversion fpt or ghec %}To generate a dependency graph, {% data variables.product.product_name %} needs read-only access to the dependency manifest and lock files for a repository. The dependency graph is automatically generated for all public repositories and you can choose to enable it for private repositories. For information about enabling or disabling it for private repositories, see "[Exploring the dependencies of a repository](/github/visualizing-repository-data-with-graphs/exploring-the-dependencies-of-a-repository)."{% endif %} -{% ifversion ghes or ghae %}If the dependency graph is not available in your system, your enterprise owner can enable the dependency graph and {% data variables.product.prodname_dependabot_alerts %}. For more information, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)."{% endif %} +{% ifversion ghes or ghae %}If the dependency graph is not available in your system, your enterprise owner can enable the dependency graph. For more information, see "[Enabling the dependency graph for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise)."{% endif %} When the dependency graph is first enabled, any manifest and lock files for supported ecosystems are parsed immediately. The graph is usually populated within minutes but this may take longer for repositories with many dependencies. Once enabled, the graph is automatically updated with every push to the repository{% ifversion fpt or ghec %} and every push to other repositories in the graph{% endif %}. diff --git a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md index d03e346f6fbf..94b9b781ceb4 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md @@ -34,7 +34,7 @@ shortTitle: 探索依赖项 4. (可选)在 "Dependency graph"(依赖关系图)下,单击 **Dependents(依赖项)**。 ![Dependents tab on the dependency graph page](/assets/images/help/graphs/dependency-graph-dependents-tab.png){% endif %} {% ifversion ghes or ghae-issue-4864 %} -Enterprise owners can configure the dependency graph at an enterprise level. For more information, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)." +企业所有者可以在企业级别配置依赖关系图。 For more information, see "[Enabling the dependency graph for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise)." {% endif %} ### 依赖项视图 diff --git a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/index.md b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/index.md index 746bd369fd3d..43c07b3bf4df 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/index.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/index.md @@ -13,6 +13,6 @@ children: - /about-the-dependency-graph - /exploring-the-dependencies-of-a-repository - /about-dependency-review -shortTitle: Understand your supply chain +shortTitle: 了解供应链 --- diff --git a/translations/zh-CN/content/codespaces/codespaces-reference/allowing-your-codespace-to-access-a-private-image-registry.md b/translations/zh-CN/content/codespaces/codespaces-reference/allowing-your-codespace-to-access-a-private-image-registry.md index a8fcc99f8601..3a8af60a1d30 100644 --- a/translations/zh-CN/content/codespaces/codespaces-reference/allowing-your-codespace-to-access-a-private-image-registry.md +++ b/translations/zh-CN/content/codespaces/codespaces-reference/allowing-your-codespace-to-access-a-private-image-registry.md @@ -12,47 +12,47 @@ shortTitle: 私有映像注册表 ## 关于私人映像注册表和 {% data variables.product.prodname_codespaces %} -A registry is a secure space for storing, managing, and fetching private container images. You may use one to store one or more images. There are many examples of registries, such as {% data variables.product.prodname_dotcom %} Container Registry, Azure Container Registry, or DockerHub. +注册表是用于存储、管理和提取专用容器映像的安全空间。 您可以使用一个来存储一个或多个映像。 注册表的示例很多,例如 {% data variables.product.prodname_dotcom %} 容器注册表、Azure 容器注册表或 DockerHub。 -{% data variables.product.prodname_dotcom %} Container Registry can be configured to pull container images seamlessly, without having to provide any authentication credentials to {% data variables.product.prodname_codespaces %}. For other image registries, you must create secrets in {% data variables.product.prodname_dotcom %} to store the access details, which will allow {% data variables.product.prodname_codespaces %} to access images stored in that registry. +{% data variables.product.prodname_dotcom %} 容器注册表可以配置为无缝拉取容器映像,而无需向 {% data variables.product.prodname_codespaces %} 提供任何身份验证凭据。 对于其他映像注册表,必须在 {% data variables.product.prodname_dotcom %} 中创建机密以存储访问详细信息,这将允许 {% data variables.product.prodname_codespaces %} 访问存储在该注册表中的映像。 -## Accessing images stored in {% data variables.product.prodname_dotcom %} Container Registry +## 访问存储在 {% data variables.product.prodname_dotcom %} 容器注册表中的映像 -{% data variables.product.prodname_dotcom %} Container Registry is the easiest way for {% data variables.product.prodname_github_codespaces %} to consume devcontainer container images. +{% data variables.product.prodname_dotcom %} 容器注册表是 {% data variables.product.prodname_github_codespaces %} 使用 devcontainer 容器映像的最简单方法。 -For more information, see "[Working with the Container registry](/packages/working-with-a-github-packages-registry/working-with-the-container-registry)". +更多信息请参阅“[使用容器注册表](/packages/working-with-a-github-packages-registry/working-with-the-container-registry)”。 -### Accessing an image published to the same repository as the codespace +### 访问发布到与代码空间相同的仓库的映像 -If you publish a container image to {% data variables.product.prodname_dotcom %} Container Registry in the same repository that the codespace is being launched in, you will automatically be able to fetch that image on codespace creation. You won't have to provide any additional credentials, unless the **Inherit access from repo** option was unselected when the container image was published. +如果将容器映像发布到启动代码空间的同一仓库中的 {% data variables.product.prodname_dotcom %} 容器注册表,则在创建代码空间时将自动能够获取该映像。 无需提供任何其他凭据,除非在发布容器映像时未选中 **Inherit access from repo(从仓库继承访问权限)**选项。 -#### Inheriting access from the repository from which an image was published +#### 从发布映像的仓库继承访问权限 -By default, when you publish a container image to {% data variables.product.prodname_dotcom %} Container Registry, the image inherits the access setting of the repository from which the image was published. For example, if the repository is public, the image is also public. If the repository is private, the image is also private, but is accessible from the repository. +默认情况下,将容器映像发布到 {% data variables.product.prodname_dotcom %} 容器注册表时,该映像将继承从中发布映像的仓库的访问设置。 例如,如果仓库是公共的,则映像也是公共的。 如果仓库是私有的,则映像也是私有的,但可以从仓库访问。 -This behavior is controlled by the **Inherit access from repo** option. **Inherit access from repo** is selected by default when publishing via {% data variables.product.prodname_actions %}, but not when publishing directly to {% data variables.product.prodname_dotcom %} Container Registry using a Personal Access Token (PAT). +此行为由 **Inherit access from repo(从仓库继承访问权限)**选项控制。 **通过** {% data variables.product.prodname_actions %} 发布时,默认情况下会选择从仓库继承访问权限,但在使用个人访问令牌 (PAT) 直接发布到 {% data variables.product.prodname_dotcom %} 容器注册表时,不会选择从仓库继承访问权限。 -If the **Inherit access from repo** option was not selected when the image was published, you can manually add the repository to the published container image's access controls. 更多信息请参阅“[配置包的访问控制和可见性](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#inheriting-access-for-a-container-image-from-a-repository)”。 +如果在发布映像时未选择 **Inherit access from repo(从仓库继承访问权限)**选项,则可以手动将仓库添加到已发布容器映像的访问控制中。 更多信息请参阅“[配置包的访问控制和可见性](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#inheriting-access-for-a-container-image-from-a-repository)”。 -### Accessing an image published to the organization a codespace will be launched in +### 访问发布到组织、代码空间将在 其中启动的映像 -If you want a container image to be accessible to all codespaces in an organization, we recommend that you publish the container image with internal visibility. This will automatically make the image visible to all codespaces within the organization, unless the repository the codespace is launched from is public. +如果希望组织中的所有代码空间都可以访问容器映像,建议发布具有内部可见性的容器映像。 这将自动使映像对组织内的所有代码空间可见,除非从中启动代码空间的仓库是公开的。 -If the codespace is being launched from a public repository referencing an internal or private image, you must manually allow the public repository access to the internal container image. This prevents the internal image from being accidentally leaked publicly. For more information, see "[Ensuring Codespaces access to your package](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#ensuring-codespaces-access-to-your-package)." +如果代码空间是从引用内部或私有映像的公共公共仓库启动的,则必须手动允许公共公共仓库访问内部容器映像。 这可以防止内部映像意外公开泄露。 更多信息请参阅“[确保 Codespaces 访问您的包](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#ensuring-codespaces-access-to-your-package)”。 -### Accessing a private container from a subset of repositories in an organization +### 从组织中仓库的子集访问私有容器 -If you want to allow a subset of an organization's repositories to access a container image, or allow an internal or private image to be accessed from a codespace launched in a public repository, you can manually add repositories to a container image's access settings. For more information, see "[Ensuring Codespaces access to your package](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#ensuring-codespaces-access-to-your-package)." +如果要允许组织的仓库子集访问容器映像,或者允许从在公共仓库中启动的代码空间访问内部或私有映像,则可以手动将仓库添加到容器映像的访问设置。 更多信息请参阅“[确保 Codespaces 访问您的包](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#ensuring-codespaces-access-to-your-package)” -### Publishing a container image from a codespace +### 从代码空间发布容器映像 -Seamless access from a codespace to {% data variables.product.prodname_dotcom %} Container Registry is limited to pulling container images. If you want to publish a container image from inside a codespace, you must use a personal access token (PAT) with the `write:packages` scope. +从代码空间到容器注册表 {% data variables.product.prodname_dotcom %} 的无缝访问仅限于拉取容器映像。 如果要从代码空间内部发布容器映像,则必须结合使用个人访问令牌 (PAT) 与 `write:packages` 作用域。 -We recommend publishing images via {% data variables.product.prodname_actions %}. For more information, see "[Publishing Docker images](/actions/publishing-packages/publishing-docker-images)." +我们建议通过 {% data variables.product.prodname_actions %} 发布映像。 更多信息请参阅“[发布 Docker 映像](/actions/publishing-packages/publishing-docker-images)”。 -## Accessing images stored in other container registries +## 访问存储在其他容器注册表中的映像 -If you are accessing a container image from a registry that isn't {% data variables.product.prodname_dotcom %} Container Registry, {% data variables.product.prodname_codespaces %} checks for the presence of three secrets, which define the server name, username, and personal access token (PAT) for a container registry. 如果找到这些密钥,{% data variables.product.prodname_codespaces %} 将在代码空间中提供注册表。 +如果要从不是 {% data variables.product.prodname_dotcom %} 容器注册表的注册表访问容器映像,{% data variables.product.prodname_codespaces %} 将检查是否存在三个机密,这些机密定义了容器注册表的服务器名称、用户名和个人访问令牌 (PAT)。 如果找到这些密钥,{% data variables.product.prodname_codespaces %} 将在代码空间中提供注册表。 - `<*>_CONTAINER_REGISTRY_SERVER` - `<*>_CONTAINER_REGISTRY_USER` @@ -74,7 +74,7 @@ ACR_CONTAINER_REGISTRY_USER = acr-user-here ACR_CONTAINER_REGISTRY_PASSWORD = ``` -有关通用映像注册表的信息,请参阅“[通用映像注册表服务器](#common-image-registry-servers)”。 Note that accessing AWS Elastic Container Registry (ECR) is different. +有关通用映像注册表的信息,请参阅“[通用映像注册表服务器](#common-image-registry-servers)”。 请注意,访问 AWS Elastic Container Registry (ECR) 是不同的。 ![映像注册表密钥示例](/assets/images/help/settings/codespaces-image-registry-secret-example.png) @@ -82,7 +82,7 @@ ACR_CONTAINER_REGISTRY_PASSWORD = #### 访问 AWS Elastic Container Registry -To access AWS Elastic Container Registry (ECR), you can provide an AWS access key ID and secret key, and {% data variables.product.prodname_dotcom %} can retrieve an access token for you and log in on your behalf. +要访问 AWS 弹性容器注册表 (ECR),您可以提供 AWS 访问密钥 ID 和私有密钥,{% data variables.product.prodname_dotcom %} 可以为您检索访问令牌并代表您登录。 ``` *_CONTAINER_REGISTRY_SERVER = @@ -90,9 +90,9 @@ To access AWS Elastic Container Registry (ECR), you can provide an AWS access k *_CONTAINER_REGISTRY_PASSWORD = ``` -You must also ensure you have the appropriate AWS IAM permissions to perform the credential swap (e.g. `sts:GetServiceBearerToken`) as well as the ECR read operation (either `AmazonEC2ContainerRegistryFullAccess` or `ReadOnlyAccess`). +您还必须确保拥有适当的 AWS IAM 权限来执行凭证交换(例如 `sts:GetServiceBearerToken`)以及 ECR 读取操作( `AmazonEC2ContainerRegistryFullAccess` 或 `ReadOnlyAccess`)。 -Alternatively, if you don't want GitHub to perform the credential swap on your behalf, you can provide an authorization token fetched via AWS's APIs or CLI. +或者,如果您不希望 GitHub 代表您执行凭证交换,则可以提供通过 AWS 的 API 或 CLI 获取的授权令牌。 ``` *_CONTAINER_REGISTRY_SERVER = @@ -100,11 +100,11 @@ Alternatively, if you don't want GitHub to perform the credential swap on your b *_CONTAINER_REGISTRY_PASSWORD = ``` -Since these tokens are short lived and need to be refreshed periodically, we recommend providing an access key ID and secret. +由于这些令牌的生存期较短,需要定期刷新,因此我们建议提供访问密钥 ID 和机密。 -While these secrets can have any name, so long as the `*_CONTAINER_REGISTRY_SERVER` is an ECR URL, we recommend using `ECR_CONTAINER_REGISTRY_*` unless you are dealing with multiple ECR registries. +虽然这些机密可以具有任何名称,但只要 `*_CONTAINER_REGISTRY_SERVER` 是 ECR URL,我们建议您使用 `ECR_CONTAINER_REGISTRY_*`,除非您正在处理多个 ECR 注册表。 -For more information, see AWS ECR's "[Private registry authentication documentation](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html)." +更多信息请参阅 AWS ECR 的“[私人注册表身份验证文档](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html)”。 ### 通用映像注册表服务器 @@ -116,6 +116,6 @@ For more information, see AWS ECR's "[Private registry authentication documentat - [AWS Elastic Container Registry](https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html) - `.dkr.ecr..amazonaws.com` - [Google Cloud Container Registry](https://cloud.google.com/container-registry/docs/overview#registries) - `gcr.io` (US), `eu.gcr.io` (EU), `asia.gcr.io` (Asia) -## Debugging private image registry access +## 调试私有映像注册表访问 -If you are having trouble pulling an image from a private image registry, make sure you are able to run `docker login -u -p `, using the values of the secrets defined above. If login fails, ensure that the login credentials are valid and that you have the apprioriate permissions on the server to fetch a container image. If login succeeds, make sure that these values are copied appropriately into the right {% data variables.product.prodname_codespaces %} secrets, either at the user, repository, or organization level and try again. +如果在从私有映像注册表中拉取映像时遇到问题,请确保能够使用上面定义的机密的值运行 `docker login -u -p `。 如果登录失败,请确保登录凭据有效,并且您在服务器上具有提取容器映像的适当权限。 如果登录成功,请确保将这些值适当地复制到正确的 {% data variables.product.prodname_codespaces %} 机密中,无论是在用户、仓库还是组织级别,然后重试。 diff --git a/translations/zh-CN/content/codespaces/codespaces-reference/disaster-recovery-for-codespaces.md b/translations/zh-CN/content/codespaces/codespaces-reference/disaster-recovery-for-codespaces.md index 4ac86c246a18..13b0796de840 100644 --- a/translations/zh-CN/content/codespaces/codespaces-reference/disaster-recovery-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/codespaces-reference/disaster-recovery-for-codespaces.md @@ -7,7 +7,7 @@ versions: product: '{% data reusables.gated-features.codespaces %}' topics: - Codespaces -shortTitle: Disaster recovery +shortTitle: 灾难恢复 --- 我们努力确保您始终能够使用 {% data variables.product.prodname_codespaces %}。 但是,超出我们控制范围的力量有时会以导致计划外服务中断的方式影响服务。 @@ -22,21 +22,21 @@ shortTitle: Disaster recovery {% endnote %} -## Option 1: Create a new codespace in another region +## 选项 1:在另一个区域中创建新的代码空间 -In the case of a regional outage, we suggest you recreate your codespace in an unaffected region to continue working. 此新代码将包含您上次推送到 {% data variables.product.prodname_dotcom %} 后的所有更改。 For information on manually setting another region, see "[Setting your default region for Codespaces](/codespaces/managing-your-codespaces/setting-your-default-region-for-codespaces)." +如果发生区域性断电,我们建议您在未受影响的区域中重新创建代码空间以继续工作。 此新代码将包含您上次推送到 {% data variables.product.prodname_dotcom %} 后的所有更改。 有关手动设置其他区域的信息,请参阅“[为 Codespaces 设置默认区域](/codespaces/managing-your-codespaces/setting-your-default-region-for-codespaces)”。 -You can optimize recovery time by configuring a `devcontainer.json` in the project's repository, which allows you to define the tools, runtimes, frameworks, editor settings, extensions, and other configuration necessary to restore the development environment automatically. For more information, see "[Introduction to dev containers](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)." +您可以通过在项目仓库中配置 `devcontainer.json` 来优化恢复时间,允许您定义工具、运行时间、框架、编辑器设置、扩展以及其他自动恢复开发环境所需的配置。 更多信息请参阅“[开发容器简介](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)”。 ## 选项 2:等待恢复 在这种情况下,不需要您采取任何行动。 要知道,我们正在努力恢复服务可用性。 -You can check the current service status on the [Status Dashboard](https://www.githubstatus.com/). +您可以在[状态仪表板](https://www.githubstatus.com/)上查看当前服务状态。 ## 选项 3:本地克隆仓库或在浏览器中编辑 -虽然 {% data variables.product.prodname_codespaces %} 具有预配置的开发者环境的优点,但您的源代码应该始终可以通过 {% data variables.product.prodname_dotcom_the_website %} 托管的仓库访问。 如果发生 {% data variables.product.prodname_codespaces %} 中断,您仍然可以本地克隆存储库或在 {% data variables.product.company_short %} 浏览器编辑器中编辑文件。 For more information, see "[Editing files](/repositories/working-with-files/managing-files/editing-files)." +虽然 {% data variables.product.prodname_codespaces %} 具有预配置的开发者环境的优点,但您的源代码应该始终可以通过 {% data variables.product.prodname_dotcom_the_website %} 托管的仓库访问。 如果发生 {% data variables.product.prodname_codespaces %} 中断,您仍然可以本地克隆存储库或在 {% data variables.product.company_short %} 浏览器编辑器中编辑文件。 更多信息请参阅“[编辑文件](/repositories/working-with-files/managing-files/editing-files)”。 虽然此选项没有为您配置开发环境, 但它允许您在等待服务中断解决时根据需要更改源代码。 diff --git a/translations/zh-CN/content/codespaces/codespaces-reference/security-in-codespaces.md b/translations/zh-CN/content/codespaces/codespaces-reference/security-in-codespaces.md index d5a7dc910393..36de10277327 100644 --- a/translations/zh-CN/content/codespaces/codespaces-reference/security-in-codespaces.md +++ b/translations/zh-CN/content/codespaces/codespaces-reference/security-in-codespaces.md @@ -1,6 +1,6 @@ --- -title: Security in Codespaces -intro: 'Overview of the {% data variables.product.prodname_codespaces %} security architecture, with guidelines to help you maintain security and minimize the risk of attack.' +title: 代码空间中的安全性 +intro: '{% data variables.product.prodname_codespaces %} 安全体系结构概述,包括可帮助您维护安全性并最大限度地降低攻击风险的指导原则。' miniTocMaxHeadingLevel: 3 versions: fpt: '*' @@ -9,100 +9,100 @@ topics: - Codespaces - Security type: reference -shortTitle: Security in Codespaces +shortTitle: 代码空间中的安全性 --- -## Overview of codespace security +## 代码空间安全性概述 -{% data variables.product.prodname_codespaces %} is designed to be security hardened by default. Consequently, you will need to ensure that your software development practices do not risk reducing the security posture of your codespace. +默认情况下,{% data variables.product.prodname_codespaces %} 设计为加强安全性。 因此,您需要确保您的软件开发实践不会降低代码空间的安全状况。 -This guide describes the way Codespaces keeps your development environment secure and provides some of the good practices that will help maintain your security as you work. As with any development tool, remember that you should only open and work within repositories you know and trust. +本指南介绍了 Codespaces 保持开发环境安全的方式,并提供了一些有助于在工作时维护安全性的良好做法。 与任何开发工具一样,请记住,您只应在您了解和信任的存储库中打开和工作。 -### Environment isolation +### 环境隔离 -{% data variables.product.prodname_codespaces %} is designed to keep your codespaces separate from each other, with each using its own virtual machine and network. +{% data variables.product.prodname_codespaces %} 旨在使代码空间彼此独立,每个代码空间都使用自己的虚拟机和网络。 -#### Isolated virtual machines +#### 隔离的虚拟机 -Each codespace is hosted on its own newly-built virtual machine (VM). Two codespaces are never co-located on the same VM. +每个代码空间都托管在其自己的新建虚拟机 (VM) 上。 两个代码空间永远不会共存于同一 VM 上。 -Every time you restart a codespace, it's deployed to a new VM with the latest available security updates. +每次重新启动代码空间时,都会将其部署到具有最新可用安全更新的新 VM。 -#### Isolated networking +#### 隔离的网络 -Each codespace has its own isolated virtual network. We use firewalls to block incoming connections from the internet and to prevent codespaces from communicating with each other on internal networks. By default, codespaces are allowed to make outbound connections to the internet. +每个代码空间都有自己隔离的虚拟网络。 我们使用防火墙来阻止来自互联网的传入连接,并防止代码空间在内部网络上相互通信。 默认情况下,允许代码空间与互联网建立出站连接。 ### 身份验证 -You can connect to a codespace using a web browser or from Visual Studio Code. If you connect from Visual Studio Code, you are prompted to authenticate with {% data variables.product.product_name %}. +您可以使用 Web 浏览器或从 Visual Studio Code 连接到代码空间。 如果从 Visual Studio Code 进行连接,系统将提示您使用 {% data variables.product.product_name %} 进行身份验证。 -Every time a codespace is created or restarted, it's assigned a new {% data variables.product.company_short %} token with an automatic expiry period. This period allows you to work in the codespace without needing to reauthenticate during a typical working day, but reduces the chance that you will leave a connection open when you stop using the codespace. +每次创建或重新启动代码空间时,都会为其分配一个具有自动到期期的新 {% data variables.product.company_short %} 令牌。 此时间段允许您在代码空间中工作,而无需在典型的工作日内重新进行身份验证,但降低了在停止使用代码空间时使连接保持打开状态的可能性。 -The token's scope will vary depending on the access you have to the repository where the codespace was created: +令牌的作用域将根据您对创建代码空间的存储库的访问权限而有所不同: -- **If you have write access to the repository**: The token will be scoped for read/write access to the repository. -- **If you only have read access to the repository**: The token will only allow the code to be cloned from the source repository. If you attempt to push to a private repo where you only have read access, {% data variables.product.prodname_codespaces %} will prompt you to create a personal fork of the repository. The token will then be updated to have read/write access to the new personal fork. -- **If you've enabled your codespace to access other repositories**: When a codespace has been granted [access to other repositories](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces), any codespace created from that repository will have read/write tokens scoped to the source repository. In addition, the tokens will also receive read access to other repositories indicated by the user or organization. +- **如果您具有对存储库的写入访问权限**:令牌的范围将限定为对存储库的读/写访问权限。 +- **如果您只对存储库具有读取访问权限**:令牌将仅允许从源存储库克隆代码。 如果尝试推送到只有读取访问权限的私有存储库, {% data variables.product.prodname_codespaces %} 将提示您创建存储库的个人分支。 然后,令牌将被更新为对新的个人复刻具有读/写访问权限。 +- **如果已启用代码空间以访问其他存储库**:当代码空间被授予[对其他存储库访问权限](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces)时,从该存储库创建的任何代码空间都将具有范围为源存储库的读/写令牌。 此外,令牌还将获得对用户或组织指示的其他存储库的读取访问权限。 -An organization's administrators specify which repositories should be considered trusted. An admin can [choose to trust](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces) none, all, or some of the organization's repositories. A codespace can't have greater permissions to access resources than the person who created it, even if the organization administrator has granted access to all users and all repositories. +组织的管理员指定应将哪些存储库视为受信任。 管理员可以[选择信任](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces)全部或部分组织的存储库或不信任任何储存库。 代码空间访问资源的权限不能高于其创建者,即使组织管理员已向所有用户和所有存储库授予访问权限也是如此。 -### Codespace connections +### 代码空间连接 -You can connect to your codespace using the TLS encrypted tunnel provided by the {% data variables.product.prodname_codespaces %} service. Only the creator of a codespace can connect to a codespace. Connections are authenticated with {% data variables.product.product_name %}. +您可以使用 {% data variables.product.prodname_codespaces %} 服务提供的 TLS 加密隧道连接到代码空间。 只有代码空间的创建者才能连接到代码空间。 使用 {% data variables.product.product_name %} 对连接进行验证。 -If you need to allow external access to services running on a codespace, you can enable port forwarding for private or public access. +如果需要允许对代码空间上运行的服务进行外部访问,可以为专用或公共访问启用端口转发。 -### Port forwarding +### 端口转发 -If you need to connect to a service (such as a development web server) running within your codespace, you can configure port forwarding to make the service available on the internet. +如果需要连接到在代码空间内运行的服务(如开发 Web 服务器),则可以配置端口转发以使该服务在互联网上可用。 -**Privately forwarded ports**: Are accessible on the internet, but only the codespace creator can access them, after authenticating to {% data variables.product.product_name %}. +**私密转发端口**:可在互联网上访问,但只有代码空间创建者在向 {% data variables.product.product_name %} 验证后才可访问它们。 -**Publicly forwarded ports within your organization**: Are accessible on the internet, but only to members of the same organization as the codespace, after authenticating to {% data variables.product.product_name %}. +**组织内公开转发的端口**:在通过身份验证后,可在互联网上访问,但只能由与代码空间相同的组织的成员访问 {% data variables.product.product_name %}。 -**Publicly forwarded ports**: Are accessible on the internet, and anyone on the internet can access them. No authentication is needed to access public forwarded ports. +**公开转发的端口**:可在互联网上访问,互联网上的任何人都可以访问它们。 访问公共转发的端口不需要身份验证。 -All forwarded ports are private by default, which means that you will need to authenticate before you can access the port. Access to a codespace's private forwarded ports is controlled by authentication cookies with a 3-hour expiry period. When the cookie expires, you will need to reauthenticate. +默认情况下,所有转发的端口都是私密的,这意味着您需要先进行身份验证,然后才能访问该端口。 对代码空间的私密转发端口的访问由到期时间为 3 小时的身份验证 Cookie 控制。 当 Cookie 过期时,您将需要重新进行身份验证。 -A public forwarded port will automatically revert back to private when you remove and re-add the port, or if you restart the codespace. +当您删除并重新添加端口时,或者重新启动代码空间时,公共转发端口将自动恢复为私密端口。 -You can use the "Ports" panel to configure a port for public or private access, and can stop port forwarding when it's no longer required. For more information, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)." +您可以使用“端口”面板为公共或私密访问配置端口,并且可以在不再需要端口转发时停止端口转发。 更多信息请参阅“[在代码空间中转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)”。 -## Good security practices for your codespaces +## 代码空间的良好安全实践 -Codespaces are designed to be security hardened by default. To help maintain this posture, we recommend that you follow good security practices during your development procedures: +默认情况下,代码空间设计为加强安全性。 为了帮助保持此状态,我们建议您在开发过程中遵循良好的安全实践: -- As with any development tool, remember that you should only open and work within repositories you know and trust. -- Before you add new dependencies to the codespace, check whether they are well-maintained, and if they release updates to fix any security vulnerabilities found in their code. +- 与任何开发工具一样,请记住,您只应在您了解和信任的存储库中打开和工作。 +- 在将新的依赖项添加到代码空间之前,请检查它们是否维护良好,以及它们是否发布更新以修复其代码中发现的任何安全漏洞。 -### Using secrets to access sensitive information +### 使用机密访问敏感信息 -Always use encrypted secrets when you want to use sensitive information (such as access tokens) in a codespace. You can access your secrets as environment variables in the codespace, including from the terminal. For example, you can launch a terminal within your codespace and use `echo $SECRET_NAME` to see the value of a secret. +如果要在代码空间中使用敏感信息(如访问令牌),请始终使用加密的机密。 您可以在代码空间中以环境变量的形式访问您的机密,包括从终端访问。 例如,您可以在代码空间中启动终端,并使用 `echo $SECRET_NAME` 查看机密的值。 -The secret values are copied to environment variables whenever the codespace is resumed or created, so if you update a secret value while the codespace is running, you’ll need to suspend and resume to pick up the updated value. +每当恢复或创建代码空间时,机密值都会复制到环境变量中,因此,如果在代码空间运行时更新机密值,则需要挂起并恢复以选取更新的值。 -For more information on secrets, see: -- "[Managing encrypted secrets for your codespaces](/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces)" -- "[Managing encrypted secrets for your repository and organization for Codespaces](/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces)" +有关机密的详细信息,请参阅: +- "[管理代码空间的加密机密](/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces)" +- "[为代码空间管理存储库和组织的加密机密](/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces)" -### Working with other people's contributions and repositories +### 使用其他人的贡献和存储库 -When you create a codespace from a PR branch from a fork, the token in the codespace will vary depending on whether the repository is public or private: -- For a private repository, the codespace is granted access to both the fork and parent. -- For a public repository, the codespace will only have access to the fork and opening PRs on the parent. +从分支的 PR 分支创建代码空间时,代码空间中的令牌将根据存储库是公共的还是私有的而有所不同: +- 对于私有存储库,代码空间被授予对复刻和父级的访问权限。 +- 对于公共存储库,代码空间将只能访问父级上的复刻和打开的 PR。 -### Additional good practices +### 其他良好做法 -There are some additional good practices and risks that you should be aware of when using {% data variables.product.prodname_codespaces %}. +使用 {% data variables.product.prodname_codespaces %} 时,还应注意一些其他良好做法和风险。 -#### Understanding a repository's devcontainer.json file +#### 了解存储库的 devcontainer.json 文件 -When creating a codespace, the [devcontainer.json](https://code.visualstudio.com/docs/remote/devcontainerjson-reference) is parsed and applied from the source repo, if one exists. The devcontainer contains powerful features, such as installing third-party extensions and running arbitrary code through a supplied `postCreateCommand`. +创建代码空间时,将从源存储库(如果存在)解析和应用 [devcontainer.json](https://code.visualstudio.com/docs/remote/devcontainerjson-reference)。 Devcontainer 包含强大的功能,例如安装第三方扩展和通过提供的 `postCreateCommand` 运行任意代码。 -#### Granting access through features +#### 通过功能授予访问权限 -Certain development features can potentially add risk to your environment. For example, commit signing, secrets injected into environment variables, authenticated registry access, and packages access can all present potential security issues. We recommend that you only grant access to those who need it and adopt a policy of being as restrictive as possible. +某些开发功能可能会给您的环境增加风险。 例如,提交签名、注入环境变量的机密、经过身份验证的注册表访问和包访问都可能带来潜在的安全问题。 我们建议您仅向需要访问权限的人员授予访问权限,并采用尽可能严格的策略。 -#### Using extensions +#### 使用扩展 -Any additional {% data variables.product.prodname_vscode %} extensions that you've installed can potentially introduce more risk. To help mitigate this risk, ensure that the you only install trusted extensions, and that they are always kept up to date. +您安装的任何其他 {% data variables.product.prodname_vscode %} 扩展都可能带来更多风险。 为了帮助降低此风险,请确保仅安装受信任的扩展,并使它们始终保持最新。 diff --git a/translations/zh-CN/content/codespaces/codespaces-reference/understanding-billing-for-codespaces.md b/translations/zh-CN/content/codespaces/codespaces-reference/understanding-billing-for-codespaces.md index 83cea7425d9c..92133bebcfdd 100644 --- a/translations/zh-CN/content/codespaces/codespaces-reference/understanding-billing-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/codespaces-reference/understanding-billing-for-codespaces.md @@ -1,6 +1,6 @@ --- -title: Understanding billing for Codespaces -intro: 'Learn how your {% data variables.product.prodname_codespaces %} usage is billed.' +title: 了解 Codespaces 的计费 +intro: '了解如何对 {% data variables.product.prodname_codespaces %} 的使用进行计费。' versions: fpt: '*' ghec: '*' @@ -13,48 +13,48 @@ topics: - Codespaces - Billing product: '{% data reusables.gated-features.codespaces %}' -shortTitle: Understanding billing +shortTitle: 了解计费 --- -This article explains how billing works for your codespaces, and explains how your organization's billing manager can help. +本文介绍 Codespaces 的计费工作原理,并说明组织的计费管理器如何提供帮助。 -## Getting access to {% data variables.product.prodname_codespaces %} +## 获取对 {% data variables.product.prodname_codespaces %} 的访问 -Your organization's administrator might limit {% data variables.product.prodname_codespaces %} usage to only specific user accounts. To get access, you will need to contact your billing manager. For more information, see "[Managing access and security for your codespaces](/codespaces/managing-your-codespaces/managing-access-and-security-for-your-codespaces)." +您组织的管理员可能会将 {% data variables.product.prodname_codespaces %} 的使用仅限于特定用户帐户。 要获得访问权限,您需要联系您的帐单管理员。 更多信息请参阅“[管理 Codespaces 的访问和安全性](/codespaces/managing-your-codespaces/managing-access-and-security-for-your-codespaces)”。 -## How much it costs to use {% data variables.product.prodname_codespaces %} +## 使用 {% data variables.product.prodname_codespaces %} 的费用 -To see the pricing for {% data variables.product.prodname_codespaces %} usage, see "[{% data variables.product.prodname_codespaces %} pricing](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces#codespaces-pricing)." +要查看 {% data variables.product.prodname_codespaces %} 使用的定价,请参阅“[{% data variables.product.prodname_codespaces %} 定价](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces#codespaces-pricing)”。 -## How your codespace usage is billed +## 如何对代码空间的使用计费 -Your codespace is billed for its compute minutes and for the amount of storage it uses on disk. +代码空间将根据其计算分钟数及其在磁盘上使用的存储量付费。 -### Understanding what compute minutes are -Your codespace is billed for the number of minutes that it's active. If your codespaces window is left idle for 30 minutes, it will automatically shutdown, and compute billing for the codespace will end until you start the codespace again. +### 了解什么是计算分钟数 +代码空间按其处于活动状态的分钟数计费。 如果代码空间窗口空闲 30 分钟,它将自动关闭,并且代码空间的计算计费将结束,直到您再次启动代码空间。 -### Understanding how codespace storage is billed -For {% data variables.product.prodname_codespaces %}, storage is defined to include any files relating to your codespace, such as the cloned repository, configuration files, and extensions, among others. This storage is billed while your codespace is shutdown. The storage billing for a codespace ends when you manually delete it from https://github.com/codespaces. +### 了解代码空间存储是如何计费的 +对于 {% data variables.product.prodname_codespaces %},存储定义为包括与代码空间相关的任何文件,例如克隆的存储库、配置文件和扩展等。 此存储在代码空间关闭时计费。 代码空间的存储计费在您从 https://github.com/codespaces 手动删除它时结束。 -## How spending limits work +## 支出限制的工作原理 -Before your organization can use {% data variables.product.prodname_codespaces %}, your billing manager will need to set a spending limit. For more information, see "[Managing spending limits for {% data variables.product.prodname_codespaces %}](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)." +在组织可以使用 {% data variables.product.prodname_codespaces %} 之前,帐单管理员需要设置支出限制。 更多信息请参阅“[管理 {% data variables.product.prodname_codespaces %} 的支出限制](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)”。 -## Exporting changes when you have reached your spending limit +## 在达到支出限制时导出更改 {% data reusables.codespaces.exporting-changes %} -## Checking your current usage and limits -If you need to check your current usage or spending limit, contact your organization's billing manager. For more information, see "[Viewing your Codespaces usage](/billing/managing-billing-for-github-codespaces/viewing-your-codespaces-usage)." +## 检查当前使用情况和限制 +如果需要检查当前使用情况或支出限制,请与组织的帐单管理员联系。 更多信息请参阅“[查看代码空间使用情况](/billing/managing-billing-for-github-codespaces/viewing-your-codespaces-usage)”。 -## Codespaces can be automatically deleted +## 代码空间可以自动删除 -Your codespace will be automatically deleted when you are removed from an organization or repository. +当您从组织或存储库中删除时,您的代码空间将自动删除。 -## Deleting your unused codespaces +## 删除未使用的代码空间 -You can manually delete your codespaces in https://github.com/codespaces and from within {% data variables.product.prodname_vscode %}. To reduce the size of a codespace, you can manually delete files using the terminal or from within {% data variables.product.prodname_vscode %}. +您可以手动在 https://github.com/codespaces 中以及从 {% data variables.product.prodname_vscode %} 中删除代码空间。 要减小代码空间的大小,可以使用终端或从 {% data variables.product.prodname_vscode %} 中手动删除文件。 ## 延伸阅读 -- "[Managing billing for Codespaces in your organization](/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization)" +- "[管理组织中代码空间的计费](/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization)" diff --git a/translations/zh-CN/content/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account.md b/translations/zh-CN/content/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account.md index 076985854c51..8cb5b7aa1999 100644 --- a/translations/zh-CN/content/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account.md +++ b/translations/zh-CN/content/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account.md @@ -78,8 +78,8 @@ You can use your selected dotfiles repository to personalize your {% data variab {% endwarning %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. Under "Dotfiles", select **Automatically install dotfiles** so that {% data variables.product.prodname_codespaces %} automatically installs your dotfiles into every new codespace you create. ![Installing dotfiles](/assets/images/help/codespaces/install-custom-dotfiles.png) 2. Choose the repository you want to install dotfiles from. diff --git a/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-editor-for-codespaces.md b/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-editor-for-codespaces.md index 08866ab5eee1..759c855403cd 100644 --- a/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-editor-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-editor-for-codespaces.md @@ -18,6 +18,6 @@ If you want to use {% data variables.product.prodname_vscode %} as your default ## Setting your default editor -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. Under "Editor preference", select the option you want. ![Setting your editor](/assets/images/help/codespaces/select-default-editor.png) If you choose **{% data variables.product.prodname_vscode %}**, {% data variables.product.prodname_codespaces %} will automatically open in the desktop application when you next create a codespace. You may need to allow access to both your browser and {% data variables.product.prodname_vscode %} for it to open successfully. ![Setting your editor](/assets/images/help/codespaces/launch-default-editor.png) diff --git a/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-region-for-codespaces.md b/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-region-for-codespaces.md index 507493e27d6f..f09b400775cb 100644 --- a/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-region-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-region-for-codespaces.md @@ -16,7 +16,7 @@ You can manually select the region that your codespaces will be created in, allo ## Setting your default region -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. Under "Region", select the setting you want. 2. If you chose "Set manually", select your region in the drop-down list. ![Selecting your region](/assets/images/help/codespaces/select-default-region.png) diff --git a/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-timeout-period-for-codespaces.md b/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-timeout-period-for-codespaces.md index b839342db233..665f00e29204 100644 --- a/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-timeout-period-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-timeout-period-for-codespaces.md @@ -22,8 +22,8 @@ A codespace will stop running after a period of inactivity. You can specify the ## Setting your default timeout -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. Under "Default idle timeout", enter the time that you want, then click **Save**. The time must be between 5 minutes and 240 minutes (4 hours). ![Selecting your timeout](/assets/images/help/codespaces/setting-default-timeout.png) {% endwebui %} diff --git a/translations/zh-CN/content/codespaces/developing-in-codespaces/creating-a-codespace.md b/translations/zh-CN/content/codespaces/developing-in-codespaces/creating-a-codespace.md index fb46673d482f..79639b7257e0 100644 --- a/translations/zh-CN/content/codespaces/developing-in-codespaces/creating-a-codespace.md +++ b/translations/zh-CN/content/codespaces/developing-in-codespaces/creating-a-codespace.md @@ -19,7 +19,7 @@ shortTitle: Create a codespace ## 关于代码空间的创建 -You can create a codespace on {% data variables.product.prodname_dotcom_the_website %}, in {% data variables.product.prodname_vscode %}, or by using {% data variables.product.prodname_cli %}. {% data reusables.codespaces.codespaces-are-personal %} +可以在 {% data variables.product.prodname_dotcom_the_website %} 上、{% data variables.product.prodname_vscode %} 中或使用 {% data variables.product.prodname_cli %} 创建代码空间。 {% data reusables.codespaces.codespaces-are-personal %} 代码空间与仓库的特定分支相关联,且仓库不能为空。 {% data reusables.codespaces.concurrent-codespace-limit %} 更多信息请参阅“[删除代码空间](/github/developing-online-with-codespaces/deleting-a-codespace)”。 @@ -33,9 +33,9 @@ You can create a codespace on {% data variables.product.prodname_dotcom_the_webs 有关创建代码空间时会发生什么的更多信息,请参阅“[深潜](/codespaces/getting-started/deep-dive)”。 -For more information on the lifecycle of a codespace, see "[Codespaces lifecycle](/codespaces/developing-in-codespaces/codespaces-lifecycle)." +有关代码空间生命周期的更多信息,请参阅“[代码空间生命周期](/codespaces/developing-in-codespaces/codespaces-lifecycle)”。 -If you want to use Git hooks for your codespace, then you should set up hooks using the [`devcontainer.json` lifecycle scripts](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts), such as `postCreateCommand`, during step 4. Since your codespace container is created after the repository is cloned, any [git template directory](https://git-scm.com/docs/git-init#_template_directory) configured in the container image will not apply to your codespace. Hooks must instead be installed after the codespace is created. For more information on using `postCreateCommand`, see the [`devcontainer.json` reference](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_devcontainerjson-properties) in the Visual Studio Code documentation. +如果要将 Git 挂钩用于代码空间,则应在步骤 4 中使用 [`devcontainer.json` 生命周期脚本](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts)设置挂钩,例如 `postCreateCommand`。 由于代码空间容器是在克隆仓库后创建的,因此在容器映像中配置的任何 [git template directory](https://git-scm.com/docs/git-init#_template_directory) 将不适用于代码空间。 在创建代码空间后,必须改为安装挂钩。 有关使用 `postCreateCommand` 的更多信息,请参阅 visual Studio Code 文档中的 [`devcontainer.json` 参考](https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_devcontainerjson-properties) 。 {% data reusables.codespaces.use-visual-studio-features %} @@ -74,11 +74,11 @@ If you want to use Git hooks for your codespace, then you should set up hooks us ![分支下拉菜单](/assets/images/help/codespaces/branch-drop-down.png) -3. Under the repository name, use the **{% octicon "code" aria-label="The code icon" %} Code** drop-down menu, and in the **Codespaces** tab, click {% octicon "plus" aria-label="The plus icon" %} **New codespace**. +3. 在存储库名称下,使用 **{% octicon "code" aria-label="The code icon" %} 代码**下拉菜单,然后在**Codespaces(代码空间)**选项卡中,单击 {% octicon "plus" aria-label="The plus icon" %} **New codespace(新建代码空间)**。 ![新建代码空间按钮](/assets/images/help/codespaces/new-codespace-button.png) - 如果您是组织的成员,并且在该组织拥有的仓库上创建代码空间,您可以选择不同机器类型的选项。 From the dialog box, choose a machine type and then click **Create codespace**. + 如果您是组织的成员,并且在该组织拥有的仓库上创建代码空间,您可以选择不同机器类型的选项。 从对话框中选择机器类型,然后点击 **Create codespace(创建代码空间)**。 ![机器类型选择](/assets/images/help/codespaces/choose-custom-machine-type.png) @@ -96,24 +96,24 @@ If you want to use Git hooks for your codespace, then you should set up hooks us {% data reusables.cli.cli-learn-more %} -To create a new codespace, use the `gh codespace create` subcommand. +要创建新的代码空间,请使用 `gh codespace create` 子命令。 ```shell gh codespace create ``` -You are prompted to choose a repository, a branch, and a machine type (if more than one is available). +系统将提示您选择仓库、分支和计算机类型(如果有多个可用)。 -Alternatively, you can use flags to specify some or all of the options: +或者,您可以使用标志来指定部分或全部选项: ```shell gh codespace create -r owner/repo -b branch -m machine-type ``` -Replace `owner/repo` with the repository identifier. Replace `branch` with the name of the branch, or the full SHA hash of the commit, that you want to be initially checked out in the codespace. If you use the `-r` flag without the `b` flag, the codespace is created from the default branch. +将 `owner/repo` 替换为仓库标识符。 将 `branch` 替换为您希望在代码空间中最初检出的分支的名称或提交的完整 SHA 哈希。 如果使用 `-r` 标志而不使用 `b` 标志,则将从默认分支创建代码空间。 -Replace `machine-type` with a valid identifier for an available machine type. Identifiers are strings such as: `basicLinux32gb` and `standardLinux32gb`. The type of machines that are available depends on the repository, your user account, and your location. If you enter an invalid or unavailable machine type, the available types are shown in the error message. If you omit this flag and more than one machine type is available you will be prompted to choose one from a list. +将 `machine-type` 替换为可用计算机类型的有效标识符。 标识符是字符串,例如:`basicLinux32gb` 和 `standardLinux32gb`。 可用的计算机类型取决于仓库、您的用户帐户和您的位置。 如果输入无效或不可用的计算机类型,则错误消息中将显示可用类型。 如果省略此标志,并且有多个计算机类型可用,系统将提示您从列表中选择一个计算机类型。 -For more information about this command, see [the {% data variables.product.prodname_cli %} manual](https://cli.github.com/manual/gh_codespace_create). +有关此命令的详细信息,请参阅 [{% data variables.product.prodname_cli %} 手册](https://cli.github.com/manual/gh_codespace_create)。 {% endcli %} diff --git a/translations/zh-CN/content/codespaces/developing-in-codespaces/deleting-a-codespace.md b/translations/zh-CN/content/codespaces/developing-in-codespaces/deleting-a-codespace.md index 09bde3170d2d..39fcdc5b5a2c 100644 --- a/translations/zh-CN/content/codespaces/developing-in-codespaces/deleting-a-codespace.md +++ b/translations/zh-CN/content/codespaces/developing-in-codespaces/deleting-a-codespace.md @@ -48,15 +48,15 @@ shortTitle: Delete a codespace {% data reusables.cli.cli-learn-more %} -To delete a codespace use the `gh codespace delete` subcommand and then choose a codespace from the list that's displayed. +若要删除代码空间,请使用 `gh codespace delete` 子命令,然后从显示的列表中选择一个代码空间。 ```shell gh codespace delete ``` -If you have unsaved changes, you'll be prompted to confirm deletion. You can use the `-f` flag to force deletion, avoiding this prompt. +如果您有未保存的更改,系统将提示您确认删除。 您可以使用 `-f` 标志强制删除,从而避免出现此提示。 -For more information about this command, see [the {% data variables.product.prodname_cli %} manual](https://cli.github.com/manual/gh_codespace_delete). +有关此命令的详细信息,请参阅 [ {% data variables.product.prodname_cli %} 手册](https://cli.github.com/manual/gh_codespace_delete)。 {% endcli %} diff --git a/translations/zh-CN/content/codespaces/developing-in-codespaces/developing-in-a-codespace.md b/translations/zh-CN/content/codespaces/developing-in-codespaces/developing-in-a-codespace.md index 72887736b19b..a985c3a36ced 100644 --- a/translations/zh-CN/content/codespaces/developing-in-codespaces/developing-in-a-codespace.md +++ b/translations/zh-CN/content/codespaces/developing-in-codespaces/developing-in-a-codespace.md @@ -1,6 +1,6 @@ --- -title: 在代码空间中开发 -intro: '您可以在 {% data variables.product.product_name %} 上打开代码空间,然后使用 {% data variables.product.prodname_vscode %} 的功能进行开发。' +title: Developing in a codespace +intro: 'You can open a codespace on {% data variables.product.product_name %}, then develop using {% data variables.product.prodname_vscode %}''s features.' product: '{% data reusables.gated-features.codespaces %}' permissions: 'You can develop in codespaces you''ve created for repositories owned by organizations using {% data variables.product.prodname_team %} and {% data variables.product.prodname_ghe_cloud %}.' redirect_from: @@ -19,46 +19,47 @@ shortTitle: Develop in a codespace -## 关于 {% data variables.product.prodname_codespaces %} 的开发 +## About development with {% data variables.product.prodname_codespaces %} -{% data variables.product.prodname_codespaces %} 为您提供 {% data variables.product.prodname_vscode %} 的完整开发体验。 {% data reusables.codespaces.use-visual-studio-features %} +{% data variables.product.prodname_codespaces %} provides you with the full development experience of {% data variables.product.prodname_vscode %}. {% data reusables.codespaces.use-visual-studio-features %} {% data reusables.codespaces.links-to-get-started %} -![带注释的代码空间概述](/assets/images/help/codespaces/codespace-overview-annotated.png) +![Codespace overview with annotations](/assets/images/help/codespaces/codespace-overview-annotated.png) -1. 侧栏 - 默认情况下,此区域显示您在资源管理器中的项目文件。 -2. 活动栏 - 显示视图并提供在视图之间切换的方法。 您可以通过拖放来重新排列视图。 -3. 编辑器 - 这是您编辑文件的地方。 您可以使用每个编辑器的选项卡将其准确定位到您需要的位置。 -4. 面板 - 这是您可以查看输出和调试信息的位置,以及集成终端的默认位置。 -5. 状态栏 - 此区域提供有关您的代码空间和项目的有用信息。 例如,分支名称、配置端口等。 +1. Side Bar - By default, this area shows your project files in the Explorer. +2. Activity Bar - This displays the Views and provides you with a way to switch between them. You can reorder the Views by dragging and dropping them. +3. Editor - This is where you edit your files. You can use the tab for each editor to position it exactly where you need it. +4. Panels - This is where you can see output and debug information, as well as the default place for the integrated Terminal. +5. Status Bar - This area provides you with useful information about your codespace and project. For example, the branch name, configured ports, and more. -有关使用 {% data variables.product.prodname_vscode %} 的更多信息,请参阅 {% data variables.product.prodname_vscode %} 文档中的[用户界面指南](https://code.visualstudio.com/docs/getstarted/userinterface)。 +For more information on using {% data variables.product.prodname_vscode %}, see the [User Interface guide](https://code.visualstudio.com/docs/getstarted/userinterface) in the {% data variables.product.prodname_vscode %} documentation. {% data reusables.codespaces.connect-to-codespace-from-vscode %} -{% data reusables.codespaces.use-chrome %} 更多信息请参阅“[代码空间客户端故障排除](/codespaces/troubleshooting/troubleshooting-codespaces-clients)”。 +{% data reusables.codespaces.use-chrome %} For more information, see "[Troubleshooting Codespaces clients](/codespaces/troubleshooting/troubleshooting-codespaces-clients)." -### 个性化代码空间 +### Personalizing your codespace -{% data reusables.codespaces.about-personalization %} 更多信息请参阅“[个性化您帐户的 {% data variables.product.prodname_codespaces %}](/codespaces/setting-up-your-codespace/personalizing-codespaces-for-your-account)”。 +{% data reusables.codespaces.about-personalization %} For more information, see "[Personalizing {% data variables.product.prodname_codespaces %} for your account](/codespaces/setting-up-your-codespace/personalizing-codespaces-for-your-account)." -{% data reusables.codespaces.apply-devcontainer-changes %} 更多信息请参阅“[为项目配置 {% data variables.product.prodname_codespaces %}](/github/developing-online-with-codespaces/configuring-codespaces-for-your-project#apply-changes-to-your-configuration)”。 +{% data reusables.codespaces.apply-devcontainer-changes %} For more information, see "[Configuring {% data variables.product.prodname_codespaces %} for your project](/github/developing-online-with-codespaces/configuring-codespaces-for-your-project#apply-changes-to-your-configuration)." -### 从代码空间运行应用程序 -{% data reusables.codespaces.about-port-forwarding %} 更多信息请参阅“[代码空间中的转发端口](/github/developing-online-with-codespaces/forwarding-ports-in-your-codespace)”。 +### Running your app from a codespace +{% data reusables.codespaces.about-port-forwarding %} For more information, see "[Forwarding ports in your codespace](/github/developing-online-with-codespaces/forwarding-ports-in-your-codespace)." -### 提交更改 +### Committing your changes -{% data reusables.codespaces.committing-link-to-procedure %} +{% data reusables.codespaces.committing-link-to-procedure %} ### Using the {% data variables.product.prodname_vscode_command_palette %} The {% data variables.product.prodname_vscode_command_palette %} allows you to access and manage many features for {% data variables.product.prodname_codespaces %} and {% data variables.product.prodname_vscode %}. For more information, see "[Using the {% data variables.product.prodname_vscode_command_palette %} in {% data variables.product.prodname_codespaces %}](/codespaces/codespaces-reference/using-the-vs-code-command-palette-in-codespaces)." -## 导航到现有代码空间 +## Navigating to an existing codespace 1. {% data reusables.codespaces.you-can-see-all-your-codespaces %} -2. 单击您要在其中开发的代码空间的名称。 ![代码空间的名称](/assets/images/help/codespaces/click-name-codespace.png) +2. Click the name of the codespace you want to develop in. + ![Name of codespace](/assets/images/help/codespaces/click-name-codespace.png) -或者,您可以通过导航到创建代码空间的仓库并选择 **{% octicon "code" aria-label="The code icon" %} 代码**来查看仓库的任何活动代码空间。 下拉菜单将显示仓库的所有活动代码空间。 +Alternatively, you can see any active codespaces for a repository by navigating to that repository and selecting **{% octicon "code" aria-label="The code icon" %} Code**. The drop-down menu will display all active codespaces for a repository. diff --git a/translations/zh-CN/content/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace.md b/translations/zh-CN/content/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace.md index e2bead44de95..a2df7f1f7e1f 100644 --- a/translations/zh-CN/content/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace.md +++ b/translations/zh-CN/content/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace.md @@ -1,5 +1,5 @@ --- -title: 代码空间中的转发端口 +title: Forwarding ports in your codespace intro: '{% data reusables.codespaces.about-port-forwarding %}' product: '{% data reusables.gated-features.codespaces %}' versions: @@ -12,54 +12,55 @@ topics: - Codespaces - Fundamentals - Developer -shortTitle: 转发端口 +shortTitle: Forward ports --- -## 关于转发的端口 +## About forwarded ports -通过端口转发,您可以访问在代码空间内运行的 TCP 端口。 For example, if you're running a web application on a particular port in your codespace, you can forward that port. This allows you to access the application from the browser on your local machine for testing and debugging. +Port forwarding gives you access to TCP ports running within your codespace. For example, if you're running a web application on a particular port in your codespace, you can forward that port. This allows you to access the application from the browser on your local machine for testing and debugging. -When an application running inside a codespace prints output to the terminal that contains a localhost URL, such as `http://localhost:PORT` or `http://127.0.0.1:PORT`, the port is automatically forwarded. If you're using {% data variables.product.prodname_codespaces %} in the browser or in {% data variables.product.prodname_vscode %}, the URL string in the terminal is converted into a link that you can click to view the web page on your local machine. 默认情况下,{% data variables.product.prodname_codespaces %} 使用 HTTP 转发端口。 +When an application running inside a codespace prints output to the terminal that contains a localhost URL, such as `http://localhost:PORT` or `http://127.0.0.1:PORT`, the port is automatically forwarded. If you're using {% data variables.product.prodname_codespaces %} in the browser or in {% data variables.product.prodname_vscode %}, the URL string in the terminal is converted into a link that you can click to view the web page on your local machine. By default, {% data variables.product.prodname_codespaces %} forwards ports using HTTP. -![自动端口转发](/assets/images/help/codespaces/automatic-port-forwarding.png) +![Automatic port forwarding](/assets/images/help/codespaces/automatic-port-forwarding.png) You can also forward a port manually, label forwarded ports, share forwarded ports with members of your organization, share forwarded ports publicly, and add forwarded ports to the codespace configuration. -## 转发端口 +## Forwarding a port -您可以手动转发未自动转发的端口。 +You can manually forward a port that wasn't forwarded automatically. {% webui %} {% data reusables.codespaces.navigate-to-ports-tab %} -1. 在端口列表下,单击 **Add port(添加端口)**。 +1. Under the list of ports, click **Add port**. - ![添加端口按钮](/assets/images/help/codespaces/add-port-button.png) + ![Add port button](/assets/images/help/codespaces/add-port-button.png) -1. 键入端口编号或地址,然后按 Enter。 +1. Type the port number or address, then press enter. - ![输入端口按钮的文本框](/assets/images/help/codespaces/port-number-text-box.png) + ![Text box to type port button](/assets/images/help/codespaces/port-number-text-box.png) -## 使用 HTTPS 转发 +## Using HTTPS forwarding -默认情况下,{% data variables.product.prodname_codespaces %} 使用 HTTP 转发端口,但您可以根据需要更新任何端口以使用 HTTPS。 +By default, {% data variables.product.prodname_codespaces %} forwards ports using HTTP but you can update any port to use HTTPS, as needed. {% data reusables.codespaces.navigate-to-ports-tab %} -1. 右键单击要更新的端口,然后单击 **Change Port Protocol(更改端口协议)**。 ![更改端口协议的选项](/assets/images/help/codespaces/update-port-protocol.png) -1. 选择此端口所需的协议。 您选择的协议将在代码空间的有效期内被记住用于此端口。 +1. Right click the port you want to update, then hover over **Change Port Protocol**. + ![Option to change port protocol](/assets/images/help/codespaces/update-port-protocol.png) +1. Select the protocol needed for this port. The protocol that you select will be remembered for this port for the lifetime of the codespace. {% endwebui %} {% vscode %} {% data reusables.codespaces.navigate-to-ports-tab %} -1. 在端口列表下,单击 **Add port(添加端口)**。 +1. Under the list of ports, click **Add port**. - ![添加端口按钮](/assets/images/help/codespaces/add-port-button.png) + ![Add port button](/assets/images/help/codespaces/add-port-button.png) -1. 键入端口编号或地址,然后按 Enter。 +1. Type the port number or address, then press enter. - ![输入端口按钮的文本框](/assets/images/help/codespaces/port-number-text-box.png) + ![Text box to type port button](/assets/images/help/codespaces/port-number-text-box.png) {% endvscode %} @@ -80,7 +81,7 @@ To see details of forwarded ports enter `gh codespace ports` and then choose a c {% endcli %} -## 共享端口 +## Sharing a port {% note %} @@ -93,18 +94,22 @@ If you want to share a forwarded port with others, you can either make the port {% webui %} {% data reusables.codespaces.navigate-to-ports-tab %} -1. Right click the port that you want to share, select the "Port Visibility" menu, then click **Private to Organization** or **Public**. ![Option to select port visibility in right-click menu](/assets/images/help/codespaces/make-public-option.png) -1. 在端口的本地地址右侧,单击复制图标。 ![端口 URL 的复制图标](/assets/images/help/codespaces/copy-icon-port-url.png) -1. 将复制的 URL 发送给您想要与其共享端口的人。 +1. Right click the port that you want to share, select the "Port Visibility" menu, then click **Private to Organization** or **Public**. + ![Option to select port visibility in right-click menu](/assets/images/help/codespaces/make-public-option.png) +1. To the right of the local address for the port, click the copy icon. + ![Copy icon for port URL](/assets/images/help/codespaces/copy-icon-port-url.png) +1. Send the copied URL to the person you want to share the port with. {% endwebui %} {% vscode %} {% data reusables.codespaces.navigate-to-ports-tab %} -1. 右键单击要共享的端口,然后单击 **Make Public(公开)**。 ![右键菜单中公开端口的选项](/assets/images/help/codespaces/make-public-option.png) -1. 在端口的本地地址右侧,单击复制图标。 ![端口 URL 的复制图标](/assets/images/help/codespaces/copy-icon-port-url.png) -1. 将复制的 URL 发送给您想要与其共享端口的人。 +1. Right click the port you want to share, then click **Make Public**. + ![Option to make port public in right-click menu](/assets/images/help/codespaces/make-public-option.png) +1. To the right of the local address for the port, click the copy icon. + ![Copy icon for port URL](/assets/images/help/codespaces/copy-icon-port-url.png) +1. Send the copied URL to the person you want to share the port with. {% endvscode %} @@ -118,7 +123,7 @@ Replace `codespace-port` with the forwarded port number. Replace `setting` with gh codespace ports visibility codespace-port:setting ``` -You can set the visibility for multiple ports with one command. 例如: +You can set the visibility for multiple ports with one command. For example: ```shell gh codespace ports visibility 80:private 3000:public 3306:org @@ -128,20 +133,22 @@ For more information about this command, see [the {% data variables.product.prod {% endcli %} -## 标记端口 +## Labeling a port -您可以标记端口,使端口更容易在列表中识别。 +You can label a port to make the port more easily identifiable in a list. {% data reusables.codespaces.navigate-to-ports-tab %} -1. 悬停在要标记的端口上,然后单击标签图标。 ![端口的标签图标](/assets/images/help/codespaces/label-icon.png) +1. Hover over the port you want to label, then click the label icon. + ![Label icon for port](/assets/images/help/codespaces/label-icon.png) {% data reusables.codespaces.type-port-label %} -## 将端口添加到代码空间配置 +## Adding a port to the codespace configuration -您可以将转发的端口添加到仓库的 {% data variables.product.prodname_codespaces %} 配置中,因此该端口将自动为创建自仓库的所有代码空间转发。 更新配置后,必须重建任何以前创建的代码空间以应用更改。 更多信息请参阅“[为项目配置 {% data variables.product.prodname_codespaces %}](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project#applying-changes-to-your-configuration)”。 +You can add a forwarded port to the {% data variables.product.prodname_codespaces %} configuration for the repository, so the port will automatically be forwarded for all codespaces created from the repository. After you update the configuration, any previously created codespaces must be rebuilt for the change to apply. For more information, see "[Configuring {% data variables.product.prodname_codespaces %} for your project](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project#applying-changes-to-your-configuration)." -您可以使用 `forwardPorts` 属性在 `.devcontainer.json` 文件中手动配置转发的端口,也可以使用代码空间中的“端口”面板。 +You can manually configure forwarded ports in a `.devcontainer.json` file using the `forwardPorts` property, or you can use the "Ports" panel in your codespace. {% data reusables.codespaces.navigate-to-ports-tab %} -1. 右键单击要添加到代码空间配置的端口,然后单击 **Set Label and Update devcontainer.json(设置标签和更新 devcontainer.json)**。 ![右键菜单中设置标签并将端口添加到 devcontainer.json 的选项](/assets/images/help/codespaces/update-devcontainer-to-add-port-option.png) +1. Right click the port you want to add to the codespace configuration, then click **Set Label and Update devcontainer.json**. + ![Option to set label and add port to devcontainer.json in the right-click menu](/assets/images/help/codespaces/update-devcontainer-to-add-port-option.png) {% data reusables.codespaces.type-port-label %} diff --git a/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-for-pull-requests.md b/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-for-pull-requests.md index f0b0e307503c..650ca3b42cfc 100644 --- a/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-for-pull-requests.md +++ b/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-for-pull-requests.md @@ -1,7 +1,7 @@ --- -title: Using Codespaces for pull requests +title: 将 Codespaces 用于拉取请求 shortTitle: 拉取请求 -intro: 'You can use {% data variables.product.prodname_codespaces %} in your development workflow to create pull requests, review pull requests, and address review comments.' +intro: '您可以在开发工作流程中使用 {% data variables.product.prodname_codespaces %} 来创建拉取请求、审阅拉取请求和处理审阅注释。' product: '{% data reusables.gated-features.codespaces %}' versions: fpt: '*' @@ -15,28 +15,28 @@ topics: ## 关于 {% data variables.product.prodname_codespaces %} 中的拉取请求 -{% data variables.product.prodname_codespaces %} provides you with many of the capabilities you might need to work with pull requests: +{% data variables.product.prodname_codespaces %} 为您提供了处理拉取请求可能需要的许多功能: -- [Create a pull request](/codespaces/developing-in-codespaces/using-source-control-in-your-codespace#raising-a-pull-request) - Using either the Terminal and Git commands or the Source Control view, you can create pull requests just as you would on {% data variables.product.prodname_dotcom_the_website %}. If the repository uses a pull request template, you'll be able to use this within the Source Control view. -- [Open a pull request](#opening-a-pull-request-in-codespaces) – You can open an existing pull request in a codespace, provided you have codespace access to the branch that is being merged in. -- [Review a pull request](#reviewing-a-pull-request-in-codespaces) - Once you have opened a pull request in a codespace, you can use the "GitHub Pull Request" view to add review comments and approve pull requests. You can also use {% data variables.product.prodname_codespaces %} to [view review comments](#view-comments-from-a-review-in-codespaces). +- [创建拉取请求](/codespaces/developing-in-codespaces/using-source-control-in-your-codespace#raising-a-pull-request) - 使用终端和 Git 命令或源代码管理视图,您可以像创建 {% data variables.product.prodname_dotcom_the_website %} 一样创建拉取请求。 如果存储库使用拉取请求模板,则可以在源代码管理视图中使用它。 +- [打开拉取请求](#opening-a-pull-request-in-codespaces) – 您可以在代码空间中打开现有的拉取请求,前提是您对要合并的分支具有代码空间访问权限。 +- [审查拉取请求](#reviewing-a-pull-request-in-codespaces) - 在代码空间中打开拉取请求后,可以使用“GitHub 拉取请求”视图添加审阅注释并批准拉取请求。 您还可以使用 {% data variables.product.prodname_codespaces %} [查看审阅注释](#view-comments-from-a-review-in-codespaces)。 -## Opening a pull request in {% data variables.product.prodname_codespaces %} +## 在 {% data variables.product.prodname_codespaces %} 中打开拉取请求 {% data reusables.repositories.sidebar-pr %} -2. In the list of pull requests, click the pull request you'd like to open in {% data variables.product.prodname_codespaces %}. -3. On the right-hand side of your screen, click **{% octicon "code" aria-label="The code icon" %} Code**. -4. From the {% data variables.product.prodname_codespaces %} tab, click **New codespace**. ![Option to open PR in a codespace](/assets/images/help/codespaces/open-with-codespaces-pr.png) +2. 在拉取请求列表中,单击要在 {% data variables.product.prodname_codespaces %} 中打开的拉取请求。 +3. 在屏幕右侧,单击 **{% octicon "code" aria-label="The code icon" %} 代码**。 +4. 从 {% data variables.product.prodname_codespaces %} 选项卡中,单击 **New codespace(新建代码空间)**。 ![用于在代码空间中打开 PR 的选项](/assets/images/help/codespaces/open-with-codespaces-pr.png) -## Reviewing a pull request in {% data variables.product.prodname_codespaces %} +## 在 {% data variables.product.prodname_codespaces %} 中审阅拉取请求 {% data reusables.codespaces.review-pr %} -For more information on reviewing a pull request, see "[Reviewing proposed changes in a pull request](/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)." +有关审阅拉取请求的详细信息,请参阅“[审阅拉取请求中提议的更改](/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)”。 -## View comments from a review in {% data variables.product.prodname_codespaces %} +## 查看 {% data variables.product.prodname_codespaces %} 中审阅的评论 -Once you have received feedback on a pull request, you can [open it in a codespace](#opening-a-pull-request-in-codespaces) to see the [review comments](#reviewing-a-pull-request-in-codespaces). From there you can respond to comments, add reactions, or dismiss the review. +收到有关拉取请求的反馈后,您可以[在代码空间中将其打开](#opening-a-pull-request-in-codespaces),以查看[审阅注释](#reviewing-a-pull-request-in-codespaces)。 从那里,您可以回复评论、添加回复或关闭评论。 - ![Option to open PR in a codespace](/assets/images/help/codespaces/incorporating-codespaces.png) + ![用于在代码空间中打开 PR 的选项](/assets/images/help/codespaces/incorporating-codespaces.png) diff --git a/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-with-github-cli.md b/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-with-github-cli.md index a3dfd5637d2c..4476c38f0b89 100644 --- a/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-with-github-cli.md +++ b/translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-with-github-cli.md @@ -173,7 +173,7 @@ You can set the visibility for multiple ports with one command. 例如: gh codespace ports visibility 80:private 3000:public 3306:org -c codespace-name ``` -For more information, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)." +更多信息请参阅“[在代码空间中转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)”。 ### Access codespace logs diff --git a/translations/zh-CN/content/codespaces/getting-started/quickstart.md b/translations/zh-CN/content/codespaces/getting-started/quickstart.md index 82cdd676c8a7..4a52b23bbd15 100644 --- a/translations/zh-CN/content/codespaces/getting-started/quickstart.md +++ b/translations/zh-CN/content/codespaces/getting-started/quickstart.md @@ -27,7 +27,7 @@ For more information on exactly how {% data variables.product.prodname_codespace 2. Name your repository, select your preferred privacy setting, and click **Create repository from this template**. -3. Navigate to the main page of the newly created repository. Under the repository name, use the **{% octicon "code" aria-label="The code icon" %} Code** drop-down menu, and in the **Codespaces** tab, click {% octicon "plus" aria-label="The plus icon" %} **New codespace**. +3. Navigate to the main page of the newly created repository. 在存储库名称下,使用 **{% octicon "code" aria-label="The code icon" %} 代码**下拉菜单,然后在**Codespaces(代码空间)**选项卡中,单击 {% octicon "plus" aria-label="The plus icon" %} **New codespace(新建代码空间)**。 ![新建代码空间按钮](/assets/images/help/codespaces/new-codespace-button.png) diff --git a/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces.md b/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces.md index 9a9facfb5057..7f55482cac10 100644 --- a/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces.md @@ -41,7 +41,7 @@ topics: {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} -1. In the "Security" section of the sidebar, select **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} Secrets** then click **{% data variables.product.prodname_codespaces %}**. +1. 在侧边栏的“Security(安全性)”部分中,选择 **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} 机密** 然后单击 **{% data variables.product.prodname_codespaces %}**。 2. 在页面顶部,单击 **New repository secret(新仓库密钥)**。 3. 在 **Name(名称)**输入框中键入密码的名称。 4. 输入密码的值。 @@ -55,7 +55,7 @@ topics: {% data reusables.organizations.navigate-to-org %} {% data reusables.organizations.org_settings %} -1. In the "Security" section of the sidebar, select **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} Secrets** then click **{% data variables.product.prodname_codespaces %}**. +1. 在侧边栏的“Security(安全性)”部分中,选择 **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} 机密** 然后单击 **{% data variables.product.prodname_codespaces %}**。 2. 在页面顶部,单击 **New organization secret(新组织密钥)**。 3. 在 **Name(名称)**输入框中键入密码的名称。 4. 输入密码的 **Value(值)**。 @@ -74,4 +74,4 @@ topics: ## 延伸阅读 -- "[Managing encrypted secrets for your codespaces](/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces)" +- "[管理代码空间的加密机密](/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces)" diff --git a/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md b/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md index fd298072ca71..ba84000c4224 100644 --- a/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md +++ b/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces.md @@ -1,6 +1,6 @@ --- title: Managing repository access for your organization's codespaces -shortTitle: Repository access +shortTitle: 存储库访问 intro: '您可以管理 {% data variables.product.prodname_codespaces %} 可以访问的组织仓库。' product: '{% data reusables.gated-features.codespaces %}' permissions: 'To manage access and security for Codespaces for an organization, you must be an organization owner.' diff --git a/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces.md b/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces.md index 507277d4c279..0f98f38650b6 100644 --- a/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces.md +++ b/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces.md @@ -47,31 +47,31 @@ shortTitle: 加密机密 ## 添加密码 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. 在“Codespaces secrets(代码空间密码)”的右侧,单击 **New secret(新建密码)**。 !["新建密码"按钮](/assets/images/help/settings/codespaces-new-secret-button.png) 1. 在“Name(名称)”下,输入密码的名称。 !["名称"文本框](/assets/images/help/settings/codespaces-secret-name-field.png) -{% data reusables.user_settings.codespaces-secret-value %} -{% data reusables.user_settings.codespaces-secret-repository-access %} +{% data reusables.user-settings.codespaces-secret-value %} +{% data reusables.user-settings.codespaces-secret-repository-access %} 1. 单击 **Add secret(添加密码)**。 ## 编辑密码 您可以更新现有密码的值,也可以更改哪些仓库可以访问密码。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. 在“Codespaces secrets(代码空间密码)”下您要编辑的密码右侧,单击 **Update(更新)**。 !["更新" 按钮](/assets/images/help/settings/codespaces-secret-update-button.png) 1. 在“Value(值)”下,单击 **enter a new value(输入新值)**。 !["输入新值" 链接](/assets/images/help/settings/codespaces-secret-update-value-text.png) -{% data reusables.user_settings.codespaces-secret-value %} -{% data reusables.user_settings.codespaces-secret-repository-access %} +{% data reusables.user-settings.codespaces-secret-value %} +{% data reusables.user-settings.codespaces-secret-repository-access %} 1. (可选)要删除密码对仓库的访问权限,请取消选择仓库。 ![删除对仓库访问权限的复选框](/assets/images/help/settings/codespaces-secret-repository-checkboxes.png) 1. 单击 **Save changes(保存更改)**。 ## 删除密码 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. 在“Codespaces secrets(代码空间密码)”下您要删除的密码右侧,单击 **Delete(删除)**。 !["删除" 按钮](/assets/images/help/settings/codespaces-secret-delete-button.png) 1. 阅读警告,然后单击 **OK(确定)**。 ![确认删除密码](/assets/images/help/settings/codespaces-secret-delete-warning.png) diff --git a/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-gpg-verification-for-codespaces.md b/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-gpg-verification-for-codespaces.md index cfdbaabbb2e1..3974e6bc1744 100644 --- a/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-gpg-verification-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-gpg-verification-for-codespaces.md @@ -22,8 +22,8 @@ shortTitle: GPG 验证 启用 GPG 验证后,它将立即对所有代码空间生效。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. 在“GPG verification(GPG 验证)”下,选择您想要的 GPG 验证设置。 ![管理 GPG 验证的单选按钮](/assets/images/help/settings/codespaces-gpg-verification-radio-buttons.png) 1. 如果您选择了“Selected repositories(所选仓库)”,请选择下拉菜单,然后单击想要启用 GPG 验证的仓库。 对您要启用 GPG 验证的所有仓库重复此操作。 !["所选仓库" 下拉菜单](/assets/images/help/settings/codespaces-gpg-verification-repository-drop-down.png) diff --git a/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md b/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md index b6fda543bcd6..0b335784732b 100644 --- a/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md +++ b/translations/zh-CN/content/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces.md @@ -1,6 +1,6 @@ --- -title: Managing repository access for your codespaces -shortTitle: Repository access +title: 管理代码空间的存储库访问 +shortTitle: 存储库访问 intro: '您可以管理 {% data variables.product.prodname_codespaces %} 可以访问的仓库。' product: '{% data reusables.gated-features.codespaces %}' versions: @@ -17,11 +17,11 @@ redirect_from: 为用户帐户拥有的仓库启用访问和安全后,为该仓库创建的任何代码空间都将对您拥有的所有其他仓库具有读取权限。 如果要限制代码空间可以访问的仓库,您可以将其限制为代码空间打开的仓库或特定仓库。 您应该只对您信任的仓库启用访问和安全。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.codespaces-tab %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.codespaces-tab %} 1. 在“Access and security(访问和安全)”下,为用户帐户选择所需的设置。 ![管理信任仓库的单选按钮](/assets/images/help/settings/codespaces-access-and-security-radio-buttons.png) 1. 如果您选择了“Selected repositories(所选仓库)”,请选择下拉菜单,然后单击一个仓库,以允许该仓库的代码空间访问您拥有的其他仓库。 对于您要允许其代码空间访问您拥有的其他仓库的所有仓库重复此操作。 !["所选仓库" 下拉菜单](/assets/images/help/settings/codespaces-access-and-security-repository-drop-down.png) ## 延伸阅读 -- "[Managing repository access for your organization's codespaces](/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces)" +- "[管理组织的代码空间的存储库访问](/codespaces/managing-codespaces-for-your-organization/managing-repository-access-for-your-organizations-codespaces)" diff --git a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-dotnet-project-for-codespaces.md b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-dotnet-project-for-codespaces.md index 62fbb55d7a1c..bcd6144eeb45 100644 --- a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-dotnet-project-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-dotnet-project-for-codespaces.md @@ -1,6 +1,6 @@ --- -title: Setting up your C# (.NET) project for Codespaces -shortTitle: Setting up your C# (.NET) project +title: 为代码空间设置 C# (.NET) 项目 +shortTitle: 设置 C# (.NET) 项目 allowTitleToDifferFromFilename: true product: '{% data reusables.gated-features.codespaces %}' intro: '通过创建自定义开发容器,开始在 {% data variables.product.prodname_codespaces %} 中使用 C# (.NET) 项目。' @@ -28,24 +28,24 @@ hidden: true ## 步骤 1:在代码空间中打开项目 -1. Under the repository name, use the **{% octicon "code" aria-label="The code icon" %} Code** drop-down menu, and in the **Codespaces** tab, click {% octicon "plus" aria-label="The plus icon" %} **New codespace**. +1. 在存储库名称下,使用 **{% octicon "code" aria-label="The code icon" %} 代码**下拉菜单,然后在**Codespaces(代码空间)**选项卡中,单击 {% octicon "plus" aria-label="The plus icon" %} **New codespace(新建代码空间)**。 ![新建代码空间按钮](/assets/images/help/codespaces/new-codespace-button.png) - If you don’t see this option, {% data variables.product.prodname_codespaces %} isn't available for your project. See [Access to {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces) for more information. + 如果您看不到此选项,则表示 {% data variables.product.prodname_codespaces %} 不适用于您的项目。 有关详细信息,请参阅 [访问 {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces)。 创建代码空间时,您的项目是在专用于您的远程 VM 上创建的。 默认情况下,代码空间的容器具有多种语言和运行时,包括 .NET。 它还包括一套常见的工具,例如 git、wget、rsync、openssh 和 nano。 您可以通过调整 vCPU 和 RAM 的数量、[添加 dotfiles 以个性化环境](/codespaces/setting-up-your-codespace/personalizing-codespaces-for-your-account)或者修改安装的工具和脚本来自定义代码空间。 -{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 For more information, see "[Introduction to dev containers](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)." +{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 更多信息请参阅“[开发容器简介](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)”。 ## 步骤 2:从模板将开发容器添加到您的代码空间 默认代码空间容器附带最新的 .NET 版本和预安装的常用工具。 但是,我们鼓励您设置自定义容器,以便根据项目的需求定制在代码空间创建过程中运行的工具和脚本,并确保为仓库中的所有 {% data variables.product.prodname_codespaces %} 用户提供完全可复制的环境。 -要使用自定义容器设置项目,您需要使用 `devcontainer.json` 文件来定义环境。 在 {% data variables.product.prodname_codespaces %} 中,您可以从模板添加它,也可以自己创建。 For more information on dev containers, see "[Introduction to dev containers ](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)." +要使用自定义容器设置项目,您需要使用 `devcontainer.json` 文件来定义环境。 在 {% data variables.product.prodname_codespaces %} 中,您可以从模板添加它,也可以自己创建。 有关开发容器的详细信息,请参阅“[开发容器简介](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)”。 {% data reusables.codespaces.command-palette-container %} @@ -133,7 +133,7 @@ hidden: true - **Terminal.integrated.shell.linux** - 虽然 bash 是此处的默认设置,但您可以通过修改它来使用其他终端 shell。 - **Extensions** - 它们是默认包含的扩展名。 - **ms-dotnettools.csharp** - Microsoft C# 扩展为使用 C# 的开发提供丰富的支持,包括 IntelliSense、linting、调试、代码导航、代码格式化、重构、变量资源管理器、测试资源管理器等功能。 -- **forwardPorts** - 此处列出的任何端口都将自动转发。 For more information, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)." +- **forwardPorts** - 此处列出的任何端口都将自动转发。 更多信息请参阅“[在代码空间中转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)”。 - **postCreateCommand** - 如果您要在进入 Dockerfile 中未定义的代码空间(例如 `dotnet restore`)后执行任何操作,您可以在此处执行。 - **remoteUser** - 默认情况下,您以 vscode 用户身份运行,但您可以选择将其设置为 root。 @@ -171,7 +171,7 @@ RUN if [ "$INSTALL_AZURE_CLI" = "true" ]; then bash /tmp/library-scripts/azcli-d 1. 在 Explorer 中,展开 `.devcontainer` 文件夹,从树中选择 `devcontainer.json` 文件并打开它。 - ![devcontainer.json file in the Explorer](/assets/images/help/codespaces/devcontainers-options.png) + ![Explorer 中的 devcontainer.json 文件](/assets/images/help/codespaces/devcontainers-options.png) 2. 更新 `devcontainer.json` 文件中的 `extensions` 列表,以添加一些在处理项目时有用的扩展。 diff --git a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-java-project-for-codespaces.md b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-java-project-for-codespaces.md index 8d18a87a99a4..ee358718bc0b 100644 --- a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-java-project-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-java-project-for-codespaces.md @@ -27,17 +27,17 @@ hidden: true ## 步骤 1:在代码空间中打开项目 -1. Under the repository name, use the **{% octicon "code" aria-label="The code icon" %} Code** drop-down menu, and in the **Codespaces** tab, click {% octicon "plus" aria-label="The plus icon" %} **New codespace**. +1. 在存储库名称下,使用 **{% octicon "code" aria-label="The code icon" %} 代码**下拉菜单,然后在**Codespaces(代码空间)**选项卡中,单击 {% octicon "plus" aria-label="The plus icon" %} **New codespace(新建代码空间)**。 ![新建代码空间按钮](/assets/images/help/codespaces/new-codespace-button.png) - If you don’t see this option, {% data variables.product.prodname_codespaces %} isn't available for your project. See [Access to {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces) for more information. + 如果您看不到此选项,则表示 {% data variables.product.prodname_codespaces %} 不适用于您的项目。 有关详细信息,请参阅 [访问 {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces)。 创建代码空间时,您的项目是在专用于您的远程 VM 上创建的。 By default, the container for your codespace has many languages and runtimes including Java, nvm, npm, and Yarn. 它还包括一套常见的工具,例如 git、wget、rsync、openssh 和 nano。 您可以通过调整 vCPU 和 RAM 的数量、[添加 dotfiles 以个性化环境](/codespaces/setting-up-your-codespace/personalizing-codespaces-for-your-account)或者修改安装的工具和脚本来自定义代码空间。 -{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 For more information, see "[Introduction to dev containers](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)." +{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 更多信息请参阅“[开发容器简介](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)”。 ## 步骤 2:从模板将开发容器添加到您的代码空间 @@ -113,7 +113,7 @@ hidden: true - **Terminal.integrated.shell.linux** - 虽然 bash 是此处的默认设置,但您可以通过修改它来使用其他终端 shell。 - **Extensions** - 它们是默认包含的扩展名。 - **Vscjava.vscode-java-pack** - Java 扩展包为 Java 开发提供了流行的扩展,以帮助您入门。 -- **forwardPorts** - 此处列出的任何端口都将自动转发。 For more information, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)." +- **forwardPorts** - 此处列出的任何端口都将自动转发。 更多信息请参阅“[在代码空间中转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)”。 - **postCreateCommand** - 如果您要在进入 Dockerfile 中未定义的代码空间后执行任何操作,您可以在此处执行。 - **remoteUser** - 默认情况下,您以 `vscode` 用户身份运行,但您可以选择将其设置为 `root`。 @@ -153,7 +153,7 @@ RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/shar 1. 在 Explorer 中,从树中选择 `devcontainer.json` 文件来打开它。 您可能需要展开 `.devcontainer` 文件夹才能看到它。 - ![devcontainer.json file in the Explorer](/assets/images/help/codespaces/devcontainers-options.png) + ![Explorer 中的 devcontainer.json 文件](/assets/images/help/codespaces/devcontainers-options.png) 2. 在 `devcontainer.json` 文件中的 `extensions` 后面添加以下行。 diff --git a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-nodejs-project-for-codespaces.md b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-nodejs-project-for-codespaces.md index 58bd69b7cc22..201fb3417db0 100644 --- a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-nodejs-project-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-nodejs-project-for-codespaces.md @@ -31,18 +31,18 @@ hidden: true ## 步骤 1:在代码空间中打开项目 -1. Under the repository name, use the **{% octicon "code" aria-label="The code icon" %} Code** drop-down menu, and in the **Codespaces** tab, click {% octicon "plus" aria-label="The plus icon" %} **New codespace**. +1. 在存储库名称下,使用 **{% octicon "code" aria-label="The code icon" %} 代码**下拉菜单,然后在**Codespaces(代码空间)**选项卡中,单击 {% octicon "plus" aria-label="The plus icon" %} **New codespace(新建代码空间)**。 ![新建代码空间按钮](/assets/images/help/codespaces/new-codespace-button.png) - If you don’t see this option, {% data variables.product.prodname_codespaces %} isn't available for your project. See [Access to {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces) for more information. + 如果您看不到此选项,则表示 {% data variables.product.prodname_codespaces %} 不适用于您的项目。 有关详细信息,请参阅 [访问 {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces)。 创建代码空间时,您的项目是在专用于您的远程 VM 上创建的。 默认情况下,代码空间的容器有许多语言和运行时,包括 Node.js、JavaScript、Typescript、nvm、npm 和 yarn。 它还包括一套常见的工具,例如 git、wget、rsync、openssh 和 nano。 您可以通过调整 vCPU 和 RAM 的数量、[添加 dotfiles 以个性化环境](/codespaces/setting-up-your-codespace/personalizing-codespaces-for-your-account)或者修改安装的工具和脚本来自定义代码空间。 -{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 For more information, see "[Introduction to dev containers](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)." +{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 更多信息请参阅“[开发容器简介](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)”。 ## 步骤 2:从模板将开发容器添加到您的代码空间 @@ -107,7 +107,7 @@ hidden: true - **Terminal.integrated.shell.linux** - 虽然 bash 是此处的默认设置,但您可以通过修改它来使用其他终端 shell。 - **Extensions** - 它们是默认包含的扩展名。 - **Dbaeumer.vscode-eslint** - ES lint 是 linting 的良好扩展,但是对于 JavaScript,您还可以包括许多出色的 Marketplace 扩展。 -- **forwardPorts** - 此处列出的任何端口都将自动转发。 For more information, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)." +- **forwardPorts** - 此处列出的任何端口都将自动转发。 更多信息请参阅“[在代码空间中转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)”。 - **postCreateCommand** - 如果您要在进入 Dockerfile 中未定义的代码空间后执行任何操作,您可以在此处执行。 - **remoteUser** - 默认情况下,您以 vscode 用户身份运行,但您可以选择将其设置为 root。 @@ -138,7 +138,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} 1. 在 Explorer 中,从树中选择 `devcontainer.json` 文件来打开它。 您可能需要展开 `.devcontainer` 文件夹才能看到它。 - ![devcontainer.json file in the Explorer](/assets/images/help/codespaces/devcontainers-options.png) + ![Explorer 中的 devcontainer.json 文件](/assets/images/help/codespaces/devcontainers-options.png) 2. 在 `devcontainer.json` 文件中的 `extensions` 后面添加以下行: diff --git a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md index 992161b721c6..f09729954771 100644 --- a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md @@ -30,11 +30,11 @@ hidden: true ## 步骤 1:在代码空间中打开项目 -1. Under the repository name, use the **{% octicon "code" aria-label="The code icon" %} Code** drop-down menu, and in the **Codespaces** tab, click {% octicon "plus" aria-label="The plus icon" %} **New codespace**. +1. 在存储库名称下,使用 **{% octicon "code" aria-label="The code icon" %} 代码**下拉菜单,然后在**Codespaces(代码空间)**选项卡中,单击 {% octicon "plus" aria-label="The plus icon" %} **New codespace(新建代码空间)**。 ![新建代码空间按钮](/assets/images/help/codespaces/new-codespace-button.png) - If you don’t see this option, {% data variables.product.prodname_codespaces %} isn't available for your project. See [Access to {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces) for more information. + 如果您看不到此选项,则表示 {% data variables.product.prodname_codespaces %} 不适用于您的项目。 有关详细信息,请参阅 [访问 {% data variables.product.prodname_codespaces %}](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces)。 @@ -42,7 +42,7 @@ hidden: true 您可以通过调整 vCPU 和 RAM 的数量、[添加 dotfiles 以个性化环境](/codespaces/setting-up-your-codespace/personalizing-codespaces-for-your-account)或者修改安装的工具和脚本来自定义代码空间。 -{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 For more information, see "[Introduction to dev containers](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)." +{% data variables.product.prodname_codespaces %} 使用名为 `devcontainer.json` 的文件来存储配置。 在启动时, {% data variables.product.prodname_codespaces %} 使用文件安装项目可能需要的任何工具、依赖项或其他设置。 更多信息请参阅“[开发容器简介](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project)”。 ## 步骤 2:从模板将开发容器添加到您的代码空间 @@ -126,7 +126,7 @@ hidden: true - **Terminal.integrated.shell.linux** - 虽然 bash 是此处的默认设置,但您可以通过修改它来使用其他终端 shell。 - **Extensions** - 它们是默认包含的扩展名。 - **ms-python.python** - Microsoft Python 扩展为 Python 语言提供丰富的支持(对于所有积极支持的语言版本:>=3.6),包括 IntelliSense、linting、调试、代码导航、代码格式化、重构、变量资源管理器、测试资源管理器等功能。 -- **forwardPorts** - 此处列出的任何端口都将自动转发。 For more information, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)." +- **forwardPorts** - 此处列出的任何端口都将自动转发。 更多信息请参阅“[在代码空间中转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)”。 - **postCreateCommand** - 如果您要在进入 Dockerfile 中未定义的代码空间(例如 `pip3 install -r requirements`)后执行任何操作,您可以在此处执行。 - **remoteUser** - 默认情况下,您以 `vscode` 用户身份运行,但您可以选择将其设置为 `root`。 @@ -163,7 +163,7 @@ RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/l 1. 在 Explorer 中,展开 `.devcontainer` 文件夹,从树中选择 `devcontainer.json` 文件并打开它。 - ![devcontainer.json file in the Explorer](/assets/images/help/codespaces/devcontainers-options.png) + ![Explorer 中的 devcontainer.json 文件](/assets/images/help/codespaces/devcontainers-options.png) 2. 更新 `devcontainer.json` 文件中的 `extensions` 列表,以添加一些在处理项目时有用的扩展。 diff --git a/translations/zh-CN/content/codespaces/the-githubdev-web-based-editor.md b/translations/zh-CN/content/codespaces/the-githubdev-web-based-editor.md index 8f9629fd2a66..b120d57c0d41 100644 --- a/translations/zh-CN/content/codespaces/the-githubdev-web-based-editor.md +++ b/translations/zh-CN/content/codespaces/the-githubdev-web-based-editor.md @@ -86,7 +86,7 @@ You can use the {% data variables.product.prodname_serverless %} to work with an 2. Press `.` to open the pull request in the {% data variables.product.prodname_serverless %}. 3. Once you have made any changes, commit them using the steps in [Commit your changes](#commit-your-changes). Your changes will be committed directly to the branch, it's not necessary to push the changes. -## Using extensions +## 使用扩展 The {% data variables.product.prodname_serverless %} supports {% data variables.product.prodname_vscode %} extensions that have been specifically created or updated to run in the web. These extensions are known as "web extensions". To learn how you can create a web extension or update your existing extension to work for the web, see "[Web extensions](https://code.visualstudio.com/api/extension-guides/web-extensions)" in the {% data variables.product.prodname_vscode %} documentation. diff --git a/translations/zh-CN/content/codespaces/troubleshooting/codespaces-logs.md b/translations/zh-CN/content/codespaces/troubleshooting/codespaces-logs.md index c9e49f758207..2d3bba7e2388 100644 --- a/translations/zh-CN/content/codespaces/troubleshooting/codespaces-logs.md +++ b/translations/zh-CN/content/codespaces/troubleshooting/codespaces-logs.md @@ -102,4 +102,4 @@ These logs are useful only if you want to debug problems with using {% data vari 1. In the browser window for the codespace you want to debug, open the developer tools window. 1. Display the "Console" tab and click **errors** in the left side bar to show only the errors. -1. In the log area on the right, right-click and select **Save as** to save a copy of the errors to your local machine. ![Save errors](/assets/images/help/codespaces/browser-console-log-save.png) +1. In the log area on the right, right-click and select **Save as** to save a copy of the errors to your local machine. ![保存错误](/assets/images/help/codespaces/browser-console-log-save.png) diff --git a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-codespaces-clients.md b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-codespaces-clients.md index a3036f8a7ab3..b0e47bee46c4 100644 --- a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-codespaces-clients.md +++ b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-codespaces-clients.md @@ -1,6 +1,6 @@ --- -title: Troubleshooting Codespaces clients -intro: 'You can use {% data variables.product.prodname_codespaces %} in your browser or through {% data variables.product.prodname_vscode %}. This article provides troubleshooting steps for common client issues.' +title: Codespaces 客户端疑难解答 +intro: '您可以在浏览器中使用 {% data variables.product.prodname_codespaces %} ,也可以通过 {% data variables.product.prodname_vscode %}使用。 本文提供常见客户端问题的疑难解答步骤。' product: '{% data reusables.gated-features.codespaces %}' versions: fpt: '*' @@ -8,31 +8,31 @@ versions: type: reference topics: - Codespaces -shortTitle: Codespaces clients +shortTitle: Codespaces 客户端 --- ## {% data variables.product.prodname_vscode %} 故障排除 -When you connect a desktop version of {% data variables.product.prodname_vscode %} to a codespace, you will notice few differences compared with working in a normal workspace but the experience will be fairly similar. +当您将桌面版本的 {% data variables.product.prodname_vscode %} 连接到代码空间时,您会注意到与在普通工作区中工作相比几乎没有什么区别,但体验非常相似。 -When you open a codespace in your browser using {% data variables.product.prodname_vscode %} in the web, you will notice more differences. For example, some key bindings will be different or missing, and some extensions may behave differently. For a summary, see: "[Known limitations and adaptions](https://code.visualstudio.com/docs/remote/codespaces#_known-limitations-and-adaptations)" in the {% data variables.product.prodname_vscode %} docs. +当您在浏览器中使用 web 中的 {% data variables.product.prodname_vscode %} 打开代码空间时,您会注意到更多差异。 例如,某些键绑定将不同或丢失,并且某些扩展的行为可能不同。 有关摘要,请参阅 {% data variables.product.prodname_vscode %} 文档中的“[已知限制和适应性](https://code.visualstudio.com/docs/remote/codespaces#_known-limitations-and-adaptations)”。 -You can check for known issues and log new issues with the {% data variables.product.prodname_vscode %} experience in the [`microsoft/vscode`](https://github.com/microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+codespaces) repository. +您可以使用 [`microsoft/vscode`](https://github.com/microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+codespaces) 存储库中的 {% data variables.product.prodname_vscode %} 体验检查已知问题并记录新问题 ### {% data variables.product.prodname_vscode %} Insiders -{% data variables.product.prodname_vscode %} Insiders is the most frequent release of {% data variables.product.prodname_vscode %}. It has all the latest features and bug fixes, but may also occasionally contain new issues that result in a broken build. +{% data variables.product.prodname_vscode %} Insiders 是 {% data variables.product.prodname_vscode %} 中最常见的版本。 它具有所有最新功能和错误修复,但偶尔也可能包含导致构建中断的新问题。 -If you are using an Insiders build and notice broken behavior, we recommend switching to {% data variables.product.prodname_vscode %} Stable and trying again. +如果你使用的是 Insiders 版本并发现损坏的行为,我们建议切换到 {% data variables.product.prodname_vscode %} Stable 版,然后重试。 -On the desktop version of {% data variables.product.prodname_vscode %}, you can switch to Stable by closing the {% data variables.product.prodname_vscode %} Insiders application, opening the {% data variables.product.prodname_vscode %} Stable application, and re-opening your codespace. +在 {% data variables.product.prodname_vscode %} 的桌面版本上,可以通过关闭 {% data variables.product.prodname_vscode %} Insiders 应用程序,打开 {% data variables.product.prodname_vscode %} Stable 应用程序,然后重新打开代码空间,切换到 Stable 版。 -On the web version of {% data variables.product.prodname_vscode %}, you can click {% octicon "gear" aria-label="The manage icon" %} in the bottom left of the editor and select **Switch to Stable Version...**. If the web version doesn't load or the {% octicon "gear" aria-label="The manage icon" %} icon isn't available, you can force switching to {% data variables.product.prodname_vscode %} Stable by appending `?vscodeChannel=stable` to your codespace URL and loading the codespace at that URL. +在 {% data variables.product.prodname_vscode %} 的 Web 版本上,您可以单击编辑器左下角的 {% octicon "gear" aria-label="The manage icon" %} ,然后选择 **Switch to Stable Version...(切换到 Stable 版本...)**。 如果 Web 版本未加载或 {% octicon "gear" aria-label="The manage icon" %} 图标不可用,则可以通过将 `?vscodeChannel=stable` 附加到代码空间 URL 并在该 URL 处加载代码空间来强制切换到 {% data variables.product.prodname_vscode %} Stable 版。 -If the problem isn't fixed in {% data variables.product.prodname_vscode %} Stable, please follow the above troubleshooting instructions. +如果在 {% data variables.product.prodname_vscode %} Stable 版中未修复问题,请按照上述故障排除说明进行操作。 ## 浏览器故障排除 -If you encounter issues using codespaces in a browser that is not Chromium-based, try switching to a Chromium-based browser, or check for known issues with your browser in the `microsoft/vscode` repository by searching for issues labeled with the name of your browser, such as [`firefox`](https://github.com/microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+label%3Afirefox) or [`safari`](https://github.com/Microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Asafari). +如果在非基于 Chromium 的浏览器中使用代码空间时遇到问题,请尝试切换到基于 Chromium 的浏览器,或在 `microsoft/vscode` 仓库中搜索标有您的浏览器名称(如 [`firefox`](https://github.com/microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+label%3Afirefox) 或 [`safari`](https://github.com/Microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Asafari))的议题,检查浏览器的已知问题。 -If you encounter issues using codespaces in a Chromium-based browser, you can check if you're experiencing another known issue with {% data variables.product.prodname_vscode %} in the [`microsoft/vscode`](https://github.com/microsoft/vscode/issues) repository. +如果您在基于 Chromium 的浏览器中使用代码空间时遇到问题,您可以在 [`microsoft/vscode`](https://github.com/microsoft/vscode/issues) 仓库中检查是否遇到 {% data variables.product.prodname_vscode %} 的另一个已知问题。 diff --git a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-dotfiles-for-codespaces.md b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-dotfiles-for-codespaces.md index bed6cd82e4e3..3f7fd0e8927f 100644 --- a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-dotfiles-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-dotfiles-for-codespaces.md @@ -1,6 +1,6 @@ --- -title: Troubleshooting dotfiles for Codespaces -intro: Troubleshooting steps for common dotfiles issues. +title: Codespaces 的 dotfiles 疑难解答 +intro: 常见 dotfiles 问题的疑难解答步骤。 product: '{% data reusables.gated-features.codespaces %}' versions: fpt: '*' @@ -11,12 +11,12 @@ topics: shortTitle: Dotfiles --- -If your codespace fails to pick up configuration settings from dotfiles, you should work through the following debugging steps. +如果代码空间无法从 dotfiles 中选取配置设置,则应执行以下调试步骤。 1. 确保您的 dotfiles 仓库是公开的。 如果您的代码空间中有密钥或敏感数据,请使用[代码空间密钥](/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces),而不是私人 dotfiles。 2. 检查 `/workspaces/.codespaces/.persistedshare/dotfiles`,查看您的 dotfiles 是否被克隆。 - - If your dotfiles were cloned, try manually re-running your install script to verify that it is executable. - - If your dotfiles were not cloned, check `/workspaces/.codespaces/.persistedshare/EnvironmentLog.txt` to see if there was a problem cloning them. -3. 检查 `/workspaces/.codespaces/.persistedshare/creation.log` 是否有可能的问题。 For more information, see [Creation logs](/codespaces/troubleshooting/codespaces-logs#creation-logs). + - 如果您的 dotfiles 被克隆,请尝试手动重新运行安装脚本以验证其可执行性。 + - 如果您的 dotfiles 未被克隆,请检查 `/workspaces/.codespaces/.persistedshare/EnvironmentLog.txt` 是否存在克隆问题。 +3. 检查 `/workspaces/.codespaces/.persistedshare/creation.log` 是否有可能的问题。 更多信息请参阅[创建日志](/codespaces/troubleshooting/codespaces-logs#creation-logs)。 -If the configuration from your dotfiles is correctly picked up, but part of the configuration is incompatible with codespaces, use the `$CODESPACES` environment variable to add conditional logic for codespace-specific configuration settings. +如果已正确选取 dotfiles 中的配置,但部分配置与代码空间不兼容,请使用 `$CODESPACES` 环境变量为特定于代码空间的配置设置添加条件逻辑。 diff --git a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-port-forwarding-for-codespaces.md b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-port-forwarding-for-codespaces.md index 8122481e560b..064c4c7c37ff 100644 --- a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-port-forwarding-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-port-forwarding-for-codespaces.md @@ -1,6 +1,6 @@ --- -title: Troubleshooting port forwarding for Codespaces -intro: Troubleshooting steps for common port forwarding issues. +title: Codespaces 的端口转发疑难解答 +intro: 常见端口转发问题的疑难解答步骤。 product: '{% data reusables.gated-features.codespaces %}' versions: fpt: '*' @@ -8,14 +8,14 @@ versions: type: reference topics: - Codespaces -shortTitle: Port forwarding +shortTitle: 端口转发 --- -When an application running inside a codespace outputs a port to the console, {% data variables.product.prodname_codespaces %} detects the localhost URL pattern and automatically forwards the port. For more information, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)." +在代码空间内运行的应用程序向控制台输出端口时,{% data variables.product.prodname_codespaces %} 将检测到 localhost URL 模式并自动转发端口。 更多信息请参阅“[在代码空间中转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)”。 -If a port is not automatically forwarded, you can forward it manually. For more information, see "[Forwarding a port](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace#forwarding-a-port)." +如果端口未自动转发,则可以手动转发该端口。 更多信息请参阅“[转发端口](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace#forwarding-a-port)”。 -If port forwarding is set up, check the following: +如果设置了端口转发,请检查以下各项: -- Use the notification toast or click the URL in Terminal to open the forwarded port. Typing in `localhost:8000` (as an example) to your local machine will not work if you're connected to the codespace via the browser. -- Make sure to check that your application is still running from within your codespace. If your codespace has stopped after a period of inactivity, you'll need to ensure to restart your application once the codespace has restarted. +- 使用通知提示或点击终端中的 URL 打开转发的端口。 如果通过浏览器连接到代码空间,则在本地计算机中键入 `localhost:8000`(作为示例)将不起作用。 +- 确保检查应用程序是否仍在代码空间中运行。 如果代码空间在一段时间不活动后停止,则需要确保在代码空间重新启动后重新启动应用程序。 diff --git a/translations/zh-CN/content/communities/maintaining-your-safety-on-github/blocking-a-user-from-your-personal-account.md b/translations/zh-CN/content/communities/maintaining-your-safety-on-github/blocking-a-user-from-your-personal-account.md index e4cb8cc1aecf..591fcfe060f6 100644 --- a/translations/zh-CN/content/communities/maintaining-your-safety-on-github/blocking-a-user-from-your-personal-account.md +++ b/translations/zh-CN/content/communities/maintaining-your-safety-on-github/blocking-a-user-from-your-personal-account.md @@ -59,8 +59,8 @@ shortTitle: 阻止您的帐户 ## 在您的帐户设置中阻止用户 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.blocked_users %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.blocked_users %} 3. 在“Block a user(阻止用户)”下,键入您要阻止的用户的用户名,然后单击 **Block user(阻止用户)**。 ![用户名字段和阻止按钮](/assets/images/help/settings/user-settings-block-user.png) 4. (可选)要在您访问被阻止用户参与的仓库时显示警告,请选择 **Warn me when a blocked user is a prior contributor to a repository(在访问被阻止用户先前参与的仓库时警告我)**。 ![关于被阻止用户的警告选项](/assets/images/help/settings/warn-block-user.png) diff --git a/translations/zh-CN/content/communities/maintaining-your-safety-on-github/unblocking-a-user-from-your-personal-account.md b/translations/zh-CN/content/communities/maintaining-your-safety-on-github/unblocking-a-user-from-your-personal-account.md index 023d92d029de..2c1405e8ab56 100644 --- a/translations/zh-CN/content/communities/maintaining-your-safety-on-github/unblocking-a-user-from-your-personal-account.md +++ b/translations/zh-CN/content/communities/maintaining-your-safety-on-github/unblocking-a-user-from-your-personal-account.md @@ -20,8 +20,8 @@ shortTitle: 取消阻止您的帐户 ## 在您的帐户设置中取消阻止用户 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.blocked_users %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.blocked_users %} 3. 在“Blocked users(已阻止的用户)”下您想要取消阻止的用户旁边,单击 **Unblock(取消阻止)**。 ![取消阻止用户按钮](/assets/images/help/organizations/org-unblock-user-button.png) ## 从用户的个人资料页面取消阻止该用户 diff --git a/translations/zh-CN/content/communities/maintaining-your-safety-on-github/viewing-users-youve-blocked-from-your-personal-account.md b/translations/zh-CN/content/communities/maintaining-your-safety-on-github/viewing-users-youve-blocked-from-your-personal-account.md index eb8f8a89ebf0..ce6523b349cc 100644 --- a/translations/zh-CN/content/communities/maintaining-your-safety-on-github/viewing-users-youve-blocked-from-your-personal-account.md +++ b/translations/zh-CN/content/communities/maintaining-your-safety-on-github/viewing-users-youve-blocked-from-your-personal-account.md @@ -13,8 +13,8 @@ topics: shortTitle: 查看帐户中被阻止的用户 --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.blocked_users %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.blocked_users %} 3. 在“Blocked users(被阻止的用户)”下,查看您已阻止访问您的帐户的用户的列表。 ![被阻止的用户的列表](/assets/images/help/settings/list-of-blocked-users.png) ## 延伸阅读 diff --git a/translations/zh-CN/content/communities/moderating-comments-and-conversations/limiting-interactions-for-your-user-account.md b/translations/zh-CN/content/communities/moderating-comments-and-conversations/limiting-interactions-for-your-user-account.md index ea03289d482b..3b0a343e680d 100644 --- a/translations/zh-CN/content/communities/moderating-comments-and-conversations/limiting-interactions-for-your-user-account.md +++ b/translations/zh-CN/content/communities/moderating-comments-and-conversations/limiting-interactions-for-your-user-account.md @@ -26,7 +26,7 @@ shortTitle: 限制帐户中的交互 ## 限制用户帐户的交互 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 1. 在侧边栏的“Access(访问)”部分中,选择 **{% octicon "report" aria-label="The report icon" %} 主持**,然后点击 **Interaction limits(互动限制)**。 {% data reusables.community.set-interaction-limit %} ![临时交互限制选项](/assets/images/help/settings/user-account-temporary-interaction-limits-options.png) diff --git a/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms.md b/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms.md index 5a7f83ee51bc..70b589a7104a 100644 --- a/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms.md +++ b/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms.md @@ -1,5 +1,5 @@ --- -title: Common validation errors when creating issue forms +title: 创建议题表单时的常见验证错误 intro: 'You may see some of these common validation errors when creating, saving, or viewing issue forms.' versions: fpt: '*' diff --git a/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema.md b/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema.md index 3e5e5e1d8828..8d10988869f2 100644 --- a/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema.md +++ b/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema.md @@ -59,12 +59,12 @@ topics: 对于每个表单元素,您可以设置以下键。 -| 键 | 描述 | 必选 | 类型 | 默认值 | 有效值 | -| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- | --- | ----------------------------------------------- | ----------------------------------------------- | -| `type` | 您想要定义的元素类型。 | 必选 | 字符串 | {% octicon "dash" aria-label="The dash icon" %} |
  • `checkboxes`
  • `dropdown`
  • `input`
  • `markdown`
  • `textarea`
| -| `id` | The identifier for the element, except when `type` is set to `markdown`. {% data reusables.form-schema.id-must-be-unique %} 如果提供, `id` 是 URL 查询参数预填中字段的标准标识符。 | 可选 | 字符串 | {% octicon "dash" aria-label="The dash icon" %} | {% octicon "dash" aria-label="The dash icon" %} -| `属性` | 定义元素属性的一组键值对。 | 必选 | 哈希 | {% octicon "dash" aria-label="The dash icon" %} | {% octicon "dash" aria-label="The dash icon" %} -| `验证` | 设置元素约束的一组键值对。 | 可选 | 哈希 | {% octicon "dash" aria-label="The dash icon" %} | {% octicon "dash" aria-label="The dash icon" %} +| 键 | 描述 | 必选 | 类型 | 默认值 | 有效值 | +| ------ | ------------------------------------------------------------------------------------------------------------------- | -- | --- | ----------------------------------------------- | ----------------------------------------------- | +| `type` | 您想要定义的元素类型。 | 必选 | 字符串 | {% octicon "dash" aria-label="The dash icon" %} |
  • `checkboxes`
  • `dropdown`
  • `input`
  • `markdown`
  • `textarea`
| +| `id` | 元素的标识符,`类型`设置为 `Markdown` 时除外。 {% data reusables.form-schema.id-must-be-unique %} 如果提供, `id` 是 URL 查询参数预填中字段的标准标识符。 | 可选 | 字符串 | {% octicon "dash" aria-label="The dash icon" %} | {% octicon "dash" aria-label="The dash icon" %} +| `属性` | 定义元素属性的一组键值对。 | 必选 | 哈希 | {% octicon "dash" aria-label="The dash icon" %} | {% octicon "dash" aria-label="The dash icon" %} +| `验证` | 设置元素约束的一组键值对。 | 可选 | 哈希 | {% octicon "dash" aria-label="The dash icon" %} | {% octicon "dash" aria-label="The dash icon" %} 您可以从以下类型的表单元素中选择。 每个类型都有唯一的属性和验证。 diff --git a/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms.md b/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms.md index f3318e81c7e2..db41d462338c 100644 --- a/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms.md +++ b/translations/zh-CN/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms.md @@ -16,7 +16,7 @@ topics: 当贡献者填写议题表单时,他们对每个输入的响应都会转换为 Markdown 并添加到议题正文中。 贡献者可以编辑使用议题表单创建的议题,其他人可以与议题(如通过其他方法创建的议题)进行交互。 -Issue forms are not supported for pull requests. You can create pull request templates in your repositories for collaborators to use. 更多信息请参阅"[为仓库创建拉取请求模板](/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository)"。 +拉取请求不支持议题表单。 您可以在存储库中创建拉取请求模板,供协作者使用。 更多信息请参阅"[为仓库创建拉取请求模板](/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository)"。 此示例 YAML 配置文件使用多个输入报告漏洞来定义议题表单。 @@ -165,4 +165,4 @@ body: ## 延伸阅读 - [YAML](https://yaml.org/) -- [Common validation errors when creating issue forms](/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms) +- [创建议题表单时的常见验证错误](/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms) diff --git a/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/making-changes-in-a-branch/managing-branches.md b/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/making-changes-in-a-branch/managing-branches.md index d94fdc742d17..8c25194e8ad3 100644 --- a/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/making-changes-in-a-branch/managing-branches.md +++ b/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/making-changes-in-a-branch/managing-branches.md @@ -17,7 +17,7 @@ versions: 您还可以从分支历史记录中的上一个提交开始创建分支。 如果您需要返回到仓库的早期视图以调查错误,或在最新版本上创建热补丁,这会很有帮助。 -对您的工作满意后,您可以创建拉取请求,以将当前分支中的更改合并到另一个分支。 For more information, see "[Creating an issue or pull request](/desktop/contributing-to-projects/creating-an-issue-or-pull-request)" and "[About pull requests](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)." +对您的工作满意后,您可以创建拉取请求,以将当前分支中的更改合并到另一个分支。 更多信息请参阅“[创建议题或拉取请求](/desktop/contributing-to-projects/creating-an-issue-or-pull-request)”和“[关于拉取请求](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)”。 如果您对仓库具有读取权限,可随时在 {% data variables.product.prodname_desktop %} 中创建分支, 但如果您对仓库具有写入权限,则只能将分支推送到 {% data variables.product.prodname_dotcom %}。 @@ -115,6 +115,6 @@ versions: - "[从 {% data variables.product.prodname_desktop %} 克隆仓库](/desktop/guides/contributing-to-projects/cloning-a-repository-from-github-to-github-desktop)" - {% data variables.product.prodname_dotcom %} 词汇中的“[分支](/articles/github-glossary/#branch)” -- "[About branches](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)" +- "[关于分支](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)" - Git 文档中的“[Nutshell 中的分支](https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell)” - “[隐藏更改](/desktop/contributing-and-collaborating-using-github-desktop/stashing-changes)” diff --git a/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/squashing-commits.md b/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/squashing-commits.md index e8cbfcb16d8d..58fecbad842b 100644 --- a/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/squashing-commits.md +++ b/translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/squashing-commits.md @@ -16,7 +16,7 @@ versions: {% data reusables.desktop.current-branch-menu %} 2. 在分支列表中,选择包含您要压缩的提交的分支。 {% data reusables.desktop.history-tab %} -4. 选择要压缩的提交,并将其放到要合并的提交上。 You can select one commit or select multiple commits using Command or Shift. ![压缩拖放](/assets/images/help/desktop/squash-drag-and-drop.png) +4. 选择要压缩的提交,并将其放到要合并的提交上。 您可以选择一个提交,也可以使用 CommandShift 选择多个提交。 ![压缩拖放](/assets/images/help/desktop/squash-drag-and-drop.png) 5. 修改新提交的提交消息。 您想要压缩的所选提交消息将预填入 **Summary(摘要)** 和 **Description<(说明)**字段。 6. 单击 **Squash Commits(压缩提交)**。 diff --git a/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/configuring-and-customizing-github-desktop/configuring-git-for-github-desktop.md b/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/configuring-and-customizing-github-desktop/configuring-git-for-github-desktop.md index 04139581206c..16cd8d30ffa0 100644 --- a/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/configuring-and-customizing-github-desktop/configuring-git-for-github-desktop.md +++ b/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/configuring-and-customizing-github-desktop/configuring-git-for-github-desktop.md @@ -22,8 +22,8 @@ versions: {% mac %} {% data reusables.desktop.sign-in-choose-product %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} {% data reusables.desktop.copy-email-git-config %} {% data reusables.desktop.return-to-desktop %} {% data reusables.desktop.mac-select-desktop-menu %} @@ -40,8 +40,8 @@ versions: {% windows %} {% data reusables.desktop.sign-in-choose-product %} -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} {% data reusables.desktop.copy-email-git-config %} {% data reusables.desktop.return-to-desktop %} {% data reusables.desktop.windows-choose-options %} diff --git a/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/installing-and-authenticating-to-github-desktop/authenticating-to-github.md b/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/installing-and-authenticating-to-github-desktop/authenticating-to-github.md index f43d874d9227..3d0b4cb71480 100644 --- a/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/installing-and-authenticating-to-github-desktop/authenticating-to-github.md +++ b/translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/installing-and-authenticating-to-github-desktop/authenticating-to-github.md @@ -26,7 +26,7 @@ Before you authenticate, {% data reusables.desktop.get-an-account %} 4. In the "Sign in" pane, click **Sign in using your browser**. {% data variables.product.prodname_desktop %} will open your default browser. ![The Sign in using your browser link](/assets/images/help/desktop/sign-in-browser.png) - {% data reusables.user_settings.password-authentication-deprecation-desktop %} + {% data reusables.user-settings.password-authentication-deprecation-desktop %} {% data reusables.desktop.authenticate-in-browser %} {% data reusables.desktop.2fa-in-browser %} @@ -34,7 +34,7 @@ Before you authenticate, {% data reusables.desktop.get-an-account %} ## Authenticating an account on {% data variables.product.prodname_enterprise %} -{% data reusables.user_settings.password-authentication-deprecation-desktop %} +{% data reusables.user-settings.password-authentication-deprecation-desktop %} {% data reusables.desktop.mac-select-desktop-menu %} {% data reusables.desktop.mac-select-accounts %} @@ -56,7 +56,7 @@ Before you authenticate, {% data reusables.desktop.get-an-account %} 4. In the Sign in pane, click **Sign in using your browser**. ![The Sign in using your browser link](/assets/images/help/desktop/sign-in-browser.png) - {% data reusables.user_settings.password-authentication-deprecation-desktop %} + {% data reusables.user-settings.password-authentication-deprecation-desktop %} {% data reusables.desktop.authenticate-in-browser %} {% data reusables.desktop.2fa-in-browser %} diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md index fc4e29ad6107..1de7c9a894aa 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md @@ -47,22 +47,22 @@ shortTitle: 应用程序创建查询参数 ## {% data variables.product.prodname_github_app %} 配置参数 - | 名称 | 类型 | 描述 | - | -------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - | `name` | `字符串` | {% data variables.product.prodname_github_app %} 的名称。 给应用程序一个清晰简洁的名称。 应用程序不能与现有 GitHub 用户同名,除非它是您自己的用户或组织的名称。 当您的集成执行操作时,应用程序名称的缓存版本将显示在用户界面上。 | - | `说明` | `字符串` | {% data variables.product.prodname_github_app %} 的说明。 | + | 名称 | 类型 | 描述 | + | -------------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | + | `name` | `字符串` | {% data variables.product.prodname_github_app %} 的名称。 给应用程序一个清晰简洁的名称。 应用程序不能与现有 GitHub 用户同名,除非它是您自己的用户或组织的名称。 当您的集成执行操作时,应用程序名称的缓存版本将显示在用户界面上。 | + | `说明` | `字符串` | {% data variables.product.prodname_github_app %} 的说明。 | | `url` | `字符串` | {% data variables.product.prodname_github_app %} 网站主页的完整 URL。{% ifversion fpt or ghae or ghes > 3.0 or ghec %} | `callback_urls` | `字符串数组` | 在用户授权安装后重定向到的完整 URL。 您可以提供最多 10 个回叫 URL。 如果应用程序需要识别和授权用户到服务器的请求,则使用这些 URL。 例如 `callback_urls[]=https://example.com&callback_urls[]=https://example-2.com`。{% else %} | `callback_url` | `字符串` | 在用户授权安装后重定向到的完整 URL。 如果应用程序需要识别和授权用户到服务器的请求,则使用此 URL。{% endif %} - | `request_oauth_on_install` | `布尔值` | 如果应用程序授权用户使用 OAuth 流程,您可以将此选项设置为 `true`,以允许用户在安装应用程序时授权它,从而省去一个步骤。 如果您选择此选项,则 `setup_url` 将不可用,用户在安装应用程序后将被重定向到您的 `callback_url`。 | - | `setup_url` | `字符串` | 在用户安装 {% data variables.product.prodname_github_app %} 后重定向到的完整 URL(如果应用程序在安装之后需要额外设置)。 | - | `setup_on_update` | `布尔值` | 设置为 `true` 可在更新安装后(例如在添加或删除仓库之后)将用户重定向到设置 URL。 | - | `public` | `布尔值` | 当 {% data variables.product.prodname_github_app %} 可供公众使用时,设置为 `true` ;当它仅供应用程序的所有者访问时,设置为 `false`。 | - | `webhook_active` | `布尔值` | Set to `false` to disable webhook. Webhook is enabled by default. | - | `webhook_url` | `字符串` | 要向其发送 web 挂钩事件有效负载的完整 URL。 | - | {% ifversion ghes < 3.2 or ghae %}`webhook_secret` | `字符串` | 您可以指定一个密钥来保护 web 挂钩。 更多信息请参阅“[保护 web 挂钩](/webhooks/securing/)”。 | - | {% endif %}`events` | `字符串数组` | Web 挂钩事件. 某些 web 挂钩事件需要您对资源有 `read` 或 `write` 权限,才能在注册新 {% data variables.product.prodname_github_app %} 时选择事件。 有关可用事件及其所需权限,请参阅“[{% data variables.product.prodname_github_app %} web 挂钩事件](#github-app-webhook-events)”一节。 您可以在查询字符串中选择多个事件。 For example, `events[]=public&events[]=label`.{% ifversion ghes < 3.4 %} - | `域` | `字符串` | The URL of a content reference.{% endif %} + | `request_oauth_on_install` | `布尔值` | 如果应用程序授权用户使用 OAuth 流程,您可以将此选项设置为 `true`,以允许用户在安装应用程序时授权它,从而省去一个步骤。 如果您选择此选项,则 `setup_url` 将不可用,用户在安装应用程序后将被重定向到您的 `callback_url`。 | + | `setup_url` | `字符串` | 在用户安装 {% data variables.product.prodname_github_app %} 后重定向到的完整 URL(如果应用程序在安装之后需要额外设置)。 | + | `setup_on_update` | `布尔值` | 设置为 `true` 可在更新安装后(例如在添加或删除仓库之后)将用户重定向到设置 URL。 | + | `public` | `布尔值` | 当 {% data variables.product.prodname_github_app %} 可供公众使用时,设置为 `true` ;当它仅供应用程序的所有者访问时,设置为 `false`。 | + | `webhook_active` | `布尔值` | 设置为 `false` 以禁用 web 挂钩。 Web 挂钩默认启用。 | + | `webhook_url` | `字符串` | 要向其发送 web 挂钩事件有效负载的完整 URL。 | + | {% ifversion ghes < 3.2 or ghae %}`webhook_secret` | `字符串` | 您可以指定一个密钥来保护 web 挂钩。 更多信息请参阅“[保护 web 挂钩](/webhooks/securing/)”。 | + | {% endif %}`events` | `字符串数组` | Web 挂钩事件. 某些 web 挂钩事件需要您对资源有 `read` 或 `write` 权限,才能在注册新 {% data variables.product.prodname_github_app %} 时选择事件。 有关可用事件及其所需权限,请参阅“[{% data variables.product.prodname_github_app %} web 挂钩事件](#github-app-webhook-events)”一节。 您可以在查询字符串中选择多个事件。 例如 `events[]=public&events[]=label`.{% ifversion ghes < 3.4 %} + | `域` | `字符串` | 内容引用的 URL。{% endif %} | `single_file_name` | `字符串` | 这是一种范围狭窄的权限,允许应用程序访问任何仓库中的单个文件。 当您将 `single_file` 权限设置为 `read` 或 `write` 时,此字段提供 {% data variables.product.prodname_github_app %} 将要管理的单个文件的路径。 {% ifversion fpt or ghes or ghec %} 如果您需要管理多个文件,请参阅下面的 `single_file_paths`。 {% endif %}{% ifversion fpt or ghes or ghec %} | `single_file_paths` | `字符串数组` | 这允许应用程序访问仓库中的最多 10 个指定文件。 当您将 `single_file` 权限设置为 `read` 或 `write` 时,此数组可存储 {% data variables.product.prodname_github_app %} 将要管理的最多 10 个文件的路径。 这些文件都接收由 `single_file` 设置的相同权限,没有单独的权限。 配置了两个或更多文件时,API 将返回 `multiple_single_files=true`,否则它将返回 `multiple_single_files=false`。{% endif %} diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md b/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md index b08a8b8b263d..b80cb0dabdff 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md @@ -272,7 +272,8 @@ curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre #### Git 引用 -* [创建引用](/rest/reference/git#create-a-reference)* [获取引用](/rest/reference/git#get-a-reference) +* [Create a reference](/rest/reference/git#create-a-reference) +* [Get a reference](/rest/reference/git#get-a-reference) * [列出匹配的引用](/rest/reference/git#list-matching-references) * [更新引用](/rest/reference/git#update-a-reference) * [删除引用](/rest/reference/git#delete-a-reference) diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/managing-allowed-ip-addresses-for-a-github-app.md b/translations/zh-CN/content/developers/apps/building-github-apps/managing-allowed-ip-addresses-for-a-github-app.md index 6815bba1790d..6999000a4522 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/managing-allowed-ip-addresses-for-a-github-app.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/managing-allowed-ip-addresses-for-a-github-app.md @@ -12,7 +12,7 @@ shortTitle: 管理允许的 IP 地址 ## 关于 {% data variables.product.prodname_github_apps %} 的 IP 地址允许列表 -企业和组织所有者可以通过配置 IP 地址允许列表来限制对资产的访问。 此列表指定允许连接的 IP 地址。 For more information, see "[Enforcing policies for security settings in your enterprise](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-security-settings-in-your-enterprise#managing-allowed-ip-addresses-for-organizations-in-your-enterprise)." +企业和组织所有者可以通过配置 IP 地址允许列表来限制对资产的访问。 此列表指定允许连接的 IP 地址。 更多信息请参阅“[在企业中实施安全设置策略](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-security-settings-in-your-enterprise#managing-allowed-ip-addresses-for-organizations-in-your-enterprise)”。 当组织拥有允许列表时,通过 {% data variables.product.prodname_github_app %} 连接的第三方应用程序将被拒绝访问,除非以下两个条件成立: diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/rate-limits-for-github-apps.md b/translations/zh-CN/content/developers/apps/building-github-apps/rate-limits-for-github-apps.md index 4796b1152aa4..ad392b6ee1a5 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/rate-limits-for-github-apps.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/rate-limits-for-github-apps.md @@ -1,5 +1,5 @@ --- -title: GitHub 应用程序的速率限制 +title: Rate limits for GitHub Apps intro: '{% data reusables.shortdesc.rate_limits_github_apps %}' redirect_from: - /early-access/integrations/rate-limits @@ -14,7 +14,7 @@ versions: ghec: '*' topics: - GitHub Apps -shortTitle: 速率限制 +shortTitle: Rate limits --- {% data reusables.enterprise.rate_limit %} @@ -29,7 +29,7 @@ Rate limits for {% data variables.product.prodname_github_apps %} and {% data va {% endif %} -## 服务器到服务器请求 +## Server-to-server requests {% ifversion ghec or fpt %} @@ -37,7 +37,7 @@ Rate limits for {% data variables.product.prodname_github_apps %} and {% data va {% endif %} -发出服务器-服务器请求的 {% data variables.product.prodname_github_apps %} 使用安装的最低速率限制为每小时 5,000 个请求。 If an application is installed on an organization with more than 20 users, the application receives another 50 requests per hour for each user. 具有 20 个以上仓库的安装每小时会为每个仓库再接收 50 个请求。 安装的最大速率限制为每小时 12,500 个请求。 +{% data variables.product.prodname_github_apps %} making server-to-server requests use the installation's minimum rate limit of 5,000 requests per hour. If an application is installed on an organization with more than 20 users, the application receives another 50 requests per hour for each user. Installations that have more than 20 repositories receive another 50 requests per hour for each repository. The maximum rate limit for an installation is 12,500 requests per hour. {% ifversion fpt or ghec %} @@ -51,7 +51,7 @@ Rate limits for {% data variables.product.prodname_github_apps %} and {% data va {% endif %} -## 用户到服务器请求 +## User-to-server requests {% data variables.product.prodname_github_apps %} and {% data variables.product.prodname_oauth_apps %} can also act on behalf of a user, making user-to-server requests after the user authorizes the app. For more information, see "[Authorizing {% data variables.product.prodname_github_apps %}](/authentication/keeping-your-account-and-data-secure/authorizing-github-apps)" and "[Authorizing {% data variables.product.prodname_oauth_apps %}](/authentication/keeping-your-account-and-data-secure/authorizing-oauth-apps)." @@ -79,7 +79,7 @@ The rate limits for user-to-server requests made by {% data variables.product.pr {% endif %} -## 延伸阅读 +## Further reading - "[Rate limiting](/rest/overview/resources-in-the-rest-api#rate-limiting)" in the REST API documentation - "[Resource limitations]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql/overview/resource-limitations)" in the GraphQL API documentation diff --git a/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md b/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md index d0ffb3d0b54a..e8e0058708eb 100644 --- a/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md +++ b/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md @@ -39,44 +39,44 @@ X-Accepted-OAuth-Scopes: user ## 可用作用域 -| 名称 | 描述 | -| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion not ghae %} +| 名称 | 描述 | +| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion not ghae %} | **`(无作用域)`** | 授予对公共信息的只读访问权限(包括用户个人资料信息、公共仓库信息和 gist){% endif %}{% ifversion ghes or ghae %} | **`site_admin`** | 授予站点管理员对 [{% data variables.product.prodname_ghe_server %} 管理 API 端点](/rest/reference/enterprise-admin)的访问权限。{% endif %} -| **`repo`** | 授予对仓库(包括私有仓库)的完全访问权限。 这包括对仓库和组织的代码、提交状态、仓库和组织项目、邀请、协作者、添加团队成员身份、部署状态以及仓库 web 挂钩的读取/写入权限。 还授予管理用户项目的权限。 | -|  `repo:status` | Grants read/write access to commit statuses in {% ifversion fpt %}public and private{% elsif ghec or ghes %}public, private, and internal{% elsif ghae %}private and internal{% endif %} repositories. 仅在授予其他用户或服务对私有仓库提交状态的访问权限而*不*授予对代码的访问权限时,才需要此作用域。 | +| **`repo`** | 授予对仓库(包括私有仓库)的完全访问权限。 这包括对仓库和组织的代码、提交状态、仓库和组织项目、邀请、协作者、添加团队成员身份、部署状态以及仓库 web 挂钩的读取/写入权限。 还授予管理用户项目的权限。 | +|  `repo:status` | 授予对{% ifversion fpt %}公共和私有{% elsif ghec or ghes %}公共、私有和内部{% elsif ghae %}私有和内部{% endif %}仓库中的提交状态的读/写访问权限。 仅在授予其他用户或服务对私有仓库提交状态的访问权限而*不*授予对代码的访问权限时,才需要此作用域。 | |  `repo_deployment` | 授予对{% ifversion not ghae %}公共{% else %}内部{% endif %}和私有仓库的[部署状态](/rest/reference/repos#deployments)的访问权限。 仅在授予其他用户或服务对部署状态的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% ifversion not ghae %} |  `public_repo` | 将访问权限限制为公共仓库。 这包括对公共仓库和组织的代码、提交状态、仓库项目、协作者以及部署状态的读取/写入权限。 标星公共仓库也需要此权限。{% endif %} |  `repo:invite` | 授予接受/拒绝仓库协作邀请的权限。 仅在授予其他用户或服务对邀请的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% ifversion fpt or ghes > 3.0 or ghec %} |  `security_events` | 授予:
对 [{% data variables.product.prodname_code_scanning %} API](/rest/reference/code-scanning) 中安全事件的读取和写入权限
对 [{% data variables.product.prodname_secret_scanning %} API](/rest/reference/secret-scanning) 中安全事件的读取和写入权限
仅在授予其他用户或服务对安全事件的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% endif %}{% ifversion ghes < 3.1 %} |  `security_events` | 授予对 [{% data variables.product.prodname_code_scanning %} API](/rest/reference/code-scanning) 中安全事件的读取和写入权限。 仅在授予其他用户或服务对安全事件的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% endif %} -| **`admin:repo_hook`** | Grants read, write, ping, and delete access to repository hooks in {% ifversion fpt %}public or private{% elsif ghec or ghes %}public, private, or internal{% elsif ghae %}private or internal{% endif %} repositories. The `repo` {% ifversion fpt or ghec or ghes %}and `public_repo` scopes grant{% else %}scope grants{% endif %} full access to repositories, including repository hooks. 使用 `admin:repo_hook` 作用域将访问权限限制为仅仓库挂钩。 | -|  `write:repo_hook` | Grants read, write, and ping access to hooks in {% ifversion fpt %}public or private{% elsif ghec or ghes %}public, private, or internal{% elsif ghae %}private or internal{% endif %} repositories. | -|  `read:repo_hook` | Grants read and ping access to hooks in {% ifversion fpt %}public or private{% elsif ghec or ghes %}public, private, or internal{% elsif ghae %}private or internal{% endif %} repositories. | -| **`admin:org`** | 全面管理组织及其团队、项目和成员。 | -|  `write:org` | 对组织成员身份、组织项目和团队成员身份的读取和写入权限。 | -|  `read:org` | 对组织成员身份、组织项目和团队成员身份的只读权限。 | -| **`admin:public_key`** | 全面管理公钥。 | -|  `write:public_key` | 创建、列出和查看公钥的详细信息。 | -|  `read:public_key` | 列出和查看公钥的详细信息。 | -| **`admin:org_hook`** | 授予对组织挂钩的读取、写入、ping 和删除权限。 **注:**OAuth 令牌只能对由 OAuth 应用程序创建的组织挂钩执行这些操作。 个人访问令牌只能对用户创建的组织挂钩执行这些操作。 | -| **`gist`** | 授予对 gist 的写入权限。 | -| **`通知`** | 授予:
* 对用户通知的读取权限
* 对线程的标记读取权限
* 对仓库的关注和取消关注权限,以及
* 对线程订阅的读取、写入和删除权限。 | -| **`用户`** | 仅授予对个人资料的读取/写入权限。 请注意,此作用域包括 `user:email` 和 `user:follow`。 | -|  `read:user` | 授予读取用户个人资料数据的权限。 | -|  `user:email` | 授予对用户电子邮件地址的读取权限。 | -|  `user:follow` | 授予关注或取消关注其他用户的权限。 | -| **`delete_repo`** | 授予删除可管理仓库的权限。 | -| **`write:discussion`** | 授予对团队讨论的读取和写入权限。 | +| **`admin:repo_hook`** | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中仓库挂钩的读取、写入、ping 和删除访问权限。 `repo` {% ifversion fpt or ghec or ghes %}和 `public_repo` 范围授予{% else %}范围授予{% endif %}对仓库(包括仓库挂钩)的完全访问权限。 使用 `admin:repo_hook` 作用域将访问权限限制为仅仓库挂钩。 | +|  `write:repo_hook` | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中挂钩的读取、写入和 ping 访问权限。 | +|  `read:repo_hook` | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中挂钩的读取和 ping 访问权限。 | +| **`admin:org`** | 全面管理组织及其团队、项目和成员。 | +|  `write:org` | 对组织成员身份、组织项目和团队成员身份的读取和写入权限。 | +|  `read:org` | 对组织成员身份、组织项目和团队成员身份的只读权限。 | +| **`admin:public_key`** | 全面管理公钥。 | +|  `write:public_key` | 创建、列出和查看公钥的详细信息。 | +|  `read:public_key` | 列出和查看公钥的详细信息。 | +| **`admin:org_hook`** | 授予对组织挂钩的读取、写入、ping 和删除权限。 **注:**OAuth 令牌只能对由 OAuth 应用程序创建的组织挂钩执行这些操作。 个人访问令牌只能对用户创建的组织挂钩执行这些操作。 | +| **`gist`** | 授予对 gist 的写入权限。 | +| **`通知`** | 授予:
* 对用户通知的读取权限
* 对线程的标记读取权限
* 对仓库的关注和取消关注权限,以及
* 对线程订阅的读取、写入和删除权限。 | +| **`用户`** | 仅授予对个人资料的读取/写入权限。 请注意,此作用域包括 `user:email` 和 `user:follow`。 | +|  `read:user` | 授予读取用户个人资料数据的权限。 | +|  `user:email` | 授予对用户电子邮件地址的读取权限。 | +|  `user:follow` | 授予关注或取消关注其他用户的权限。 | +| **`delete_repo`** | 授予删除可管理仓库的权限。 | +| **`write:discussion`** | 授予对团队讨论的读取和写入权限。 | |  `read:discussion` | 授予对团队讨论的读取权限。{% ifversion fpt or ghae or ghec %} -| **`write:packages`** | 授予在 {% data variables.product.prodname_registry %} 中上传或发布包的权限。 更多信息请参阅“[发布包](/github/managing-packages-with-github-packages/publishing-a-package)”。 | -| **`read:packages`** | 授予从 {% data variables.product.prodname_registry %} 下载或安装包的权限。 更多信息请参阅“[安装包](/github/managing-packages-with-github-packages/installing-a-package)”。 | -| **`delete:packages`** | 授予从 {% data variables.product.prodname_registry %} 删除包的权限。 For more information, see "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}."{% endif %} -| **`admin:gpg_key`** | 全面管理 GPG 密钥。 | -|  `write:gpg_key` | 创建、列出和查看 GPG 密钥的详细信息。 | +| **`write:packages`** | 授予在 {% data variables.product.prodname_registry %} 中上传或发布包的权限。 更多信息请参阅“[发布包](/github/managing-packages-with-github-packages/publishing-a-package)”。 | +| **`read:packages`** | 授予从 {% data variables.product.prodname_registry %} 下载或安装包的权限。 更多信息请参阅“[安装包](/github/managing-packages-with-github-packages/installing-a-package)”。 | +| **`delete:packages`** | 授予从 {% data variables.product.prodname_registry %} 删除包的权限。 更多信息请参阅“{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[删除包](/packages/learn-github-packages/deleting-a-package){% endif %}”。{% endif %} +| **`admin:gpg_key`** | 全面管理 GPG 密钥。 | +|  `write:gpg_key` | 创建、列出和查看 GPG 密钥的详细信息。 | |  `read:gpg_key` | 列出和查看 GPG 密钥的详细信息。{% ifversion fpt or ghec %} -| **`代码空间`** | Grants the ability to create and manage codespaces. Codespaces can expose a GITHUB_TOKEN which may have a different set of scopes. For more information, see "[Security in Codespaces](/codespaces/codespaces-reference/security-in-codespaces#authentication)."{% endif %} -| **`工作流程`** | 授予添加和更新 {% data variables.product.prodname_actions %} 工作流程文件的权限。 如果在同一仓库中的另一个分支上存在相同的文件(具有相同的路径和内容),则工作流程文件可以在没有此作用域的情况下提交。 工作流程文件可以暴露可能有不同范围集的 `GITHUB_TOKEN`。 更多信息请参阅“[工作流程中的身份验证](/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token)。 | +| **`代码空间`** | 授予创建和管理代码空间的能力。 Codespaces 可以暴露可能有不同范围集的 GITHUB_TOKEN。 更多信息请参阅“[Codespaces 中的安全性](/codespaces/codespaces-reference/security-in-codespaces#authentication)”。{% endif %} +| **`工作流程`** | 授予添加和更新 {% data variables.product.prodname_actions %} 工作流程文件的权限。 如果在同一仓库中的另一个分支上存在相同的文件(具有相同的路径和内容),则工作流程文件可以在没有此作用域的情况下提交。 工作流程文件可以暴露可能有不同范围集的 `GITHUB_TOKEN`。 更多信息请参阅“[工作流程中的身份验证](/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token)。 | {% note %} diff --git a/translations/zh-CN/content/developers/apps/getting-started-with-apps/differences-between-github-apps-and-oauth-apps.md b/translations/zh-CN/content/developers/apps/getting-started-with-apps/differences-between-github-apps-and-oauth-apps.md index 6f372a7fabd6..95e94432141f 100644 --- a/translations/zh-CN/content/developers/apps/getting-started-with-apps/differences-between-github-apps-and-oauth-apps.md +++ b/translations/zh-CN/content/developers/apps/getting-started-with-apps/differences-between-github-apps-and-oauth-apps.md @@ -57,14 +57,14 @@ _授权的_ OAuth 应用程序有权访问用户或组织所有者可访问的 {% endnote %} -| GitHub 应用程序 | OAuth 应用程序 | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| GitHub 应用可以使用带外 JSON Web 令牌格式的私钥请求安装访问令牌。 | OAuth 应用程序可以通过 Web 请求在重定向后将请求令牌交换为访问令牌。 | -| 安装程序将应用程序识别为 GitHub 应用自动程序,例如 @jenkins-bot。 | 访问令牌将应用程序识别为向应用程序授予令牌的用户,例如 @octocat。 | -| 安装令牌在预定义的时间(当前为 1 小时)后过期。 | OAuth 令牌在被客户撤销之前一直保持活动状态。 | -| {% data variables.product.prodname_github_apps %} installed on organizations or repositories are subject to rate limits for server-to-server requests. For more information, see "[Rate limits for {% data variables.product.prodname_github_apps %}](/developers/apps/building-github-apps/rate-limits-for-github-apps)." | OAuth tokens use the user's rate limit of {% ifversion fpt or ghec or ghes %}5,000{% elsif ghae %}15,000{% endif %} requests per hour. | -| 速率限制的增加可在 GitHub 应用程序级别(影响所有安装)和单个安装级别上授予。 | 速率限制的增加按 OAuth 应用程序授予。 授予该 OAuth 应用程序的每个令牌都会获得增加的上限。 | -| {% data variables.product.prodname_github_apps %} can authenticate on behalf of the user, which is called a user-to-server request. 授权流程与 OAuth 应用程序授权流程相同。 用户到服务器令牌可能会过期,可通过刷新令牌进行续订。 更多信息请参阅“[刷新用户到服务器访问令牌](/apps/building-github-apps/refreshing-user-to-server-access-tokens/)”和“[识别和授权 GitHub 应用程序用户](/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)”。 | {% data variables.product.prodname_oauth_apps %} 使用的 OAuth 流程代表用户授权 {% data variables.product.prodname_oauth_app %}。 这与用于 {% data variables.product.prodname_github_app %} 用户到服务器授权中使用的流程相同。 | +| GitHub 应用程序 | OAuth 应用程序 | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| GitHub 应用可以使用带外 JSON Web 令牌格式的私钥请求安装访问令牌。 | OAuth 应用程序可以通过 Web 请求在重定向后将请求令牌交换为访问令牌。 | +| 安装程序将应用程序识别为 GitHub 应用自动程序,例如 @jenkins-bot。 | 访问令牌将应用程序识别为向应用程序授予令牌的用户,例如 @octocat。 | +| 安装令牌在预定义的时间(当前为 1 小时)后过期。 | OAuth 令牌在被客户撤销之前一直保持活动状态。 | +| 安装在组织或仓库上的 {% data variables.product.prodname_github_apps %} 受服务器到服务器请求的速率限制。 更多信息请参阅“[{% data variables.product.prodname_github_apps %} 的速率限制”](/developers/apps/building-github-apps/rate-limits-for-github-apps)。 | OAuth 令牌使用用户的速率限制,即每小时 {% ifversion fpt or ghec or ghes %}5,000{% elsif ghae %}15,000{% endif %} 个请求。 | +| 速率限制的增加可在 GitHub 应用程序级别(影响所有安装)和单个安装级别上授予。 | 速率限制的增加按 OAuth 应用程序授予。 授予该 OAuth 应用程序的每个令牌都会获得增加的上限。 | +| {% data variables.product.prodname_github_apps %} 可以代表用户进行身份验证,这称为用户到服务器请求。 授权流程与 OAuth 应用程序授权流程相同。 用户到服务器令牌可能会过期,可通过刷新令牌进行续订。 更多信息请参阅“[刷新用户到服务器访问令牌](/apps/building-github-apps/refreshing-user-to-server-access-tokens/)”和“[识别和授权 GitHub 应用程序用户](/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)”。 | {% data variables.product.prodname_oauth_apps %} 使用的 OAuth 流程代表用户授权 {% data variables.product.prodname_oauth_app %}。 这与用于 {% data variables.product.prodname_github_app %} 用户到服务器授权中使用的流程相同。 | ## 请求资源的权限级别 diff --git a/translations/zh-CN/content/developers/apps/getting-started-with-apps/setting-up-your-development-environment-to-create-a-github-app.md b/translations/zh-CN/content/developers/apps/getting-started-with-apps/setting-up-your-development-environment-to-create-a-github-app.md index aabf472d4c08..7e6c39298f87 100644 --- a/translations/zh-CN/content/developers/apps/getting-started-with-apps/setting-up-your-development-environment-to-create-a-github-app.md +++ b/translations/zh-CN/content/developers/apps/getting-started-with-apps/setting-up-your-development-environment-to-create-a-github-app.md @@ -54,7 +54,7 @@ $ git clone https://github.com/github-developer/github-app-template.git ## 步骤 1. 启动新的 Sme 通道 -为了帮助 GitHub 将 web 挂钩发送到您的本地计算机而不将其暴露在互联网上,您可以使用一个名为 Smee 的工具。 首先,转到 https://smee.io,然后单击 **Start a new channel(启动新通道)**。 If you're already comfortable with other tools that expose your local machine to the internet like [`ngrok`](https://dashboard.ngrok.com/get-started) or [`localtunnel`](https://localtunnel.github.io/www/), feel free to use those. +为了帮助 GitHub 将 web 挂钩发送到您的本地计算机而不将其暴露在互联网上,您可以使用一个名为 Smee 的工具。 首先,转到 https://smee.io,然后单击 **Start a new channel(启动新通道)**。 如果您已经习惯使用将本地计算机暴露到互联网上的其他工具,例如 [`ngrok`](https://dashboard.ngrok.com/get-started) 或 [`localtunnel`](https://localtunnel.github.io/www/),请随意使用。 ![Smee 新通道按钮](/assets/images/smee-new-channel.png) @@ -91,7 +91,7 @@ $ git clone https://github.com/github-developer/github-app-template.git `smee --url ` 命令指示 Smee 将 Smee 通道接收的所有 web 挂钩事件转发到计算机上运行的 Smee 客户端。 `--path /event_handler` 选项将事件转发到 `/event_handler` 路由,我们将在[后面的章节](#step-5-review-the-github-app-template-code)中介绍。 `--port 3000` 选项指定端口 3000,这是服务器将侦听的端口。 使用 Smee,您的计算机不需要向公共互联网开放即可从 GitHub 接收 web 挂钩。 您也可以在浏览器中打开 Smee URL 来检查 web 挂钩有效负载。 -我们建议您在完成本指南其余步骤时保持此终端窗口打开并保持 Smee 连接。 Although you _can_ disconnect and reconnect the Smee client without losing your unique domain (unlike `ngrok`), you may find it easier to leave it connected and do other command-line tasks in a different Terminal window. +我们建议您在完成本指南其余步骤时保持此终端窗口打开并保持 Smee 连接。 尽管您_可以_断开连接后重新连接 Smee 客户端而不会丢失唯一域(与 `ngrok` 不同),但您可能会发现,保持连接时在其他终端窗口中执行其他命令行任务更容易。 ## 步骤 2. 注册新的 GitHub 应用程序 @@ -131,7 +131,7 @@ $ git clone https://github.com/github-developer/github-app-template.git 创建应用程序后,您将被带回[应用程序设置页面](https://github.com/settings/apps)。 您还有两件事要做: -* **为应用程序生成私钥。**这是以后验证应用程序所必需的。 向下滚动页面,然后单击 **Generate a private key(生成私钥)**。 Save the resulting `PEM` file (called something like _`app-name`_-_`date`_-`private-key.pem`) in a directory where you can find it again. +* **为应用程序生成私钥。**这是以后验证应用程序所必需的。 向下滚动页面,然后单击 **Generate a private key(生成私钥)**。 将生成的 `PEM` 文件(称为 _`app-name`_-_`date`_-`private-key.pem` 等)保存在可以再次找到的目录中。 ![私钥生成对话框](/assets/images/private_key.png) diff --git a/translations/zh-CN/content/developers/apps/guides/creating-ci-tests-with-the-checks-api.md b/translations/zh-CN/content/developers/apps/guides/creating-ci-tests-with-the-checks-api.md index 1fe460024b1a..265e4eafd219 100644 --- a/translations/zh-CN/content/developers/apps/guides/creating-ci-tests-with-the-checks-api.md +++ b/translations/zh-CN/content/developers/apps/guides/creating-ci-tests-with-the-checks-api.md @@ -157,7 +157,7 @@ end 此代码使用 [create_check_run 方法](https://rdoc.info/gems/octokit/Octokit%2FClient%2FChecks:create_check_run)调用“[创建检查运行](/rest/reference/checks#create-a-check-run)”端点。 -要创建检查运行,只有两个输入参数是必需的:`name` 和 `head_sha`。 We will use [RuboCop](https://rubocop.readthedocs.io/en/latest/) to implement the CI test later in this quickstart, which is why the name "Octo RuboCop" is used here, but you can choose any name you'd like for the check run. +要创建检查运行,只有两个输入参数是必需的:`name` 和 `head_sha`。 在本快速入门的后面部分,我们将使用 [RuboCop](https://rubocop.readthedocs.io/en/latest/) 来实现 CI 测试,这就是此处使用名称 "Octo RuboCop" 的原因,但您可以选择任何想要用于检查运行的名称。 您现在仅提供必需的参数以使基本功能正常工作,但是稍后您将在收集有关检查运行的更多信息时更新检查运行。 默认情况下,GitHub 将 `status` 设置为 `queued`。 diff --git a/translations/zh-CN/content/developers/github-marketplace/creating-apps-for-github-marketplace/viewing-metrics-for-your-listing.md b/translations/zh-CN/content/developers/github-marketplace/creating-apps-for-github-marketplace/viewing-metrics-for-your-listing.md index bb233098eb03..2e0e9747afc7 100644 --- a/translations/zh-CN/content/developers/github-marketplace/creating-apps-for-github-marketplace/viewing-metrics-for-your-listing.md +++ b/translations/zh-CN/content/developers/github-marketplace/creating-apps-for-github-marketplace/viewing-metrics-for-your-listing.md @@ -29,7 +29,7 @@ Insights 页面显示选定时段的以下性能指标: * **Subscription value(订阅价值):**订阅的可能总收入(美元)。 此值表示在没有计划或免费试用被取消并且所有信用交易都成功的情况下的可能收入。 订阅价值包括计划在选定时段内的全部价值,从免费试用开始计算,即使在该时段内没有任何财务交易。 订阅价值还包括选定时段内升级计划的全部价值,但不包括按比例分配的金额。 要查看和下载单个交易,请参阅“[GitHub Marketplace 交易](/marketplace/github-marketplace-transactions/)”。 * **Visitors(访客数):**查看过 GitHub 应用程序上架页面的人数。 此数字包括已登录和已注销的访客。 -* **Pageviews(网页浏览量):**GitHub 应用程序上架页面获得的浏览次数。 A single visitor can generate more than one page view. +* **Pageviews(网页浏览量):**GitHub 应用程序上架页面获得的浏览次数。 单个访问者可以生成多个页面视图。 {% note %} diff --git a/translations/zh-CN/content/developers/github-marketplace/listing-an-app-on-github-marketplace/submitting-your-listing-for-publication.md b/translations/zh-CN/content/developers/github-marketplace/listing-an-app-on-github-marketplace/submitting-your-listing-for-publication.md index 022729dab9dd..076b6d74cde3 100644 --- a/translations/zh-CN/content/developers/github-marketplace/listing-an-app-on-github-marketplace/submitting-your-listing-for-publication.md +++ b/translations/zh-CN/content/developers/github-marketplace/listing-an-app-on-github-marketplace/submitting-your-listing-for-publication.md @@ -19,7 +19,7 @@ shortTitle: 提交您的列表 ![Marketplace 上架信息草稿的选项概述](/assets/images/marketplace/edit-marketplace-listing-overview.png) -2. To submit your completed app listing, click **Request publish**. +2. 要提交已完成的应用程序上架信息,请单击 **Request publish(请求发布)**。 !["将应用程序发布到 Marketplace"检查列表,底部有提交按钮](/assets/images/marketplace/publish-your-app-checklist-and-submission.png) diff --git a/translations/zh-CN/content/developers/webhooks-and-events/events/issue-event-types.md b/translations/zh-CN/content/developers/webhooks-and-events/events/issue-event-types.md index 3ea47f62e437..5448337fcbc9 100644 --- a/translations/zh-CN/content/developers/webhooks-and-events/events/issue-event-types.md +++ b/translations/zh-CN/content/developers/webhooks-and-events/events/issue-event-types.md @@ -446,7 +446,7 @@ GitHub 尝试自动更改拉取请求的基本分支已成功。 ## ready_for_review -A draft pull request was marked as ready for review. +草稿拉取请求已标记为可供审阅。 ### 可用性 diff --git a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/creating-webhooks.md b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/creating-webhooks.md index 5938246f6af5..8f6a86ecf697 100644 --- a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/creating-webhooks.md +++ b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/creating-webhooks.md @@ -22,9 +22,9 @@ topics: ## 向互联网显示本地主机 -在本教程中,我们将使用本地服务器接收来自 {% data variables.product.prodname_dotcom %} 的消息。 因此,首先,我们需要将我们的本地发展环境显示给互联网。 我们将使用 ngrok 实现此目的。 所有主要操作系统均可免费使用 ngrok。 For more information, see [the `ngrok` download page](https://ngrok.com/download). +在本教程中,我们将使用本地服务器接收来自 {% data variables.product.prodname_dotcom %} 的消息。 因此,首先,我们需要将我们的本地发展环境显示给互联网。 我们将使用 ngrok 实现此目的。 所有主要操作系统均可免费使用 ngrok。 更多信息请参阅 [`ngrok` 下载页面](https://ngrok.com/download)。 -After installing `ngrok`, you can expose your localhost by running `./ngrok http 4567` on the command line. 4567 是我们服务器侦听消息的端口号。 您应该会看到如下所示的行: +在安装 `ngrok` 后,您可以在命令行上运行 `./ngrok http 4567` 以暴露本地主机。 4567 是我们服务器侦听消息的端口号。 您应该会看到如下所示的行: ```shell $ Forwarding http://7e9ea9dc.ngrok.io -> 127.0.0.1:4567 diff --git a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/securing-your-webhooks.md b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/securing-your-webhooks.md index 9771c7c0dca3..a71679f235f5 100644 --- a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/securing-your-webhooks.md +++ b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/securing-your-webhooks.md @@ -37,7 +37,7 @@ $ export SECRET_TOKEN=your_token ## 验证来自 GitHub 的有效负载 -设置密钥令牌后,{% data variables.product.product_name %} 使用它为每个有效负载创建一个哈希签名。 This hash signature is included with the headers of each request as `X-Hub-Signature-256`. +设置密钥令牌后,{% data variables.product.product_name %} 使用它为每个有效负载创建一个哈希签名。 此哈希签名包含在每个请求的标头中,作为 `X-Hub-Signature-256`。 {% ifversion fpt or ghes or ghec %} {% note %} @@ -85,7 +85,7 @@ end 您的语言和服务器实现可能与此示例代码不同。 但是,需要指出一些非常重要的事情: -* No matter which implementation you use, the hash signature starts with `sha256=`, using the key of your secret token and your payload body. +* 无论您使用哪种实现方式,哈希签名都以 `sha256=`开头,使用您的秘密令牌和有效负载主体的密钥。 * **不建议**使用普通的 `==` 运算符。 像 [`secure_compare`][secure_compare] 这样的方法执行“恒定时间”字符串比较,这有助于减轻针对常规相等运算符的某些定时攻击。 diff --git a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md index 6cccb738b7c0..1a65e3ab143e 100644 --- a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md +++ b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md @@ -49,14 +49,14 @@ Web 挂钩事件的独特属性与您使用[事件 API](/rest/reference/activity 递送到 web 挂钩已配置 URL 端点的 HTTP POST 有效负载将包含几个特殊标头: -| 标头 | 描述 | -| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `X-GitHub-Event` | 触发递送的事件名称。 | +| 标头 | 描述 | +| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `X-GitHub-Event` | 触发递送的事件名称。 | | `X-GitHub-Delivery` | 用于标识递送的 [GUID](http://en.wikipedia.org/wiki/Globally_unique_identifier)。{% ifversion ghes or ghae %} -| `X-GitHub-Enterprise-Version` | 发送 HTTP POST 有效负载的 {% data variables.product.prodname_ghe_server %} 实例的版本。 | +| `X-GitHub-Enterprise-Version` | 发送 HTTP POST 有效负载的 {% data variables.product.prodname_ghe_server %} 实例的版本。 | | `X-GitHub-Enterprise-Host` | 发送 HTTP POST 有效负载的 {% data variables.product.prodname_ghe_server %} 实例的主机名。{% endif %}{% ifversion not ghae %} -| `X-Hub-Signature` | 如果使用 [`secret`](/rest/reference/repos#create-hook-config-params) 配置了 web 挂钩,则发送此标头。 This is the HMAC hex digest of the request body, and is generated using the SHA-1 hash function and the `secret` as the HMAC `key`.{% ifversion fpt or ghes or ghec %} `X-Hub-Signature` is provided for compatibility with existing integrations, and we recommend that you use the more secure `X-Hub-Signature-256` instead.{% endif %}{% endif %} -| `X-Hub-Signature-256` | 如果使用 [`secret`](/rest/reference/repos#create-hook-config-params) 配置了 web 挂钩,则发送此标头。 这是请求正文的 HMAC 十六进制摘要,它是使用 SHA-256 哈希函数和作为 HMAC `key` 的 `secret` 生成的。 | +| `X-Hub-Signature` | 如果使用 [`secret`](/rest/reference/repos#create-hook-config-params) 配置了 web 挂钩,则发送此标头。 这是请求正文的 HMAC 十六进制摘要,是使用 SHA-1 哈希函数和作为 HMAC `密钥`的`机密` 生成的。{% ifversion fpt or ghes or ghec %} 提供了`X-Hub-Signature`,以便与现有集成兼容,我们建议您改用更安全的 `X-Hub-Signature-256`。{% endif %}{% endif %} +| `X-Hub-Signature-256` | 如果使用 [`secret`](/rest/reference/repos#create-hook-config-params) 配置了 web 挂钩,则发送此标头。 这是请求正文的 HMAC 十六进制摘要,它是使用 SHA-256 哈希函数和作为 HMAC `key` 的 `secret` 生成的。 | 此外,请求的 `User-Agent` 将含有前缀 `GitHub-Hookshot/`。 @@ -131,7 +131,7 @@ Web 挂钩事件的独特属性与您使用[事件 API](/rest/reference/activity {% ifversion ghes > 3.3 %} ## cache_sync -A Git ref has been successfully synced to a cache replica. For more information, see "[About repository caching](/admin/enterprise-management/caching-repositories/about-repository-caching)." +Git 引用已成功同步到缓存副本。 更多信息请参阅“[关于仓库缓存](/admin/enterprise-management/caching-repositories/about-repository-caching)”。 ### 可用性 @@ -140,12 +140,12 @@ A Git ref has been successfully synced to a cache replica. For more information, ### Web 挂钩有效负载对象 -| 键 | 类型 | 描述 | -| ---------------- | ----- | -------------------------------------------------------------- | -| `cache_location` | `字符串` | The location of the cache server that has been updated. | -| `ref` | `字符串` | The ref that has been updated. | -| `before` | `字符串` | The OID of the ref on the cache replica before it was updated. | -| `after` | `字符串` | The OID of the ref on the cache replica after the update. | +| 键 | 类型 | 描述 | +| ---------------- | ----- | ----------------- | +| `cache_location` | `字符串` | 已更新的缓存服务器的位置。 | +| `ref` | `字符串` | 已更新的引用。 | +| `before` | `字符串` | 缓存副本在更新之前引用的 OID。 | +| `after` | `字符串` | 更新后缓存副本上引用的 OID。 | {% data reusables.webhooks.repo_desc %} {% data reusables.webhooks.org_desc %} {% data reusables.webhooks.sender_desc %} @@ -898,7 +898,7 @@ Web 挂钩事件是基于您注册的域的特异性而触发的。 例如,如 {% ifversion fpt or ghec %} {% note %} -**Note**: This event does not occur for Projects (beta). +**注意**:此事件对 Projects(测试版)不会发生。 {% endnote %} {% endif %} @@ -930,7 +930,7 @@ Web 挂钩事件是基于您注册的域的特异性而触发的。 例如,如 {% ifversion fpt or ghec %} {% note %} -**Note**: This event does not occur for Projects (beta). +**注意**:此事件对 Projects(测试版)不会发生。 {% endnote %} {% endif %} @@ -1244,9 +1244,9 @@ Web 挂钩事件是基于您注册的域的特异性而触发的。 例如,如 {% ifversion fpt or ghes or ghec %} ## security_advisory -Activity related to a security advisory that has been reviewed by {% data variables.product.company_short %}. A {% data variables.product.company_short %}-reviewed security advisory provides information about security-related vulnerabilities in software on {% data variables.product.prodname_dotcom %}. +与已由 {% data variables.product.company_short %} 审查的安全通告相关的活动。 经过 {% data variables.product.company_short %} 审查的安全通告提供了有关 {% data variables.product.prodname_dotcom %}上软件中安全相关漏洞的信息。 -The security advisory dataset also powers the GitHub {% data variables.product.prodname_dependabot_alerts %}. 更多信息请参阅“[关于易受攻击的依赖项的警报](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies/)”。 +安全通告数据集还为 GitHub {% data variables.product.prodname_dependabot_alerts %} 提供支持。 更多信息请参阅“[关于易受攻击的依赖项的警报](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies/)”。 ### 可用性 diff --git a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-a-group-assignment.md b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-a-group-assignment.md index 60220c20ae67..e2c07d7d5737 100644 --- a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-a-group-assignment.md +++ b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-a-group-assignment.md @@ -127,15 +127,15 @@ redirect_from: 组分配 -## Monitoring students' progress -The assignment overview page displays information about your assignment acceptances and team progress. You may have different summary information based on the configurations of your assignments. - -- **Total teams**: The number of teams that have been created. -- **Rostered students**: The number of students on the Classroom's roster. -- **Students not on a team**: The number of students on the Classroom roster who have not yet joined a team. -- **Accepted teams**: The number of teams who have accepted this assignment. -- **Assignment submissions**: The number of teams that have submitted the assignment. Submission is triggered at the assignment deadline. -- **Passing teams**: The number of teams that are currently passing the autograding tests for this assignment. +## 监控学生的进度 +作业概述页显示有关作业接受和团队进度的信息。 根据作业的配置,您可能有不同的摘要信息。 + +- **团队总数**:已创建的团队数。 +- **名册学生**:教室名册上的学生人数。 +- **不在团队的学生**:课堂名册上尚未加入团队的学生人数。 +- **接受的团队**:已接受此任务的团队数。 +- **作业提交**:已提交作业的团队数。 在作业截止日期触发提交。 +- **通过团队**:当前通过此作业的自动评分测试的团队数。 ## 后续步骤 diff --git a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-an-individual-assignment.md b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-an-individual-assignment.md index b0e6cfd5ec1c..8d1169272499 100644 --- a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-an-individual-assignment.md +++ b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-an-individual-assignment.md @@ -101,20 +101,20 @@ shortTitle: 个人作业 {% data reusables.classroom.assignments-guide-invite-students-to-assignment %} -You can see whether a student has joined the classroom and accepted or submitted an assignment in the **Classroom roster** tab for the assignment. You can also link students' {% data variables.product.prodname_dotcom %} aliases to their associated roster identifier and vice versa in this tab. {% data reusables.classroom.assignments-to-prevent-submission %} +您可以在作业的 **Classroom roster(课堂花名册)**选项卡中查看学生是否已进入教室或提交作业。 您还可以在此选项卡中将学生的 {% data variables.product.prodname_dotcom %} 别名链接到其关联的花名册标识符,反之亦然。 {% data reusables.classroom.assignments-to-prevent-submission %}
个人作业
-## Monitoring students' progress -The assignment overview page provides an overview of your assignment acceptances and student progress. You may have different summary information based on the configurations of your assignments. +## 监控学生的进度 +作业概述页面提供了作业接受情况和学生进度的概述。 根据作业的配置,您可能有不同的摘要信息。 -- **Rostered students**: The number of students on the Classroom's roster. -- **Added students**: The number of {% data variables.product.prodname_dotcom %} accounts that have accepted the assignment and are not associated with a roster identifier. -- **Accepted students**: The number of accounts have accepted this assignment. -- **Assignment submissions**: The number of students that have submitted the assignment. Submission is triggered at the assignment deadline. -- **Passing students**: The number of students currently passing the autograding tests for this assignment. +- **名册学生**:教室名册上的学生人数。 +- **已添加的学生**:已接受作业且未与名册标识符关联的 {% data variables.product.prodname_dotcom %} 帐户数。 +- **已接受的学生**:已接受此作业的帐户数。 +- **作业提交**:已提交作业的学生人数。 在作业截止日期触发提交。 +- **及格学生**:当前通过此作业的自动评分测试的学生人数。 ## 后续步骤 diff --git a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/manage-classrooms.md b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/manage-classrooms.md index 08fc8ac8fd5a..358f6a34b31c 100644 --- a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/manage-classrooms.md +++ b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/manage-classrooms.md @@ -21,7 +21,7 @@ redirect_from: 创建教室后,{% data variables.product.prodname_classroom %} 将提示您邀请助教 (TA) 和管理员到教室。 每个教室可以有一个或多个管理员。 管理员可以是教师、TA 或您希望其控制您在 {% data variables.product.prodname_classroom %} 上的教室的任何其他课程管理员。 -邀请 TA 和管理员进入您的教室,操作方法是以组织所有者身份邀请 {% data variables.product.product_name %} 上的用户帐户到您的组织,并共享您教室的 URL。 组织所有者可以管理组织的任何教室。 For more information, see "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)" and "[Inviting users to join your organization](/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization)." +邀请 TA 和管理员进入您的教室,操作方法是以组织所有者身份邀请 {% data variables.product.product_name %} 上的用户帐户到您的组织,并共享您教室的 URL。 组织所有者可以管理组织的任何教室。 更多信息请参阅“[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)”和“[邀请用户加入您的组织](/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization)”。 使用完教室后,可以存档教室,以后可以参考该教室、名册和作业,或者如果您不再需要该教室,也可以将其删除。 diff --git a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/use-autograding.md b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/use-autograding.md index b714c4a6ec50..fe8488696186 100644 --- a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/use-autograding.md +++ b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/teach-with-github-classroom/use-autograding.md @@ -60,7 +60,7 @@ redirect_from: 您可以在创建新作业时添加自动评分测试。 {% data reusables.classroom.for-more-information-about-assignment-creation %} -您可以添加、编辑或删除现有作业的自动评分测试。 All changes made via the Classroom UI will be pushed to the existing student repositories, so use caution when editing your tests. +您可以添加、编辑或删除现有作业的自动评分测试。 通过课堂 UI 所做的所有更改都将推送到现有的学生资料库,因此在编辑测试时要小心。 {% data reusables.classroom.sign-into-github-classroom %} {% data reusables.classroom.click-classroom-in-list %} diff --git a/translations/zh-CN/content/education/quickstart.md b/translations/zh-CN/content/education/quickstart.md index 01822471476c..7b8908501887 100644 --- a/translations/zh-CN/content/education/quickstart.md +++ b/translations/zh-CN/content/education/quickstart.md @@ -28,8 +28,8 @@ shortTitle: 快速入门 创建用户帐户后,创建一个免费的组织帐户。 您将使用此组织帐户创建和管理教室 {% data variables.product.prodname_classroom %}。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.organizations %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.organizations %} {% data reusables.organizations.new-organization %} 4. 按照提示创建免费组织。 diff --git a/translations/zh-CN/content/get-started/exploring-projects-on-github/following-people.md b/translations/zh-CN/content/get-started/exploring-projects-on-github/following-people.md index c87e42c08d9e..a69aa7970a6e 100644 --- a/translations/zh-CN/content/get-started/exploring-projects-on-github/following-people.md +++ b/translations/zh-CN/content/get-started/exploring-projects-on-github/following-people.md @@ -15,51 +15,51 @@ topics: - Profile --- -## About followers on {% data variables.product.product_name %} +## 关于 {% data variables.product.product_name %} 上的关注者 -When you follow people, you'll see their public activity in the activity view of your news feed.{% ifversion fpt or ghec %} If someone you follow stars a public repository, {% data variables.product.product_name %} may recommend the repository to you in the discovery view of your news feed.{% endif %} +关注他人后,您将在消息馈送的活动视图中看到其公开活动。{% ifversion fpt or ghec %}如果您关注的人标注了某个公共仓库,{% data variables.product.product_name %} 可能会在您的消息馈送发现视图中向您推荐该仓库。{% endif %} -You can unfollow someone if you do not wish to see their public activity on {% data variables.product.product_name %}. +如果您不希望在 {% data variables.product.product_name %} 上看到某人的公开活动,则可以取消关注他们。 -## Following a user on {% data variables.product.product_name %} +## 在 {% data variables.product.product_name %} 上关注用户 -1. Click a user image to display that user's profile. +1. 单击用户图像以显示该用户的配置文件。 - ![User image](/assets/images/help/profile/user-profile-image.png) + ![用户图像](/assets/images/help/profile/user-profile-image.png) -2. Click **Follow** under their profile image. +2. 在个人资料图片下点击 **Follow(关注)**。 ![关注用户按钮](/assets/images/help/profile/follow-user-button.png) -## Unfollowing a user on {% data variables.product.product_name %} +## 在 {% data variables.product.product_name %} 上取消关注用户 -1. Click a user image to display that user's profile. +1. 单击用户图像以显示该用户的配置文件。 - ![User image](/assets/images/help/profile/user-profile-image.png) + ![用户图像](/assets/images/help/profile/user-profile-image.png) -2. Click **Unfollow** under their profile image. +2. 在其个人资料图片下点击 **Unfollow(取消关注)**。 - ![User profile button](/assets/images/help/profile/user-profile-unfollow-button.png) + ![用户个人资料按钮](/assets/images/help/profile/user-profile-unfollow-button.png) -## Viewing followed users on {% data variables.product.product_name %} +## 查看 {% data variables.product.product_name %} 上关注的用户 -1. Click a user image to display that user's profile. +1. 单击用户图像以显示该用户的配置文件。 - ![User image](/assets/images/help/profile/user-profile-image.png) + ![用户图像](/assets/images/help/profile/user-profile-image.png) -2. Click **following** under their profile image. +2. 在其个人资料图片下点击**关注**。 - ![User following](/assets/images/help/profile/user-profile-following.png) + ![用户关注](/assets/images/help/profile/user-profile-following.png) -## Viewing followers on {% data variables.product.product_name %} +## 查看 {% data variables.product.product_name %} 上的关注者 -1. Click a user image to display that user's profile. +1. 单击用户图像以显示该用户的配置文件。 - ![User image](/assets/images/help/profile/user-profile-image.png) + ![用户图像](/assets/images/help/profile/user-profile-image.png) -2. Click **followers** under their profile image. +2. 在个人资料图片下点击**关注者**。 - ![User following](/assets/images/help/profile/user-profile-followers.png) + ![用户关注](/assets/images/help/profile/user-profile-followers.png) diff --git a/translations/zh-CN/content/get-started/exploring-projects-on-github/saving-repositories-with-stars.md b/translations/zh-CN/content/get-started/exploring-projects-on-github/saving-repositories-with-stars.md index 528e484bc3b0..7ad0c9a5c8a7 100644 --- a/translations/zh-CN/content/get-started/exploring-projects-on-github/saving-repositories-with-stars.md +++ b/translations/zh-CN/content/get-started/exploring-projects-on-github/saving-repositories-with-stars.md @@ -40,61 +40,61 @@ shortTitle: 保存有星标的仓库 1. (可选)要取消先前已标星仓库的星标,请点击 **Unstar(取消星标)**。 ![解压仓库](/assets/images/help/stars/unstarring-a-repository.png) {% ifversion fpt or ghec %} -## Organizing starred repositories with lists +## 使用列表组织带星标的存储库 {% note %} -**Note:** Lists are currently in public beta and subject to change. +**注意:**列表目前处于公开测试阶段,可能会有变化。 {% endnote %} -Curate repositories that you've starred with public lists. You can create public lists that appear on your stars page at `https://github.com/USERNAME?tab=stars`. +管理您已经用公开列表加星标的存储库。 您可以创建出现在星标页面 `https://github.com/USERNAME?tab=stars` 上的公共列表。 -If you add a private repository to a list, then the private repository will only appear in your list for people with `read` access to the repository. +如果将私有存储库添加到列表中,则私有存储库将仅显示在您的列表中,供具有存储库`读取`访问权限的人员使用。 -![Screenshot of lists on stars page](/assets/images/help/stars/lists-overview-on-stars-page.png) +![星标页面上列表的屏幕截图](/assets/images/help/stars/lists-overview-on-stars-page.png) -You can add a repository to an existing or new list wherever you see a repository's **Star** or **Starred** dropdown menu, whether on a repository page or in a list of starred repositories. +只要您看到存储库的 **Star(星标)**或 **Starred(已加星标)**下拉菜单,无论是在存储库页面上还是在已加星标的存储库列表中,您都可以将存储库添加到现有列表或新列表中。 -![Screenshot of "Star" dropdown menu with list options featured from the repository page](/assets/images/help/stars/stars-dropdown-on-repo.png) +!["Star(星标)"下拉菜单的屏幕截图,其中包含存储库页面中的列表选项](/assets/images/help/stars/stars-dropdown-on-repo.png) -![Screenshot of "Starred" dropdown menu with list options featured from a starred repository list](/assets/images/help/stars/add-repo-to-list.png) +!["Starred(已加星标)"下拉菜单的屏幕截图,其中包含已加星标存储库列表中的列表选项](/assets/images/help/stars/add-repo-to-list.png) -### Creating a list +### 创建列表 {% data reusables.stars.stars-page-navigation %} -2. Next to "Lists", click **Create list**. ![Screenshot of "Create list" button](/assets/images/help/stars/create-list.png) -3. Enter a name and description for your list and click **Create**. ![Screenshot of modal showing where you enter a name and description with the "Create" button.](/assets/images/help/stars/create-list-with-description.png) +2. 在“Lists(列表)”旁边,单击 **Create list(创建列表)**。 !["Create list(创建列表)"按钮的屏幕截图](/assets/images/help/stars/create-list.png) +3. 输入列表的名称和说明,然后单击 **Create(创建)**。 ![模式的屏幕截图,显示您在使用"Create(创建)"按钮输入名称和描述的位置。](/assets/images/help/stars/create-list-with-description.png) -### Adding a repository to a list +### 将存储库添加到列表 {% data reusables.stars.stars-page-navigation %} -2. Find the repository you want to add to your list. ![Screenshot of starred repos search bar](/assets/images/help/stars/search-bar-for-starred-repos.png) -3. Next to the repository you want to add, use the **Starred** dropdown menu and select your list. ![Screenshot of dropdown showing a list checkboxes](/assets/images/help/stars/add-repo-to-list.png) +2. 找到要添加到列表中的存储库。 ![已加星标的存储库搜索栏的屏幕截图](/assets/images/help/stars/search-bar-for-starred-repos.png) +3. 在要添加的存储库旁边,使用 **Starred(已加星标)**下拉菜单,然后选择您的列表。 ![显示列表复选框的下拉列表的屏幕截图](/assets/images/help/stars/add-repo-to-list.png) -### Removing a repository from your list +### 从列表中删除存储库 {% data reusables.stars.stars-page-navigation %} -2. Select your list. -3. Next to the repository you want to remove, use the **Starred** dropdown menu and deselect your list. ![Screenshot of dropdown showing list checkboxes](/assets/images/help/stars/add-repo-to-list.png) +2. 选择您的列表。 +3. 在要删除的存储库旁边,使用 **Starred(已加星标)**下拉菜单并取消选择列表。 ![显示列表复选框的下拉列表的屏幕截图](/assets/images/help/stars/add-repo-to-list.png) -### Editing a list name or description +### 编辑列表名称或说明 {% data reusables.stars.stars-page-navigation %} -1. Select the list you want to edit. -2. Click **Edit list**. -3. Update the name or description and click **Save list**. ![Screenshot of modal showing "Save list" button](/assets/images/help/stars/edit-list-options.png) +1. 选择要编辑的列表。 +2. 单击 **Edit list(编辑列表)**。 +3. 更新名称或说明,然后单击 **Save list(保存列表)**。 ![显示"Save list(保存列表)"按钮的模式的屏幕截图](/assets/images/help/stars/edit-list-options.png) -### Deleting a list +### 删除列表 {% data reusables.stars.stars-page-navigation %} -2. Select the list you want to delete. -3. Click **Delete list**. ![Screenshot of modal showing "Delete list" button](/assets/images/help/stars/edit-list-options.png) -4. To confirm, click **Delete**. +2. 选择要删除的列表。 +3. 单击 **Delete list(删除列表)**。 ![显示"Delete list(删除列表)"按钮的模式的屏幕截图](/assets/images/help/stars/edit-list-options.png) +4. 要确认,请单击 **Delete(删除)**。 {% endif %} -## Searching starred repositories and topics +## 搜索已加星标的存储库和主题 您可以使用 {% data variables.explore.your_stars_page %} 上的搜索栏快速查找您标星的仓库和主题。 @@ -103,7 +103,7 @@ You can add a repository to an existing or new list wherever you see a repositor 搜索栏只能根据仓库或主题名称搜索,而不能根据任何其他限定符(如仓库大小或上次更新时间)搜索。 -## Sorting and filtering stars on your stars page +## 在星标页面上排序和筛选星标 您可以使用排序或筛选来自定义您如何在星标页面上查看标星的仓库和主题。 diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/about-remote-repositories.md b/translations/zh-CN/content/get-started/getting-started-with-git/about-remote-repositories.md index b6e5e08b042d..b706d97d928b 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/about-remote-repositories.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/about-remote-repositories.md @@ -1,5 +1,5 @@ --- -title: 关于远程仓库 +title: About remote repositories redirect_from: - /articles/working-when-github-goes-down - /articles/sharing-repositories-without-github @@ -10,89 +10,89 @@ redirect_from: - /github/using-git/about-remote-repositories - /github/getting-started-with-github/about-remote-repositories - /github/getting-started-with-github/getting-started-with-git/about-remote-repositories -intro: 'GitHub 的协作开发方法取决于从您的本地仓库发布提交到 {% data variables.product.product_name %},以供其他人查看、提取和更新。' +intro: 'GitHub''s collaborative approach to development depends on publishing commits from your local repository to {% data variables.product.product_name %} for other people to view, fetch, and update.' versions: fpt: '*' ghes: '*' ghae: '*' ghec: '*' --- +## About remote repositories -## 关于远程仓库 +A remote URL is Git's fancy way of saying "the place where your code is stored." That URL could be your repository on GitHub, or another user's fork, or even on a completely different server. -远程 URL 是 Git 一种指示“您的代码存储位置”的绝佳方式。 该 URL 可能是您在 GitHub 上的仓库,也可以是另一个用户的复刻,甚至在完全不同的服务器上。 +You can only push to two types of URL addresses: -您只能推送到两类 URL 地址: +* An HTTPS URL like `https://{% data variables.command_line.backticks %}/user/repo.git` +* An SSH URL, like `git@{% data variables.command_line.backticks %}:user/repo.git` -* HTTPS URL,如 `https://{% data variables.command_line.backticks %}/user/repo.git` -* SSH URL,如 `git@{% data variables.command_line.backticks %}:user/repo.git` +Git associates a remote URL with a name, and your default remote is usually called `origin`. -Git 将远程 URL 与名称相关联,您的默认远程通常名为 `origin`。 +## Creating remote repositories -## 创建远程仓库 - -您可以使用 `git remote add` 命令将远程 URL 与名称匹配。 例如,在命令行中输入以下命令: +You can use the `git remote add` command to match a remote URL with a name. +For example, you'd type the following in the command line: ```shell git remote add origin <REMOTE_URL> ``` -这会将名称 `origin` 与 `REMOTE_URL` 关联。 +This associates the name `origin` with the `REMOTE_URL`. -您可以使用命令 `git remote set-url` 来[更改远程 URL](/github/getting-started-with-github/managing-remote-repositories)。 +You can use the command `git remote set-url` to [change a remote's URL](/github/getting-started-with-github/managing-remote-repositories). -## 选择远程仓库的 URL +## Choosing a URL for your remote repository -克隆 {% data variables.product.product_location %} 上的仓库有几种方法。 +There are several ways to clone repositories available on {% data variables.product.product_location %}. -当您登录到帐户查看仓库时,可以用于将项目克隆到计算机上的 URL 在仓库详细信息下方提供。 +When you view a repository while signed in to your account, the URLs you can use to clone the project onto your computer are available below the repository details. -有关设置或更改远程 URL 的信息,请参阅“[管理远程仓库](/github/getting-started-with-github/managing-remote-repositories)”。 +For information on setting or changing your remote URL, see "[Managing remote repositories](/github/getting-started-with-github/managing-remote-repositories)." -## 使用 HTTPS URL 克隆 +## Cloning with HTTPS URLs -`https://` 克隆 URL 在所有仓库中提供,与可见性无关。 即使您在防火墙或代理后面,`https://` 克隆 URL 也有效。 +The `https://` clone URLs are available on all repositories, regardless of visibility. `https://` clone URLs work even if you are behind a firewall or proxy. -当您在命令行中使用 HTTPS URL 对远程仓库执行 `git clone`、`git fetch`、`git pull` 或 `git push` 命令时,Git 将要求您输入 {% data variables.product.product_name %} 用户名和密码。 {% data reusables.user_settings.password-authentication-deprecation %} +When you `git clone`, `git fetch`, `git pull`, or `git push` to a remote repository using HTTPS URLs on the command line, Git will ask for your {% data variables.product.product_name %} username and password. {% data reusables.user-settings.password-authentication-deprecation %} {% data reusables.command_line.provide-an-access-token %} {% tip %} -**提示**: -- 您可以使用凭据小助手,让 Git 在每次与 {% data variables.product.prodname_dotcom %} 通信时记住您的 {% data variables.product.prodname_dotcom %} 凭据。 更多信息请参阅“[在 Git 中缓存 {% data variables.product.prodname_dotcom %} 凭据](/github/getting-started-with-github/caching-your-github-credentials-in-git)”。 -- 要克隆仓库而不在命令行中对 {% data variables.product.product_name %} 进行身份验证,您可以使用 {% data variables.product.prodname_desktop %} 进行克隆。 更多信息请参阅“[将仓库从 {% data variables.product.prodname_dotcom %} 克隆到 {% data variables.product.prodname_dotcom %} Desktop](/desktop/contributing-to-projects/cloning-a-repository-from-github-to-github-desktop)”。 +**Tips**: +- You can use a credential helper so Git will remember your {% data variables.product.prodname_dotcom %} credentials every time it talks to {% data variables.product.prodname_dotcom %}. For more information, see "[Caching your {% data variables.product.prodname_dotcom %} credentials in Git](/github/getting-started-with-github/caching-your-github-credentials-in-git)." +- To clone a repository without authenticating to {% data variables.product.product_name %} on the command line, you can use {% data variables.product.prodname_desktop %} to clone instead. For more information, see "[Cloning a repository from {% data variables.product.prodname_dotcom %} to {% data variables.product.prodname_dotcom %} Desktop](/desktop/contributing-to-projects/cloning-a-repository-from-github-to-github-desktop)." {% endtip %} - {% ifversion fpt or ghec %}如果您希望使用 SSH,但不能通过端口 22 进行连接,则可通过 HTTPS 端口使用 SSH。 更多信息请参阅“[通过 HTTPS 端口使用 SSH](/github/authenticating-to-github/using-ssh-over-the-https-port)”。{% endif %} + {% ifversion fpt or ghec %}If you'd rather use SSH but cannot connect over port 22, you might be able to use SSH over the HTTPS port. For more information, see "[Using SSH over the HTTPS port](/github/authenticating-to-github/using-ssh-over-the-https-port)."{% endif %} -## 使用 SSH URL 克隆 +## Cloning with SSH URLs -SSH URL 通过 SSH(一种安全协议)提供 Git 仓库的访问权限。 To use these URLs, you must generate an SSH keypair on your computer and add the **public** key to your account on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}. 更多信息请参阅“[通过 SSH 连接 {% data variables.product.prodname_dotcom %}](/github/authenticating-to-github/connecting-to-github-with-ssh)”。 +SSH URLs provide access to a Git repository via SSH, a secure protocol. To use these URLs, you must generate an SSH keypair on your computer and add the **public** key to your account on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}. For more information, see "[Connecting to {% data variables.product.prodname_dotcom %} with SSH](/github/authenticating-to-github/connecting-to-github-with-ssh)." -使用 SSH URL 对远程仓库执行 `git clone`、`git fetch`、`git pull` 或 `git push` 命令时,系统将提示您输入密码,并且必须提供您的 SSH 密钥密码。 更多信息请参阅“[使用 SSH 密钥密码](/github/authenticating-to-github/working-with-ssh-key-passphrases)”。 +When you `git clone`, `git fetch`, `git pull`, or `git push` to a remote repository using SSH URLs, you'll be prompted for a password and must provide your SSH key passphrase. For more information, see "[Working with SSH key passphrases](/github/authenticating-to-github/working-with-ssh-key-passphrases)." -{% ifversion fpt or ghec %}如果要访问使用 SAML 单点登录 (SSO) 的组织,您在进行身份验证之前必须授权 SSH 密钥以访问组织。 For more information, see "[About authentication with SAML single sign-on](/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on)" and "[Authorizing an SSH key for use with SAML single sign-on](/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %}{% endif %} +{% ifversion fpt or ghec %}If you are accessing an organization that uses SAML single sign-on (SSO), you must authorize your SSH key to access the organization before you authenticate. For more information, see "[About authentication with SAML single sign-on](/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on)" and "[Authorizing an SSH key for use with SAML single sign-on](/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %}{% endif %} {% tip %} -**提示**:您可以使用 SSH URL 将仓库克隆到计算机,或作为将代码部署到生产服务器的安全方法。 您还可以将 SSH 代理转发与部署脚本一起使用,以避免管理服务器上的密钥。 更多信息请参阅“[使用 SSH 代理转发](/developers/overview/using-ssh-agent-forwarding)”。 +**Tip**: You can use an SSH URL to clone a repository to your computer, or as a secure way of deploying your code to production servers. You can also use SSH agent forwarding with your deploy script to avoid managing keys on the server. For more information, see "[Using SSH Agent Forwarding](/developers/overview/using-ssh-agent-forwarding)." {% endtip %} {% ifversion fpt or ghes or ghae or ghec %} -## 使用 {% data variables.product.prodname_cli %} 克隆 +## Cloning with {% data variables.product.prodname_cli %} -您还可以安装 {% data variables.product.prodname_cli %} 以在终端中使用 {% data variables.product.product_name %} 工作流程。 更多信息请参阅“[关于 {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)”。 +You can also install {% data variables.product.prodname_cli %} to use {% data variables.product.product_name %} workflows in your terminal. For more information, see "[About {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)." {% endif %} {% ifversion not ghae %} -## 使用 Subversion 克隆 +## Cloning with Subversion -您还可以使用 [Subversion](https://subversion.apache.org/) 客户端访问 {% data variables.product.prodname_dotcom %} 上的任何仓库。 Subversion 提供不同于 Git 的功能集。 更多信息请参阅“[Subversion 与 Git 之间有何差异?](/github/importing-your-projects-to-github/what-are-the-differences-between-subversion-and-git)” +You can also use a [Subversion](https://subversion.apache.org/) client to access any repository on {% data variables.product.prodname_dotcom %}. Subversion offers a different feature set than Git. For more information, see "[What are the differences between Subversion and Git?](/github/importing-your-projects-to-github/what-are-the-differences-between-subversion-and-git)" -您也可以从 Subversion 客户端访问 {% data variables.product.prodname_dotcom %} 上的仓库。 更多信息请参阅“[Subversion 客户端的支持](/github/importing-your-projects-to-github/support-for-subversion-clients)”。 +You can also access repositories on {% data variables.product.prodname_dotcom %} from Subversion clients. For more information, see "[Support for Subversion clients](/github/importing-your-projects-to-github/support-for-subversion-clients)." {% endif %} diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/associating-text-editors-with-git.md b/translations/zh-CN/content/get-started/getting-started-with-git/associating-text-editors-with-git.md index 4ffafad22223..479063689d43 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/associating-text-editors-with-git.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/associating-text-editors-with-git.md @@ -49,7 +49,7 @@ shortTitle: 关联文本编辑器 ## 使用 TextMate 作为编辑器 1. 安装 [TextMate](https://macromates.com/)。 -2. 安装 TextMate 的 `mate` shell 实用程序。 For more information, see "[`mate` and `rmate`](https://macromates.com/blog/2011/mate-and-rmate/)" in the TextMate documentation. +2. 安装 TextMate 的 `mate` shell 实用程序。 更多信息请参阅 TextMate 文档中的“[`mate` 和 `rmate`](https://macromates.com/blog/2011/mate-and-rmate/)”。 {% data reusables.command_line.open_the_multi_os_terminal %} 4. 输入此命令: ```shell diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/caching-your-github-credentials-in-git.md b/translations/zh-CN/content/get-started/getting-started-with-git/caching-your-github-credentials-in-git.md index 44002e87cfa2..d6930a9a5609 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/caching-your-github-credentials-in-git.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/caching-your-github-credentials-in-git.md @@ -7,7 +7,7 @@ redirect_from: - /github/using-git/caching-your-github-credentials-in-git - /github/getting-started-with-github/caching-your-github-credentials-in-git - /github/getting-started-with-github/getting-started-with-git/caching-your-github-credentials-in-git -intro: 'If you''re [cloning {% data variables.product.product_name %} repositories using HTTPS](/github/getting-started-with-github/about-remote-repositories), we recommend you use {% data variables.product.prodname_cli %} or Git Credential Manager (GCM) to remember your credentials.' +intro: '如果您[使用 HTTPS 克隆 {% data variables.product.product_name %} 存储库](/github/getting-started-with-github/about-remote-repositories),我们建议您使用 {% data variables.product.prodname_cli %} 或 Git Credential Manager (GCM) 来记住您的凭据。' versions: fpt: '*' ghes: '*' @@ -18,66 +18,66 @@ shortTitle: 缓存凭据 {% tip %} -**Tip:** If you clone {% data variables.product.product_name %} repositories using SSH, then you can authenticate using an SSH key instead of using other credentials. 有关设置 SSH 连接的信息,请参阅“[生成 SSH 密钥](/articles/generating-an-ssh-key)”。 +**提示:**如果您使用 SSH 克隆 {% data variables.product.product_name %} 仓库,则可使用 SSH 密钥进行身份验证,而不是使用其他凭据。 有关设置 SSH 连接的信息,请参阅“[生成 SSH 密钥](/articles/generating-an-ssh-key)”。 {% endtip %} ## {% data variables.product.prodname_cli %} -{% data variables.product.prodname_cli %} will automatically store your Git credentials for you when you choose `HTTPS` as your preferred protocol for Git operations and answer "yes" to the prompt asking if you would like to authenticate to Git with your {% data variables.product.product_name %} credentials. +当您选择 `HTTPS` 作为 Git 操作的首选协议时,{% data variables.product.prodname_cli %} 将自动为您存储 Git 凭据,并对询问您是否要使用 {% data variables.product.product_name %} 凭据向 Git 进行身份验证的提示回答“是”。 -1. [Install](https://github.com/cli/cli#installation) {% data variables.product.prodname_cli %} on macOS, Windows, or Linux. -2. In the command line, enter `gh auth login`, then follow the prompts. - - When prompted for your preferred protocol for Git operations, select `HTTPS`. - - When asked if you would like to authenticate to Git with your {% data variables.product.product_name %} credentials, enter `Y`. +1. 在 macOS、Windows 或 Linux 上[安装](https://github.com/cli/cli#installation) {% data variables.product.prodname_cli %}。 +2. 在命令行中,输入 `gh auth login`,然后按照提示操作。 + - 当系统提示输入 Git 操作的首选协议时,请选择 `HTTPS`。 + - 当系统询问您是否要使用 {% data variables.product.product_name %} 凭据向 Git 进行身份验证时,请输入 `Y`。 -For more information about authenticating with {% data variables.product.prodname_cli %}, see [`gh auth login`](https://cli.github.com/manual/gh_auth_login). +有关使用 {% data variables.product.prodname_cli %} 进行身份验证的详细信息,请参阅 [`gh auth login`](https://cli.github.com/manual/gh_auth_login)。 ## Git Credential Manager -[Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager) (GCM) is another way to store your credentials securely and connect to GitHub over HTTPS. With GCM, you don't have to manually [create and store a PAT](/github/authenticating-to-github/creating-a-personal-access-token), as GCM manages authentication on your behalf, including 2FA (two-factor authentication). +[Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager) (GCM) 是安全存储凭据并通过 HTTPS 连接到 GitHub 的另一种方法。 使用 GCM,您不必手动[创建和存储 PAT](/github/authenticating-to-github/creating-a-personal-access-token),因为 GCM 代表您管理身份验证,包括 2FA(双重身份验证)。 {% mac %} -1. Install Git using [Homebrew](https://brew.sh/): +1. 使用 [Homebrew](https://brew.sh/) 安装 Git: ```shell $ brew install git ``` -2. Install GCM using Homebrew: +2. 使用 Homebrew 安装 GCM: ```shell $ brew tap microsoft/git $ brew install --cask git-credential-manager-core ``` - For MacOS, you don't need to run `git config` because GCM automatically configures Git for you. + 对于 MacOS,您不需要运行 `git config`,因为 GCM 会自动为您配置 Git。 {% data reusables.gcm-core.next-time-you-clone %} -验证成功后,您的凭据存储在 macOS 密钥链中,每次克隆 HTTPS URL 时都会使用。 Git will not require you to type your credentials in the command line again unless you change your credentials. +验证成功后,您的凭据存储在 macOS 密钥链中,每次克隆 HTTPS URL 时都会使用。 Git 不会要求您在命令行中再次键入凭据,除非您更改凭据。 {% endmac %} {% windows %} -1. Install Git for Windows, which includes GCM. For more information, see "[Git for Windows releases](https://github.com/git-for-windows/git/releases/latest)" from its [releases page](https://github.com/git-for-windows/git/releases/latest). +1. 安装 Windows 版 Git,其中包括 GCM。 更多信息请参阅其[版本页面](https://github.com/git-for-windows/git/releases/latest)中的“[Windows 版 Git](https://github.com/git-for-windows/git/releases/latest)”。 -We recommend always installing the latest version. At a minimum, install version 2.29 or higher, which is the first version offering OAuth support for GitHub. +我们建议始终安装最新版本。 至少安装版本 2.29 或更高版本,这是第一个为 GitHub 提供 OAuth 支持的版本。 {% data reusables.gcm-core.next-time-you-clone %} -Once you've authenticated successfully, your credentials are stored in the Windows credential manager and will be used every time you clone an HTTPS URL. Git will not require you to type your credentials in the command line again unless you change your credentials. +成功通过身份验证后,您的凭据将存储在 Windows 凭据管理器中,并且每次克隆 HTTPS URL 时都将使用。 Git 不会要求您在命令行中再次键入凭据,除非您更改凭据。
{% warning %} -**Warning:** Older versions of Git for Windows came with Git Credential Manager for Windows. This older product is no longer supported and cannot connect to GitHub via OAuth. We recommend you upgrade to [the latest version of Git for Windows](https://github.com/git-for-windows/git/releases/latest). +**警告:** 旧版本的 Windows 版 Git 附有 Windows 版 Git Credential Manager。 此旧产品不再受支持,并且无法通过 OAuth 连接到 GitHub。 我们建议您升级到[最新版本的 Windows 版 Git](https://github.com/git-for-windows/git/releases/latest)。 {% endwarning %} {% warning %} -**Warning:** If you cached incorrect or outdated credentials in Credential Manager for Windows, Git will fail to access {% data variables.product.product_name %}. To reset your cached credentials so that Git prompts you to enter your credentials, access the Credential Manager in the Windows Control Panel under User Accounts > Credential Manager. Look for the {% data variables.product.product_name %} entry and delete it. +**警告:**如果在 Windows 凭据管理器中缓存了不正确或过期的凭据,Git 将无法访问 {% data variables.product.product_name %}。 若要重置缓存的凭据,以便 Git 提示您输入凭据,请在 Windows 控制面板中的“用户帐户”>“凭据管理器”下访问凭据管理器。 找到 {% data variables.product.product_name %} 条目并将其删除。 {% endwarning %} @@ -85,17 +85,17 @@ Once you've authenticated successfully, your credentials are stored in the Windo {% linux %} -For Linux, install Git and GCM, then configure Git to use GCM. +对于 Linux,安装 Git 和 GCM,然后配置 Git 使用 GCM。 -1. Install Git from your distro's packaging system. Instructions will vary depending on the flavor of Linux you run. +1. 从发行版的打包系统安装 Git。 说明将根据您运行的 Linux 的风格而有所不同。 -2. Install GCM. See the [instructions in the GCM repo](https://github.com/GitCredentialManager/git-credential-manager#linux-install-instructions), as they'll vary depending on the flavor of Linux you run. +2. 安装 GCM。 请参阅 [GCM 存储库中的说明](https://github.com/GitCredentialManager/git-credential-manager#linux-install-instructions),因为它们会因您运行的 Linux 风格而异。 -3. Configure Git to use GCM. There are several backing stores that you may choose from, so see the GCM docs to complete your setup. For more information, see "[GCM Linux](https://aka.ms/gcmcore-linuxcredstores)." +3. 配置 Git 使用 GCM 有几个支持商店,您可以从中选择,因此请参阅 GCM 文档来完成设置。 更多信息请参阅“[GCM Linux](https://aka.ms/gcmcore-linuxcredstores)”。 {% data reusables.gcm-core.next-time-you-clone %} -Once you've authenticated successfully, your credentials are stored on your system and will be used every time you clone an HTTPS URL. Git will not require you to type your credentials in the command line again unless you change your credentials. +验证成功后,您的凭据存储在系统中,每次克隆 HTTPS URL 时都会使用。 Git 不会要求您在命令行中再次键入凭据,除非您更改凭据。 有关在 Linux 上存储凭据的更多选项,请参阅 Pro Git 中的[凭据存储](https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage) 。 @@ -103,4 +103,4 @@ Once you've authenticated successfully, your credentials are stored on your syst
-For more information or to report issues with GCM, see the official GCM docs at "[Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager)." +如需详细信息或报告 GCM 问题,请参阅 [Git Credential Manager](https://github.com/GitCredentialManager/git-credential-manager) 上的官方 GCM 文档。 diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md b/translations/zh-CN/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md index c9c9e419a2a6..c9a268f3bcd4 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md @@ -17,7 +17,7 @@ versions: shortTitle: 处理行结束 --- -## About line endings +## 关于行结尾 每次按键盘上的 return 时,会插入一个称为行结束符的不可见字符。 不同的操作系统处理行结束符的方式不同。 在使用 Git 和 {% data variables.product.product_name %} 协作处理项目时,Git 可能产生意外结果,例如,您在 Windows 计算机上操作,而您的协作者是在 macOS 中做的更改。 diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/ignoring-files.md b/translations/zh-CN/content/get-started/getting-started-with-git/ignoring-files.md index daddfd1d4fa9..db0b42d94c8d 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/ignoring-files.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/ignoring-files.md @@ -28,7 +28,7 @@ GitHub 在 `github/gitignore` 公共仓库中维护建议用于许多常用操 $ touch .gitignore ``` - If the command succeeds, there will be no output. + 如果命令成功,则不会有输出。 例如 *.gitignore* 文件,请参阅 Octocat 仓库中的“[一些常见的 .gitignore 配置](https://gist.github.com/octocat/9257657)”。 diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/managing-remote-repositories.md b/translations/zh-CN/content/get-started/getting-started-with-git/managing-remote-repositories.md index d3496d01402c..78481f4cba1e 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/managing-remote-repositories.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/managing-remote-repositories.md @@ -107,7 +107,7 @@ git@{% data variables.command_line.codeblock %}:USERNAME/REPOSITORY > origin https://{% data variables.command_line.codeblock %}/USERNAME/REPOSITORY.git (push) ``` -下次对远程仓库执行 `git fetch`、`git pull` 或 `git push` 操作时,您需要提供 GitHub 用户名和密码。 {% data reusables.user_settings.password-authentication-deprecation %} +下次对远程仓库执行 `git fetch`、`git pull` 或 `git push` 操作时,您需要提供 GitHub 用户名和密码。 {% data reusables.user-settings.password-authentication-deprecation %} 您可以[使用凭据小助手](/github/getting-started-with-github/caching-your-github-credentials-in-git)让 Git 在每次与 GitHub 会话时记住您的 GitHub 用户名和个人访问令牌。 @@ -173,7 +173,7 @@ $ git remote -v ### 故障排除:无法将配置部分 'remote.[old name]' 重命名为 'remote.[new name]' -This error means that the old remote name you typed doesn't exist. +此错误表示您键入的旧远程名称不存在。 您可以使用 `git remote -v` 命令检查当前存在哪些远程: @@ -195,7 +195,7 @@ $ git remote -v `git remote rm` 命令使用一个参数: * 远程名称,例如 `destination` -Removing the remote URL from your repository only unlinks the local and remote repositories. It does not delete the remote repository. +从存储库中删除远程 URL 只会取消本地和远程存储库的链接。 它不会删除远程存储库。 ## 示例 @@ -219,7 +219,7 @@ $ git remote -v {% warning %} -**Note**: `git remote rm` does not delete the remote repository from the server. 它只是从本地仓库中删除远程及其引用。 +**注意**:`git remote rm` 不会从服务器中删除远程存储库。 它只是从本地仓库中删除远程及其引用。 {% endwarning %} diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/setting-your-username-in-git.md b/translations/zh-CN/content/get-started/getting-started-with-git/setting-your-username-in-git.md index 166cd3173d0e..ef07f6e7cbae 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/setting-your-username-in-git.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/setting-your-username-in-git.md @@ -14,7 +14,7 @@ versions: shortTitle: 设置用户名 --- -## About Git usernames +## 关于 Git 用户名 您可以使用 `git config` 命令更改与您的 Git 提交关联的名称。 您设置的新名称将在从命令行推送到 {% data variables.product.product_name %} 的任何未来提交中显示。 如果您想要将真实姓名保密,则可以使用任意文本作为您的 Git 用户名。 使用 `git config` 更改与 Git 提交关联的名称仅影响未来的提交,不会更改用于过去提交的名称。 @@ -23,12 +23,12 @@ shortTitle: 设置用户名 {% data reusables.command_line.open_the_multi_os_terminal %} -2. {% data reusables.user_settings.set_your_git_username %} +2. {% data reusables.user-settings.set_your_git_username %} ```shell $ git config --global user.name "Mona Lisa" ``` -3. {% data reusables.user_settings.confirm_git_username_correct %} +3. {% data reusables.user-settings.confirm_git_username_correct %} ```shell $ git config --global user.name > Mona Lisa @@ -40,12 +40,12 @@ shortTitle: 设置用户名 2. 将当前工作目录更改为您想要在其中配置与 Git 提交关联的名称的本地仓库。 -3. {% data reusables.user_settings.set_your_git_username %} +3. {% data reusables.user-settings.set_your_git_username %} ```shell $ git config user.name "Mona Lisa" ``` -3. {% data reusables.user_settings.confirm_git_username_correct %} +3. {% data reusables.user-settings.confirm_git_username_correct %} ```shell $ git config user.name > Mona Lisa diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/updating-credentials-from-the-macos-keychain.md b/translations/zh-CN/content/get-started/getting-started-with-git/updating-credentials-from-the-macos-keychain.md index 8f4a05643170..e206e73052ac 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/updating-credentials-from-the-macos-keychain.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/updating-credentials-from-the-macos-keychain.md @@ -22,7 +22,7 @@ We recommend you either [configure SSH](/articles/generating-an-ssh-key) or upgr {% endtip %} -{% data reusables.user_settings.password-authentication-deprecation %} +{% data reusables.user-settings.password-authentication-deprecation %} ## Updating your credentials via Keychain Access diff --git a/translations/zh-CN/content/get-started/getting-started-with-git/why-is-git-always-asking-for-my-password.md b/translations/zh-CN/content/get-started/getting-started-with-git/why-is-git-always-asking-for-my-password.md index 2eb420e177f7..5976e72826b7 100644 --- a/translations/zh-CN/content/get-started/getting-started-with-git/why-is-git-always-asking-for-my-password.md +++ b/translations/zh-CN/content/get-started/getting-started-with-git/why-is-git-always-asking-for-my-password.md @@ -16,7 +16,7 @@ shortTitle: Git 密码 与使用 SSH 相比,使用 HTTPS 远程 URL 具有一些优势。 它比 SSH 更容易设置,通常通过严格的防火墙和代理进行工作。 但是,每次拉取或推送仓库时,它也会提示您输入 {% data variables.product.product_name %} 凭据。 -{% data reusables.user_settings.password-authentication-deprecation %} +{% data reusables.user-settings.password-authentication-deprecation %} 通过配置 Git 为您[缓存凭据](/github/getting-started-with-github/caching-your-github-credentials-in-git),您可以避免提示输入密码。 在配置凭据缓存后,当您使用 HTTPS 拉取或推送仓库时,Git 会自动使用缓存的个人访问令牌。 diff --git a/translations/zh-CN/content/get-started/learning-about-github/access-permissions-on-github.md b/translations/zh-CN/content/get-started/learning-about-github/access-permissions-on-github.md index 73a2d8c20c92..09784f777b1d 100644 --- a/translations/zh-CN/content/get-started/learning-about-github/access-permissions-on-github.md +++ b/translations/zh-CN/content/get-started/learning-about-github/access-permissions-on-github.md @@ -7,7 +7,7 @@ redirect_from: - /articles/access-permissions-on-github - /github/getting-started-with-github/access-permissions-on-github - /github/getting-started-with-github/learning-about-github/access-permissions-on-github -intro: 'With roles, you can control who has access to your accounts and resources on {% data variables.product.product_name %} and the level of access each person has.' +intro: '使用角色,您可以控制谁有权访问您在 {% data variables.product.product_name %} 上的帐户和资源,以及每个人拥有的访问权限级别。' versions: fpt: '*' ghes: '*' @@ -19,11 +19,11 @@ topics: shortTitle: 访问权限 --- -## About access permissions on {% data variables.product.prodname_dotcom %} +## 关于 {% data variables.product.prodname_dotcom %} 上的访问权限 {% data reusables.organizations.about-roles %} -Roles work differently for different types of accounts. For more information about accounts, see "[Types of {% data variables.product.prodname_dotcom %} accounts](/get-started/learning-about-github/types-of-github-accounts)." +对于不同类型的帐户,角色的工作方式不同。 有关帐户的详细信息,请参阅“[{% data variables.product.prodname_dotcom %} 帐户类型](/get-started/learning-about-github/types-of-github-accounts)”。 ## 个人用户帐户 @@ -32,7 +32,7 @@ Roles work differently for different types of accounts. For more information abo ## 组织帐户 组织成员可以是*所有者*{% ifversion fpt or ghec %}、*帐单管理员*{% endif %}或*成员*角色。 所有者对组织具有完全管理权限{% ifversion fpt or ghec %},而帐单管理员负责管理帐单设置{% endif %}。 成员是其他每个人的默认角色。 您可以通过团队一次管理多个成员的访问权限。 更多信息请参阅: -- "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)" +- "[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)" - "[组织的项目板权限](/articles/project-board-permissions-for-an-organization)" - "[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)" - "[关于团队](/articles/about-teams)" @@ -42,12 +42,12 @@ Roles work differently for different types of accounts. For more information abo {% ifversion fpt %} {% data reusables.gated-features.enterprise-accounts %} -For more information about permissions for enterprise accounts, see [the {% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/get-started/learning-about-github/access-permissions-on-github). +有关企业帐户权限的详细信息,请参阅 [{% data variables.product.prodname_ghe_cloud %} 文档](/enterprise-cloud@latest/get-started/learning-about-github/access-permissions-on-github)。 {% else %} -*Enterprise owners* have ultimate power over the enterprise account and can take every action in the enterprise account.{% ifversion ghec or ghes %} *Billing managers* can manage your enterprise account's billing settings.{% endif %} Members and outside collaborators of organizations owned by your enterprise account are automatically members of the enterprise account, although they have no access to the enterprise account itself or its settings. 更多信息请参阅“[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise)”。 +*企业所有者*对企业帐户拥有最终权力,并且可以在企业帐户中执行所有操作。{% ifversion ghec or ghes %} *帐单管理员*可以管理企业帐户的帐单设置。{% endif %} 企业帐户拥有的组织的成员和外部协作者将自动成为企业帐户的成员,尽管他们无权访问企业帐户本身或其设置。 更多信息请参阅“[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise)”。 {% ifversion ghec %} -If an enterprise uses {% data variables.product.prodname_emus %}, members are provisioned as new user accounts on {% data variables.product.prodname_dotcom %} and are fully managed by the identity provider. The {% data variables.product.prodname_managed_users %} have read-only access to repositories that are not a part of their enterprise and cannot interact with users that are not also members of the enterprise. Within the organizations owned by the enterprise, the {% data variables.product.prodname_managed_users %} can be granted the same granular access levels available for regular organizations. 更多信息请参阅“[关于 {% data variables.product.prodname_emus %}](/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)”。 +如果企业使用 {% data variables.product.prodname_emus %},则成员将在 {% data variables.product.prodname_dotcom %} 上预配为新的用户帐户,并由身份提供商完全管理。 {% data variables.product.prodname_managed_users %} 对不属于其企业的存储库具有只读访问权限,并且无法与不是企业成员的用户进行交互。 在企业拥有的组织中,可以向 {% data variables.product.prodname_managed_users %} 授予与常规组织相同的粒度访问级别。 更多信息请参阅“[关于 {% data variables.product.prodname_emus %}](/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)”。 {% endif %} {% endif %} diff --git a/translations/zh-CN/content/get-started/learning-about-github/githubs-products.md b/translations/zh-CN/content/get-started/learning-about-github/githubs-products.md index 9c2cd1dd8307..4961400aa7c5 100644 --- a/translations/zh-CN/content/get-started/learning-about-github/githubs-products.md +++ b/translations/zh-CN/content/get-started/learning-about-github/githubs-products.md @@ -1,6 +1,6 @@ --- -title: GitHub 的产品 -intro: '{% data variables.product.prodname_dotcom %} 的产品和定价计划概述。' +title: GitHub's products +intro: 'An overview of {% data variables.product.prodname_dotcom %}''s products and pricing plans.' redirect_from: - /articles/github-s-products - /articles/githubs-products @@ -18,98 +18,101 @@ topics: - Desktop - Security --- - -## 关于 {% data variables.product.prodname_dotcom %} 的产品 +## About {% data variables.product.prodname_dotcom %}'s products {% data variables.product.prodname_dotcom %} offers free and paid products for storing and collaborating on code. Some products apply only to user accounts, while other plans apply only to organization and enterprise accounts. For more information about accounts, see "[Types of {% data variables.product.prodname_dotcom %} accounts](/get-started/learning-about-github/types-of-github-accounts)." -您可以在 <{% data variables.product.pricing_url %}> 上查看每款产品的价格和完整功能列表。 {% data reusables.products.product-roadmap %} +You can see pricing and a full list of features for each product at <{% data variables.product.pricing_url %}>. {% data reusables.products.product-roadmap %} When you read {% data variables.product.prodname_docs %}, make sure to select the version that reflects your product. For more information, see "[About versions of {% data variables.product.prodname_docs %}](/get-started/learning-about-github/about-versions-of-github-docs)." -## 用户帐户的 {% data variables.product.prodname_free_user %} +## {% data variables.product.prodname_free_user %} for user accounts -通过用户帐户的 {% data variables.product.prodname_free_team %},可与无限的协作者合作处理功能完全的无限公共仓库,或者是功能有限的无限私有仓库, +With {% data variables.product.prodname_free_team %} for user accounts, you can work with unlimited collaborators on unlimited public repositories with a full feature set, and on unlimited private repositories with a limited feature set. -通过 {% data variables.product.prodname_free_user %},用户帐户可包含: +With {% data variables.product.prodname_free_user %}, your user account includes: - {% data variables.product.prodname_gcf %} - {% data variables.product.prodname_dependabot_alerts %} -- 双重身份验证 -- 2,000 {% data variables.product.prodname_actions %} 分钟 -- 500MB {% data variables.product.prodname_registry %} 存储空间 +- Two-factor authentication enforcement +- 2,000 {% data variables.product.prodname_actions %} minutes +- 500MB {% data variables.product.prodname_registry %} storage ## {% data variables.product.prodname_pro %} -除了可用于用户帐户的 {% data variables.product.prodname_free_user %} 的功能之外,{% data variables.product.prodname_pro %} 还包含: -- 通过电子邮件提供的 {% data variables.contact.github_support %} -- 3,000 {% data variables.product.prodname_actions %} 分钟 -- 2GB {% data variables.product.prodname_registry %} 存储空间 -- 私有仓库中的高级工具和洞察力: - - 必需拉取请求审查 - - 多个拉取请求审查者 - - 受保护分支 - - 代码所有者 - - 自动链接的引用 +In addition to the features available with {% data variables.product.prodname_free_user %} for user accounts, {% data variables.product.prodname_pro %} includes: +- {% data variables.contact.github_support %} via email +- 3,000 {% data variables.product.prodname_actions %} minutes +- 2GB {% data variables.product.prodname_registry %} storage +- Advanced tools and insights in private repositories: + - Required pull request reviewers + - Multiple pull request reviewers + - Protected branches + - Code owners + - Auto-linked references - {% data variables.product.prodname_pages %} - Wikis - - 仓库洞察图:脉冲、贡献者、流量、提交、代码频率、网络和复刻 + - Repository insights graphs: Pulse, contributors, traffic, commits, code frequency, network, and forks -## 组织的 {% data variables.product.prodname_free_team %} +## {% data variables.product.prodname_free_team %} for organizations -通过组织的 {% data variables.product.prodname_free_team %},可与无限的协作者合作处理功能完全的无限公共仓库,或者是功能有限的无限私有仓库, +With {% data variables.product.prodname_free_team %} for organizations, you can work with unlimited collaborators on unlimited public repositories with a full feature set, or unlimited private repositories with a limited feature set. -除了可用于用户帐户的 {% data variables.product.prodname_free_user %} 的功能之外,组织的 {% data variables.product.prodname_free_team %} 还包含: +In addition to the features available with {% data variables.product.prodname_free_user %} for user accounts, {% data variables.product.prodname_free_team %} for organizations includes: - {% data variables.product.prodname_gcf %} -- 团队讨论 -- 用于管理组的团队访问权限控制 -- 2,000 {% data variables.product.prodname_actions %} 分钟 -- 500MB {% data variables.product.prodname_registry %} 存储空间 +- Team discussions +- Team access controls for managing groups +- 2,000 {% data variables.product.prodname_actions %} minutes +- 500MB {% data variables.product.prodname_registry %} storage ## {% data variables.product.prodname_team %} -除了可用于组织的 {% data variables.product.prodname_free_team %} 的功能之外,{% data variables.product.prodname_team %} 还包含: -- 通过电子邮件提供的 {% data variables.contact.github_support %} -- 3,000 {% data variables.product.prodname_actions %} 分钟 -- 2GB {% data variables.product.prodname_registry %} 存储空间 -- 私有仓库中的高级工具和洞察力: - - 必需拉取请求审查 - - 多个拉取请求审查者 - - 草稿拉取请求 - - 团队拉取请求审查 - - 受保护分支 - - 代码所有者 - - 预定提醒 +In addition to the features available with {% data variables.product.prodname_free_team %} for organizations, {% data variables.product.prodname_team %} includes: +- {% data variables.contact.github_support %} via email +- 3,000 {% data variables.product.prodname_actions %} minutes +- 2GB {% data variables.product.prodname_registry %} storage +- Advanced tools and insights in private repositories: + - Required pull request reviewers + - Multiple pull request reviewers + - Draft pull requests + - Team pull request reviewers + - Protected branches + - Code owners + - Scheduled reminders - {% data variables.product.prodname_pages %} - Wikis - - 仓库洞察图:脉冲、贡献者、流量、提交、代码频率、网络和复刻 -{% ifversion fpt or ghec %} + - Repository insights graphs: Pulse, contributors, traffic, commits, code frequency, network, and forks +{%- ifversion fpt or ghec %} - The option to enable {% data variables.product.prodname_github_codespaces %} - Organization owners can enable {% data variables.product.prodname_github_codespaces %} for the organization by setting a spending limit and granting user permissions for members of their organization. For more information, see "[Enabling Codespaces for your organization](/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization)." -{% endif %} +{%- endif %} + +{% data variables.product.company_short %} bills for {% data variables.product.prodname_team %} on a per-user basis. For more information, see "[About per-user pricing]({% ifversion not fpt %}/free-pro-team@latest{% endif %}/billing/managing-billing-for-your-github-account/about-per-user-pricing){% ifversion fpt %}."{% else %}" in the Free, Pro, & Team documentation.{% endif %} {% data reusables.github-actions.actions-billing %} ## {% data variables.product.prodname_enterprise %} -{% data variables.product.prodname_enterprise %} 包括两个部署选项:云托管和自托管。 +{% data variables.product.prodname_enterprise %} includes two deployment options: cloud-hosted and self-hosted. -除了 {% data variables.product.prodname_team %} 的可用功能之外,{% data variables.product.prodname_enterprise %} 还包括: +In addition to the features available with {% data variables.product.prodname_team %}, {% data variables.product.prodname_enterprise %} includes: - {% data variables.contact.enterprise_support %} -- 更多安全、合规和部署控件 -- SAML 单点登录进行身份验证 -- 使用 SAML 或 SCIM 进行配置 +- Additional security, compliance, and deployment controls +- Authentication with SAML single sign-on +- Access provisioning with SAML or SCIM - {% data variables.product.prodname_github_connect %} -- 购买 {% data variables.product.prodname_GH_advanced_security %} 的选项。 更多信息请参阅“[关于 {% data variables.product.prodname_GH_advanced_security %}](/github/getting-started-with-github/about-github-advanced-security)”。 +- The option to purchase {% data variables.product.prodname_GH_advanced_security %}. For more information, see "[About {% data variables.product.prodname_GH_advanced_security %}](/github/getting-started-with-github/about-github-advanced-security)." + +{% data variables.product.prodname_ghe_cloud %} also includes: +- {% data variables.contact.enterprise_support %}. For more information, see "{% data variables.product.prodname_ghe_cloud %} support" and "{% data variables.product.prodname_ghe_cloud %} Addendum." +- 50,000 {% data variables.product.prodname_actions %} minutes +- 50GB {% data variables.product.prodname_registry %} storage +- Access control for {% data variables.product.prodname_pages %} sites. For more information, see Changing the visibility of your {% data variables.product.prodname_pages %} site" +- A service level agreement for 99.9% monthly uptime +- The option to configure your enterprise for {% data variables.product.prodname_emus %}, so you can provision and manage members with your identity provider and restrict your member's contributions to just your enterprise. For more information, see "[About {% data variables.product.prodname_emus %}](/enterprise-cloud@latest/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)." +- The option to centrally manage policy and billing for multiple {% data variables.product.prodname_dotcom_the_website %} organizations with an enterprise account. For more information, see "[About enterprise accounts](/enterprise-cloud@latest/admin/overview/about-enterprise-accounts)." -{% data variables.product.prodname_ghe_cloud %} 还包括: -- {% data variables.contact.enterprise_support %}. 更多信息请参阅“{% data variables.product.prodname_ghe_cloud %} 支持”和“{% data variables.product.prodname_ghe_cloud %} 附录”。 -- 50,000 {% data variables.product.prodname_actions %} 分钟 -- 50GB {% data variables.product.prodname_registry %} 存储空间 -- {% data variables.product.prodname_pages %} 站点的访问控制。 更多信息请参阅“更改 {% data variables.product.prodname_pages %} 站点的可见性” -- 99.9% 月持续运行时间的服务等级协议 -- The option to configure your enterprise for {% data variables.product.prodname_emus %}, so you can provision and manage members with your identity provider and restrict your member's contributions to just your enterprise. 更多信息请参阅“[关于 {% data variables.product.prodname_emus %}](/enterprise-cloud@latest/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)”。 -- 通过企业帐户集中管理多个 {% data variables.product.prodname_dotcom_the_website %} 组织的策略和帐单的选项。 更多信息请参阅“[关于企业帐户](/enterprise-cloud@latest/admin/overview/about-enterprise-accounts)”。 +{% data variables.product.company_short %} bills for {% data variables.product.prodname_ghe_cloud %} on a per-user basis. For more information, see "[About per-user pricing]({% ifversion not ghec %}/enterprise-cloud@latest{% endif %}/billing/managing-billing-for-your-github-account/about-per-user-pricing){% ifversion ghec %}."{% else %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% endif %} -您可以设置试用版来评估 {% data variables.product.prodname_ghe_cloud %}。 更多信息请参阅“设置 {% data variables.product.prodname_ghe_cloud %} 的试用”。 +You can set up a trial to evaluate {% data variables.product.prodname_ghe_cloud %}. For more information, see "Setting up a trial of {% data variables.product.prodname_ghe_cloud %}." -有关托管理您自己的 [{% data variables.product.prodname_ghe_server %}](https://enterprise.github.com) 实例的更多信息,请联系 {% data variables.contact.contact_enterprise_sales %}。 {% data reusables.enterprise_installation.request-a-trial %} +For more information about hosting your own instance of [{% data variables.product.prodname_ghe_server %}](https://enterprise.github.com), contact {% data variables.contact.contact_enterprise_sales %}. {% data reusables.enterprise_installation.request-a-trial %} diff --git a/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md b/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md index 705086b15f18..5b35c84e6af9 100644 --- a/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md +++ b/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md @@ -1,5 +1,5 @@ --- -title: GitHub 帐户的类型 +title: Types of GitHub accounts intro: 'Accounts on {% data variables.product.product_name %} allow you to organize and control access to code.' redirect_from: - /manage-multiple-clients @@ -26,8 +26,8 @@ topics: With {% data variables.product.product_name %}, you can store and collaborate on code. Accounts allow you to organize and control access to that code. There are three types of accounts on {% data variables.product.product_name %}. - Personal accounts -- 组织帐户 -- 企业帐户 +- Organization accounts +- Enterprise accounts Every person who uses {% data variables.product.product_name %} signs into a personal account. An organization account enhances collaboration between multiple personal accounts, and {% ifversion fpt or ghec %}an enterprise account{% else %}the enterprise account for {% data variables.product.product_location %}{% endif %} allows central management of multiple organizations. @@ -37,7 +37,7 @@ Every person who uses {% data variables.product.product_location %} signs into a Your personal account can own resources such as repositories, packages, and projects. Any time you take any action on {% data variables.product.product_location %}, such as creating an issue or reviewing a pull request, the action is attributed to your personal account. -{% ifversion fpt or ghec %}Each personal account uses either {% data variables.product.prodname_free_user %} or {% data variables.product.prodname_pro %}. All personal accounts can own an unlimited number of public and private repositories, with an unlimited number of collaborators on those repositories. If you use {% data variables.product.prodname_free_user %}, private repositories owned by your personal account have a limited feature set. You can upgrade to {% data variables.product.prodname_pro %} to get a full feature set for private repositories. 更多信息请参阅“[{% data variables.product.prodname_dotcom %} 的产品](/articles/githubs-products)”。 {% else %}You can create an unlimited number of repositories owned by your personal account, with an unlimited number of collaborators on those repositories.{% endif %} +{% ifversion fpt or ghec %}Each personal account uses either {% data variables.product.prodname_free_user %} or {% data variables.product.prodname_pro %}. All personal accounts can own an unlimited number of public and private repositories, with an unlimited number of collaborators on those repositories. If you use {% data variables.product.prodname_free_user %}, private repositories owned by your personal account have a limited feature set. You can upgrade to {% data variables.product.prodname_pro %} to get a full feature set for private repositories. For more information, see "[{% data variables.product.prodname_dotcom %}'s products](/articles/githubs-products)." {% else %}You can create an unlimited number of repositories owned by your personal account, with an unlimited number of collaborators on those repositories.{% endif %} {% tip %} @@ -46,12 +46,12 @@ Your personal account can own resources such as repositories, packages, and proj {% endtip %} {% ifversion fpt or ghec %} -Most people will use one personal account for all their work on {% data variables.product.prodname_dotcom_the_website %}, including both open source projects and paid employment. If you're currently using more than one personal account that you created for yourself, we suggest combining the accounts. 更多信息请参阅“[合并多个用户帐户](/articles/merging-multiple-user-accounts)”。 +Most people will use one personal account for all their work on {% data variables.product.prodname_dotcom_the_website %}, including both open source projects and paid employment. If you're currently using more than one personal account that you created for yourself, we suggest combining the accounts. For more information, see "[Merging multiple user accounts](/articles/merging-multiple-user-accounts)." {% endif %} -## 组织帐户 +## Organization accounts -Organizations are shared accounts where an unlimited number of people can collaborate across many projects at once. +Organizations are shared accounts where an unlimited number of people can collaborate across many projects at once. Like personal accounts, organizations can own resources such as repositories, packages, and projects. However, you cannot sign into an organization. Instead, each person signs into their own personal account, and any actions the person takes on organization resources are attributed to their personal account. Each personal account can be a member of multiple organizations. @@ -59,31 +59,31 @@ The personal accounts within an organization can be given different roles in the ![Diagram showing that users must sign in to their personal user account to access an organization's resources](/assets/images/help/overview/sign-in-pattern.png) -{% ifversion fpt or ghec %} +{% ifversion fpt or ghec %} Even if you're a member of an organization that uses SAML single sign-on, you will still sign into your own personal account on {% data variables.product.prodname_dotcom_the_website %}, and that personal account will be linked to your identity in your organization's identity provider (IdP). For more information, see "[About authentication with SAML single sign-on](/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation{% else %}."{% endif %} However, if you're a member of an enterprise that uses {% data variables.product.prodname_emus %}, instead of using a personal account that you created, a new account will be provisioned for you by the enterprise's IdP. To access any organizations owned by that enterprise, you must authenticate using their IdP instead of a {% data variables.product.prodname_dotcom_the_website %} username and password. For more information, see "[About {% data variables.product.prodname_emus %}](/enterprise-cloud@latest/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} {% endif %} -You can also create nested sub-groups of organization members called teams, to reflect your group's structure and simplify access management. 更多信息请参阅“[关于团队](/organizations/organizing-members-into-teams/about-teams)”。 +You can also create nested sub-groups of organization members called teams, to reflect your group's structure and simplify access management. For more information, see "[About teams](/organizations/organizing-members-into-teams/about-teams)." {% data reusables.organizations.organization-plans %} For more information about all the features of organizations, see "[About organizations](/organizations/collaborating-with-groups-in-organizations/about-organizations)." -## 企业帐户 +## Enterprise accounts {% ifversion fpt %} {% data variables.product.prodname_ghe_cloud %} and {% data variables.product.prodname_ghe_server %} include enterprise accounts, which allow administrators to centrally manage policy and billing for multiple organizations and enable innersourcing between the organizations. For more information, see "[About enterprise accounts](/enterprise-cloud@latest/admin/overview/about-enterprise-accounts)" in the {% data variables.product.prodname_ghe_cloud %} documentation. {% elsif ghec %} -Enterprise accounts allow central policy management and billing for multiple organizations. You can use your enterprise account to centrally manage policy and billing. Unlike organizations, enterprise accounts cannot directly own resources like repositories, packages, or projects. These resources are owned by organizations within the enterprise account instead. 更多信息请参阅“[关于企业帐户](/admin/overview/about-enterprise-accounts)”。 +Enterprise accounts allow central policy management and billing for multiple organizations. You can use your enterprise account to centrally manage policy and billing. Unlike organizations, enterprise accounts cannot directly own resources like repositories, packages, or projects. These resources are owned by organizations within the enterprise account instead. For more information, see "[About enterprise accounts](/admin/overview/about-enterprise-accounts)." {% elsif ghes or ghae %} -Your enterprise account is a collection of all the organizations {% ifversion ghae %}owned by{% elsif ghes %}on{% endif %} {% data variables.product.product_location %}. You can use your enterprise account to centrally manage policy and billing. Unlike organizations, enterprise accounts cannot directly own resources like repositories, packages, or projects. These resources are owned by organizations within the enterprise account instead. 更多信息请参阅“[关于企业帐户](/admin/overview/about-enterprise-accounts)”。 +Your enterprise account is a collection of all the organizations {% ifversion ghae %}owned by{% elsif ghes %}on{% endif %} {% data variables.product.product_location %}. You can use your enterprise account to centrally manage policy and billing. Unlike organizations, enterprise accounts cannot directly own resources like repositories, packages, or projects. These resources are owned by organizations within the enterprise account instead. For more information, see "[About enterprise accounts](/admin/overview/about-enterprise-accounts)." {% endif %} -## 延伸阅读 +## Further reading {% ifversion fpt or ghec %} - "[Signing up for a new {% data variables.product.prodname_dotcom %} account](/articles/signing-up-for-a-new-github-account)"{% endif %} -- “[创建新组织帐户](/articles/creating-a-new-organization-account)” -- [Organizing people for successful collaboration](https://vimeo.com/333786093) video in {% data variables.product.company_short %} Resources +- "[Creating a new organization account](/articles/creating-a-new-organization-account)" +- [Organizing people for successful collaboration](https://vimeo.com/333786093) video in {% data variables.product.company_short %} Resources \ No newline at end of file diff --git a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-ae.md b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-ae.md index f40f220b7f48..013ac1a1afaf 100644 --- a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-ae.md +++ b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-ae.md @@ -16,13 +16,13 @@ You will first need to purchase {% data variables.product.product_name %}. For m {% data reusables.github-ae.initialize-enterprise %} ### 2. Initializing {% data variables.product.product_name %} -After {% data variables.product.company_short %} creates the owner account for {% data variables.product.product_location %} on {% data variables.product.product_name %}, you will receive an email to sign in and complete the initialization. During initialization, you, as the enterprise owner, will name {% data variables.product.product_location %}, configure SAML SSO, create policies for all organizations in {% data variables.product.product_location %}, and configure a support contact for your enterprise members. 更多信息请参阅“[初始化 {% data variables.product.prodname_ghe_managed %}](/admin/configuration/configuring-your-enterprise/initializing-github-ae)。” +After {% data variables.product.company_short %} creates the owner account for {% data variables.product.product_location %} on {% data variables.product.product_name %}, you will receive an email to sign in and complete the initialization. During initialization, you, as the enterprise owner, will name {% data variables.product.product_location %}, configure SAML SSO, create policies for all organizations in {% data variables.product.product_location %}, and configure a support contact for your enterprise members. For more information, see "[Initializing {% data variables.product.prodname_ghe_managed %}](/admin/configuration/configuring-your-enterprise/initializing-github-ae)." -### 3. 限制网络流量 -You can configure an allow list for specific IP addresses to restrict access to assets owned by organizations in your enterprise account. 更多信息请参阅“[限制到企业的网络流量](/admin/configuration/configuring-your-enterprise/restricting-network-traffic-to-your-enterprise)”。 +### 3. Restricting network traffic +You can configure an allow list for specific IP addresses to restrict access to assets owned by organizations in your enterprise account. For more information, see "[Restricting network traffic to your enterprise](/admin/configuration/configuring-your-enterprise/restricting-network-traffic-to-your-enterprise)." ### 4. Managing identity and access for {% data variables.product.product_location %} -You can centrally manage access to {% data variables.product.product_location %} on {% data variables.product.product_name %} from an identity provider (IdP) using SAML single sign-on (SSO) for user authentication and System for Cross-domain Identity Management (SCIM) for user provisioning. Once you configure provisioning, you can assign or unassign users to the application from the IdP, creating or disabling user accounts in the enterprise. 更多信息请参阅“[关于企业的身份和访问权限管理](/admin/authentication/managing-identity-and-access-for-your-enterprise/about-identity-and-access-management-for-your-enterprise)”。 +You can centrally manage access to {% data variables.product.product_location %} on {% data variables.product.product_name %} from an identity provider (IdP) using SAML single sign-on (SSO) for user authentication and System for Cross-domain Identity Management (SCIM) for user provisioning. Once you configure provisioning, you can assign or unassign users to the application from the IdP, creating or disabling user accounts in the enterprise. For more information, see "[About identity and access management for your enterprise](/admin/authentication/managing-identity-and-access-for-your-enterprise/about-identity-and-access-management-for-your-enterprise)." ### 5. Managing billing for {% data variables.product.product_location %} Owners of the subscription for {% data variables.product.product_location %} on {% data variables.product.product_name %} can view billing details for {% data variables.product.product_name %} in the Azure portal. For more information, see "[Managing billing for your enterprise](/admin/overview/managing-billing-for-your-enterprise)." @@ -33,13 +33,13 @@ As an enterprise owner for {% data variables.product.product_name %}, you can ma ### 1. Managing members of {% data variables.product.product_location %} {% data reusables.getting-started.managing-enterprise-members %} -### 2. 创建组织 +### 2. Creating organizations {% data reusables.getting-started.creating-organizations %} ### 3. Adding members to organizations {% data reusables.getting-started.adding-members-to-organizations %} -### 4. 创建团队 +### 4. Creating teams {% data reusables.getting-started.creating-teams %} ### 5. Setting organization and repository permission levels diff --git a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-cloud.md b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-cloud.md index 17f8fad06645..ecf0b5d63e54 100644 --- a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-cloud.md +++ b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-cloud.md @@ -51,9 +51,9 @@ Alternatively, if you have an existing organization account that you would like When you choose to use an organization account with {% data variables.product.prodname_ghe_cloud %}, you'll first have access to a [30-day trial](/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud). If you don't purchase {% data variables.product.prodname_enterprise %} or {% data variables.product.prodname_team %} before your trial ends, your organization will be downgraded to {% data variables.product.prodname_free_user %} and lose access to any advanced tooling and features that are only included with paid products. For more information, see "[Finishing your trial](/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud#finishing-your-trial)." -Your organization's billing settings page allows you to manage settings like your payment method and billing cycle, view information about your subscription, and upgrade your storage and {% data variables.product.prodname_actions %} minutes. For more information on managing your billing settings, see "[Managing your {% data variables.product.prodname_dotcom %} billing settings](/billing/managing-your-github-billing-settings)." +Your organization's billing settings page allows you to manage settings like your payment method and billing cycle, view information about your subscription, and upgrade your storage and {% data variables.product.prodname_actions %} minutes. 有关管理帐单设置的更多信息,请参阅"[管理您的 {% data variables.product.prodname_dotcom %} 计费设置](/billing/managing-your-github-billing-settings)"。 -Only organization members with the *owner* or *billing manager* role can access or change billing settings for your organization. A billing manager is a user who manages the billing settings for your organization and does not use a paid license in your organization's subscription. For more information on adding a billing manager to your organization, see "[Adding a billing manager to your organization](/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization)." +只有拥有*所有者*或*帐单管理员*角色的组织成员才能访问或更改组织的帐单设置。 A billing manager is a user who manages the billing settings for your organization and does not use a paid license in your organization's subscription. 有关向组织添加帐单管理员的详细信息,请参阅“[将帐单管理员添加到组织](/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization)”。 ### Setting up an enterprise account with {% data variables.product.prodname_ghe_cloud %} {% note %} @@ -77,15 +77,15 @@ You can view your current subscription, license usage, invoices, payment history ### Managing members and teams in your organization You can set permissions and member roles, create and manage teams, and give people access to repositories in your organization. -#### 1. Managing members of your organization +#### 1. 管理组织成员 {% data reusables.getting-started.managing-org-members %} -#### 2. Organization permissions and roles +#### 2. 组织权限和角色 {% data reusables.getting-started.org-permissions-and-roles %} -#### 3. About and creating teams +#### 3. 关于和创建团队 {% data reusables.getting-started.about-and-creating-teams %} -#### 4. Managing team settings +#### 4. 管理团队设置 {% data reusables.getting-started.managing-team-settings %} -#### 5. Giving people and teams access to repositories, project boards and apps +#### 5. 为人员和团队提供对存储库、项目板和应用程序的访问权限 {% data reusables.getting-started.giving-access-to-repositories-projects-apps %} ### Managing members of an enterprise account @@ -112,12 +112,12 @@ To audit access to enterprise-owned resources or user license usage, you can vie ### Managing security for a single organization You can help keep your organization secure by requiring two-factor authentication, configuring security features, reviewing your organization's audit log and integrations, and enabling SAML single sign-on and team synchronization. -#### 1. Requiring two-factor authentication +#### 1. 需要双重身份验证 {% data reusables.getting-started.requiring-2fa %} -#### 2. Configuring security features for your organization +#### 2. 为组织配置安全功能 {% data reusables.getting-started.configuring-security-features %} -#### 3. Reviewing your organization's audit log and integrations +#### 3. 查看组织的审核日志和集成 {% data reusables.getting-started.reviewing-org-audit-log-and-integrations %} #### 4. Enabling and enforcing SAML single sign-on for your organization @@ -166,11 +166,11 @@ You can enable and manage team synchronization between an identity provider (IdP ### Managing settings for a single organization To manage and moderate your organization, you can set organization policies, manage permissions for repository changes, and use organization-level community health files. -#### 1. Managing organization policies +#### 1. 管理组织策略 {% data reusables.getting-started.managing-org-policies %} -#### 2. Managing repository changes +#### 2. 管理存储库更改 {% data reusables.getting-started.managing-repo-changes %} -#### 3. Using organization-level community health files and moderation tools +#### 3. 使用组织级别的社区健康文件和调解工具 {% data reusables.getting-started.using-org-community-files-and-moderation-tools %} ### Managing settings for an enterprise account @@ -186,15 +186,15 @@ You can also restrict email notifications for your enterprise account so that en ## Part 6: Customizing and automating your organization or enterprise's work on {% data variables.product.prodname_dotcom %} Members of your organization or enterprise can use tools from the {% data variables.product.prodname_marketplace %}, the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API, and existing {% data variables.product.product_name %} features to customize and automate your work. -### 1. Using {% data variables.product.prodname_marketplace %} +### 1. 使用 {% data variables.product.prodname_marketplace %} {% data reusables.getting-started.marketplace %} -### 2. Using the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API +### 2. 使用 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API {% data reusables.getting-started.api %} -### 3. Building {% data variables.product.prodname_actions %} +### 3. 构建 {% data variables.product.prodname_actions %} {% data reusables.getting-started.actions %} -### 4. Publishing and managing {% data variables.product.prodname_registry %} +### 4. 发布和管理 {% data variables.product.prodname_registry %} {% data reusables.getting-started.packages %} -### 5. Using {% data variables.product.prodname_pages %} +### 5. 使用 {% data variables.product.prodname_pages %} {% data variables.product.prodname_pages %} is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository and publishes a website. You can manage the publication of {% data variables.product.prodname_pages %} sites at the organization level. For more information, see "[Managing the publication of {% data variables.product.prodname_pages %} sites for your organization](/organizations/managing-organization-settings/managing-the-publication-of-github-pages-sites-for-your-organization)" and "[About {% data variables.product.prodname_pages %}](/pages/getting-started-with-github-pages/about-github-pages)." ## Part 7: Participating in {% data variables.product.prodname_dotcom %}'s community diff --git a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-server.md b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-server.md index e67a90c14e1e..f0ed5e62c79d 100644 --- a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-server.md +++ b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-enterprise-server.md @@ -41,30 +41,30 @@ You can set up a staging instance to test modifications, plan for disaster recov To protect your production data, you can configure automated backups of {% data variables.product.product_location %} with {% data variables.product.prodname_enterprise_backup_utilities %}. 更多信息请参阅“[在设备上配置备份](/admin/configuration/configuring-your-enterprise/configuring-backups-on-your-appliance)”。 ### 8. 管理企业的帐单 -Billing for all the organizations and {% data variables.product.product_name %} instances connected to your enterprise account is aggregated into a single bill charge for all of your paid {% data variables.product.prodname_dotcom %}.com services. Enterprise owners and billing managers can access and manage billing settings for enterprise accounts. For more information, see "[Managing billing for your enterprise](/admin/overview/managing-billing-for-your-enterprise)." +Billing for all the organizations and {% data variables.product.product_name %} instances connected to your enterprise account is aggregated into a single bill charge for all of your paid {% data variables.product.prodname_dotcom %}.com services. Enterprise owners and billing managers can access and manage billing settings for enterprise accounts. 更多信息请参阅“[管理帐户的计费](/admin/overview/managing-billing-for-your-enterprise)”。 ## Part 2: Organizing and managing your team As an enterprise owner or administrator, you can manage settings on user, repository, team and organization levels. You can manage members of your enterprise, create and manage organizations, set policies for repository management, and create and manage teams. -### 1. Managing members of {% data variables.product.product_location %} +### 1. 管理 {% data variables.product.product_location %} 的成员 {% data reusables.getting-started.managing-enterprise-members %} ### 2. 创建组织 {% data reusables.getting-started.creating-organizations %} -### 3. Adding members to organizations +### 3. 向组织添加成员 {% data reusables.getting-started.adding-members-to-organizations %} ### 4. 创建团队 {% data reusables.getting-started.creating-teams %} -### 5. Setting organization and repository permission levels +### 5. 设置组织和存储库权限级别 {% data reusables.getting-started.setting-org-and-repo-permissions %} -### 6. Enforcing repository management policies +### 6. 实施存储库管理策略 {% data reusables.getting-started.enforcing-repo-management-policies %} -## Part 3: Building securely +## 第 3 部分:安全构建 To increase the security of {% data variables.product.product_location %}, you can configure authentication for enterprise members, use tools and audit logging to stay in compliance, configure security and analysis features for your organizations, and optionally enable {% data variables.product.prodname_GH_advanced_security %}. ### 1. Authenticating enterprise members You can use {% data variables.product.product_name %}'s built-in authentication method, or you can choose between an established authentication provider, such as CAS, LDAP, or SAML, to integrate your existing accounts and centrally manage user access to {% data variables.product.product_location %}. For more information, see "[Authenticating users for {% data variables.product.product_location %}](/admin/authentication/authenticating-users-for-your-github-enterprise-server-instance)." @@ -75,7 +75,7 @@ You can also require two-factor authentication for each of your organizations. F You can implement required status checks and commit verifications to enforce your organization's compliance standards and automate compliance workflows. You can also use the audit log for your organization to review actions performed by your team. For more information, see "[Enforcing policy with pre-receive hooks](/admin/policies/enforcing-policy-with-pre-receive-hooks)" and "[Audit logging](/admin/user-management/monitoring-activity-in-your-enterprise/audit-logging)." {% ifversion ghes %} -### 3. Configuring security features for your organizations +### 3. 为组织配置安全功能 {% data reusables.getting-started.configuring-security-features %} {% endif %} @@ -89,22 +89,22 @@ You can customize and automate work in organizations in your enterprise with {% ### 1. Building {% data variables.product.prodname_github_apps %} and {% data variables.product.prodname_oauth_apps %} You can build integrations with the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API, such as {% data variables.product.prodname_github_apps %} or {% data variables.product.prodname_oauth_apps %}, for use in organizations in your enterprise to complement and extend your workflows. 更多信息请参阅“[关于应用程序](/developers/apps/getting-started-with-apps/about-apps)”。 -### 2. Using the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API +### 2. 使用 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API {% data reusables.getting-started.api %} {% ifversion ghes %} -### 3. Building {% data variables.product.prodname_actions %} +### 3. 构建 {% data variables.product.prodname_actions %} {% data reusables.getting-started.actions %} For more information on enabling and configuring {% data variables.product.prodname_actions %} on {% data variables.product.product_name %}, see "[Getting started with {% data variables.product.prodname_actions %} for {% data variables.product.prodname_ghe_server %}](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/getting-started-with-github-actions-for-github-enterprise-server)." -### 4. Publishing and managing {% data variables.product.prodname_registry %} +### 4. 发布和管理 {% data variables.product.prodname_registry %} {% data reusables.getting-started.packages %} For more information on enabling and configuring {% data variables.product.prodname_registry %} for {% data variables.product.product_location %}, see "[Getting started with {% data variables.product.prodname_registry %} for your enterprise](/admin/packages/getting-started-with-github-packages-for-your-enterprise)." {% endif %} -### 5. Using {% data variables.product.prodname_pages %} +### 5. 使用 {% data variables.product.prodname_pages %} {% data reusables.getting-started.github-pages-enterprise %} ## Part 5: Connecting with other {% data variables.product.prodname_dotcom %} resources diff --git a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-team.md b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-team.md index 9cb450578c8d..27e6ee5e6a16 100644 --- a/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-team.md +++ b/translations/zh-CN/content/get-started/onboarding/getting-started-with-github-team.md @@ -10,16 +10,16 @@ This guide will walk you through setting up, configuring and managing your {% da ## Part 1: Configuring your account on {% data variables.product.product_location %} As the first steps in starting with {% data variables.product.prodname_team %}, you will need to create a user account or log into your existing account on {% data variables.product.prodname_dotcom %}, create an organization, and set up billing. -### 1. 关于组织 -组织是共享帐户,其中业务和开源项目可一次协助处理多个项目。 所有者和管理员可通过复杂的安全和管理功能管理成员对组织数据和项目的访问。 For more information on the features of organizations, see "[About organizations](/organizations/collaborating-with-groups-in-organizations/about-organizations#terms-of-service-and-data-protection-for-organizations)." +### 1. About organizations +Organizations are shared accounts where businesses and open-source projects can collaborate across many projects at once. Owners and administrators can manage member access to the organization's data and projects with sophisticated security and administrative features. For more information on the features of organizations, see "[About organizations](/organizations/collaborating-with-groups-in-organizations/about-organizations#terms-of-service-and-data-protection-for-organizations)." ### 2. Creating an organization and signing up for {% data variables.product.prodname_team %} -Before creating an organization, you will need to create a user account or log in to your existing account on {% data variables.product.product_location %}. 更多信息请参阅“[注册新 {% data variables.product.prodname_dotcom %} 帐户](/get-started/signing-up-for-github/signing-up-for-a-new-github-account)”。 +Before creating an organization, you will need to create a user account or log in to your existing account on {% data variables.product.product_location %}. For more information, see "[Signing up for a new {% data variables.product.prodname_dotcom %} account](/get-started/signing-up-for-github/signing-up-for-a-new-github-account)." -Once your user account is set up, you can create an organization and pick a plan. This is where you can choose a {% data variables.product.prodname_team %} subscription for your organization. 更多信息请参阅“[从头开始创建新组织](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch)”。 +Once your user account is set up, you can create an organization and pick a plan. This is where you can choose a {% data variables.product.prodname_team %} subscription for your organization. For more information, see "[Creating a new organization from scratch](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch)." ### 3. Managing billing for an organization -You must manage billing settings, payment method, and paid features and products for each of your personal accounts and organizations separately. You can switch between settings for your different accounts using the context switcher in your settings. 更多信息请参阅“[在不同帐户的设置之间切换](/billing/managing-your-github-billing-settings/about-billing-on-github#switching-between-settings-for-your-different-accounts)”。 +You must manage billing settings, payment method, and paid features and products for each of your personal accounts and organizations separately. You can switch between settings for your different accounts using the context switcher in your settings. For more information, see "[Switching between settings for your different accounts](/billing/managing-your-github-billing-settings/about-billing-on-github#switching-between-settings-for-your-different-accounts)." Your organization's billing settings page allows you to manage settings like your payment method, billing cycle and billing email, or view information such as your subscription, billing date and payment history. You can also view and upgrade your storage and GitHub Actions minutes. For more information on managing your billing settings, see "[Managing your {% data variables.product.prodname_dotcom %} billing settings](/billing/managing-your-github-billing-settings)." @@ -72,7 +72,7 @@ You can help to make your organization more secure by recommending or requiring ### 3. Building {% data variables.product.prodname_actions %} {% data reusables.getting-started.actions %} -### 4. Publishing and managing {% data variables.product.prodname_registry %} +### 4. Publishing and managing {% data variables.product.prodname_registry %} {% data reusables.getting-started.packages %} ## Part 6: Participating in {% data variables.product.prodname_dotcom %}'s community @@ -92,8 +92,8 @@ You can read documentation that reflects the features available with {% data var ### 5. Supporting the open source community {% data reusables.getting-started.sponsors %} -### 6. 联系 {% data variables.contact.github_support %} +### 6. Contacting {% data variables.contact.github_support %} {% data reusables.getting-started.contact-support %} -## 延伸阅读 +## Further reading - "[Getting started with your GitHub account](/get-started/onboarding/getting-started-with-your-github-account)" diff --git a/translations/zh-CN/content/get-started/onboarding/getting-started-with-your-github-account.md b/translations/zh-CN/content/get-started/onboarding/getting-started-with-your-github-account.md index 0839bfb13a5a..5b464f44e3e0 100644 --- a/translations/zh-CN/content/get-started/onboarding/getting-started-with-your-github-account.md +++ b/translations/zh-CN/content/get-started/onboarding/getting-started-with-your-github-account.md @@ -145,7 +145,7 @@ You can enable {% data variables.product.prodname_discussions %} for your reposi {% data reusables.getting-started.customizing-and-automating %} {% ifversion fpt or ghec %} -### 1. Using {% data variables.product.prodname_marketplace %} +### 1. 使用 {% data variables.product.prodname_marketplace %} {% data reusables.getting-started.marketplace %} {% endif %} ### {% ifversion fpt or ghec %}2.{% else %}1.{% endif %} Using the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API @@ -172,11 +172,11 @@ A large part of building securely is maintaining your project's dependencies to For more information, see "[Securing your software supply chain](/code-security/supply-chain-security)." {% endif %} -## Part 6: Participating in {% data variables.product.prodname_dotcom %}'s community +## 第 6 部分:参与 {% data variables.product.prodname_dotcom %} 的社区 {% data reusables.getting-started.participating-in-community %} -### 1. Contributing to open source projects +### 1. 为开源项目做贡献 {% data reusables.getting-started.open-source-projects %} ### 2. Interacting with {% data variables.product.prodname_gcf %} diff --git a/translations/zh-CN/content/get-started/privacy-on-github/about-githubs-use-of-your-data.md b/translations/zh-CN/content/get-started/privacy-on-github/about-githubs-use-of-your-data.md index dd7b505275bd..e2b73c6a07c9 100644 --- a/translations/zh-CN/content/get-started/privacy-on-github/about-githubs-use-of-your-data.md +++ b/translations/zh-CN/content/get-started/privacy-on-github/about-githubs-use-of-your-data.md @@ -20,7 +20,7 @@ shortTitle: GitHub 对您的数据的使用 {% data reusables.repositories.about-github-archive-program %} 更多信息请参阅“[关于在 {% data variables.product.prodname_dotcom %} 上存档内容](/github/creating-cloning-and-archiving-repositories/about-archiving-content-and-data-on-github#about-the-github-archive-program)”。 -{% data reusables.user_settings.export-data %} 更多信息请参阅“[请求个人帐户数据的存档](/articles/requesting-an-archive-of-your-personal-account-s-data)”。 +{% data reusables.user-settings.export-data %} For more information, see "[Requesting an archive of your personal account's data](/articles/requesting-an-archive-of-your-personal-account-s-data)." 如果您选择使用私人仓库的数据,我们将继续按照[服务条款](/free-pro-team@latest/github/site-policy/github-terms-of-service),将您的私人数据、源代码或商业秘密视为机密和私密。 我们了解的信息只来自汇总的数据。 更多信息请参阅“[管理私有仓库的数据使用设置](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository)”。 diff --git a/translations/zh-CN/content/get-started/privacy-on-github/requesting-an-archive-of-your-personal-accounts-data.md b/translations/zh-CN/content/get-started/privacy-on-github/requesting-an-archive-of-your-personal-accounts-data.md index 090c8d012de3..6bae405d789f 100644 --- a/translations/zh-CN/content/get-started/privacy-on-github/requesting-an-archive-of-your-personal-accounts-data.md +++ b/translations/zh-CN/content/get-started/privacy-on-github/requesting-an-archive-of-your-personal-accounts-data.md @@ -4,7 +4,7 @@ redirect_from: - /articles/requesting-an-archive-of-your-personal-account-s-data - /articles/requesting-an-archive-of-your-personal-accounts-data - /github/understanding-how-github-uses-and-protects-your-data/requesting-an-archive-of-your-personal-accounts-data -intro: '{% data reusables.user_settings.export-data %}' +intro: '{% data reusables.user-settings.export-data %}' versions: fpt: '*' ghec: '*' @@ -28,8 +28,8 @@ shortTitle: 请求帐户存档 ## 下载个人帐户数据的存档 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.account_settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.account_settings %} 3. 在“Export account data(导出帐户数据)”下,单击 **Start export(开始导出)**或 **New export(新导出)**。 ![开始个人数据导出按钮突出显示](/assets/images/help/repository/export-personal-data.png) ![新个人数据导出按钮突出显示](/assets/images/help/repository/new-export.png) 4. 导出准备好供下载后,{% data variables.product.product_name %} 将发送下载链接到您的主电子邮件地址。 5. 单击电子邮件中的下载链接并在提示时重新输入密码。 @@ -37,6 +37,6 @@ shortTitle: 请求帐户存档 ## 删除个人帐户数据存档的访问权限 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.account_settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.account_settings %} 3. 要在其过期之前禁用发送到您电子邮件的下载链接,请在“Export account data(导出帐户数据)”下,找到您想要禁用的数据导出下载,然后单击 **Delete(删除)**。 ![删除个人数据导出包按钮突出显示](/assets/images/help/repository/delete-export-personal-account-data.png) diff --git a/translations/zh-CN/content/get-started/quickstart/create-a-repo.md b/translations/zh-CN/content/get-started/quickstart/create-a-repo.md index 16e41fc101f4..b1850ed2b065 100644 --- a/translations/zh-CN/content/get-started/quickstart/create-a-repo.md +++ b/translations/zh-CN/content/get-started/quickstart/create-a-repo.md @@ -57,10 +57,10 @@ topics: {% data reusables.cli.cli-learn-more %} -1. In the command line, navigate to the directory where you would like to create a local clone of your new project. -2. To create a repository for your project, use the `gh repo create` subcommand. When prompted, select **Create a new repository on GitHub from scratch** and enter the name of your new project. If you want your project to belong to an organization instead of to your user account, specify the organization name and project name with `organization-name/project-name`. -3. Follow the interactive prompts. To clone the repository locally, confirm yes when asked if you would like to clone the remote project directory. -4. Alternatively, to skip the prompts supply the repository name and a visibility flag (`--public`, `--private`, or `--internal`). For example, `gh repo create project-name --public`. To clone the repository locally, pass the `--clone` flag. For more information about possible arguments, see the [GitHub CLI manual](https://cli.github.com/manual/gh_repo_create). +1. 在命令行中,导航到要在其中创建新项目的本地克隆的目录。 +2. 要为项目创建存储库,请使用 `gh repo create` 子命令。 出现提示时,选择**从头开始在 GitHub 上创建新存储库** ,然后输入新项目的名称。 如果希望项目属于某个组织而不是您的用户帐户,请使用 `organization-name/project-name` 指定组织名称和项目名称。 +3. Follow the interactive prompts. 要在本地克隆存储库,请在询问您是否要克隆远程项目目录时确认是。 +4. 或者,要跳过提示,请提供存储库名称和可见性标志(`--public`、`--private` 或 `--internal`)。 例如 `gh repo create project-name --public`。 要在本地克隆存储库,请传递 `--clone` 标志。 有关可能的参数的详细信息,请参阅 [GitHub CLI 手册](https://cli.github.com/manual/gh_repo_create)。 {% endcli %} @@ -87,18 +87,18 @@ A *[提交](/articles/github-glossary#commit)*就像是项目中所有文件在 {% cli %} -Now that you have created a project, you can start committing changes. +创建项目后,可以开始提交更改。 -*自述文件*是详细介绍项目的好工具,您也可以添加一些文档,例如介绍如何安装或使用项目的文档。 *自述文件*的内容自动显示在仓库的首页上。 Follow these steps to add a *README* file. +*自述文件*是详细介绍项目的好工具,您也可以添加一些文档,例如介绍如何安装或使用项目的文档。 *自述文件*的内容自动显示在仓库的首页上。 请按照以下步骤添加 *README* 文件。 -1. In the command line, navigate to the root directory of your new project. (This directory was created when you ran the `gh repo create` command.) -1. Create a *README* file with some information about the project. +1. 在命令行中,导航到新项目的根目录。 (此目录是在运行 `gh repo create` 命令时创建的。) +1. 创建 *README* 文件,其中包含有关项目的一些信息。 ```shell echo "info about this project" >> README.md ``` -1. Enter `git status`. You will see that you have an untracked `README.md` file. +1. 输入 `git status`。 您将看到您有一个未跟踪的 `README.md` 文件。 ```shell $ git status @@ -110,13 +110,13 @@ Now that you have created a project, you can start committing changes. nothing added to commit but untracked files present (use "git add" to track) ``` -1. Stage and commit the file. +1. 暂存并提交文件。 ```shell git add README.md && git commit -m "Add README" ``` -1. Push the changes to your branch. +1. 将更改推送到您的分支。 ```shell git push --set-upstream origin HEAD diff --git a/translations/zh-CN/content/get-started/quickstart/fork-a-repo.md b/translations/zh-CN/content/get-started/quickstart/fork-a-repo.md index 6c25821232bd..6ef8d49d2a90 100644 --- a/translations/zh-CN/content/get-started/quickstart/fork-a-repo.md +++ b/translations/zh-CN/content/get-started/quickstart/fork-a-repo.md @@ -56,7 +56,7 @@ topics: 您可能为了对上游或原始仓库提议更改而复刻项目。 在这种情况下,最好定期将您的复刻与上游仓库同步。 为此,您需要在命令行上使用 Git。 您可以使用刚才复刻的 [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) 仓库练习设置上游仓库。 -1. On {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location %}{% endif %}, navigate to the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. +1. 在 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location %}{% endif %} 上,导航到 [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) 存储库。 2. 在页面的右上角,单击 **Fork(复刻)**。 ![复刻按钮](/assets/images/help/repository/fork_button.jpg) {% endwebui %} @@ -84,11 +84,11 @@ gh repo fork repository --org "octo-org" ## 克隆复刻的仓库 -Right now, you have a fork of the Spoon-Knife repository, but you don't have the files in that repository locally on your computer. +现在,您有了 Spoon-Knife 仓库的复刻,但您的计算机本地还没有该仓库中的文件。 {% webui %} -1. On {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location %}{% endif %}, navigate to **your fork** of the Spoon-Knife repository. +1. 在 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location %}{% endif %} 上,导航到您在 Spoon-Knife 存储库的**复刻**。 {% data reusables.repositories.copy-clone-url %} {% data reusables.command_line.open_the_multi_os_terminal %} {% data reusables.command_line.change-current-directory-clone %} @@ -133,11 +133,11 @@ gh repo fork repository --clone=true ## 配置 Git 以将您的复刻与原始仓库同步 -When you fork a project in order to propose changes to the original repository, you can configure Git to pull changes from the original, or upstream, repository into the local clone of your fork. +为了对原始仓库提议更改而复刻项目时,您可以配置 Git 以将更改从原始或上游仓库拉取到复刻的本地克隆。 {% webui %} -1. On {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location %}{% endif %}, navigate to the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. +1. 在 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location %}{% endif %} 上,导航到 [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) 存储库。 {% data reusables.repositories.copy-clone-url %} {% data reusables.command_line.open_the_multi_os_terminal %} 4. 将目录更改为您克隆的复刻的位置。 @@ -166,7 +166,7 @@ When you fork a project in order to propose changes to the original repository, > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push) ``` -现在,您可以使用一些 Git 命令使您的复刻与上游仓库保持同步。 For more information, see "[Syncing a fork](/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork)." +现在,您可以使用一些 Git 命令使您的复刻与上游仓库保持同步。 更多信息请参阅“[同步复刻](/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork)”。 {% endwebui %} @@ -198,7 +198,7 @@ gh repo fork repository --remote-name "main-remote-repo" ## 另找一个仓库进行复刻 复刻仓库,开始参与项目。 {% data reusables.repositories.you-can-fork %} -{% ifversion fpt or ghec %}You can browse [Explore](https://github.com/explore) to find projects and start contributing to open source repositories. 更多信息请参阅“[寻找在 {% data variables.product.prodname_dotcom %} 上参与开源项目的方法](/github/getting-started-with-github/finding-ways-to-contribute-to-open-source-on-github)”。 +{% ifversion fpt or ghec %}您可以浏览 [Explore](https://github.com/explore) 以查找项目并开始参与开源仓库。 更多信息请参阅“[寻找在 {% data variables.product.prodname_dotcom %} 上参与开源项目的方法](/github/getting-started-with-github/finding-ways-to-contribute-to-open-source-on-github)”。 {% endif %} diff --git a/translations/zh-CN/content/get-started/quickstart/set-up-git.md b/translations/zh-CN/content/get-started/quickstart/set-up-git.md index 91eb445b5664..f8272f9fc359 100644 --- a/translations/zh-CN/content/get-started/quickstart/set-up-git.md +++ b/translations/zh-CN/content/get-started/quickstart/set-up-git.md @@ -1,5 +1,5 @@ --- -title: 设置 Git +title: Set up Git redirect_from: - /git-installation-redirect - /linux-git-installation @@ -12,7 +12,7 @@ redirect_from: - /articles/set-up-git - /github/getting-started-with-github/set-up-git - /github/getting-started-with-github/quickstart/set-up-git -intro: '{% data variables.product.prodname_dotcom %} 的核心是名为 Git 的开源版本控制系统 (VCS) 。 Git 负责在您计算机上本地发生的、与 {% data variables.product.prodname_dotcom %} 有关的所有内容。' +intro: 'At the heart of {% data variables.product.prodname_dotcom %} is an open source version control system (VCS) called Git. Git is responsible for everything {% data variables.product.prodname_dotcom %}-related that happens locally on your computer.' versions: fpt: '*' ghes: '*' @@ -24,39 +24,38 @@ topics: - Notifications - Accounts --- +## Using Git -## 使用 Git +To use Git on the command line, you'll need to download, install, and configure Git on your computer. You can also install {% data variables.product.prodname_cli %} to use {% data variables.product.prodname_dotcom %} from the command line. For more information, see "[About {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)." -要在命令行中使用 Git,您将需要在计算机上下载、安装和配置 Git。 You can also install {% data variables.product.prodname_cli %} to use {% data variables.product.prodname_dotcom %} from the command line. 更多信息请参阅“[关于 {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)”。 +If you want to work with Git locally, but don't want to use the command line, you can instead download and install the [{% data variables.product.prodname_desktop %}]({% data variables.product.desktop_link %}) client. For more information, see "[Installing and configuring {% data variables.product.prodname_desktop %}](/desktop/installing-and-configuring-github-desktop/)." -如果要在本地使用 Git,但不想使用命令行,您可以下载并安装 [{% data variables.product.prodname_desktop %}]({% data variables.product.desktop_link %}) 客户端。 更多信息请参阅“[安装和配置 {% data variables.product.prodname_desktop %}](/desktop/installing-and-configuring-github-desktop/)”。 +If you don't need to work with files locally, {% data variables.product.product_name %} lets you complete many Git-related actions directly in the browser, including: -如果无需在本地使用文件,{% data variables.product.product_name %} 可让您在浏览器中直接完成许多 Git 相关的操作,包括: +- [Creating a repository](/articles/create-a-repo) +- [Forking a repository](/articles/fork-a-repo) +- [Managing files](/repositories/working-with-files/managing-files) +- [Being social](/articles/be-social) -- [创建仓库](/articles/create-a-repo) -- [复刻仓库](/articles/fork-a-repo) -- [管理文件](/repositories/working-with-files/managing-files) -- [社交化](/articles/be-social) +## Setting up Git -## 设置 Git - -1. [下载并安装最新版本的 Git](https://git-scm.com/downloads)。 +1. [Download and install the latest version of Git](https://git-scm.com/downloads). {% note %} **Note**: If you are using a Chrome OS device, additional set up is required: 1. Install a terminal emulator such as Termux from the Google Play Store on your Chrome OS device. -2. From the terminal emulator that you installed, install Git. For example, in Termux, enter `apt install git` and then type `y` when prompted. +2. From the terminal emulator that you installed, install Git. For example, in Termux, enter `apt install git` and then type `y` when prompted. {% endnote %} -2. [在 Git 中设置您的用户名](/github/getting-started-with-github/setting-your-username-in-git)。 -3. [在 Git 中设置提交电子邮件地址](/articles/setting-your-commit-email-address)。 +2. [Set your username in Git](/github/getting-started-with-github/setting-your-username-in-git). +3. [Set your commit email address in Git](/articles/setting-your-commit-email-address). -## 后续步骤:使用来自 Git 的 {% data variables.product.prodname_dotcom %} 进行身份验证 +## Next steps: Authenticating with {% data variables.product.prodname_dotcom %} from Git -从 Git 连接到 {% data variables.product.prodname_dotcom %} 仓库时,您将需要使用 HTTPS 或 SSH 通过 {% data variables.product.product_name %} 进行身份验证。 +When you connect to a {% data variables.product.prodname_dotcom %} repository from Git, you'll need to authenticate with {% data variables.product.product_name %} using either HTTPS or SSH. {% note %} @@ -64,20 +63,20 @@ topics: {% endnote %} -### 通过 HTTPS 连接(推荐) +### Connecting over HTTPS (recommended) -如果[使用 HTTPS 克隆](/github/getting-started-with-github/about-remote-repositories/#cloning-with-https-urls),您可以使用凭据小助手[在 Git 中缓存 {% data variables.product.prodname_dotcom %} 凭据](/github/getting-started-with-github/caching-your-github-credentials-in-git)。 +If you [clone with HTTPS](/github/getting-started-with-github/about-remote-repositories/#cloning-with-https-urls), you can [cache your {% data variables.product.prodname_dotcom %} credentials in Git](/github/getting-started-with-github/caching-your-github-credentials-in-git) using a credential helper. -### 通过 SSH 连接 +### Connecting over SSH -如果[使用 SSH 克隆](/github/getting-started-with-github/about-remote-repositories/#cloning-with-ssh-urls),您必须在用于从 {% data variables.product.product_name %} 推送或拉取的每台计算机上[生成 SSH 密钥](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)。 +If you [clone with SSH](/github/getting-started-with-github/about-remote-repositories/#cloning-with-ssh-urls), you must [generate SSH keys](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) on each computer you use to push or pull from {% data variables.product.product_name %}. -## 祝贺 +## Celebrate -恭喜。您现在已将 Git 和 {% data variables.product.prodname_dotcom %} 全部设置完毕! 您现在可以选择创建仓库以放置项目。 这是备份代码的好方法,易于在世界各地分享代码。 更多信息请参阅“[创建仓库](/articles/create-a-repo)”。 +Congratulations, you now have Git and {% data variables.product.prodname_dotcom %} all set up! You may now choose to create a repository where you can put your projects. This is a great way to back up your code and makes it easy to share the code around the world. For more information see "[Create a repository](/articles/create-a-repo)". -您可以通过复刻创建仓库的副本,并提出您希望看到的更改,而不会影响上游仓库。 更多信息请参阅“[复刻仓库](/articles/fork-a-repo)”。 +You can create a copy of a repository by forking it and propose the changes that you want to see without affecting the upstream repository. For more information see "[Fork a repository](/articles/fork-a-repo)." -Each repository on {% data variables.product.prodname_dotcom %} is owned by a person or an organization. 您可以在 {% data variables.product.product_name %} 上连接和关注人员、仓库和组织以与之进行交互。 更多信息请参阅“[社交](/articles/be-social)”。 +Each repository on {% data variables.product.prodname_dotcom %} is owned by a person or an organization. You can interact with the people, repositories, and organizations by connecting and following them on {% data variables.product.product_name %}. For more information see "[Be social](/articles/be-social)." {% data reusables.support.connect-in-the-forum-bootcamp %} diff --git a/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud.md b/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud.md index 5ec162d52849..d0491e93f603 100644 --- a/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud.md +++ b/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud.md @@ -1,6 +1,6 @@ --- -title: 设置 GitHub Enterprise Cloud 试用版 -intro: '您可以免费试用 {% data variables.product.prodname_ghe_cloud %}。' +title: Setting up a trial of GitHub Enterprise Cloud +intro: 'You can try {% data variables.product.prodname_ghe_cloud %} for free.' redirect_from: - /articles/setting-up-a-trial-of-github-enterprise-cloud - /github/getting-started-with-github/setting-up-a-trial-of-github-enterprise-cloud @@ -11,13 +11,13 @@ versions: ghes: '*' topics: - Accounts -shortTitle: Enterprise Cloud 试用版 +shortTitle: Enterprise Cloud trial --- {% data reusables.enterprise.ghec-cta-button %} -## 关于 {% data variables.product.prodname_ghe_cloud %} +## About {% data variables.product.prodname_ghe_cloud %} {% data variables.product.prodname_ghe_cloud %} is a plan for large businesses or teams who collaborate on {% data variables.product.prodname_dotcom_the_website %}. @@ -27,15 +27,15 @@ You can use organizations for free with {% data variables.product.prodname_free_ You can set up a trial of {% data variables.product.prodname_ghe_cloud %} to evaluate these additional features on a new or existing organization account. -试用版也可用于 {% data variables.product.prodname_ghe_server %}。 更多信息请参阅“[设置 {% data variables.product.prodname_ghe_server %} 的试用](/articles/setting-up-a-trial-of-github-enterprise-server)”。 +Trials are also available for {% data variables.product.prodname_ghe_server %}. For more information, see "[Setting up a trial of {% data variables.product.prodname_ghe_server %}](/articles/setting-up-a-trial-of-github-enterprise-server)." {% data reusables.products.which-product-to-use %} -## 关于 {% data variables.product.prodname_ghe_cloud %} 试用版 +## About trials of {% data variables.product.prodname_ghe_cloud %} -You can set up a 30-day trial to evaluate {% data variables.product.prodname_ghe_cloud %}. 在试用期间无需提供付款方式,除非您将 {% data variables.product.prodname_marketplace %} 应用程序添加到需要付款方式的组织。 更多信息请参阅“关于 {% data variables.product.prodname_marketplace %} 的计费”。 +You can set up a 30-day trial to evaluate {% data variables.product.prodname_ghe_cloud %}. You do not need to provide a payment method during the trial unless you add {% data variables.product.prodname_marketplace %} apps to your organization that require a payment method. For more information, see "About billing for {% data variables.product.prodname_marketplace %}." -试用版包括 50 个席位。 如果需要更多席位来评估 {% data variables.product.prodname_ghe_cloud %},请联系 {% data variables.contact.contact_enterprise_sales %}。 在试用结束时,您可以选择不同数量的席位。 +Your trial includes 50 seats. If you need more seats to evaluate {% data variables.product.prodname_ghe_cloud %}, contact {% data variables.contact.contact_enterprise_sales %}. At the end of the trial, you can choose a different number of seats. {% data reusables.saml.saml-accounts %} @@ -43,35 +43,38 @@ For more information, see "[About identity and access management with SAML singl {% data variables.product.prodname_emus %} is not part of the free trial of {% data variables.product.prodname_ghe_cloud %}. If you're interested in {% data variables.product.prodname_emus %}, please contact [{% data variables.product.prodname_dotcom %}'s Sales team](https://enterprise.github.com/contact). -## 设置 {% data variables.product.prodname_ghe_cloud %} 的试用版 +## Setting up your trial of {% data variables.product.prodname_ghe_cloud %} -Before you can try {% data variables.product.prodname_ghe_cloud %}, you must be signed into a user account. If you don't already have a user account on {% data variables.product.prodname_dotcom_the_website %}, you must create one. 更多信息请参阅“注册新 {% data variables.product.prodname_dotcom %} 帐户”。 +Before you can try {% data variables.product.prodname_ghe_cloud %}, you must be signed into a user account. If you don't already have a user account on {% data variables.product.prodname_dotcom_the_website %}, you must create one. For more information, see "Signing up for a new {% data variables.product.prodname_dotcom %} account." 1. Navigate to [{% data variables.product.prodname_dotcom %} for enterprises](https://github.com/enterprise). -1. Click **Start a free trial**. !["Start a free trial" button](/assets/images/help/organizations/start-a-free-trial-button.png) -1. Click **Enterprise Cloud**. !["Enterprise Cloud" button](/assets/images/help/organizations/enterprise-cloud-trial-option.png) +1. Click **Start a free trial**. + !["Start a free trial" button](/assets/images/help/organizations/start-a-free-trial-button.png) +1. Click **Enterprise Cloud**. + !["Enterprise Cloud" button](/assets/images/help/organizations/enterprise-cloud-trial-option.png) 1. Follow the prompts to configure your trial. -## 探索 {% data variables.product.prodname_ghe_cloud %} +## Exploring {% data variables.product.prodname_ghe_cloud %} -设置试用版后,您可以按照 [Enterprise 入门指南](https://resources.github.com/enterprise-onboarding/)来探索 {% data variables.product.prodname_ghe_cloud %}。 +After setting up your trial, you can explore {% data variables.product.prodname_ghe_cloud %} by following the [Enterprise Onboarding Guide](https://resources.github.com/enterprise-onboarding/). {% data reusables.docs.you-can-read-docs-for-your-product %} {% data reusables.products.product-roadmap %} -## 结束试用 +## Finishing your trial You can buy {% data variables.product.prodname_enterprise %} at any time during your trial. Purchasing {% data variables.product.prodname_enterprise %} ends your trial, removing the 50-seat maximum and initiating payment. -If you don't purchase {% data variables.product.prodname_enterprise %}, when the trial ends, your organization will be downgraded. If you used an existing organization for the trial, the organization will be downgraded to the product you were using before the trial. If you created a new organization for the trial, the organization will be downgraded to {% data variables.product.prodname_free_team %}. +If you don't purchase {% data variables.product.prodname_enterprise %}, when the trial ends, your organization will be downgraded. If you used an existing organization for the trial, the organization will be downgraded to the product you were using before the trial. If you created a new organization for the trial, the organization will be downgraded to {% data variables.product.prodname_free_team %}. -Your organization will lose access to any functionality that is not included in the new product, such as advanced features like {% data variables.product.prodname_pages %} for private repositories. If you don't plan to upgrade, to avoid losing access to advanced features, consider making affected repositories public before your trial ends. 更多信息请参阅“[设置仓库可见性](/articles/setting-repository-visibility)”。 +Your organization will lose access to any functionality that is not included in the new product, such as advanced features like {% data variables.product.prodname_pages %} for private repositories. If you don't plan to upgrade, to avoid losing access to advanced features, consider making affected repositories public before your trial ends. For more information, see "[Setting repository visibility](/articles/setting-repository-visibility)." Downgrading also disables any SAML settings configured during the trial period. If you later purchase {% data variables.product.prodname_enterprise %}, your SAML settings will be enabled again for users in your organization to authenticate. {% data reusables.profile.access_org %} {% data reusables.profile.org_settings %} {% data reusables.organizations.billing_plans %} -5. 在“{% data variables.product.prodname_ghe_cloud %} Free Trial(GitHub Enterprise Cloud 免费试用)”下,单击 **Buy Enterprise(购买 Enterprise 版)**或 **Downgrade to Team(降级到 Team 版)**。 ![购买 Enterprise 版和降级到 Team 版按钮](/assets/images/help/organizations/finish-trial-buttons.png) -6. 按照提示输入付款方式,然后单击 **Submit(提交)**。 +5. Under "{% data variables.product.prodname_ghe_cloud %} Free Trial", click **Buy Enterprise** or **Downgrade to Team**. + ![Buy Enterprise and Downgrade to Team buttons](/assets/images/help/organizations/finish-trial-buttons.png) +6. Follow the prompts to enter your payment method, then click **Submit**. diff --git a/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-server.md b/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-server.md index ea9f18a5f997..1f9ff8ce7801 100644 --- a/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-server.md +++ b/translations/zh-CN/content/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-server.md @@ -19,7 +19,7 @@ shortTitle: Enterprise Server 试用版 您可以申请 45 天试用版来试用 {% data variables.product.prodname_ghe_server %}。 您的试用版将作为虚拟设备安装,带有内部或云部署选项。 有关支持的可视化平台列表,请参阅“[设置 GitHub Enterprise Server 实例](/enterprise-server@latest/admin/installation/setting-up-a-github-enterprise-server-instance)”。 -{% ifversion ghes %}{% data variables.product.prodname_dependabot %}{% else %}安全{% endif %}警报和 {% data variables.product.prodname_github_connect %} 目前在 {% data variables.product.prodname_ghe_server %} 试用版中不可用。 要获取这些功能的演示,请联系 {% data variables.contact.contact_enterprise_sales %}。 For more information about these features, see "[About alerts for vulnerable dependencies](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies)" and "[Connecting your enterprise account to {% data variables.product.prodname_ghe_cloud %}](/enterprise-server@latest/admin/configuration/managing-connections-between-your-enterprise-accounts/connecting-your-enterprise-account-to-github-enterprise-cloud)." +{% ifversion ghes %}{% data variables.product.prodname_dependabot %}{% else %}安全{% endif %}警报和 {% data variables.product.prodname_github_connect %} 目前在 {% data variables.product.prodname_ghe_server %} 试用版中不可用。 要获取这些功能的演示,请联系 {% data variables.contact.contact_enterprise_sales %}。 有关这些功能的详细信息,请参阅“[关于有漏洞的依赖项警报](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies)”和“[将企业帐户连接到 {% data variables.product.prodname_ghe_cloud %}](/enterprise-server@latest/admin/configuration/managing-connections-between-your-enterprise-accounts/connecting-your-enterprise-account-to-github-enterprise-cloud)”。 试用版也可用于 {% data variables.product.prodname_ghe_cloud %}。 更多信息请参阅“[设置 {% data variables.product.prodname_ghe_cloud %} 的试用](/articles/setting-up-a-trial-of-github-enterprise-cloud)”。 @@ -42,7 +42,7 @@ shortTitle: Enterprise Server 试用版 - [{% data variables.product.prodname_dotcom %} 快速入门指南](https://resources.github.com/webcasts/Quick-start-guide-to-GitHub/)网络直播 - {% data variables.product.prodname_dotcom %} 指南中的[了解 {% data variables.product.prodname_dotcom %} 流程](https://guides.github.com/introduction/flow/) - {% data variables.product.prodname_dotcom %} 指南中的 [Hello World](https://guides.github.com/activities/hello-world/) - - "[About versions of {% data variables.product.prodname_docs %}](/get-started/learning-about-github/about-versions-of-github-docs)" + - "[关于 {% data variables.product.prodname_docs %} 的版本](/get-started/learning-about-github/about-versions-of-github-docs)" 3. 要配置实例以满足组织的需求,请参阅“[配置企业](/enterprise-server@latest/admin/configuration/configuring-your-enterprise)”。 4. 要将 {% data variables.product.prodname_ghe_server %} 与您的身份提供程序集成,请参阅“[使用 SAML](/enterprise-server@latest/admin/user-management/using-saml)”和“[使用 LDAP](/enterprise-server@latest/admin/authentication/using-ldap)”。 5. 邀请不限数量的人员加入您的试用版。 diff --git a/translations/zh-CN/content/get-started/signing-up-for-github/signing-up-for-a-new-github-account.md b/translations/zh-CN/content/get-started/signing-up-for-github/signing-up-for-a-new-github-account.md index 7ae446c82fa2..5b23ef648f29 100644 --- a/translations/zh-CN/content/get-started/signing-up-for-github/signing-up-for-a-new-github-account.md +++ b/translations/zh-CN/content/get-started/signing-up-for-github/signing-up-for-a-new-github-account.md @@ -1,7 +1,7 @@ --- -title: 注册新 GitHub 帐户 -shortTitle: 注册新 GitHub 帐户 -intro: '{% data variables.product.company_short %} 为一起工作的人员团队提供个人和组织的用户帐户。' +title: Signing up for a new GitHub account +shortTitle: Sign up for a new GitHub account +intro: '{% data variables.product.company_short %} offers user accounts for individuals and organizations for teams of people working together.' redirect_from: - /articles/signing-up-for-a-new-github-account - /github/getting-started-with-github/signing-up-for-a-new-github-account @@ -17,15 +17,16 @@ topics: You can create a personal account, which serves as your identity on {% data variables.product.prodname_dotcom_the_website %}, or an organization, which allows multiple personal accounts to collaborate across multiple projects. For more information about account types, see "[Types of {% data variables.product.prodname_dotcom %} accounts](/get-started/learning-about-github/types-of-github-accounts)." -When you create a personal account or organization, you must select a billing plan for the account. 更多信息请参阅“[{% data variables.product.company_short %} 的产品](/get-started/learning-about-github/githubs-products)”。 +When you create a personal account or organization, you must select a billing plan for the account. For more information, see "[{% data variables.product.company_short %}'s products](/get-started/learning-about-github/githubs-products)." ## Signing up for a new account +1. If you want to create a new personal account, make sure you are currently signed out of GitHub. {% data reusables.accounts.create-account %} -1. 按照提示操作,创建您的个人帐户或组织。 +1. Follow the prompts to create your personal account or organization. -## 后续步骤 +## Next steps -- “[验证电子邮件地址](/articles/verifying-your-email-address)” +- "[Verify your email address](/articles/verifying-your-email-address)" - "[Creating an enterprise account](/enterprise-cloud@latest/admin/overview/creating-an-enterprise-account)"{% ifversion fpt %} in the {% data variables.product.prodname_ghe_cloud %} documentation{% endif %} -- `github/roadmap` 仓库中的 [ {% data variables.product.prodname_roadmap %} ]({% data variables.product.prodname_roadmap_link %}) +- [ {% data variables.product.prodname_roadmap %} ]( {% data variables.product.prodname_roadmap_link %} ) in the `github/roadmap` repository diff --git a/translations/zh-CN/content/get-started/signing-up-for-github/verifying-your-email-address.md b/translations/zh-CN/content/get-started/signing-up-for-github/verifying-your-email-address.md index 13f03e12c93c..e2eb92333272 100644 --- a/translations/zh-CN/content/get-started/signing-up-for-github/verifying-your-email-address.md +++ b/translations/zh-CN/content/get-started/signing-up-for-github/verifying-your-email-address.md @@ -1,6 +1,6 @@ --- -title: 验证电子邮件地址 -intro: '验证主电子邮件地址可确保增强的安全性,以便 {% data variables.product.prodname_dotcom %} 员工在您忘记密码时更好地协助您,并为您提供 {% data variables.product.prodname_dotcom %} 上更多功能的访问权限。' +title: Verifying your email address +intro: 'Verifying your primary email address ensures strengthened security, allows {% data variables.product.prodname_dotcom %} staff to better assist you if you forget your password, and gives you access to more features on {% data variables.product.prodname_dotcom %}.' redirect_from: - /articles/troubleshooting-email-verification - /articles/setting-up-email-verification @@ -12,59 +12,60 @@ versions: ghec: '*' topics: - Accounts -shortTitle: 验证您的电子邮件地址 +shortTitle: Verify your email address --- - -## 关于电子邮件通知 - -您可在注册新帐户后或添加新电子邮件地址时验证您的电子邮件地址。 如果电子邮件地址无法送达或退回,它将无法进行验证。 - -如果没有验证电子邮件地址,您将无法: - - 创建或复刻仓库 - - 创建议题或拉取请求 - - 对议题、拉取请求或提交发表评论 - - 授权 {% data variables.product.prodname_oauth_app %} 应用程序 - - 生成个人访问令牌 - - 接收电子邮件通知 - - 对仓库加星标 - - 创建或更新项目板,包括添加卡片 - - 创建或更新 gist - - 创建或使用 {% data variables.product.prodname_actions %} - - 通过 {% data variables.product.prodname_sponsors %} 赞助开发者 +## About email verification + +You can verify your email address after signing up for a new account, or when you add a new email address. If an email address is undeliverable or bouncing, it will be unverified. + +If you do not verify your email address, you will not be able to: + - Create or fork repositories + - Create issues or pull requests + - Comment on issues, pull requests, or commits + - Authorize {% data variables.product.prodname_oauth_app %} applications + - Generate personal access tokens + - Receive email notifications + - Star repositories + - Create or update project boards, including adding cards + - Create or update gists + - Create or use {% data variables.product.prodname_actions %} + - Sponsor developers with {% data variables.product.prodname_sponsors %} {% warning %} -**警告**: +**Warnings**: -- {% data reusables.user_settings.no-verification-disposable-emails %} -- {% data reusables.user_settings.verify-org-approved-email-domain %} +- {% data reusables.user-settings.no-verification-disposable-emails %} +- {% data reusables.user-settings.verify-org-approved-email-domain %} {% endwarning %} -## 验证电子邮件地址 +## Verifying your email address -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.emails %} -1. 在电子邮件地址下,单击 **Resend verification email(重新发送验证电子邮件)**。 ![重新发送验证电子邮件链接](/assets/images/help/settings/email-verify-button.png) -4. {% data variables.product.prodname_dotcom %} 将向您发送一封含有链接的电子邮件。 单击该链接后,您将转到 {% data variables.product.prodname_dotcom %} 仪表板并看到确认横幅。 ![确认电子邮件已验证的横幅](/assets/images/help/settings/email-verification-confirmation-banner.png) +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.emails %} +1. Under your email address, click **Resend verification email**. + ![Resend verification email link](/assets/images/help/settings/email-verify-button.png) +4. {% data variables.product.prodname_dotcom %} will send you an email with a link in it. After you click that link, you'll be taken to your {% data variables.product.prodname_dotcom %} dashboard and see a confirmation banner. + ![Banner confirming that your email was verified](/assets/images/help/settings/email-verification-confirmation-banner.png) -## 电子邮件验证故障排除 +## Troubleshooting email verification -### 无法发送验证电子邮件 +### Unable to send verification email -{% data reusables.user_settings.no-verification-disposable-emails %} +{% data reusables.user-settings.no-verification-disposable-emails %} -### 单击验证链接后的错误页面 +### Error page after clicking verification link -验证链接将在 24 小时后过期。 如果您没有在 24 小时内验证电子邮件,则可以请求其他电子邮件验证链接。 更多信息请参阅“[验证电子邮件地址](/articles/verifying-your-email-address)”。 +The verification link expires after 24 hours. If you don't verify your email within 24 hours, you can request another email verification link. For more information, see "[Verifying your email address](/articles/verifying-your-email-address)." If you click on the link in the confirmation email within 24 hours and you are directed to an error page, you should ensure that you're signed into the correct account on {% data variables.product.product_location %}. 1. {% data variables.product.signout_link %} of your personal account on {% data variables.product.product_location %}. -2. 退出并重新启动浏览器。 +2. Quit and restart your browser. 3. {% data variables.product.signin_link %} to your personal account on {% data variables.product.product_location %}. -4. 单击我们发送给您的电子邮件中的验证链接。 +4. Click on the verification link in the email we sent you. -## 延伸阅读 +## Further reading -- “[更改主电子邮件地址](/articles/changing-your-primary-email-address)” +- "[Changing your primary email address](/articles/changing-your-primary-email-address)" diff --git a/translations/zh-CN/content/get-started/using-git/pushing-commits-to-a-remote-repository.md b/translations/zh-CN/content/get-started/using-git/pushing-commits-to-a-remote-repository.md index c28e77a9050f..00de94acae4e 100644 --- a/translations/zh-CN/content/get-started/using-git/pushing-commits-to-a-remote-repository.md +++ b/translations/zh-CN/content/get-started/using-git/pushing-commits-to-a-remote-repository.md @@ -15,7 +15,7 @@ versions: shortTitle: 推送提交到远程 --- -## About `git push` +## 关于 `git push` `git push` 命令使用两个参数: * 远程命令,如 `origin` @@ -101,7 +101,7 @@ git fetch upstream ## 延伸阅读 - ["Pro Git" 书中的“远程”一章](https://git-scm.com/book/ch5-2.html) -- [`git remote` main page](https://git-scm.com/docs/git-remote.html) +- [`git remote` 主页面](https://git-scm.com/docs/git-remote.html) - "[Git 小抄](/articles/git-cheatsheet)" - "[Git 工作流程](/github/getting-started-with-github/git-workflows)" - "[Git 手册](https://guides.github.com/introduction/git-handbook/)" diff --git a/translations/zh-CN/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md b/translations/zh-CN/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md index 0209f9d2cf66..d38f7862b537 100644 --- a/translations/zh-CN/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md +++ b/translations/zh-CN/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md @@ -31,8 +31,8 @@ shortTitle: 拆分子文件夹 $ cd REPOSITORY-NAME ``` -5. To filter out the subfolder from the rest of the files in the repository, run [`git filter-repo`](https://github.com/newren/git-filter-repo), supplying this information: - - `FOLDER-NAME`: The folder within your project where you'd like to create a separate repository. +5. 要从仓库中的其余文件过滤出该子文件夹,请运行 [`git filter-repo`](https://github.com/newren/git-filter-repo),提供以下信息: + - `FOLDER-NAME`:项目中您要从其创建单独仓库的文件夹。 {% windows %} @@ -51,11 +51,11 @@ shortTitle: 拆分子文件夹 > Ref 'refs/heads/BRANCH-NAME' was rewritten ``` - The repository should now only contain the files that were in your subfolder(s). + 现在,该仓库应仅包含您的子文件夹中的文件。 6. 在 {% data variables.product.product_name %} 上[创建新仓库](/articles/creating-a-new-repository/)。 -7. At the top of your new repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}'s Quick Setup page, click {% octicon "clippy" aria-label="The copy to clipboard icon" %} to copy the remote repository URL. +7. 在新仓库顶部 {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} 的快速设置页面,点击 {% octicon "clippy" aria-label="The copy to clipboard icon" %} 以复制远程仓库 URL。 ![创建远程仓库 URL 字段](/assets/images/help/repository/copy-remote-repository-url-quick-setup.png) diff --git a/translations/zh-CN/content/get-started/using-github/exploring-early-access-releases-with-feature-preview.md b/translations/zh-CN/content/get-started/using-github/exploring-early-access-releases-with-feature-preview.md index c6206c809cd2..dd4d3c831765 100644 --- a/translations/zh-CN/content/get-started/using-github/exploring-early-access-releases-with-feature-preview.md +++ b/translations/zh-CN/content/get-started/using-github/exploring-early-access-releases-with-feature-preview.md @@ -17,11 +17,11 @@ shortTitle: 功能预览 {% data variables.product.prodname_dotcom %} 的产品和功能可能经过多个发行阶段。 -| 阶段 | 描述 | -| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Alpha | 产品或功能正在大量开发中,要求和范围通常不断变化。 此功能可用于演示和测试目的,但可能不会形成文档。 Alpha 版本功能不一定完整,不提供服务水平协议 (SLA),也没有技术支持义务。

**Note**: A product or feature released as a "Technology Preview" is considered to be in the alpha release stage. Technology Preview releases share the same characteristics of alpha releases as described above. | -| 测试版 | 产品或功能已准备好进行更广泛的分发。 Beta 版本可以是公共版本或私有版本,会形成文档,但没有任何 SLA 或技术支持义务。 | -| 通用 (GA) | 产品或功能经过全面测试,并公开向所有用户开放。 GA 版本已经可以用于生产,具有相关的 SLA 和技术支持义务。 | +| 阶段 | 描述 | +| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Alpha | 产品或功能正在大量开发中,要求和范围通常不断变化。 此功能可用于演示和测试目的,但可能不会形成文档。 Alpha 版本功能不一定完整,不提供服务水平协议 (SLA),也没有技术支持义务。

**注意**:作为“技术预览版”发布的产品或功能被视为处于 Alpha 版发布阶段。 技术预览版与上述 Alpha 版本具有相同的特征。 | +| 测试版 | 产品或功能已准备好进行更广泛的分发。 Beta 版本可以是公共版本或私有版本,会形成文档,但没有任何 SLA 或技术支持义务。 | +| 通用 (GA) | 产品或功能经过全面测试,并公开向所有用户开放。 GA 版本已经可以用于生产,具有相关的 SLA 和技术支持义务。 | ## 通过功能预览了解发行版 diff --git a/translations/zh-CN/content/get-started/using-github/github-cli.md b/translations/zh-CN/content/get-started/using-github/github-cli.md index 16e401bd3710..9b62ec362cd7 100644 --- a/translations/zh-CN/content/get-started/using-github/github-cli.md +++ b/translations/zh-CN/content/get-started/using-github/github-cli.md @@ -14,4 +14,4 @@ topics: {% data reusables.cli.cli-features %} -For more information, see "[{% data variables.product.prodname_cli %}](/github-cli)." +更多信息请参阅“[{% data variables.product.prodname_cli %}](/github-cli)”。 diff --git a/translations/zh-CN/content/get-started/using-github/keyboard-shortcuts.md b/translations/zh-CN/content/get-started/using-github/keyboard-shortcuts.md index 1506792c342e..992497db5c83 100644 --- a/translations/zh-CN/content/get-started/using-github/keyboard-shortcuts.md +++ b/translations/zh-CN/content/get-started/using-github/keyboard-shortcuts.md @@ -17,14 +17,14 @@ versions: ## 关于键盘快捷键 -Typing ? on {% data variables.product.prodname_dotcom %} brings up a dialog box that lists the keyboard shortcuts available for that page. 您可以使用这些键盘快捷键对站点执行操作,而无需使用鼠标导航。 +在 {% data variables.product.prodname_dotcom %} 中输入 ? 可弹出一个对话框,列出可用于该页面的键盘快捷键。 您可以使用这些键盘快捷键对站点执行操作,而无需使用鼠标导航。 {% if keyboard-shortcut-accessibility-setting %} -You can disable character key shortcuts, while still allowing shortcuts that use modifier keys, in your accessibility settings. For more information, see "[Managing accessibility settings](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings)."{% endif %} +您可以在辅助功能设置中禁用字符键快捷键,同时仍允许使用修饰键的快捷键。 更多信息请参阅“[管理辅助功能设置](/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings)”。{% endif %} 下面是一些可用键盘快捷键的列表。 {% if command-palette %} -The {% data variables.product.prodname_command_palette %} also gives you quick access to a wide range of actions, without the need to remember keyboard shortcuts. For more information, see "[{% data variables.product.prodname_command_palette %}](/get-started/using-github/github-command-palette)."{% endif %} +{% data variables.product.prodname_command_palette %} 还可让您快速访问各种操作,而无需记住键盘快捷键。 For more information, see "[{% data variables.product.prodname_command_palette %}](/get-started/using-github/github-command-palette)."{% endif %} ## 站点快捷键 @@ -36,42 +36,42 @@ The {% data variables.product.prodname_command_palette %} also gives you quick a {% if command-palette %} -Command+K (Mac) or
Ctrl+K (Windows/Linux) | Opens the {% data variables.product.prodname_command_palette %}. If you are editing Markdown text, open the command palette with Command+Option+K or Ctrl+Alt+K. For more information, see "[{% data variables.product.prodname_command_palette %}](/get-started/using-github/github-command-palette)."{% endif %} +Command+K (Mac) 或
Ctrl+K (Windows/Linux) | 打开 {% data variables.product.prodname_command_palette %}。 如果要编辑 Markdown 文本,请使用 Command+Option+KCtrl+Alt+K打开命令面板。 For more information, see "[{% data variables.product.prodname_command_palette %}](/get-started/using-github/github-command-palette)."{% endif %} ## 仓库 -| 键盘快捷键 | 描述 | -| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| G C | 转到 **Code(代码)**选项卡 | -| G I | 转到 **Issues(议题)**选项卡。 更多信息请参阅“[关于议题](/articles/about-issues)”。 | -| G P | 转到 **Pull requests(拉取请求)**选项卡。 For more information, see "[About pull requests](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)."{% ifversion fpt or ghes or ghec %} +| 键盘快捷键 | 描述 | +| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| G C | 转到 **Code(代码)**选项卡 | +| G I | 转到 **Issues(议题)**选项卡。 更多信息请参阅“[关于议题](/articles/about-issues)”。 | +| G P | 转到 **Pull requests(拉取请求)**选项卡。 更多信息请参阅“[关于拉取请求](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)”。{% ifversion fpt or ghes or ghec %} | G A | 转到 **Actions(操作)**选项卡。 更多信息请参阅“[关于 Actions](/actions/getting-started-with-github-actions/about-github-actions)”。{% endif %} -| G B | 转到 **Projects(项目)**选项卡。 更多信息请参阅“[关于项目板](/articles/about-project-boards)”。 | +| G B | 转到 **Projects(项目)**选项卡。 更多信息请参阅“[关于项目板](/articles/about-project-boards)”。 | | G W | 转到 **Wiki** 选项卡。 更多信息请参阅“[关于 wiki](/communities/documenting-your-project-with-wikis/about-wikis)”。{% ifversion fpt or ghec %} | G G | 转到 **Discussions(讨论)**选项卡。 更多信息请参阅“[关于讨论](/discussions/collaborating-with-your-community-using-discussions/about-discussions)”。{% endif %} ## 源代码编辑 -| 键盘快捷键 | 描述 | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion fpt or ghec %} -| . | Opens a repository or pull request in the web-based editor. For more information, see "[Web-based editor](/codespaces/developing-in-codespaces/web-based-editor)."{% endif %} -| Command+B (Mac) or
Ctrl+B (Windows/Linux) | 插入 Markdown 格式用于粗体文本 | -| Command+I (Mac) or
Ctrl+I (Windows/Linux) | 插入 Markdown 格式用于斜体文本 | -| Command+K (Mac) or
Ctrl+K (Windows/Linux) | Inserts Markdown formatting for creating a link{% ifversion fpt or ghec or ghae or ghes > 3.3 %} -| Command+Shift+7 (Mac) or
Ctrl+Shift+7 (Windows/Linux) | Inserts Markdown formatting for an ordered list | -| Command+Shift+8 (Mac) or
Ctrl+Shift+8 (Windows/Linux) | Inserts Markdown formatting for an unordered list | -| Command+Shift+. (Mac) or
Ctrl+Shift+. (Windows/Linux) | Inserts Markdown formatting for a quote{% endif %} -| E | 在 **Edit file(编辑文件)**选项卡中打开源代码文件 | -| Command+F (Mac) or
Ctrl+F (Windows/Linux) | 开始在文件编辑器中搜索 | -| Command+G (Mac) or
Ctrl+G (Windows/Linux) | 查找下一个 | -| Command+Shift+G (Mac) or
Ctrl+Shift+G (Windows/Linux) | 查找上一个 | -| Command+Option+F (Mac) or
Ctrl+Shift+F (Windows/Linux) | 替换 | -| Command+Shift+Option+F (Mac) or
Ctrl+Shift+R (Windows/Linux) | 全部替换 | -| Alt+G | 跳至行 | -| Command+Z (Mac) or
Ctrl+Z (Windows/Linux) | 撤消 | -| Command+Y (Mac) or
Ctrl+Y (Windows/Linux) | 重做 | -| Command+Shift+P | 在 **Edit file(编辑文件)** 与 **Preview changes(预览更改)**选项卡之间切换 | -| Command+S (Mac) or
Ctrl+S (Windows/Linux) | 填写提交消息 | +| 键盘快捷键 | 描述 | +| ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |{% ifversion fpt or ghec %} +| . | 在基于 Web 的编辑器中打开存储库或拉取请求。 更多信息请参阅“[基于 Web 的编辑器](/codespaces/developing-in-codespaces/web-based-editor)”。{% endif %} +| Command+B (Mac) 或
Ctrl+B (Windows/Linux) | 插入 Markdown 格式用于粗体文本 | +| Command+I (Mac) 或
Ctrl+I (Windows/Linux) | 插入 Markdown 格式用于斜体文本 | +| Command+K (Mac) 或
Ctrl+K (Windows/Linux) | 插入 Markdown 格式以创建链接{% ifversion fpt or ghec or ghae or ghes > 3.3 %} +| Command+Shift+7 (Mac) 或
Ctrl+Shift+7 (Windows/Linux) | 为有序列表插入 Markdown 格式 | +| Command+Shift+8 (Mac) 或
Ctrl+Shift+8 (Windows/Linux) | 为无序列表插入 Markdown 格式 | +| Command+Shift+. (Mac) 或
Ctrl+Shift+. (Windows/Linux) | 为报价插入 Markdown 格式{% endif %} +| E | 在 **Edit file(编辑文件)**选项卡中打开源代码文件 | +| Command+F (Mac) 或
Ctrl+F (Windows/Linux) | 开始在文件编辑器中搜索 | +| Command+G (Mac) 或
Ctrl+G (Windows/Linux) | 查找下一个 | +| Command+Shift+G (Mac) 或
Ctrl+Shift+G (Windows/Linux) | 查找上一个 | +| Command+Option+F (Mac) 或
Ctrl+Shift+F (Windows/Linux) | 替换 | +| Command+Shift+Option+F (Mac) 或
Ctrl+Shift+R (Windows/Linux) | 全部替换 | +| Alt+G | 跳至行 | +| Command+Z (Mac) 或
Ctrl+Z (Windows/Linux) | 撤消 | +| Command+Y (Mac) 或
Ctrl+Y (Windows/Linux) | 重做 | +| Command+Shift+P | 在 **Edit file(编辑文件)** 与 **Preview changes(预览更改)**选项卡之间切换 | +| Command+S (Mac) 或
Ctrl+S (Windows/Linux) | 填写提交消息 | 有关更多键盘快捷键,请参阅 [CodeMirror 文档](https://codemirror.net/doc/manual.html#commands)。 @@ -89,95 +89,96 @@ The {% data variables.product.prodname_command_palette %} also gives you quick a ## 评论 -| 键盘快捷键 | 描述 | -| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Command+B (Mac) or
Ctrl+B (Windows/Linux) | 插入 Markdown 格式用于粗体文本 | -| Command+I (Mac) or
Ctrl+I (Windows/Linux) | 插入斜体文本的 Markdown 格式{% ifversion fpt or ghae or ghes > 3.1 or ghec %} -| Command+E (Mac) or
Ctrl+E (Windows/Linux) | 在行内插入代码或命令的 Markdown 格式{% endif %} -| Command+K (Mac) or
Ctrl+K (Windows/Linux) | 插入 Markdown 格式用于创建链接 | -| Command+Shift+P (Mac) or
Ctrl+Shift+P (Windows/Linux) | Toggles between the **Write** and **Preview** comment tabs{% ifversion fpt or ghae or ghes > 3.4 or ghec %} -| Command+Shift+V (Mac) or
Ctrl+Shift+V (Windows/Linux) | Pastes HTML link as plain text{% endif %}{% ifversion fpt or ghae or ghes > 3.2 or ghec %} -| Command+Shift+7 (Mac) or
Ctrl+Shift+7 (Windows/Linux) | Inserts Markdown formatting for an ordered list | -| Command+Shift+8 (Mac) or
Ctrl+Shift+8 (Windows/Linux) | Inserts Markdown formatting for an unordered list{% endif %} -| Command+Enter (Mac) or
Ctrl+Enter (Windows/Linux) | 提交评论 | -| Ctrl+. and then Ctrl+[saved reply number] | 打开已保存回复菜单,然后使用已保存回复自动填写评论字段。 更多信息请参阅“[关于已保存回复](/articles/about-saved-replies)”。{% ifversion fpt or ghae or ghes > 3.2 or ghec %} -| Command+Shift+. (Mac) or
Ctrl+Shift+. (Windows/Linux) | Inserts Markdown formatting for a quote{% endif %}{% ifversion fpt or ghec %} -| Command+G (Mac) or
Ctrl+G (Windows/Linux) | 插入建议。 更多信息请参阅“[审查拉取请求中提议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)”。 +| 键盘快捷键 | 描述 | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Command+B (Mac) 或
Ctrl+B (Windows/Linux) | 插入 Markdown 格式用于粗体文本 | +| Command+I (Mac) 或
Ctrl+I (Windows/Linux) | 插入斜体文本的 Markdown 格式{% ifversion fpt or ghae or ghes > 3.1 or ghec %} +| Command+E (Mac) 或
Ctrl+E (Windows/Linux) | 在行内插入代码或命令的 Markdown 格式{% endif %} +| Command+K (Mac) 或
Ctrl+K (Windows/Linux) | 插入 Markdown 格式用于创建链接 | +| Command+Shift+P (Mac) 或
Ctrl+Shift+P (Windows/Linux) | 在 **Write(撰写)**和 **Preview(预览)**评论选项卡之间切换{% ifversion fpt or ghae or ghes > 3.4 or ghec %} +| Command+Shift+V (Mac) 或
Ctrl+Shift+V (Windows/Linux) | 将 HTML 链接粘贴为纯文本{% endif %}{% ifversion fpt or ghae or ghes > 3.2 or ghec %} +| Command+Shift+7 (Mac) 或
Ctrl+Shift+7 (Windows/Linux) | 为有序列表插入 Markdown 格式 | +| Command+Shift+8 (Mac) 或
Ctrl+Shift+8 (Windows/Linux) | 为无序列表插入 Markdown 格式{% endif %} +| Command+Enter (Mac) 或
Ctrl+Enter (Windows/Linux) | 提交评论 | +| Ctrl+.,然后 Ctrl+[保存的回复编号] | 打开已保存回复菜单,然后使用已保存回复自动填写评论字段。 更多信息请参阅“[关于已保存回复](/articles/about-saved-replies)”。{% ifversion fpt or ghae or ghes > 3.2 or ghec %} +| Command+Shift+. (Mac) 或
Ctrl+Shift+. (Windows/Linux) | 为报价插入 Markdown 格式{% endif %}{% ifversion fpt or ghec %} +| Command+G (Mac) 或
Ctrl+G (Windows/Linux) | 插入建议。 更多信息请参阅“[审查拉取请求中提议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)”。 {% endif %} -| R | 在您的回复中引用所选的文本。 更多信息请参阅“[基本撰写和格式语法](/articles/basic-writing-and-formatting-syntax#quoting-text)”。 | +| R | 在您的回复中引用所选的文本。 更多信息请参阅“[基本撰写和格式语法](/articles/basic-writing-and-formatting-syntax#quoting-text)”。 | ## 议题和拉取请求列表 -| 键盘快捷键 | 描述 | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| C | 创建议题 | -| Command+/ (Mac) or
Ctrl+/ (Windows/Linux) | 将光标聚焦于议题或拉取请求搜索栏。 For more information, see "[Filtering and searching issues and pull requests](/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests)."| | -| U | 按作者过滤 | -| L | 按标签过滤或编辑标签。 更多信息请参阅“[按标签过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-labels)”。 | -| Alt 并单击 | 按标签过滤时,排除标签。 更多信息请参阅“[按标签过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-labels)”。 | -| M | 按里程碑过滤或编辑里程碑。 更多信息请参阅“[按里程碑过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-milestone)”。 | -| A | 按受理人过滤或编辑受理人。 更多信息请参阅“[按受理人过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-assignees)”。 | -| O or Enter | 打开议题 | +| 键盘快捷键 | 描述 | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | +| C | 创建议题 | +| Command+/ (Mac) 或
Ctrl+/ (Windows/Linux) | 将光标聚焦于议题或拉取请求搜索栏。 更多信息请参阅“[筛选和搜索问题以及拉取请求](/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests)”。| | +| U | 按作者过滤 | +| L | 按标签过滤或编辑标签。 更多信息请参阅“[按标签过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-labels)”。 | +| Alt 并单击 | 按标签过滤时,排除标签。 更多信息请参阅“[按标签过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-labels)”。 | +| M | 按里程碑过滤或编辑里程碑。 更多信息请参阅“[按里程碑过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-milestone)”。 | +| A | 按受理人过滤或编辑受理人。 更多信息请参阅“[按受理人过滤议题和拉取请求](/articles/filtering-issues-and-pull-requests-by-assignees)”。 | +| OEnter | 打开议题 | ## 议题和拉取请求 -| 键盘快捷键 | 描述 | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Q | 请求审查者。 更多信息请参阅“[申请拉取请求审查](/articles/requesting-a-pull-request-review/)”。 | -| M | 设置里程碑。 更多信息请参阅“[将里程碑与议题及拉取请求关联](/articles/associating-milestones-with-issues-and-pull-requests/)”。 | -| L | 应用标签。 更多信息请参阅“[应用标签到议题和拉取请求](/articles/applying-labels-to-issues-and-pull-requests/)”。 | -| A | 设置受理人。 更多信息请参阅“[分配议题和拉取请求到其他 {% data variables.product.company_short %} 用户](/articles/assigning-issues-and-pull-requests-to-other-github-users/)”。 | -| Command+Shift+P (Mac) or
Ctrl+Shift+P (Windows/Linux) | 在 **Write(撰写)**和 **Preview(预览)**选项卡之间切换{% ifversion fpt or ghec %} -| Alt 并单击 | When creating an issue from a task list, open the new issue form in the current tab by holding Alt and clicking the {% octicon "issue-opened" aria-label="The issue opened icon" %} in the upper-right corner of the task. 更多信息请参阅“[关于任务列表](/issues/tracking-your-work-with-issues/creating-issues/about-task-lists)”。 | -| Shift 并点击 | When creating an issue from a task list, open the new issue form in a new tab by holding Shift and clicking the {% octicon "issue-opened" aria-label="The issue opened icon" %} in the upper-right corner of the task. 更多信息请参阅“[关于任务列表](/issues/tracking-your-work-with-issues/creating-issues/about-task-lists)”。 | -| Command and click (Mac) or
Ctrl+Shift and click (Windows/Linux) | When creating an issue from a task list, open the new issue form in the new window by holding Command or Ctrl+Shift and clicking the {% octicon "issue-opened" aria-label="The issue opened icon" %} in the upper-right corner of the task. 更多信息请参阅“[关于任务列表](/issues/tracking-your-work-with-issues/creating-issues/about-task-lists)”。{% endif %} +| 键盘快捷键 | 描述 | +| ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Q | 请求审查者。 更多信息请参阅“[申请拉取请求审查](/articles/requesting-a-pull-request-review/)”。 | +| M | 设置里程碑。 更多信息请参阅“[将里程碑与议题及拉取请求关联](/articles/associating-milestones-with-issues-and-pull-requests/)”。 | +| L | 应用标签。 更多信息请参阅“[应用标签到议题和拉取请求](/articles/applying-labels-to-issues-and-pull-requests/)”。 | +| A | 设置受理人。 更多信息请参阅“[分配议题和拉取请求到其他 {% data variables.product.company_short %} 用户](/articles/assigning-issues-and-pull-requests-to-other-github-users/)”。 | +| X | 链接来自同一存储库的议题或拉取请求。 更多信息请参阅“[将拉取请求链接到议题](/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue/)”。 | +| Command+Shift+P (Mac) 或
Ctrl+Shift+P (Windows/Linux) | 在 **Write(撰写)**和 **Preview(预览)**选项卡之间切换{% ifversion fpt or ghec %} +| Alt 并单击 | 从任务列表创建议题时,按住 Alt 并单击任务右上角的 {% octicon "issue-opened" aria-label="The issue opened icon" %} ,在当前选项卡中打开新议题表单。 更多信息请参阅“[关于任务列表](/issues/tracking-your-work-with-issues/creating-issues/about-task-lists)”。 | +| Shift 并点击 | 从任务列表创建议题时,按住 Shift 并单击任务右上角的 {% octicon "issue-opened" aria-label="The issue opened icon" %} ,在新选项卡中打开新议题表单。 更多信息请参阅“[关于任务列表](/issues/tracking-your-work-with-issues/creating-issues/about-task-lists)”。 | +| Command 并点击 (Mac) 或
Ctrl+Shift 并点击 (Windows/Linux) | 从任务列表创建议题时,按住 CommandCtrl+Shift 并单击任务右上角的 {% octicon "issue-opened" aria-label="The issue opened icon" %} ,在新窗口中打开新议题表单。 更多信息请参阅“[关于任务列表](/issues/tracking-your-work-with-issues/creating-issues/about-task-lists)”。{% endif %} ## 拉取请求中的更改 -| 键盘快捷键 | 描述 | -| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| C | 在拉取请求中打开提交列表 | -| T | 在拉取请求中打开已更改文件列表 | -| J | 将所选内容在列表中向下移动 | -| K | 将所选内容在列表中向上移动 | -| Command+Shift+Enter | 添加一条有关拉取请求差异的评论 | -| Alt 并单击 | Toggle between collapsing and expanding all outdated review comments in a pull request by holding down Alt and clicking **Show outdated** or **Hide outdated**.|{% ifversion fpt or ghes or ghae or ghec %} -| Click, then Shift and click | Comment on multiple lines of a pull request by clicking a line number, holding Shift, then clicking another line number. 更多信息请参阅“[评论拉取请求](/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)。” +| 键盘快捷键 | 描述 | +| ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| C | 在拉取请求中打开提交列表 | +| T | 在拉取请求中打开已更改文件列表 | +| J | 将所选内容在列表中向下移动 | +| K | 将所选内容在列表中向上移动 | +| Command+Shift+Enter | 添加一条有关拉取请求差异的评论 | +| Alt 并单击 | 通过按下 Alt 并单击 **Show outdated(显示已过期)**或 **Hide outdated(隐藏已过期)**,在折叠和展开拉取请求中所有过期的审查评论之间切换。{% ifversion fpt or ghes or ghae or ghec %} +| 单击,然后按住 Shift 并单击 | 单击一个行号,按住 Shift,然后单击另一行号,便可对拉取请求的多行发表评论。 更多信息请参阅“[评论拉取请求](/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)。” {% endif %} ## 项目板 ### 移动列 -| 键盘快捷键 | 描述 | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | -| Enter or Space | 开始移动聚焦的列 | -| Esc | 取消正在进行的移动 | -| Enter | 完成正在进行的移动 | -| or H | 向左移动列 | -| Command+ or Command+H (Mac) or
Ctrl+ or Ctrl+H (Windows/Linux) | 将列移动到最左侧的位置 | -| or L | 向右移动列 | -| Command+ or Command+L (Mac) or
Ctrl+ or Ctrl+L (Windows/Linux) | 将列移动到最右侧的位置 | +| 键盘快捷键 | 描述 | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | +| EnterSpace | 开始移动聚焦的列 | +| Esc | 取消正在进行的移动 | +| Enter | 完成正在进行的移动 | +| H | 向左移动列 | +| Command+Command+H (Mac) 或
Ctrl+Ctrl+H (Windows/Linux) | 将列移动到最左侧的位置 | +| L | 向右移动列 | +| Command+Command+L (Mac) 或
Ctrl+Ctrl+L (Windows/Linux) | 将列移动到最右侧的位置 | ### 移动卡片 -| 键盘快捷键 | 描述 | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -| Enter or Space | 开始移动聚焦的卡片 | -| Esc | 取消正在进行的移动 | -| Enter | 完成正在进行的移动 | -| or J | 向下移动卡片 | -| Command+ or Command+J (Mac) or
Ctrl+ or Ctrl+J (Windows/Linux) | 将卡片移动到该列的底部 | -| or K | 向上移动卡片 | -| Command+ or Command+K (Mac) or
Ctrl+ or Ctrl+K (Windows/Linux) | 将卡片移动到该列的顶部 | -| or H | 将卡片移动到左侧列的底部 | -| Shift+ or Shift+H | 将卡片移动到左侧列的顶部 | -| Command+ or Command+H (Mac) or
Ctrl+ or Ctrl+H (Windows/Linux) | 将卡片移动到最左侧列的底部 | -| Command+Shift+ or Command+Shift+H (Mac) or
Ctrl+Shift+ or Ctrl+Shift+H (Windows/Linux) | 将卡片移动到最左侧列的顶部 | -| | 将卡片移动到右侧列的底部 | -| Shift+ or Shift+L | 将卡片移动到右侧列的顶部 | -| Command+ or Command+L (Mac) or
Ctrl+ or Ctrl+L (Windows/Linux) | 将卡片移动到最右侧列的底部 | -| Command+Shift+ or Command+Shift+L (Mac) or
Ctrl+Shift+ or Ctrl+Shift+L (Windows/Linux) | 将卡片移动到最右侧列的底部 | +| 键盘快捷键 | 描述 | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | +| EnterSpace | 开始移动聚焦的卡片 | +| Esc | 取消正在进行的移动 | +| Enter | 完成正在进行的移动 | +| J | 向下移动卡片 | +| Command+Command+J (Mac) 或
Ctrl+Ctrl+J (Windows/Linux) | 将卡片移动到该列的底部 | +| K | 向上移动卡片 | +| Command+Command+K (Mac) 或
Ctrl+Ctrl+K (Windows/Linux) | 将卡片移动到该列的顶部 | +| H | 将卡片移动到左侧列的底部 | +| Shift+Shift+H | 将卡片移动到左侧列的顶部 | +| Command+Command+H (Mac) 或
Ctrl+Ctrl+H (Windows/Linux) | 将卡片移动到最左侧列的底部 | +| Command+Shift+Command+Shift+H (Mac) 或
Ctrl+Shift+Ctrl+Shift+H (Windows/Linux) | 将卡片移动到最左侧列的顶部 | +| | 将卡片移动到右侧列的底部 | +| Shift+Shift+L | 将卡片移动到右侧列的顶部 | +| Command+Command+L (Mac) 或
Ctrl+Ctrl+L (Windows/Linux) | 将卡片移动到最右侧列的底部 | +| Command+Shift+Command+Shift+L (Mac) 或
Ctrl+Shift+Ctrl+Shift+L (Windows/Linux) | 将卡片移动到最右侧列的底部 | ### 预览卡片 @@ -188,13 +189,13 @@ The {% data variables.product.prodname_command_palette %} also gives you quick a {% ifversion fpt or ghec %} ## {% data variables.product.prodname_actions %} -| 键盘快捷键 | 描述 | -| ---------------------------------------------------------------------------------------------------- | ----------------------- | -| Command+Space (Mac) or
Ctrl+Space (Windows/Linux) | 在工作流程编辑器中,获取对工作流程文件的建议。 | -| G F | 转到工作流程文件 | -| Shift+T or T | 切换日志中的时间戳 | -| Shift+F or F | 切换全屏日志 | -| Esc | 退出全屏日志 | +| 键盘快捷键 | 描述 | +| --------------------------------------------------------------------------------------------------- | ----------------------- | +| Command+Space (Mac) 或
Ctrl+Space (Windows/Linux) | 在工作流程编辑器中,获取对工作流程文件的建议。 | +| G F | 转到工作流程文件 | +| Shift+TT | 切换日志中的时间戳 | +| Shift+FF | 切换全屏日志 | +| Esc | 退出全屏日志 | {% endif %} @@ -209,21 +210,21 @@ The {% data variables.product.prodname_command_palette %} also gives you quick a {% else %} -| 键盘快捷键 | 描述 | -| -------------------------------------------- | ----- | -| E or I or Y | 标记为已读 | -| Shift+M | 静音线程 | +| 键盘快捷键 | 描述 | +| ------------------------------------------ | ----- | +| EIY | 标记为已读 | +| Shift+M | 静音线程 | {% endif %} ## 网络图 -| 键盘快捷键 | 描述 | -| ------------------------------------------------------------------------------------------ | ------ | -| or H | 向左滚动 | -| or L | 向右滚动 | -| or K | 向上滚动 | -| or J | 向下滚动 | -| Shift+ (Mac) or
Shift+H (Windows/Linux) | 一直向左滚动 | -| Shift+ (Mac) or
Shift+L (Windows/Linux) | 一直向右滚动 | -| Shift+ (Mac) or
Shift+K (Windows/Linux) | 一直向上滚动 | -| Shift+ (Mac) or
Shift+J (Windows/Linux) | 一直向下滚动 | +| 键盘快捷键 | 描述 | +| ----------------------------------------------------------------------------------------- | ------ | +| H | 向左滚动 | +| L | 向右滚动 | +| K | 向上滚动 | +| J | 向下滚动 | +| Shift+ (Mac) 或
Shift+H (Windows/Linux) | 一直向左滚动 | +| Shift+ (Mac) 或
Shift+L (Windows/Linux) | 一直向右滚动 | +| Shift+ (Mac) 或
Shift+K (Windows/Linux) | 一直向上滚动 | +| Shift+ (Mac) 或
Shift+J (Windows/Linux) | 一直向下滚动 | diff --git a/translations/zh-CN/content/get-started/using-github/troubleshooting-connectivity-problems.md b/translations/zh-CN/content/get-started/using-github/troubleshooting-connectivity-problems.md index 8be09ee86b26..eae6cfef1713 100644 --- a/translations/zh-CN/content/get-started/using-github/troubleshooting-connectivity-problems.md +++ b/translations/zh-CN/content/get-started/using-github/troubleshooting-connectivity-problems.md @@ -31,7 +31,7 @@ shortTitle: 连接问题 ## 切换克隆方法 -从通过 SSH 克隆切换到通过 HTTPS 克隆可改善连接,反之亦然。 For more information, see "[Troubleshooting cloning errors](/repositories/creating-and-managing-repositories/troubleshooting-cloning-errors)." +从通过 SSH 克隆切换到通过 HTTPS 克隆可改善连接,反之亦然。 更多信息请参阅“[排查克隆错误](/repositories/creating-and-managing-repositories/troubleshooting-cloning-errors)”。 如果您遇到 SSH 超时,请参阅“[错误:文件编号错误](/articles/error-bad-file-number)”。 diff --git a/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/about-writing-and-formatting-on-github.md b/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/about-writing-and-formatting-on-github.md index b885bb92a843..42498e68b06b 100644 --- a/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/about-writing-and-formatting-on-github.md +++ b/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/about-writing-and-formatting-on-github.md @@ -31,8 +31,8 @@ You can enable a fixed-width font in every comment field on {% data variables.pr ![Screenshot showing the {% data variables.product.product_name %} comment field with fixed-width fonts enabled](/assets/images/help/writing/fixed-width-example.png) -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.appearance-settings %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.appearance-settings %} 1. Under "Markdown editor font preference", select **Use a fixed-width (monospace) font when editing Markdown**. ![Screenshot showing the {% data variables.product.product_name %} comment field with fixed width fonts enabled](/assets/images/help/writing/enable-fixed-width.png) {% endif %} diff --git a/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md b/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md index b4eda913e5f6..36b9379e1051 100644 --- a/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md +++ b/translations/zh-CN/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md @@ -85,7 +85,7 @@ git commit 更多信息请参阅“[创建和突出显示代码块](/articles/creating-and-highlighting-code-blocks)”。 -{% data reusables.user_settings.enabling-fixed-width-fonts %} +{% data reusables.user-settings.enabling-fixed-width-fonts %} ## 链接 diff --git a/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.md b/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.md index 0cdcb55e2000..4d2eceea1e87 100644 --- a/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.md +++ b/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.md @@ -46,7 +46,7 @@ Look! You can see my backticks. ![使用倒引号块呈现的围栏代码](/assets/images/help/writing/fenced-code-show-backticks-rendered.png) -{% data reusables.user_settings.enabling-fixed-width-fonts %} +{% data reusables.user-settings.enabling-fixed-width-fonts %} ## 语法突显 diff --git a/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables.md b/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables.md index 7f4c8444b82f..31a98180ed54 100644 --- a/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables.md +++ b/translations/zh-CN/content/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables.md @@ -40,7 +40,7 @@ shortTitle: 使用表格组织的数据 ![呈现的单元格宽度不同的表格](/assets/images/help/writing/table-varied-columns-rendered.png) -{% data reusables.user_settings.enabling-fixed-width-fonts %} +{% data reusables.user-settings.enabling-fixed-width-fonts %} ## 格式化表格中的内容 diff --git a/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/creating-a-saved-reply.md b/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/creating-a-saved-reply.md index d1390d9113e1..abdfb5c737a1 100644 --- a/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/creating-a-saved-reply.md +++ b/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/creating-a-saved-reply.md @@ -12,8 +12,8 @@ versions: ghec: '*' --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.saved_replies %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.saved_replies %} 3. 在“Add a saved reply(添加已保存回复)”下,添加已保存回复的标题。 ![已保存回复标题](/assets/images/help/settings/saved-replies-title.png) 4. 在“Write(撰写 )”字段中,添加要用于已保存回复的内容。 有关在 {% data variables.product.product_name %} 上撰写的更多信息,请参阅“[基本撰写和格式语法](/articles/basic-writing-and-formatting-syntax)”。 ![撰写已保存回复](/assets/images/help/settings/saved-replies-settings-adding.png) 5. 要查看回复,请单击 **Preview(预览)**。 ![添加已保存回复](/assets/images/help/settings/saved-replies-preview.png) diff --git a/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/deleting-a-saved-reply.md b/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/deleting-a-saved-reply.md index 89c1697cd800..b90c8c03b05a 100644 --- a/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/deleting-a-saved-reply.md +++ b/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/deleting-a-saved-reply.md @@ -12,7 +12,7 @@ versions: ghec: '*' --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.saved_replies %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.saved_replies %} 3. 在“已保存回复”下,靠近要删除的已保存回复的位置,单击 {% octicon "x" aria-label="The X" %}。 ![删除已保存回复](/assets/images/help/settings/saved-replies-delete-existing.png) diff --git a/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/editing-a-saved-reply.md b/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/editing-a-saved-reply.md index 285391c9d882..7b34ba58df56 100644 --- a/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/editing-a-saved-reply.md +++ b/translations/zh-CN/content/get-started/writing-on-github/working-with-saved-replies/editing-a-saved-reply.md @@ -13,8 +13,8 @@ versions: ghec: '*' --- -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.saved_replies %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.saved_replies %} 3. 使用位于要编辑已保存回复旁边的“Saved replies”(已保存回复),单击 {% octicon "pencil" aria-label="The pencil" %}。 ![编辑已保存回复](/assets/images/help/settings/saved-replies-edit-existing.png) 4. 在“ Edit saved reply”(已保存回复)下,您可以编辑已保存回复的标题和内容。 ![编辑标题和内容](/assets/images/help/settings/saved-replies-edit-existing-content.png) diff --git a/translations/zh-CN/content/github-cli/github-cli/quickstart.md b/translations/zh-CN/content/github-cli/github-cli/quickstart.md index 8217f4e5ed36..a760363009aa 100644 --- a/translations/zh-CN/content/github-cli/github-cli/quickstart.md +++ b/translations/zh-CN/content/github-cli/github-cli/quickstart.md @@ -19,7 +19,7 @@ shortTitle: 快速入门 ## 入门指南 -1. [Install](https://github.com/cli/cli#installation) {% data variables.product.prodname_cli %} on macOS, Windows, or Linux. +1. 在 macOS、Windows 或 Linux 上[安装](https://github.com/cli/cli#installation) {% data variables.product.prodname_cli %}。 1. In the command line, authenticate to {% data variables.product.company_short %}. ```shell diff --git a/translations/zh-CN/content/github/copilot/about-github-copilot-telemetry.md b/translations/zh-CN/content/github/copilot/about-github-copilot-telemetry.md index abd6a29c2e64..b4592764f1d5 100644 --- a/translations/zh-CN/content/github/copilot/about-github-copilot-telemetry.md +++ b/translations/zh-CN/content/github/copilot/about-github-copilot-telemetry.md @@ -1,6 +1,6 @@ --- title: 关于 GitHub Copilot 遥测 -intro: '{% data variables.product.prodname_copilot %} collects and relies on additional telemetry data beyond what other {% data variables.product.company_short %} products and services collect.' +intro: '{% data variables.product.prodname_copilot %} 收集并依赖超出其他 {% data variables.product.company_short %} 产品和服务收集的额外遥测数据。' redirect_from: - /early-access/github/copilot/about-github-copilot-telemetry versions: @@ -9,20 +9,20 @@ versions: ## 哪些数据会被收集? -Data collected is described in the "[{% data variables.product.prodname_copilot %} Telemetry Terms](/github/copilot/github-copilot-telemetry-terms)." In addition, the {% data variables.product.prodname_copilot %} extension/plugin collects activity from the user's Integrated Development Environment (IDE), tied to a timestamp, and metadata collected by the extension/plugin telemetry package. When used with Visual Studio Code, IntelliJ, NeoVIM, or other IDEs, {% data variables.product.prodname_copilot %} collects the standard metadata provided by those IDEs. +收集的数据在“[{% data variables.product.prodname_copilot %} 遥测术语](/github/copilot/github-copilot-telemetry-terms)”中进行了描述。 此外,{% data variables.product.prodname_copilot %} 扩展/插件从用户的集成开发环境 (IDE) 收集活动(绑定到时间戳)以及扩展/插件遥测包收集的元数据。 当与 Visual Studio Code、IntelliJ、NeoVIM 或其他 IDE 一起使用时,{% data variables.product.prodname_copilot %} 会收集这些 IDE 提供的标准元数据。 -## How the data is used by {% data variables.product.company_short %} +## {% data variables.product.company_short %} 如何使用数据 -{% data variables.product.company_short %} will use this data for: +{% data variables.product.company_short %} 会将这些数据用于: - 直接改进产品,包括评估处理中的不同策略,并预测用户可能认为有用的建议 -- Evaluating the product, e.g. by measuring the positive impact it has on the user -- Improving the underlying code generation models, e.g. by providing positive and negative examples (but always so that your private code is not used as input to suggest code for other users of {% data variables.product.prodname_copilot %}) +- 评估产品,例如通过衡量其对用户的积极影响 +- 改进基础代码生成模型,例如通过提供正面和负面示例(但始终不会将您的私有代码用作输入来为 {% data variables.product.prodname_copilot %} 的其他用户建议代码) - 引导密切相关的 {% data variables.product.company_short %} 产品 -- Investigating and detecting potential abuse of the {% data variables.product.prodname_copilot %} service -- Other purposes related to improving the {% data variables.product.prodname_copilot %} service, including sharing as described in the next section +- 调查和发现可能滥用 {% data variables.product.prodname_copilot %} 服务的情况 +- 与改进 {% data variables.product.prodname_copilot %} 服务相关的其他目的,包括下一节中所述的共享 ## 如何共享数据 -遥测数据安全地存储在 {% data variables.product.company_short %} 系统上,并进行了适当的加密。 We know user edit actions, source code snippets, and URLs of repositories and file paths are sensitive data. Consequently, access is strictly controlled. The data can only be accessed by (1) named {% data variables.product.company_short %} personnel (employees and contractors) working on the {% data variables.product.prodname_copilot %} team or on the {% data variables.product.company_short %} platform health team, (2) Microsoft personnel (employees and contractors) working on or with the Azure and/or {% data variables.product.prodname_copilot %} teams, and (3) employees of OpenAI who work on {% data variables.product.prodname_copilot %}. +遥测数据安全地存储在 {% data variables.product.company_short %} 系统上,并进行了适当的加密。 我们知道用户编辑操作、源代码片段以及存储库和文件路径的 URL 都是敏感数据。 因此,访问受到严格控制。 数据访问仅限于 (1) {% data variables.product.company_short %} 团队或 {% data variables.product.prodname_copilot %} 平台健康团队中指定的 {% data variables.product.company_short %} 人员(员工和承包商),(2) 在 Azure 和/或 {% data variables.product.prodname_copilot %} 团队工作或与之合作的 Microsoft 人员(员工和承包商),以及 (3) 在 {% data variables.product.prodname_copilot %} 上工作的 OpenAI 员工。 diff --git a/translations/zh-CN/content/github/copilot/index.md b/translations/zh-CN/content/github/copilot/index.md index 2e967d1c261c..efd582e924e2 100644 --- a/translations/zh-CN/content/github/copilot/index.md +++ b/translations/zh-CN/content/github/copilot/index.md @@ -1,6 +1,6 @@ --- title: GitHub Copilot -intro: 'You can use {% data variables.product.prodname_dotcom %} Copilot to assist with your programming in your editor' +intro: '您可以使用 {% data variables.product.prodname_dotcom %} Copilot 帮助您在编辑器中的编程' versions: fpt: '*' children: diff --git a/translations/zh-CN/content/github/copilot/research-recitation.md b/translations/zh-CN/content/github/copilot/research-recitation.md index cf4188c1f874..ced0724918c4 100644 --- a/translations/zh-CN/content/github/copilot/research-recitation.md +++ b/translations/zh-CN/content/github/copilot/research-recitation.md @@ -57,9 +57,9 @@ r'^\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d 过滤后还剩下 473 条建议。 但它们的表现形式非常不同: 1. 有些基本上只是重复另一个通过了过滤的案例。 例如,有时 {% data variables.product.prodname_dotcom %} Copilot 提出建议,开发人员键入一个评论行,然后 {% data variables.product.prodname_dotcom %} Copilot 再次提供一个非常相似的建议。 我从分析中删除了这些作为重复项的案例。 -2. 有些是长而重复的序列。 Like the following example, where the repeated blocks of `‘

’` are of course found somewhere in the training set:
![Example repetitions](/assets/images/help/copilot/example_repetitions.png)
Such suggestions can be helpful (test cases, regular expressions) or not helpful (like this case, I suspect). 但无论如何,它们并不符合我开始调查时所想到的死记硬背学习的想法。 +2. 有些是长而重复的序列。 像下面的示例一样,在培训集的某个地方当然可以找到重复的 `‘

’` 块 :
![Example repetitions](/assets/images/help/copilot/example_repetitions.png)
这样的建议可能会有所帮助(测试案例、正则表达式)或没有帮助(像本案例,我怀疑)。 但无论如何,它们并不符合我开始调查时所想到的死记硬背学习的想法。 3. 有些是标准库存,如自然数字、质数、股市股票代码或希腊字母:
![希腊字母示例](/assets/images/help/copilot/example_greek.png) -4. 有些是常见的、直接的方式,甚至是普遍的方式,以很少的自然自由度做事。 For example, the middle part of the following strikes me as very much the standard way of using the BeautifulSoup package to parse a Wikipedia list. 事实上, 在 {% data variables.product.prodname_dotcom %} Copilot 的培训数据[5](#footnote5) 中找到的最佳匹配片段使用这种代码解析不同的文章,并继续根据结果做不同的事情。
![Example of Beautiful Soup](/assets/images/help/copilot/example_beautiful_soup.png)
这也不符合我对引文的想法。 这有点像有人说“我要把垃圾拿出来;我很快就会回来的”— 这是事实陈述,不是引文,尽管这句话以前已经说过很多次了。 +4. 有些是常见的、直接的方式,甚至是普遍的方式,以很少的自然自由度做事。 例如, 下面的中间部分触发了我使用 BeautifulSoup 包解析维基百科列表的标准方法。 事实上, 在 {% data variables.product.prodname_dotcom %} Copilot 的培训数据[5](#footnote5) 中找到的最佳匹配片段使用这种代码解析不同的文章,并继续根据结果做不同的事情。
![Example of Beautiful Soup](/assets/images/help/copilot/example_beautiful_soup.png)
这也不符合我对引文的想法。 这有点像有人说“我要把垃圾拿出来;我很快就会回来的”— 这是事实陈述,不是引文,尽管这句话以前已经说过很多次了。 5. 然后还有所有其他情况。 代码或评论中至少有一些特定重叠。 这些是我最感兴趣的,也是我从现在开始要集中精力的。 此存储桶必须有一些边缘案例[6](#footnote6),并且您的里程可能因您认为应分类的方式而有所不同。 也许你甚至一开始就不同意整套存储桶。 diff --git a/translations/zh-CN/content/github/site-policy/github-terms-for-additional-products-and-features.md b/translations/zh-CN/content/github/site-policy/github-terms-for-additional-products-and-features.md index 51a77368d1d9..3a665edfdc08 100644 --- a/translations/zh-CN/content/github/site-policy/github-terms-for-additional-products-and-features.md +++ b/translations/zh-CN/content/github/site-policy/github-terms-for-additional-products-and-features.md @@ -16,19 +16,19 @@ topics: 通过使用附加产品和特性,您也同意下面列出的适用的 GitHub 条款。 违反 GitHub 关于附加产品和特性的条款便是违反协议。 在本文未定义的任何大写术语采用“协议”中的含义。 **对于企业用户** -- **GitHub Enterprise Cloud** users may have access to the following Additional Products and Features: Actions, Advanced Security, Advisory Database, Codespaces, Dependabot Preview, GitHub Enterprise Importer, Learning Lab, Packages, and Pages. +- **GitHub Enterprise Cloud** 用户可以访问以下附加产品和特性:Actions、Advanced Security、Advisory Database、Codespaces、Dependabot Preview、GitHub Enterprise Importer、Learning Lab、Packages 和 Pages。 -- **GitHub Enterprise Server** users may have access to the following Additional Products and Features: Actions, Advanced Security, Advisory Database, Connect, Dependabot Preview, GitHub Enterprise Importer, Learning Lab, Packages, Pages, and SQL Server Images. +- **GitHub Enterprise Server** 用户可以访问以下附加产品和特性:Actions、Advanced Security、Advisory Database、Connect、Dependabot Preview、GitHub Enterprise Importer、Learning Lab、Packages、Pages 和 SQL Server Images。 -- **GitHub AE** users may have access to the following Additional Products and Features: Actions, Advanced Security, Advisory Database, Connect, Dependabot Preview, GitHub Enterprise Importer, Packages and Pages. +- **GitHub AE** 用户可以访问以下附加产品和特性:Actions、Advanced Security、Advisory Database、Connect、Dependabot Preview、GitHub Enterprise Importer、Packages 和 Pages。 ## 操作 GitHub Actions 使您能够直接在您的 GitHub 仓库中创建自定义软件开发生命周期工作流程。 Actions 按使用情况计费。 [Actions 文档](/actions)包含详细信息,包括计算和存储量(取决于您的帐户计划)以及如何监控您的 Actions 分钟使用和设置使用限制。 -对 Actions 和任何 Action 产品或服务元素的使用,不得违反协议、[GitHub 可接受使用政策](/github/site-policy/github-acceptable-use-policies)或 [Actions 文档](/actions/reference/usage-limits-billing-and-administration)规定的 GitHub Actions 服务限制。 Additionally, regardless of whether an Action is using self-hosted runners, Actions should not be used for: +对 Actions 和任何 Action 产品或服务元素的使用,不得违反协议、[GitHub 可接受使用政策](/github/site-policy/github-acceptable-use-policies)或 [Actions 文档](/actions/reference/usage-limits-billing-and-administration)规定的 GitHub Actions 服务限制。 此外,无论操作是否使用自托管运行器,操作都不应用于: - 密码破解; -- disrupting, gaining, or attempting to gain unauthorized access to, any service, device, data, account, or network (other than those authorized by the [GitHub Bug Bounty program](https://bounty.github.com)); -- the provision of a stand-alone or integrated application or service offering the Actions product or service, or any elements of the Actions product or service, for commercial purposes; +- 破坏、获取或试图未经授权而访问任何服务、设备、数据、帐户或网络( [GitHub Bug 赏金计划](https://bounty.github.com)授权的除外); +- 为商业目的提供独立或集成的应用程序或服务,提供 Actions 产品或服务,或者 Actions 产品或服务的任何元素; - 任何给我们的服务器带来负担的活动,如果这种负担与提供给用户的收益不成比例(例如,不要将 Action 用作内容交付网络或作为无服务器应用程序的一部分,但收益低负担也低的 Action 可能没问题);或 - 如果使用 GitHub 托管的运行器,与使用 GitHub Actions 的仓库相关的软件项目创建、测试、部署或发布无关的任何其他活动。 @@ -52,26 +52,26 @@ _GitHub Advisory Database 的许可_ GitHub Advisory Database 的许可采用[知识共享署名 4.0 许可](https://creativecommons.org/licenses/by/4.0/)原则。 有关署名条款,请参阅 上的 GitHub Advisory Database,或者所使用的单独 GitHub Advisory Database 记录(以 为前缀)。 ## Codespaces -_Note: The github.dev service, available by pressing `.` on a repo or navigating directly to github.dev, is governed by [GitHub's Beta Terms of service](/github/site-policy/github-terms-of-service#j-beta-previews)._ +_注意:github.dev 服务通过在存储库上按下 `.` 或直接浏览到 github.dev 可用,受 [GitHub 试用版服务条款](/github/site-policy/github-terms-of-service#j-beta-previews)约束。_ -GitHub Codespaces enables you to develop code directly from your browser using the code within your GitHub repository. Codespaces and any elements of the Codespaces service may not be used in violation of the Agreement or the Acceptable Use Policies. 此外,Codespaces 不得用于: +GitHub Codespaces 允许您直接从浏览器中使用 GitHub 仓库中的代码开发代码。 不得违反《协议》或可接受使用政策使用 Codespaces 和 Codespaces 服务的任何元素。 此外,Codespaces 不得用于: - 密码破解; - 使用我们的服务器破坏、非授权访问或尝试非授权访问任何服务、设备、数据、帐户或网络(GitHub 漏洞赏金计划授权的活动除外); - 出于商业目的,提供兜售 Codespaces 或任何 Codespaces 元素的独立或集成应用程序或服务; -- any activity that places a burden on our servers, where that burden is disproportionate to the benefits provided to users (for example, don't use Codespaces as a content delivery network, as part of a serverless application, or to host any kind of production-facing application); or -- any other activity unrelated to the development or testing of the software project associated with the repository where GitHub Codespaces is initiated. +- 任何给我们的服务器带来负担的活动,如果这些负担与提供给用户的好处不成比例(例如,不要将Codespaces 用作内容交付网络,作为无服务器应用程序的一部分,或托管任何类型的面向生产的应用程序); 或 +- 与启动 GitHub Codespaces 的存储库关联的软件项目的开发或测试无关的任何其他活动。 为防止违反这些限制和滥用 GitHub Codespaces,GitHub 可能会监视您对 GitHub Codespaces 的使用。 滥用 GitHub Codespaces 可能导致对 Codespaces 的访问终止、使用 GitHub Codespaces 的权限受到限制,或者禁用以违反这些条款的方式运行 Codespaces 的仓库。 -Codespaces allows you to load extensions from the Microsoft Visual Studio Marketplace (“Marketplace Extensions”) for use in your development environment, for example, to process the programming languages that your code is written in. Marketplace Extensions are licensed under their own separate terms of use as noted in the Visual Studio Marketplace, and the terms of use located at https://aka.ms/vsmarketplace-ToU. GitHub makes no warranties of any kind in relation to Marketplace Extensions and is not liable for actions of third-party authors of Marketplace Extensions that are granted access to Your Content. Codespaces also allows you to load software into your environment through devcontainer features. Such software is provided under the separate terms of use accompanying it. 您使用任何第三方应用程序均应自担风险。 +Codespaces 允许您从 Microsoft Visual Studio Marketplace 加载扩展(“Marketplace Extensions”),以便在开发环境中使用,例如,处理编写代码时所使用的编程语言。 Marketplace Extensions 根据其自己的单独使用条款(如 Visual Studio Marketplace 中所述)以及位于 https://aka.ms/vsmarketplace-ToU 中的使用条款进行许可。 GitHub 对 Marketplace Extensions 不作任何形式的保证,也不负责被授予访问您的内容权限的 Marketplace Extensions 的第三方作者之行为。 Codespaces 还允许您通过 devcontainer 功能将软件加载到您的环境中。 此类软件根据其随附的单独使用条款提供。 您使用任何第三方应用程序均应自担风险。 -Codespaces 的一般版本目前不适用于美国。 政府客户。 美国 government customers may continue to use the Codespaces Beta Preview under separate terms. See [Beta Preview terms](/github/site-policy/github-terms-of-service#j-beta-previews). +Codespaces 的一般版本目前不适用于美国。 政府客户。 美国 政府客户可以在单独的条款下继续使用 Codespaces 测试预览版。 请参阅[测试版预览版条款](/github/site-policy/github-terms-of-service#j-beta-previews)。 ## Connect -With GitHub Connect, you can share certain features and data between your GitHub Enterprise Server or GitHub AE instance and your GitHub Enterprise Cloud organization or enterprise account on GitHub.com. In order to enable GitHub Connect, you must have at least one (1) account on GitHub Enterprise Cloud or GitHub.com, and one (1) licensed instance of GitHub Enterprise Server or GitHub AE. 您通过 Connect 使用 GitHub Enterprise Cloud 或 GitHub.com 是由您许可 GitHub Enterprise Cloud 或 GitHub.com的条款管理的。 个人数据的使用受 [GitHub 隐私声明](/github/site-policy/github-privacy-statement)管制。 +使用 GitHub Connect,您可以在 GitHub Enterprise Server 或 GitHub AE 实例与您的GitHub Enterprise Cloud 组织或 GitHub.com 上的企业帐户之间分享某些功能和数据。 要启用 GitHub Connect,您必须在 GitHub Enterprise Cloud 或 GitHub.com 上至少有一 (1) 个帐户,以及一 (1) 个许可的 GitHub Enterprise Server 或 GitHub AE 实例。 您通过 Connect 使用 GitHub Enterprise Cloud 或 GitHub.com 是由您许可 GitHub Enterprise Cloud 或 GitHub.com的条款管理的。 个人数据的使用受 [GitHub 隐私声明](/github/site-policy/github-privacy-statement)管制。 ## GitHub Enterprise Importer -Importer is a framework for exporting data from other sources to be imported to the GitHub platform. Importer is provided “AS-IS”. +Importer 是一个从其他来源导出数据到 GitHub 平台的框架。 Importer“按原样”提供。 ## Learning Lab GitHub Learning Lab 提供已编入GitHub 的免费交互式课程,并提供即时自动反馈和帮助。 @@ -100,11 +100,11 @@ GitHub Pages 并非旨在用于或允许用作免费的 Web 托管服务来运 _带宽和使用限制_ -GitHub Pages 受某些特定带宽和使用限制的约束,可能不适用于某些高带宽用途。 Please see our [GitHub Pages limits](/github/working-with-github-pages/about-github-pages) for more information. +GitHub Pages 受某些特定带宽和使用限制的约束,可能不适用于某些高带宽用途。 请参阅我们的 [GitHub Pages 限制](/github/working-with-github-pages/about-github-pages)了解更多信息。 _禁止使用_ -GitHub Pages may not be used in violation of the Agreement, the GitHub [Acceptable Use Policies](/github/site-policy/github-acceptable-use-policies), or the GitHub Pages service limitations set forth in the [Pages documentation](/pages/getting-started-with-github-pages/about-github-pages#guidelines-for-using-github-pages). +GitHub Pages 的使用不得违反本协议、GitHub [可接受使用政策](/github/site-policy/github-acceptable-use-policies)或 [Pages 文档](/pages/getting-started-with-github-pages/about-github-pages#guidelines-for-using-github-pages)中规定的 GitHub Pages 服务限制。 如果您对用途或预期用途是否归入这些类别有疑问,请联系 [GitHub 支持](https://support.github.com/contact?tags=docs-policy)。 GitHub 保留随时收回任何 GitHub 子域而不承担任何责任的权利。 diff --git a/translations/zh-CN/content/github/site-policy/guidelines-for-legal-requests-of-user-data.md b/translations/zh-CN/content/github/site-policy/guidelines-for-legal-requests-of-user-data.md index 9adea4a513b1..b7d33b4d71cd 100644 --- a/translations/zh-CN/content/github/site-policy/guidelines-for-legal-requests-of-user-data.md +++ b/translations/zh-CN/content/github/site-policy/guidelines-for-legal-requests-of-user-data.md @@ -69,7 +69,7 @@ topics: - 安全访问日志 - 与私有仓库交互的数据 - 要了解 GitHub 收集的私人帐户信息类型, 可以访问您的 {% data reusables.user_settings.personal_dashboard %} 并浏览左侧菜单栏中的区域。 + 要了解 GitHub 收集的私人帐户信息类型, 可以访问您的 {% data reusables.user-settings.personal_dashboard %} 并浏览左侧菜单栏中的区域。 - **组织帐户数据** — 有关组织及其管理用户和仓库的信息发布于 GitHub。 组织配置文件可在 `https://github.com/organization` 这样的网址上找到。 公共组织配置文件还可以包括所有者可能已经选择公开分享的其他信息。 所有组织公共配置文件显示: diff --git a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/closing-a-project-board.md b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/closing-a-project-board.md index fbd04e56c5d9..9357efb7824e 100644 --- a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/closing-a-project-board.md +++ b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/closing-a-project-board.md @@ -21,7 +21,7 @@ topics: 如果重新打开项目板,您可以选择*同步*自动化,以便根据为项目板配置的自动化设置来更新板上卡的位置。 更多信息请参阅“[重新打开已关闭的项目板](/articles/reopening-a-closed-project-board)”或“[关于项目板自动化](/articles/about-automation-for-project-boards)”。 -1. Navigate to the list of project boards in your repository or organization, or owned by your user account. +1. 导航到仓库或组织中或由用户帐户拥有的项目板列表。 2. 在项目列表中,在要关闭的项目板旁边单击 {% octicon "chevron-down" aria-label="The chevron icon" %}。 ![项目板名称右边的 V 形图标](/assets/images/help/projects/project-list-action-chevron.png) 3. 单击 **Close(关闭)**。 ![关闭项目板下拉菜单中的项](/assets/images/help/projects/close-project.png) diff --git a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/creating-a-project-board.md b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/creating-a-project-board.md index fad63c23b183..1d416e50f74e 100644 --- a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/creating-a-project-board.md +++ b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/creating-a-project-board.md @@ -55,7 +55,7 @@ type: how_to ## 创建组织范围的项目板 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.click-new-project %} {% data reusables.project-management.create-project-name-description %} diff --git a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/reopening-a-closed-project-board.md b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/reopening-a-closed-project-board.md index 8a835e7c099b..cfd7d1ecf3ea 100644 --- a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/reopening-a-closed-project-board.md +++ b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/managing-project-boards/reopening-a-closed-project-board.md @@ -1,6 +1,6 @@ --- title: 重新打开关闭的项目板 -intro: You can reopen a closed project board and restart any workflow automation that was configured for the project board. +intro: 您可以重新打开关闭的项目板,并重新启动为项目板配置的任何工作流程自动化。 redirect_from: - /github/managing-your-work-on-github/managing-project-boards/reopening-a-closed-project-board - /articles/reopening-a-closed-project-board diff --git a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/tracking-work-with-project-boards/archiving-cards-on-a-project-board.md b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/tracking-work-with-project-boards/archiving-cards-on-a-project-board.md index 41e857bcba00..7179c15166c3 100644 --- a/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/tracking-work-with-project-boards/archiving-cards-on-a-project-board.md +++ b/translations/zh-CN/content/issues/organizing-your-work-with-project-boards/tracking-work-with-project-boards/archiving-cards-on-a-project-board.md @@ -21,7 +21,7 @@ shortTitle: 存档内置卡 ## 存档项目板上的卡 -1. In a project board, find the card you want to archive, then click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}. ![用于编辑项目板卡的选项列表](/assets/images/help/projects/select-archiving-options-project-board-card.png) +1. 在项目板中,找到要存档的卡片,然后单击 {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}。 ![用于编辑项目板卡的选项列表](/assets/images/help/projects/select-archiving-options-project-board-card.png) 2. 单击 **Archive(存档)**。 ![从菜单中选择存档选项](/assets/images/help/projects/archive-project-board-card.png) ## 从侧栏恢复项目板中的卡 diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-issues.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-issues.md index 128be36203c2..0bdcdbafe91e 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-issues.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-issues.md @@ -49,7 +49,7 @@ topics: ## 比较议题和讨论 -Some conversations are more suitable for {% data variables.product.prodname_discussions %}. {% data reusables.discussions.you-can-use-discussions %} 有关何时使用议题或讨论的指导,请参阅“[在 GitHub 上沟通](/github/getting-started-with-github/quickstart/communicating-on-github)”。 +有些对话更适合 {% data variables.product.prodname_discussions %}。 {% data reusables.discussions.you-can-use-discussions %} 有关何时使用议题或讨论的指导,请参阅“[在 GitHub 上沟通](/github/getting-started-with-github/quickstart/communicating-on-github)”。 当某个议题中的对话更适合讨论时,您可以将议题转换为讨论。 {% endif %} diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-task-lists.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-task-lists.md index 08d8c0dc90b7..e723dcb5b87a 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-task-lists.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/about-task-lists.md @@ -53,7 +53,7 @@ topics: {% tip %} -**Tip:** You cannot create task list items within closed issues or issues with linked pull requests. +**提示:**您不能在已关闭的议题或链接的拉取请求中创建任务列表项目。 {% endtip %} @@ -76,5 +76,5 @@ topics: ## 延伸阅读 -* "[Basic writing and formatting syntax](/articles/basic-writing-and-formatting-syntax)"{% if code-scanning-task-lists %} -* "[Tracking {% data variables.product.prodname_code_scanning %} alerts in issues using task lists](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/tracking-code-scanning-alerts-in-issues-using-task-lists)"{% endif %} +* "[基本书写和格式语法](/articles/basic-writing-and-formatting-syntax)"{% if code-scanning-task-lists %} +* "[使用任务列表跟踪议题中的 {% data variables.product.prodname_code_scanning %} 警报](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/tracking-code-scanning-alerts-in-issues-using-task-lists)"{% endif %} diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/creating-an-issue.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/creating-an-issue.md index a47dfc1825e6..f5e886617056 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/creating-an-issue.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/creating-an-issue.md @@ -45,17 +45,17 @@ type: how_to {% data reusables.repositories.assign-an-issue-as-project-maintainer %} {% data reusables.repositories.submit-new-issue %} -## Creating an issue with {% data variables.product.prodname_cli %} +## 使用 {% data variables.product.prodname_cli %} 创建议题 -{% data reusables.cli.about-cli %} To learn more about {% data variables.product.prodname_cli %}, see "[About {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)." +{% data reusables.cli.about-cli %} 要了解 {% data variables.product.prodname_cli %} 的更多信息,请参阅“[关于 {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)”。 -To create an issue, use the `gh issue create` subcommand. To skip the interactive prompts, include the `--body` and the `--title` flags. +要创建议题,请使用 `gh issue create` 子命令。 若要跳过交互式提示,请包括 `--body` and the `--title` 标志。 ```shell gh issue create --title "My new issue" --body "Here are more details." ``` -You can also specify assignees, labels, milestones, and projects. +您还可以指定受理人、标签、里程碑和项目。 ```shell gh issue create --title "My new issue" --body "Here are more details." --assignee @me,monalisa --label "bug,help wanted" --project onboarding --milestone "learning codebase" @@ -83,7 +83,7 @@ gh issue create --title "My new issue" --body "Here are more details." --assigne {% data reusables.repositories.navigate-to-repo %} 1. 找到要在议题中引用的代码: - 要打开文件中代码相关的议题,请找到该文件。 - - 要打开拉取请求中代码相关的议题,请找到该拉取请求并单击 {% octicon "diff" aria-label="The file diff icon" %} **Files changed(文件已更改)**。 Then, browse to the file that contains the code you want included in your comment, and click **View**. + - 要打开拉取请求中代码相关的议题,请找到该拉取请求并单击 {% octicon "diff" aria-label="The file diff icon" %} **Files changed(文件已更改)**。 然后浏览到含有要包含在评论中的代码的文件,并单击 **View(查看)**。 {% data reusables.repositories.choose-line-or-range %} 4. 在代码范围左侧,单击 {% octicon "kebab-horizontal" aria-label="The horizontal kebab octicon" %}。 在下拉菜单中,单击 **Reference in new issue(新议题中的引用)**。 ![带有从所选行打开新议题的选项的烤肉串式菜单](/assets/images/help/repository/open-new-issue-specific-line.png) {% data reusables.repositories.type-issue-title-and-description %} @@ -92,15 +92,15 @@ gh issue create --title "My new issue" --body "Here are more details." --assigne {% ifversion fpt or ghec %} -## Creating an issue from discussion +## 从讨论创建议题 -People with triage permission to a repository can create an issue from a discussion. +对存储库具有分类权限的人员可以从讨论创建议题。 -When you create an issue from a discussion, the contents of the discussion post will be automatically included in the issue body, and any labels will be retained. Creating an issue from a discussion does not convert the discussion to an issue or delete the existing discussion. For more information about {% data variables.product.prodname_discussions %}, see "[About discussions](/discussions/collaborating-with-your-community-using-discussions/about-discussions)." +从讨论创建议题时,讨论帖子的内容将自动包含在议题正文中,并且将保留所有标签。 从讨论创建议题不会将讨论转换为议题或删除现有讨论。 有关 {% data variables.product.prodname_discussions %} 的更多信息,请参阅“[关于讨论](/discussions/collaborating-with-your-community-using-discussions/about-discussions)”。 {% data reusables.discussions.discussions-tab %} {% data reusables.discussions.click-discussion-in-list %} -1. In the right sidebar, click {% octicon "issue-opened" aria-label="The issues icon" %} **Create issue from discussion**. ![Button to create issue from discussion](/assets/images/help/discussions/create-issue-from-discussion.jpg) +1. 在右侧边栏中,单击 {% octicon "issue-opened" aria-label="The issues icon" %} **Create issue from discussion(从讨论创建议题)**。 ![用于从讨论创建议题的按钮](/assets/images/help/discussions/create-issue-from-discussion.jpg) {% data reusables.repositories.type-issue-title-and-description %} {% data reusables.repositories.assign-an-issue-as-project-maintainer %} {% data reusables.repositories.submit-new-issue %} @@ -144,10 +144,10 @@ When you create an issue from a discussion, the contents of the discussion post | `模板` | `https://github.com/octo-org/octo-repo/issues/new?template=issue_template.md` 使用模板在议题正文中创建议题。 `template` 查询参数支持仓库根目录 `docs/` 或 `.github/` 的 `ISSUE_TEMPLATE` 子目录中存储的模板。 更多信息请参阅“[使用模板鼓励有用的议题和拉取请求](/communities/using-templates-to-encourage-useful-issues-and-pull-requests)”。 | {% if code-scanning-task-lists %} -## Creating an issue from a {% data variables.product.prodname_code_scanning %} alert +## 从 {% data variables.product.prodname_code_scanning %} 警报创建议题 {% data reusables.code-scanning.beta-alert-tracking-in-issues %} -If you're using issues to track and prioritize your work, you can use issues to track {% data variables.product.prodname_code_scanning %} alerts. +如果您使用议题来跟踪工作并确定其优先级,则可以使用议题来跟踪 {% data variables.product.prodname_code_scanning %} 警报。 {% data reusables.code-scanning.alert-tracking-link %} {% endif %} diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/deleting-an-issue.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/deleting-an-issue.md index c2e679acba88..23260a5367fa 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/deleting-an-issue.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/deleting-an-issue.md @@ -17,7 +17,7 @@ topics: 仅可删除个人用户帐户拥有的仓库中的议题。 无法删除其他用户帐户拥有仓库中的议题,即使是该帐户的协作者也一样。 -如需删除组织拥有仓库中的议题,组织所有者必须启用删除组织仓库的议题,并且您必须拥有该仓库的管理员或所有者权限。 For more information, see "[Allowing people to delete issues in your organization](/articles/allowing-people-to-delete-issues-in-your-organization)" and "[Repository roles for an organization](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)." +如需删除组织拥有仓库中的议题,组织所有者必须启用删除组织仓库的议题,并且您必须拥有该仓库的管理员或所有者权限。 更多信息请参阅“[允许人员删除组织中的议题](/articles/allowing-people-to-delete-issues-in-your-organization)”和“[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)”。 删除议题时,协作者不会收到通知。 访问已删除议题的 URL 时,协作者会看到注明议题已删除的消息。 拥有仓库管理员或所有者权限的人员还将看到删除议题的人员的用户名和删除时间。 diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests.md index 75db2f14613f..ad62276d2499 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests.md @@ -1,6 +1,6 @@ --- -title: Filtering and searching issues and pull requests -intro: 'To find detailed information about a repository on {% data variables.product.product_name %}, you can filter, sort, and search issues and pull requests that are relevant to the repository.' +title: 筛选和搜索议题以及拉取请求 +intro: '要在 {% data variables.product.product_name %} 上查找有关仓库的详细信息,您可以过滤、排序和搜索与仓库相关的议题和拉取请求。' redirect_from: - /github/managing-your-work-on-github/finding-information-in-a-repository/filtering-issues-and-pull-requests-by-assignees - /articles/filtering-issues-and-pull-requests-by-assignees @@ -41,7 +41,7 @@ versions: topics: - Issues - Pull requests -shortTitle: Filter and search +shortTitle: 筛选和搜索 type: how_to --- @@ -67,7 +67,7 @@ type: how_to ## 按受理人过滤议题和拉取请求 -Once you've [assigned an issue or pull request to someone](/articles/assigning-issues-and-pull-requests-to-other-github-users), you can find items based on who's working on them. +将[议题或拉取请求分配给某人](/articles/assigning-issues-and-pull-requests-to-other-github-users)后,您可以根据处理这些项目的人来查找项。 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-issue-pr %} @@ -82,7 +82,7 @@ Once you've [assigned an issue or pull request to someone](/articles/assigning-i ## 按标签过滤议题和拉取请求 -Once you've [applied labels to an issue or pull request](/articles/applying-labels-to-issues-and-pull-requests), you can find items based on their labels. +将[标签应用于议题或拉取请求](/articles/applying-labels-to-issues-and-pull-requests)后,您可以根据项目的标签查找项。 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-issue-pr %} @@ -104,8 +104,8 @@ Once you've [applied labels to an issue or pull request](/articles/applying-labe - [需要审查](/github/administering-a-repository/about-protected-branches#require-pull-request-reviews-before-merging)后才能合并的拉取请求 - 审查者已批准的拉取请求 - 审查者要求更改的拉取请求 -- Pull requests that you have reviewed{% ifversion fpt or ghae-issue-5181 or ghes > 3.2 or ghec %} -- Pull requests that someone has asked you directly to review{% endif %} +- 您已审核的拉取请求{% ifversion fpt or ghae-issue-5181 or ghes > 3.2 or ghec %} +- 有人要求您直接审核的拉取请求{% endif %} - [有人要求您或您所属团队进行审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review)的拉取请求 {% data reusables.repositories.navigate-to-repo %} @@ -115,9 +115,9 @@ Once you've [applied labels to an issue or pull request](/articles/applying-labe ## 使用搜索过滤议题和拉取请求 -You can use advanced filters to search for issues and pull requests that meet specific criteria. +您可以使用高级筛选器来搜索符合特定条件的议题和拉取请求。 -### Searching for issues and pull requests +### 搜索议题和拉取请求 {% webui %} @@ -137,15 +137,15 @@ You can use advanced filters to search for issues and pull requests that meet sp {% data reusables.cli.cli-learn-more %} -You can use the {% data variables.product.prodname_cli %} to search for issues or pull requests. Use the `gh issue list` or `gh pr list` subcommand along with the `--search` argument and a search query. +您可以使用 {% data variables.product.prodname_cli %} 来搜索议题或拉取请求。 使用 `gh issue list` 或 `gh pr list` 子命令以及 `--search` 参数和搜索查询。 -For example, you can list, in order of date created, all issues that have no assignee and that have the label `help wanted` or `bug`. +例如,您可以按创建日期的顺序列出所有没有受理人且有标签 `help wanted` 或 `bug` 的议题。 ```shell gh issue list --search 'no:assignee label:"help wanted",bug sort:created-asc' ``` -You can also list all pull requests that mention the `octo-org/octo-team` team. +您还可以列出所有提及 `octo-org/octo-team` 团队的拉取请求。 ```shell gh pr list --search "team:octo-org/octo-team" @@ -153,7 +153,7 @@ gh pr list --search "team:octo-org/octo-team" {% endcli %} -### About search terms +### 关于搜索词 使用议题和拉取请求搜索词,您可以: @@ -166,9 +166,9 @@ gh pr list --search "team:octo-org/octo-team" {% ifversion fpt or ghes > 3.2 or ghae or ghec %} {% tip %} -**Tip:** You can filter issues and pull requests by label using logical OR or using logical AND. -- To filter issues using logical OR, use the comma syntax: `label:"bug","wip"`. -- To filter issues using logical AND, use separate label filters: `label:"bug" label:"wip"`. +**提示:** 您可以使用逻辑 OR 或使用逻辑 AND 按标签筛选问题和拉取请求。 +- 要使用逻辑 OR 筛选议题,请使用逗号语法:`label:"bug","wip"`。 +- 要使用逻辑 AND 筛选问题,请使用单独的标签筛选器:`label:"bug" label:"wip"`。 {% endtip %} {% endif %} @@ -186,8 +186,8 @@ gh pr list --search "team:octo-org/octo-team" - 过滤审查者已批准的拉取请求:`state:open type:pr review:approved` - 过滤审查者要求更改的拉取请求:`state:open type:pr review:changes_requested` - 按[审查者](/articles/about-pull-request-reviews/)过滤拉取请求:`state:open type:pr reviewed-by:octocat` -- Filter pull requests by the specific user [requested for review](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review): `state:open type:pr review-requested:octocat`{% ifversion fpt or ghae-issue-5181 or ghes > 3.2 or ghec %} -- Filter pull requests that someone has asked you directly to review: `state:open type:pr user-review-requested:@me`{% endif %} +- 按[请求审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review)的特定用户过滤拉取请求:`state:open type:pr review-requested:octocat`{% ifversion fpt or ghae-issue-5181 or ghes > 3.2 or ghec %} +- 过滤有人直接要求您审核的拉取请求:`state:open type:pr user-review-requested:@me`{% endif %} - 按申请审查的团队过滤拉取请求:`state:open type:pr team-review-requested:github/atom`{% ifversion fpt or ghes or ghae or ghec %} - 过滤链接到拉取请求可能关闭的议题的拉取请求:`linked:issue`{% endif %} @@ -226,4 +226,4 @@ gh pr list --search "team:octo-org/octo-team" ## 延伸阅读 -- "[Searching issues and pull requests](/articles/searching-issues)" +- "[搜索议题和拉取请求](/articles/searching-issues)" diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue.md index f32392f7b8bb..a4ae30170c54 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue.md @@ -47,7 +47,7 @@ shortTitle: 将 PR 链接到议题 * resolves * resolved -If you use a keyword to reference a pull request comment in another pull request, the pull requests will be linked. Merging the referencing pull request will also close the referenced pull request. +如果使用关键字在另一个拉取请求中引用拉取请求注释,则将链接拉取请求。 合并引用拉取请求也会关闭引用的拉取请求。 关闭关键词的语法取决于议题是否与拉取请求在同一仓库中。 diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/planning-and-tracking-work-for-your-team-or-project.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/planning-and-tracking-work-for-your-team-or-project.md index a886602b9c7b..89d1bea01c10 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/planning-and-tracking-work-for-your-team-or-project.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/planning-and-tracking-work-for-your-team-or-project.md @@ -85,7 +85,7 @@ topics: 更多信息请参阅“[创建标签](/issues/using-labels-and-milestones-to-track-work/managing-labels#creating-a-label)”。 -在仓库中创建标签后,您可以将其应用于仓库中的任何议题、拉取请求或讨论。 然后您可以通过标签过滤问题和拉取请求来查找所有相关的工作。 例如,过滤具有 `front-end` 和 `bug` 标签的议题,在项目中找到所有前端错误。 For more information, see "[Filtering and searching issues and pull requests](/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests)." +在仓库中创建标签后,您可以将其应用于仓库中的任何议题、拉取请求或讨论。 然后您可以通过标签过滤问题和拉取请求来查找所有相关的工作。 例如,过滤具有 `front-end` 和 `bug` 标签的议题,在项目中找到所有前端错误。 更多信息请参阅“[筛选和搜索问题以及拉取请求](/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests)”。 ### 标签示例 下面是我们创建并添加到议题的 `front-end` 标签示例。 @@ -93,13 +93,13 @@ topics: ## 添加议题到项目板 {% ifversion fpt or ghec %}您可以在 {% data variables.product.prodname_dotcom %}(目前在有限公测中)上使用项目,为您的团队规划和跟踪工作。 项目是一个可自定义的电子表格,集成您在 {% data variables.product.prodname_dotcom %} 上的议题和拉取请求,自动保持最新的 {% data variables.product.prodname_dotcom %} 信息。 您可以通过筛选、排序及分组议题和 PR 来自定义布局。 要开始项目,请参阅“[项目(测试版)快速入门](/issues/trying-out-the-new-projects-experience/quickstart)”。 ### 项目(测试版)示例 -Here is the table layout of an example project, populated with the Project Octocat issues we have created. +以下是一个示例项目的表布局,其中填充了我们创建的 Octocat 项目议题。 -![Projects (beta) table layout example](/assets/images/help/issues/quickstart-projects-table-view.png) +![项目(测试版)表布局示例](/assets/images/help/issues/quickstart-projects-table-view.png) 我们也可以将同一个项目视为一个板。 -![Projects (beta) board layout example](/assets/images/help/issues/quickstart-projects-board-view.png) +![项目(测试版)板布局示例](/assets/images/help/issues/quickstart-projects-board-view.png) {% endif %} diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/quickstart.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/quickstart.md index bd3262083d1e..3722139f64d6 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/quickstart.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/quickstart.md @@ -20,7 +20,7 @@ topics: ## 基本要求 -要创建议题,您需要一个仓库。 您可以使用您有写入权限的现有仓库,或者创建一个新的仓库。 {% data reusables.enterprise-accounts.emu-permission-repo %} The repository must have issues enabled. 关于创建仓库的更多信息,请参阅“[创建新仓库](/articles/creating-a-new-repository)”。 关于启用议题(如果它们在您的仓库中被禁用)的更多信息,请参阅“[禁用议题](/github/administering-a-repository/managing-repository-settings/disabling-issues)“。 +要创建议题,您需要一个仓库。 您可以使用您有写入权限的现有仓库,或者创建一个新的仓库。 {% data reusables.enterprise-accounts.emu-permission-repo %} 存储库必须启用议题。 关于创建仓库的更多信息,请参阅“[创建新仓库](/articles/creating-a-new-repository)”。 关于启用议题(如果它们在您的仓库中被禁用)的更多信息,请参阅“[禁用议题](/github/administering-a-repository/managing-repository-settings/disabling-issues)“。 ## 打开空白议题 diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/transferring-an-issue-to-another-repository.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/transferring-an-issue-to-another-repository.md index a19474e47228..a2594090cd15 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/transferring-an-issue-to-another-repository.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/transferring-an-issue-to-another-repository.md @@ -16,11 +16,11 @@ topics: shortTitle: 转移议题 --- -To transfer an open issue to another repository, you must have write access to the repository the issue is in and the repository you're transferring the issue to. 更多信息请参阅“[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)”。 +要将打开的议题转让给另一个仓库,必须对议题所在的仓库以及议题要转让到的仓库都有写入权限。 更多信息请参阅“[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)”。 您只能在同一用户或组织帐户拥有的仓库之间转让议题。 {% ifversion fpt or ghes or ghec %}你不能将议题从私有仓库转移到公共仓库。{% endif %} -转让议题时,评论和受理人将保留。 不会保留议题的标签和里程碑。 此议题将留在任何用户拥有或组织范围的项目板上,并从任何仓库项目板中删除。 更多信息请参阅“[关于项目板](/articles/about-project-boards)”。 +转让议题时,评论、标签和受理人将保留。 不会保留议题的里程碑。 此议题将留在任何用户拥有或组织范围的项目板上,并从任何仓库项目板中删除。 更多信息请参阅“[关于项目板](/articles/about-project-boards)”。 议题中提及的人员或团队将收到通知,告知他们该议题已转让给新仓库。 原来的 URL 会重定向到新议题的 URL。 在新仓库中没有读取权限的人员将看到一个横幅,告知他们该议题已转让给他们无法访问的新仓库。 @@ -41,7 +41,7 @@ To transfer an open issue to another repository, you must have write access to t {% data reusables.cli.cli-learn-more %} -To transfer an issue, use the `gh issue transfer` subcommand. Replace the `issue` parameter with the number or URL of the issue. Replace the `{% ifversion ghes %}hostname/{% endif %}owner/repo` parameter with the {% ifversion ghes %}URL{% else %}name{% endif %} of the repository that you want to transfer the issue to, such as `{% ifversion ghes %}https://ghe.io/{% endif %}octocat/octo-repo`. +要转移议题,请使用 `gh issue transfer` 子命令。 将 `issue` 参数替换为议题的编号或 URL。 将 `{% ifversion ghes %}hostname/{% endif %}owner/repo` 参数替换为议题要转移到的仓库的 {% ifversion ghes %}URL{% else %}名称{% endif %},例如 `{% ifversion ghes %}https://ghe.io/{% endif %}octocat/octo-repo`。 ```shell gh issue transfer issue {% ifversion ghes %}hostname/{% endif %}owner/repo diff --git a/translations/zh-CN/content/issues/tracking-your-work-with-issues/viewing-all-of-your-issues-and-pull-requests.md b/translations/zh-CN/content/issues/tracking-your-work-with-issues/viewing-all-of-your-issues-and-pull-requests.md index ebdea943ad1f..c678256c836c 100644 --- a/translations/zh-CN/content/issues/tracking-your-work-with-issues/viewing-all-of-your-issues-and-pull-requests.md +++ b/translations/zh-CN/content/issues/tracking-your-work-with-issues/viewing-all-of-your-issues-and-pull-requests.md @@ -25,4 +25,4 @@ type: how_to ## 延伸阅读 -- {% ifversion fpt or ghes or ghae or ghec %}"[Viewing your subscriptions](/github/managing-subscriptions-and-notifications-on-github/viewing-your-subscriptions#reviewing-repositories-that-youre-watching){% else %}"[Listing the repositories you're watching](/github/receiving-notifications-about-activity-on-github/listing-the-repositories-youre-watching){% endif %}" +- {% ifversion fpt or ghes or ghae or ghec %}”[查看您的订阅](/github/managing-subscriptions-and-notifications-on-github/viewing-your-subscriptions#reviewing-repositories-that-youre-watching){% else %}”[列出您关注的仓库](/github/receiving-notifications-about-activity-on-github/listing-the-repositories-youre-watching){% endif %}" diff --git a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/about-projects.md b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/about-projects.md index 8c68ab2c4b1c..5c5ebf74cf3a 100644 --- a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/about-projects.md +++ b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/about-projects.md @@ -29,7 +29,7 @@ topics: - 跟踪任务复杂性的数字字段 - 跟踪任务是低、中还是高优先级的单个选择字段 - 添加快速说明的文本字段 -- an iteration field to plan work week-by-week +- 用于每周规划工作的迭代字段 ### 从不同的角度查看您的项目 @@ -47,13 +47,13 @@ topics: 更多信息请参阅“[自定义项目视图](/issues/trying-out-the-new-projects-experience/customizing-your-project-views)”。 -### Working with the project command palette +### 使用项目命令面板 -You can use the project command palette to quickly change views or add fields. 命令板会引导您,这样您便无需记住自定义键盘快捷键。 更多信息请参阅“[自定义项目视图](/issues/trying-out-the-new-projects-experience/customizing-your-project-views)”。 +您可以使用项目命令板快速更改视图或添加字段。 命令板会引导您,这样您便无需记住自定义键盘快捷键。 更多信息请参阅“[自定义项目视图](/issues/trying-out-the-new-projects-experience/customizing-your-project-views)”。 ### 自动化项目管理任务 -Projects (beta) offers built-in workflows. For example, when an issue is closed, you can automatically set the status to "Done." You can also use the GraphQL API and {% data variables.product.prodname_actions %} to automate routine project management tasks. For more information, see "[Automating projects](/issues/trying-out-the-new-projects-experience/automating-projects)" and "[Using the API to manage projects](/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects)." +项目(测试版)提供内置工作流程。 例如,当议题关闭时,您可以自动将状态设置为“完成”。 您也可以使用 GraphQL API 和 {% data variables.product.prodname_actions %} 自动化常规项目管理任务。 更多信息请参阅“[自动化项目](/issues/trying-out-the-new-projects-experience/automating-projects)”和“[使用 API 管理项目](/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects)”。 ## 比较项目(测试版)与非测试版项目 diff --git a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/automating-projects.md b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/automating-projects.md index 19c7a6f51c0c..02ff3de08ccf 100644 --- a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/automating-projects.md +++ b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/automating-projects.md @@ -1,6 +1,6 @@ --- title: 自动化项目(测试版) -intro: 'You can use built-in workflows or the API and {% data variables.product.prodname_actions %} to manage your projects.' +intro: '您可以使用内置工作流程或 API 和 {% data variables.product.prodname_actions %} 来管理项目。' allowTitleToDifferFromFilename: true miniTocMaxHeadingLevel: 3 versions: @@ -17,23 +17,23 @@ topics: ## 简介 -You can add automation to help manage your project. Projects (beta) includes built-in workflows that you can configure through the UI. Additionally, you can write custom workflows with the GraphQL API and {% data variables.product.prodname_actions %}. +您可以添加自动化来帮助管理项目。 项目(测试版)包括可通过 UI 配置的内置工作流程。 此外,您可以使用 GraphQL API 和 {% data variables.product.prodname_actions %} 编写自定义工作流程。 -## Built-in workflows +## 内置工作流程 {% data reusables.projects.about-workflows %} -You can enable or disable the built-in workflows for your project. +您可以为项目启用或禁用内置工作流程。 {% data reusables.projects.enable-basic-workflow %} -## {% data variables.product.prodname_actions %} workflows +## {% data variables.product.prodname_actions %} 工作流程 -This section demonstrates how to use the GraphQL API and {% data variables.product.prodname_actions %} to add a pull request to an organization project. In the example workflows, when the pull request is marked as "ready for review", a new task is added to the project with a "Status" field set to "Todo", and the current date is added to a custom "Date posted" field. +本节说明如何使用 GraphQL API 和 {% data variables.product.prodname_actions %} 向组织项目添加拉取请求。 在示例工作流程中,当拉取请求标记为“准备审核”时,项目中会添加一项“状态”字段设置为“待办”的新任务,并且当前日期添加到自定义的“发布日期”字段中。 -You can copy one of the workflows below and modify it as described in the table below to meet your needs. +您可以复制以下工作流程之一,并按照下表中的说明对其进行修改,以满足您的需求。 -项目可以跨越多个仓库,但工作流是特定于仓库的。 Add the workflow to each repository that you want your project to track. 有关创建工作流程文件的更多信息,请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。 +项目可以跨越多个仓库,但工作流是特定于仓库的。 将工作流程添加到您希望项目跟踪的每个仓库。 有关创建工作流程文件的更多信息,请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。 本文假设您基本了解 {% data variables.product.prodname_actions %}。 有关 {% data variables.product.prodname_actions %} 的更多信息,请参阅“[{% data variables.product.prodname_actions %}](/actions)”。 @@ -41,25 +41,25 @@ You can copy one of the workflows below and modify it as described in the table {% note %} -**Note:** `GITHUB_TOKEN` is scoped to the repository level and cannot access projects (beta). To access projects (beta) you can either create a {% data variables.product.prodname_github_app %} (recommended for organization projects) or a personal access token (recommended for user projects). Workflow examples for both approaches are shown below. +**注意:** `GITHUB_TOKEN` 的范围限定为存储库级别,无法访问项目(测试版)。 要访问项目(测试版),可以创建 {% data variables.product.prodname_github_app %} (建议用于组织项目)或个人访问令牌(建议用于用户项目)。 下面显示了这两种方法的工作流程示例。 {% endnote %} -### Example workflow authenticating with a {% data variables.product.prodname_github_app %} +### 使用 {% data variables.product.prodname_github_app %} 进行身份验证的示例工作流程 -1. Create a {% data variables.product.prodname_github_app %} or choose an existing {% data variables.product.prodname_github_app %} owned by your organization. For more information, see "[Creating a {% data variables.product.prodname_github_app %}](/developers/apps/building-github-apps/creating-a-github-app)." -2. Give your {% data variables.product.prodname_github_app %} read and write permissions to organization projects. For more information, see "[Editing a {% data variables.product.prodname_github_app %}'s permissions](/developers/apps/managing-github-apps/editing-a-github-apps-permissions)." +1. 创建 {% data variables.product.prodname_github_app %} 或选择组织拥有的现有 {% data variables.product.prodname_github_app %}。 更多信息请参阅“[创建 {% data variables.product.prodname_github_app %}](/developers/apps/building-github-apps/creating-a-github-app)”。 +2. 授予 {% data variables.product.prodname_github_app %} 对组织项目的读取和写入权限。 更多信息请参阅“[编辑 {% data variables.product.prodname_github_app %} 的权限](/developers/apps/managing-github-apps/editing-a-github-apps-permissions)”。 {% note %} - **Note:** You can control your app's permission to organization projects and to repository projects. You must give permission to read and write organization projects; permission to read and write repository projects will not be sufficient. + **注意:** 您可以控制应用程序对组织项目和存储库项目的权限。 您必须授予读取和写入组织项目的权限;读取和写入存储库项目的权限是不够的。 {% endnote %} -3. Install the {% data variables.product.prodname_github_app %} in your organization. Install it for all repositories that your project needs to access. For more information, see "[Installing {% data variables.product.prodname_github_apps %}](/developers/apps/managing-github-apps/installing-github-apps#installing-your-private-github-app-on-your-repository)." -4. Store your {% data variables.product.prodname_github_app %}'s ID as a secret in your repository or organization. In the following workflow, replace `APP_ID` with the name of the secret. You can find your app ID on the settings page for your app or through the App API. For more information, see "[Apps](/rest/reference/apps#get-an-app)." -5. Generate a private key for your app. Store the contents of the resulting file as a secret in your repository or organization. (Store the entire contents of the file, including `-----BEGIN RSA PRIVATE KEY-----` and `-----END RSA PRIVATE KEY-----`.) In the following workflow, replace `APP_PEM` with the name of the secret. For more information, see "[Authenticating with {% data variables.product.prodname_github_apps %}](/developers/apps/building-github-apps/authenticating-with-github-apps#generating-a-private-key)." -6. In the following workflow, replace `YOUR_ORGANIZATION` with the name of your organization. 例如 `octo-org`。 Replace `YOUR_PROJECT_NUMBER` with your project number. 要查找项目编号,请查看项目 URL。 例如,`https://github.com/orgs/octo-org/projects/5` 有一个编号为 5 的项目。 +3. 在组织中安装 {% data variables.product.prodname_github_app %}。 为项目需要访问的所有存储库安装它。 更多信息请参阅“[安装 {% data variables.product.prodname_github_apps %}](/developers/apps/managing-github-apps/installing-github-apps#installing-your-private-github-app-on-your-repository)。” +4. 将 {% data variables.product.prodname_github_app %} 的 ID 作为机密存储在存储库或组织中。 在以下工作流程中,将 `APP_ID` 替换为密钥的名称。 您可以在应用的设置页面上或通过应用 API 找到应用 ID。 更多信息请参阅“[应用程序](/rest/reference/apps#get-an-app)”。 +5. 为应用生成私钥。 将生成的文件的内容作为机密存储在存储库或组织中。 (存储文件的全部内容,包括 `-----BEGIN RSA PRIVATE KEY-----` 和 `-----END RSA PRIVATE KEY-----`)。 在以下工作流程中,将 `APP_PEM` 替换为密钥的名称。 更多信息请参阅“[向 {% data variables.product.prodname_github_apps %} 验证](/developers/apps/building-github-apps/authenticating-with-github-apps#generating-a-private-key)”。 +6. 在以下工作流程中,将 `YOUR_ORGANIZATION` 替换为组织的名称。 例如 `octo-org`。 将 `YOUR_PROJECT_NUMBER` 替换为您的项目编号。 要查找项目编号,请查看项目 URL。 例如,`https://github.com/orgs/octo-org/projects/5` 有一个编号为 5 的项目。 ```yaml{:copy} {% data reusables.actions.actions-not-certified-by-github-comment %} @@ -162,11 +162,11 @@ jobs: }' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value={% raw %}${{ env.TODO_OPTION_ID }}{% endraw %} -f date_field=$DATE_FIELD_ID -f date_value=$DATE --silent ``` -### Example workflow authenticating with a personal access token +### 使用个人访问令牌进行身份验证的示例工作流程 -1. Create a personal access token with `org:write` scope. 更多信息请参阅“[创建个人访问令牌](/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)”。 -2. Save the personal access token as a secret in your repository or organization. -3. 在以下工作流程中,将 `YOUR_TOKEN` 替换为密码名称。 Replace `YOUR_ORGANIZATION` with the name of your organization. 例如 `octo-org`。 Replace `YOUR_PROJECT_NUMBER` with your project number. 要查找项目编号,请查看项目 URL。 例如,`https://github.com/orgs/octo-org/projects/5` 有一个编号为 5 的项目。 +1. 使用 `org:write` 范围创建个人访问令牌。 更多信息请参阅“[创建个人访问令牌](/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)”。 +2. 将个人访问令牌另存为存储库或组织中的机密。 +3. 在以下工作流程中,将 `YOUR_TOKEN` 替换为密码名称。 将 `YOUR_ORGANIZATION` 替换为您的组织名称。 例如 `octo-org`。 将 `YOUR_PROJECT_NUMBER` 替换为您的项目编号。 要查找项目编号,请查看项目 URL。 例如,`https://github.com/orgs/octo-org/projects/5` 有一个编号为 5 的项目。 ```yaml{:copy} name: Add PR to project @@ -261,9 +261,9 @@ jobs: ``` -### Workflow explanation +### 工作流程说明 -The following table explains sections of the example workflows and shows you how to adapt the workflows for your own use. +下表说明了示例工作流程的各个部分,并向您展示了如何调整工作流程以供自己使用。 @@ -299,13 +299,13 @@ on: @@ -335,7 +335,7 @@ env: 为此步骤设置环境变量。

-If you are using a personal access token, replace YOUR_TOKEN with the name of the secret that contains your personal access token. +如果使用的是个人访问令牌,请将 YOUR_TOKEN 替换为包含个人访问令牌的机密的名称。

YOUR_ORGANIZATION 替换为组织名称。 例如 octo-org。 diff --git a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/best-practices-for-managing-projects.md b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/best-practices-for-managing-projects.md index 71655dc73ce3..34b798f1b357 100644 --- a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/best-practices-for-managing-projects.md +++ b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/best-practices-for-managing-projects.md @@ -27,19 +27,19 @@ topics: 议题和拉取请求包括内置功能,让您轻松地与协作者沟通。 使用@提及提醒个人或整个团队注意评论。 指派议题协作者负责沟通。 链接到相关的议题或拉取请求以沟通它们是如何连接的。 -## Make use of the description and README +## 使用描述和 README -Use your project's description and README to share information about the project. +使用您的项目描述和 README 来分享有关该项目的信息。 例如: -- Explaining the purpose of the project. -- Describing the project views and how to use them. -- Including relevant links and people to contact for more information. +- 解释项目的目的。 +- 描述项目视图及其使用方法。 +- 包括相关链接和要联系的人员以获取更多信息。 -Project READMEs support Markdown which allows you to use images and advanced formatting such as links, lists, and headers. +项目 README 支持 Markdown,它允许您使用图像和高级格式,如链接、列表和标题。 -For more information, see "[Creating a project (beta)](/issues/trying-out-the-new-projects-experience/creating-a-project#updating-your-project-description-and-readme)." +更多信息请参阅“[创建项目(测试版)](/issues/trying-out-the-new-projects-experience/creating-a-project#updating-your-project-description-and-readme)”。 ## 使用视图 @@ -48,7 +48,7 @@ For more information, see "[Creating a project (beta)](/issues/trying-out-the-ne 例如: - 按状态过滤以查看所有未启动的项 -- Group by a custom priority field to monitor the volume of high priority items +- 按自定义优先级字段分组以监控高优先级项目的数量 - 按自定义日期字段排序,以查看具有最早目标运输日期的物品 更多信息请参阅“[自定义项目视图](/issues/trying-out-the-new-projects-experience/customizing-your-project-views)”。 @@ -61,22 +61,22 @@ For more information, see "[Creating a project (beta)](/issues/trying-out-the-ne ## 使用自动化 -You can automate tasks to spend less time on busy work and more time on the project itself. 需要手动操作的越少,项目就越有可能保持最新状态。 +您可以自动执行任务,以减少您在繁琐工作上花费的时间,将更多的时间用于项目本身。 需要手动操作的越少,项目就越有可能保持最新状态。 -Projects (beta) offers built-in workflows. For example, when an issue is closed, you can automatically set the status to "Done." +项目(测试版)提供内置工作流程。 例如,当议题关闭时,您可以自动将状态设置为“完成”。 -Additionally, {% data variables.product.prodname_actions %} and the GraphQL API enable you to automate routine project management tasks. For example, to keep track of pull requests awaiting review, you can create a workflow that adds a pull request to a project and sets the status to "needs review"; this process can be automatically triggered when a pull request is marked as "ready for review." +此外,{% data variables.product.prodname_actions %} 和 GraphQL API 还可让您实现例行项目管理任务自动化。 例如,要跟踪等待审查的拉取请求,您可以创建一个工作流程,将拉取请求添加到项目并将状态设置为“需要审核”;当拉取请求标记为“准备审核”时,可以自动触发此过程。 - 有关示例工作流程,请参阅“[自动化项目](/issues/trying-out-the-new-projects-experience/automating-projects)”。 - 有关 API 的更多信息,请参阅“[使用 API 管理项目](/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects)”。 - 有关 {% data variables.product.prodname_actions %} 的更多信息,请参阅[“{% data variables.product.prodname_actions %}](/actions)”。 -## Use different field types +## 使用不同的字段类型 -Take advantage of the various field types to meet your needs. +利用各种字段类型来满足您的需求。 -Use an iteration field to schedule work or create a timeline. You can group by iteration to see if items are balanced between iterations, or you can filter to focus on a single iteration. Iteration fields also let you view work that you completed in past iterations, which can help with velocity planning and reflecting on your team's accomplishments. +使用迭代字段可以安排工作或创建日程表。 您可以按迭代进行分组以查看项目在迭代之间是否平衡,也可以进行筛选以专注于单个迭代。 迭代字段还允许您查看在过去迭代中完成的工作,这有助于快速规划和反映团队的成就。 -Use a single select field to track information about a task based on a preset list of values. For example, track priority or project phase. Since the values are selected from a preset list, you can easily group or filter to focus on items with a specific value. +使用单选字段可以根据预设的值列表跟踪有关任务的信息。 例如,跟踪优先级或项目阶段。 由于这些值是从预设列表中选择的,因此您可以轻松地对值进行分组或筛选,以将焦点放在具有特定值的项目上。 -For more information about the different field types, see "[Creating a project (beta)](/issues/trying-out-the-new-projects-experience/creating-a-project#adding-custom-fields)." +有关不同字段类型的详细信息,请参阅“[创建项目(测试版)](/issues/trying-out-the-new-projects-experience/creating-a-project#adding-custom-fields)。 diff --git a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/creating-a-project.md b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/creating-a-project.md index 1ab30e4b91dd..887dcce2d18d 100644 --- a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/creating-a-project.md +++ b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/creating-a-project.md @@ -17,15 +17,15 @@ topics: ## 创建项目 -### Creating an organization project +### 创建组织项目 {% data reusables.projects.create-project %} -### Creating a user project +### 创建用户项目 {% data reusables.projects.create-user-project %} -## Updating your project description and README +## 更新项目描述和 README {% data reusables.projects.project-description %} @@ -39,13 +39,13 @@ topics: 1. 将光标放在项目底部一行,{% octicon "plus" aria-label="plus icon" %} 的旁边。 1. 输入您的想法,然后按 **Enter**。 -1. To add body text, click on the title of the draft issue. In the markdown input box that appears, enter the text for the draft issue body, then click **Save**. +1. 要添加正文文本,请单击草稿议题的标题。 在出现的 Markdown 输入框中,输入草稿正文的文本,然后单击 **Save(保存)**。 -Draft issues can have a title, text body, assignees, and any custom fields from your project. In order to populate the repository, labels, or milestones for a draft issue, you must first convert the draft issue to an issue. For more information, see "[Converting draft issues to issues](#converting-draft-issues-to-issues)." +草稿议题可以具有标题、文本正文、受理人以及项目中的任何自定义字段。 为了填充草稿议题的存储库、标签或里程碑,必须首先将草稿问题转换为议题。 更多信息请参阅“[将草稿议题转换为议题](#converting-draft-issues-to-issues)”。 {% note %} -**Note**: Users will not receive notifications when they are assigned to or mentioned in a draft issue unless the draft issue is converted to an issue. +**注意**:用户在草稿议题中被分配或提及时不会收到通知,除非草稿议题已转换为议题。 {% endnote %} @@ -59,7 +59,7 @@ Draft issues can have a title, text body, assignees, and any custom fields from #### 搜索议题或拉取请求 1. 将光标放在项目底部一行,{% octicon "plus" aria-label="plus icon" %} 的旁边。 -2. Enter #. +2. 输入 #。 3. 选择拉取请求或议题所在的仓库。 您可以输入仓库名称的一部分来缩小选项范围。 4. 选择议题或拉取请求。 您可以键入标题的一部分以缩小选项范围。 @@ -72,37 +72,37 @@ Draft issues can have a title, text body, assignees, and any custom fields from ![项目侧边栏](/assets/images/help/issues/project_side_bar.png) -## Converting draft issues to issues +## 将草稿议题转换为议题 -In table layout: +在表格布局中: -1. Click the {% octicon "triangle-down" aria-label="the item menu" %} on the draft issue that you want to convert. -2. Select **Convert to issue**. -3. Select the repository that you want to add the issue to. -4. Alternatively, edit the `labels`, `milestone`, or `repository` fields of the draft issue that you want to convert. +1. 在要转换的草稿议题上单击 {% octicon "triangle-down" aria-label="the item menu" %}。 +2. 选择 **Convert to issue(转换为议题)**。 +3. 选择要将议题添加到的存储库。 +4. 或者,编辑要转换的草稿议题的 `labels`、`milestone` 或 `repository` 字段。 -In board layout: +在板布局中: -1. Click the {% octicon "kebab-horizontal" aria-label="the item menu" %} on the draft issue that you want to convert. -2. Select **Convert to issue**. -3. Select the repository that you want to add the issue to. +1. 在要转换的草稿议题上单击 {% octicon "kebab-horizontal" aria-label="the item menu" %}。 +2. 选择 **Convert to issue(转换为议题)**。 +3. 选择要将议题添加到的存储库。 -## Removing items from your project +## 从项目中删除项 -You can archive an item to keep the context about the item in the project but remove it from the project views. You can delete an item to remove it from the project entirely. +您可以对项存档以保留项目中有关该项的上下文,但将其从项目视图中移除。 您可以删除某个项以将其从项目中完全移除。 -1. Select the item(s) to archive or delete. To select multiple items, do one of the following: - - Command+Click (Mac) or Ctrl+Click (Windows/Linux) each item. - - Select an item then Shift+ or Shift+ to select additional items above or below the initially selected item. - - Select an item then Shift+Click another item to select all items between the two items. - - Enter Command+A (Mac) or Ctrl+A (Windows/Linux) to select all items in a column in a board layout or all items in a table layout. -2. To archive all selected items, enter E. To delete all selected items, enter Del. Alternatively, select the {% octicon "triangle-down" aria-label="the item menu" %} (in table layout) or the {% octicon "kebab-horizontal" aria-label="the item menu" %} (in board layout), then select the desired action. +1. 选择要存档或删除的项。 要选择多个项,请执行下列操作之一: + - Command+点击 (Mac) 或 Ctrl+点击 (Windows/Linux) 每个项。 + - 选择一个项,然后按 Shift+Shift+ 以选择最初所选项上方或下方的其他项。 + - 选择一个项,然后 Shift+点击另一个项以选择两个项之间的所有项。 + - 输入 Command+A (Mac) 或 Ctrl+A (Windows/Linux) 以选择板布局中列中的所有项或表格布局中的所有项。 +2. 要存档所有选定项,请输入 E。 要删除所有选定项,请输入 Del。 或者,选择 {% octicon "triangle-down" aria-label="the item menu" %}(在表格布局中)或 {% octicon "kebab-horizontal" aria-label="the item menu" %} (在板布局中),然后选择所需的操作。 -You can restore archived items but not deleted items. For more information, see [Restoring archived items](#restoring-archived-items). +您可以恢复已存档的项,但不能恢复已删除的项。 更多信息请参阅“[恢复存档的项](#restoring-archived-items)”。 -## Restoring archived items +## 恢复存档的项 -To restore an archived item, navigate to the issue or pull request. In the project side bar on the issue or pull request, click **Restore** for the project that you want to restore the item to. Draft issues cannot be restored. +要恢复存档的项,请导航到议题或拉取请求。 在议题或拉取请求的项目侧栏中,对要将项还原到的项目单击 **Restore(恢复)**。 草稿议题无法恢复。 ## 添加字段 @@ -110,7 +110,7 @@ To restore an archived item, navigate to the issue or pull request. In the proje ### 显示现有字段 -Your project tracks up-to-date information about issues and pull requests, including any changes to the title, assignees, labels, milestones, repository, reviewers, and linked pull requests. 当项目初始化时,会显示“标题”和“受理人”;其他字段隐藏。 您可以更改项目中这些字段的可见性。 +您的项目跟踪有关议题和拉取请求的最新信息,包括对标题、受理人、标签、里程碑、存储库、审阅者和链接的拉取请求所做的任何更改。 当项目初始化时,会显示“标题”和“受理人”;其他字段隐藏。 您可以更改项目中这些字段的可见性。 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "show"。 @@ -125,50 +125,50 @@ Your project tracks up-to-date information about issues and pull requests, inclu 您可以添加自定义字段到项目。 自定义字段将显示在项目中议题和拉取请求的侧栏。 -Custom fields can be text, number, date, single select, or iteration: +自定义字段可以是文本、数字、日期、单选或迭代: -- Text: The value can be any text. -- Number: The value must be a number. -- Date: The value must be a date. -- Single select: The value must be selected from a set of specified values. -- Iteration: The value must be selected from a set of date ranges (iterations). Iterations in the past are automatically marked as "completed", and the iteration covering the current date range is marked as "current". +- 文本:值可以是任何文本。 +- 数字:值必须是数字。 +- 日期:值必须是日期。 +- 单选:必须从一组指定的值中选择值。 +- 迭代:必须从一组日期范围(迭代)中选择值。 过去的迭代将自动标记为“已完成”,覆盖当前日期范围的迭代将标记为“当前”。 1. {% data reusables.projects.open-command-palette %} 开始输入 "Create new field" 的任何部分。 当 "Create new field" 显示在命令板中时,选择它。 2. 或者,单击最右侧字段标题中的 {% octicon "plus" aria-label="the plus icon" %} 。 将显示带有项目字段的下拉菜单。 单击 **New field(新建字段)**。 3. 将显示一个弹出窗口,供您输入有关新字段的信息。 ![新建字段](/assets/images/help/issues/projects_new_field.png) 4. 在文本框中,输入新字段的名称。 5. 选择下拉菜单并点击所需的类型。 -6. If you specified **Single select** as the type, enter the options. -7. If you specified **Iteration** as the type, enter the start date of the first iteration and the duration of the iteration. Three iterations are automatically created, and you can add additional iterations on the project's settings page. +6. 如果您指定**单选**为类型,请输入选项。 +7. 如果指定**迭代**为类型,请输入第一个迭代的开始日期和迭代的持续时间。 将自动创建三个迭代,您可以在项目的设置页上添加其他迭代。 -You can later edit the drop down options for single select and iteration fields. +您可以稍后编辑单选和迭代字段的下拉选项。 {% data reusables.projects.project-settings %} -1. Under **Fields**, select the field that you want to edit. -1. For single select fields, you can add, delete, or reorder the options. -2. For iteration fields, you can add or delete iterations, change iteration names, and change the start date and duration of the iteration. +1. 在 **Fields(字段)**下,选择要编辑的字段。 +1. 对于单选字段,您可以添加、删除或重新排序选项。 +2. 对于迭代字段,您可以添加或删除迭代、更改迭代名称以及更改迭代的开始日期和持续时间。 -## Customizing your views +## 自定义视图 您可以将项目视为表格或板、按字段对项分组、筛选项,等等。 更多信息请参阅“[自定义项目(测试版)视图](/issues/trying-out-the-new-projects-experience/customizing-your-project-views)”。 -## Configuring built-in automation +## 配置内置自动化 {% data reusables.projects.about-workflows %} -You can enable or disable the built-in workflows for your project. +您可以为项目启用或禁用内置工作流程。 {% data reusables.projects.enable-basic-workflow %} -## Adding your project to a repository +## 将项目添加到存储库 -You can list relevant projects in a repository. You can only list projects that are owned by the same user or organization that owns the repository. +您可以在存储库中列出相关项目。 您只能列出由拥有存储库的同一用户或组织拥有的项目。 -In order for repository members to see a project listed in a repository, they must have visibility for the project. For more information, see "[Managing the visibility of your projects (beta)](/issues/trying-out-the-new-projects-experience/managing-the-visibility-of-your-projects)" and "[Managing access to projects (beta)](/issues/trying-out-the-new-projects-experience/managing-access-to-projects)." +为了使存储库成员能够看到存储库中列出的项目,他们必须具有项目的可见性。 更多信息请参阅“[管理项目(测试版)的可见性](/issues/trying-out-the-new-projects-experience/managing-the-visibility-of-your-projects)”和“[管理对项目(测试版)的访问](/issues/trying-out-the-new-projects-experience/managing-access-to-projects)”。 -1. On {% data variables.product.prodname_dotcom %}, navigate to the main page of your repository. +1. 在 {% data variables.product.prodname_dotcom %} 上,导航到仓库的主页面。 1. 单击 {% octicon "table" aria-label="the project icon" %} **Projects(项目)**。 -1. Click **Projects (Beta)** in the side bar. -1. Click **Add project**. -1. In the search bar that appears, search for projects that are owned by the same user or organization that owns the repository. -1. Click on a project to list it in your repository. +1. 单击侧栏中的**项目(测试版)**。 +1. 单击 **Add project(添加项目)**。 +1. 在显示的搜索栏中,搜索由拥有存储库的同一用户或组织拥有的项目。 +1. 单击某个项目以将其列在您的存储库中。 diff --git a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/customizing-your-project-views.md b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/customizing-your-project-views.md index 6e99134b6b40..e6cf5b76161c 100644 --- a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/customizing-your-project-views.md +++ b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/customizing-your-project-views.md @@ -12,66 +12,66 @@ topics: {% data reusables.projects.projects-beta %} -## Project command palette +## 项目命令面板 -Use the project command palette to quickly change settings and run commands in your project. +使用项目命令面板快速更改项目中的设置并运行命令。 1. {% data reusables.projects.open-command-palette %} 2. 开始键入命令的任何部分或浏览命令面板窗口以查找命令。 更多命令示例请参阅下面的章节。 -## Changing the project layout +## 更改项目布局 您可以将项目视为表或板。 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "Switch layout"。 -3. Choose the required command. For example, **Switch layout: Table**. +3. 选择所需的命令。 例如 **Switch layout: Table**。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to a view name and click **Table** or **Board**. +或者,单击视图名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %} ,然后单击 **Table(表)**或 **Board(板)**。 -## Showing and hiding fields +## 显示和隐藏字段 -You can show or hide a specific field. +您可以显示或隐藏特定字段。 -### Showing and hiding fields in table layout +### 在表格布局中显示和隐藏字段 1. {% data reusables.projects.open-command-palette %} 2. 开始键入要执行的操作("show" 或 "hide")或字段名称。 -3. Choose the required command. For example, **Show: Milestone**. +3. 选择所需的命令。 例如 **Show: Milestone**。 或者,单击表格右侧的 {% octicon "plus" aria-label="the plus icon" %}。 在显示的下拉菜单中,指示要显示或隐藏哪些字段。 {% octicon "check" aria-label="check icon" %} 指示显示哪些字段。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to the field name and click **Hide field**. +或者,单击字段名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %} ,然后单击 **Hide field(隐藏字段)**。 -### Showing and hiding fields in board layout +### 在板布局中显示和隐藏字段 -1. Click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to the view name. -2. Under **configuration**, click {% octicon "list-unordered" aria-label="the unordered list icon" %}. -3. In the menu that's displayed, select fields to add them and deselect fields to remove them from the view. +1. 单击视图名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %}。 +2. 在 **configuration(配置)**下,单击 {% octicon "list-unordered" aria-label="the unordered list icon" %}。 +3. 在显示的菜单中,选择字段可添加它们,取消选择字段则将其从视图中移除。 -## Reordering fields +## 对字段重新排序 您可以更改字段的顺序。 1. 单击字段标题。 -2. While clicking, drag the field to the required location. +2. 点击时,将字段拖到所需位置。 -## Reordering rows +## 对行重新排序 在表布局中,您可以更改行的顺序。 1. 点击行开头的数字。 -2. While clicking, drag the row to the required location. +2. 点击时,将行拖到所需位置。 -## Sorting by field values +## 按字段值排序 在表布局中,您可以按字段值排序项。 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "Sort by" 或您想要排序的字段的名称。 -3. Choose the required command. For example, **Sort by: Assignees, asc**. +3. 选择所需的命令。 例如 **Sort by: Assignees, asc**。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to the field name that you want to sort by and click **Sort ascending** or **Sort descending**. +或者,单击您要排序的字段名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %},然后单击 **Sort ascending(升序排序)**或 **Sort descending(降序排序)**。 {% note %} @@ -83,123 +83,123 @@ Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "Remove sort-by"。 -3. Choose **Remove sort-by**. +3. 选择 **Remove sort-by(删除排序依据)**。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to the view name and click the menu item that indicates the current sort. +或者,单击视图名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %} ,然后单击指示当前排序的菜单项。 -## Grouping by field values in table layout +## 在表布局中按字段值分组 -In the table layout, you can group items by a custom field value. 对项分组时,如果将项拖动到新组,则应用该组的值。 For example, if you group by "Status" and then drag an item with a status of `In progress` to the `Done` group, the status of the item will switch to `Done`. Similarly, when you add a new item to a group, the new item is populated with the value of the group. +在表布局中,您可以按自定义字段值排序组项。 对项分组时,如果将项拖动到新组,则应用该组的值。 例如, 如果您是按“状态”分组,然后将一个状态为 `In progress` 的项拖动到 `Done` 组,则该项的状态将切换到 `Done`。 同样,当您向组添加新项时,新项将使用组的值填充。 {% note %} -**Note:** Currently, you cannot group by title, labels, reviewers, or linked pull requests. +**注意:**目前,您无法按标题、标签、审阅者或链接的拉取请求进行分组。 {% endnote %} 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "Group by" 或您想要分组的字段的名称。 -3. Choose the required command. For example, **Group by: Status**. +3. 选择所需的命令。 例如 **Group by: Status**。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to the field name that you want to group by and click **Group by values**. +或者,单击要作为分组依据的字段名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %} ,然后单击 **Group by values(按值分组)**。 按照类似步骤删除分组。 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "Remove group-by"。 -3. Choose **Remove group-by**. +3. 选择 **Remove group-by(删除分组依据)**。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to the view name and click the menu item that indicates the current grouping. +或者,选择视图名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %},然后单击显示当前分组的菜单项。 -## Setting the column field in board layout +## 在板布局中设置列字段 -In the board layout, you choose any single select or iteration field for your columns. If you drag an item to a new column, the value of that column is applied to the dragged item. For example, if you use the "Status" field for your board columns and then drag an item with a status of `In progress` to the `Done` column, the status of the item will switch to `Done`. +在板布局中,您可以为列选择任何单选或迭代字段。 如果将某个项拖到新列,则该列的值将应用于拖动的项。 例如,如果对板列使用“Status(状态)”字段,然后将状态为 `In progress` 的项拖到 `Done` 列,则该项的状态将切换到 `Done`。 1. {% data reusables.projects.open-command-palette %} -1. Start typing "Column field by" or the name of the field you want to use for your columns. -1. Choose the required command. For example, **Column field by: Status**. +1. 开始键入 "Column field by" 或您想要用于列的字段名称。 +1. 选择所需的命令。 例如 **Column field by: Status**。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to the board view that you want to modify and click {% octicon "columns" aria-label="the column icon" %} **Column field**. Then select the field that you want to use for the board columns. +或者,单击要修改的板视图旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %} ,然后单击 {% octicon "columns" aria-label="the column icon" %} **Column field(列字段)**。 然后选择要用于板列的字段。 -## Filtering items +## 过滤项 -Click {% octicon "filter" aria-label="the filter icon" %} at the top of the table to show the "Filter by keyword or by field" bar. Start typing the field name and value that you want to filter by. 当您输入时,可能的值将会出现。 +点击表格顶部的 {% octicon "filter" aria-label="the filter icon" %} 以显示“Filter by keyword or by field(按关键字或字段过滤)”列。 开始键入要过滤的字段名称和值。 当您输入时,可能的值将会出现。 -- To filter for multiple values, separate the values with a comma. For example `label:"good first issue",bug` will list all issues with a label `good first issue` or `bug`. -- To filter for the absence of a specific value, place `-` before your filter. For example, `-label:"bug"` will only show items that do not have the label `bug`. -- To filter for the absence of all values, enter `no:` followed by the field name. For example, `no:assignee` will only show items that do not have an assignee. -- To filter by state, enter `is:`. For example, `is: issue` or `is:open`. -- 多个过滤条件之间用逗号分隔。 For example, `status:"In progress" -label:"bug" no:assignee` will show only items that have a status of `In progress`, do not have the label `bug`, and do not have an assignee. -- To filter for the current iteration of an iteration field, use `@current`. For example, `sprint:@current`. +- 要过滤多个值,请用逗号分隔值。 例如, `label:"good first issue",bug` 将列出标签为 `good first issue` 或 `bug` 的所有议题。 +- 要过滤缺少特定值的字段,请在过滤器之前加入 `-`。 例如, `-label:"bug"` 只会显示没有标签的 `bug` 的项。 +- 要过滤缺少所有值的字段, 请输入 `no:`,后接字段名称。 例如,`no:assignee` 仅显示没有受理人的项。 +- 要按状态过滤,请输入 `is:`。 例如 `is: issue` 或 `is:open`。 +- 多个过滤条件之间用逗号分隔。 例如,`status:"In progress" -label:"bug" no:assignee` 仅显示状态为 `In progress`、没有标签 `bug` 且没有受理人的项。 +- 要过滤迭代字段的当前迭代,请使用 `@current`。 例如 `sprint:@current`。 -Alternatively, use the command palette. +或者,使用命令面板。 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "Filter by" 或您想要筛选的字段的名称。 -3. Choose the required command. For example, **Filter by Status**. -4. Enter the value that you want to filter for. For example: "In progress". You can also filter for the absence of specific values (for example, choose "Exclude status" then choose a status) or the absence of all values (for example, "No status"). +3. 选择所需的命令。 例如 **Filter by Status**。 +4. 输入您想要过滤的值。 例如:"In progress"。 您还可以过滤缺少特定值的字段(例如,选择“Exclude status(排除状态)”,然后选择一个状态)或缺少所有值的字段(例如,“No status(无状态)”)。 -In board layout, you can click on item data to filter for items with that value. For example, click on an assignee to show only items for that assignee. To remove the filter, click the item data again. +在板布局中,您可以单击项目数据以过滤具有该值的项。 例如,单击某个受理人以仅显示该受理人的项。 要移除过滤器,请再次单击项数据。 -## Creating a project view +## 创建项目视图 -Project views allow you to quickly view specific aspects of your project. Each view is displayed on a separate tab in your project. +项目视图允许您快速查看项目的特定方面。 每个视图都显示在项目中单独的选项卡上。 -For example, you can have: -- A view that shows all items not yet started (filter on "Status"). -- A view that shows the workload for each team (group by a custom "Team" field). -- A view that shows the items with the earliest target ship date (sort by a date field). +例如,您可以有: +- 显示所有尚未开始的项的视图(按“状态”过滤)。 +- 显示每个团队的工作负荷的视图(按自定义“团队”字段分组)。 +- 显示具有最早目标运送日期的项的视图(按日期字段排序)。 -To add a new view: +要添加新视图: 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "New view"(创建新视图)或 "Duplicate view"(复制当前视图)。 -3. Choose the required command. +3. 选择所需的命令。 或者,点击右侧视图旁边的 {% octicon "plus" aria-label="the plus icon" %} **New view(新视图)**。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to a view name and click **Duplicate view**. +或者,单击视图名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %} ,然后单击 **Duplicate view(复制视图)**。 -The new view is automatically saved. +新视图将自动保存。 -## Saving changes to a view +## 保存对视图的更改 -When you make changes to a view - for example, sorting, reordering, filtering, or grouping the data in a view - a dot is displayed next to the view name to indicate that there are unsaved changes. +对视图进行更改(例如,对视图中的数据进行排序、重新排序、过滤或分组)时,视图名称旁边会显示一个点,以指示存在未保存的更改。 -![Unsaved changes indicator](/assets/images/help/projects/unsaved-changes.png) +![未保存的更改指示符](/assets/images/help/projects/unsaved-changes.png) -如果您不想保存更改,可以忽略此指示。 No one else will see your changes. +如果您不想保存更改,可以忽略此指示。 没有其他人会看到您的更改。 -To save the current configuration of the view for all project members: +保存所有项目成员的视图的当前配置: 1. {% data reusables.projects.open-command-palette %} 1. 开始键入 "Save view" 或 "Save changes to new view"。 -1. Choose the required command. +1. 选择所需的命令。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to a view name and click **Save view** or **Save changes to new view**. +或者,单击视图名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %},然后点击 **Save view(保存视图)** 或 **Save changes to new view(保存更改到新视图)**。 -## Reordering saved views +## 对保存的视图重新排序 -To change the order of the tabs that contain your saved views, click and drag a tab to a new location. +要更改包含已保存视图的选项卡的顺序,请单击选项卡并将其拖到新位置。 -The new tab order is automatically saved. +新选项卡顺序自动保存。 -## Renaming a saved view +## 重命名保存的视图 -To rename a view: -1. Double click the name in the project tab. -1. Change the name. -1. Press Enter, or click outside of the tab. +要重命名视图: +1. 双击项目选项卡中的名称。 +1. 更改名称。 +1. 按 Enter 键,或在选项卡外部单击。 -The name change is automatically saved. +名称更改将自动保存。 -## Deleting a saved view +## 删除已保存的视图 要删除视图: 1. {% data reusables.projects.open-command-palette %} 2. 开始键入 "Delete view"。 -3. Choose the required command. +3. 选择所需的命令。 -Alternatively, click {% octicon "triangle-down" aria-label="the drop-down icon" %} next to a view name and click **Delete view**. +或者,单击视图名称旁边的 {% octicon "triangle-down" aria-label="the drop-down icon" %} ,然后单击 **Delete view(删除视图)**。 ## 延伸阅读 diff --git a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/quickstart.md b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/quickstart.md index c0ff2f118bd0..d44c32826ac9 100644 --- a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/quickstart.md +++ b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/quickstart.md @@ -19,23 +19,23 @@ topics: ## 基本要求 -You can either create an organization project or a user project. To create an organization project, you need a {% data variables.product.prodname_dotcom %} organization. 有关创建组织的更多信息,请参阅“[从头开始创建新组织](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch)”。 +您可以创建组织项目或用户项目。 要创建组织项目,您需要一个 {% data variables.product.prodname_dotcom %} 组织。 有关创建组织的更多信息,请参阅“[从头开始创建新组织](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch)”。 -In this guide, you will add existing issues from repositories owned by your organization (for organization projects) or by you (for user projects) to your new project. 有关创建议题的更多信息,请参阅“[创建议题](/issues/tracking-your-work-with-issues/creating-an-issue)”。 +在本指南中,您将把组织拥有的存储库(对于组织项目)或您拥有的存储库(对于用户项目)的现有议题添加到新项目中。 有关创建议题的更多信息,请参阅“[创建议题](/issues/tracking-your-work-with-issues/creating-an-issue)”。 ## 创建项目 -First, create an organization project or a user project. +首先,创建组织项目或用户项目。 -### Creating an organization project +### 创建组织项目 {% data reusables.projects.create-project %} -### Creating a user project +### 创建用户项目 {% data reusables.projects.create-user-project %} -## Setting your project description and README +## 设置项目描述和 README {% data reusables.projects.project-description %} @@ -53,13 +53,13 @@ First, create an organization project or a user project. 有关向项目添加议题的其他方法,或有关您可以向项目添加其他项的信息,请参阅“[创建项目](/issues/trying-out-the-new-projects-experience/creating-a-project#adding-items-to-your-project)”。 -## Adding draft issues to your project +## 向项目添加草稿议题 -Next, add a draft issue to your project. +接下来,将草稿议题添加到项目中。 1. 将光标放在项目底部一行,{% octicon "plus" aria-label="plus icon" %} 的旁边。 1. 输入您的想法,然后按 **Enter**。 -1. Click on the title of the draft issue. In the markdown input box that appears, enter the some more information about your idea, then click **Save**. +1. 单击草稿议题的标题。 在出现的 Markdown 输入框中,输入有关您想法的更多信息,然后单击 **Save(保存)**。 ## 创建字段来跟踪优先级 @@ -108,11 +108,11 @@ Next, add a draft issue to your project. 保存视图后,打开项目的任何人都将看到保存的视图。 在这里按优先级分组,但您还可以添加其他修饰符,如排序、筛选或布局。 接下来,您将创建一个修改了布局的新视图。 -## Adding a board layout +## 添加板布局 要查看项目议题的进度,您可以切换到板布局。 -The board layout is based on the status field, so specify a status for each issue in your project. +板布局基于状态字段,因此会指定项目中每个议题的状态。 ![示例状态](/assets/images/help/projects/status_example.png) @@ -138,15 +138,15 @@ The board layout is based on the status field, so specify a status for each issu ![示例优先级](/assets/images/help/projects/project-view-switch.gif) -## Configure built-in automation +## 配置内置自动化 -Finally, add a built in workflow to set the status to **Todo** when an item is added to your project. +最后,添加内置工作流程,以便在将项添加到项目时状态设置为**待办事项** 。 1. In your project, click {% octicon "workflow" aria-label="the workflow icon" %}. -2. Under **Default workflows**, click **Item added to project**. -3. Next to **When**, ensure that both `issues` and `pull requests` are selected. -4. Next to **Set**, select **Status:Todo**. -5. Click the **Disabled** toggle to enable the workflow. +2. 在 **Default workflows(默认工作流程)**下,单击 **Item added to project(已添加到项目的项)**。 +3. 在 **When(何时)**旁边,确保同时选择 `issues(议题)`和 `pull requests(拉取请求)`。 +4. 在 **Set(设置)**旁边,选择 **Status:Todo(状态:待办事项)**。 +5. 单击 **Disabled(已禁用)**切换开关以启用工作流程。 ## 后续步骤 diff --git a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects.md b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects.md index 86d3896f9c4a..a792e61393a3 100644 --- a/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects.md +++ b/translations/zh-CN/content/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects.md @@ -11,7 +11,7 @@ topics: - Projects --- -本文演示如何使用 GraphQL API 来管理项目。 For more information about how to use the API in a {% data variables.product.prodname_actions %} workflow, see "[Automating projects (beta)](/issues/trying-out-the-new-projects-experience/automating-projects)." For a full list of the available data types, see "[Reference](/graphql/reference)." +本文演示如何使用 GraphQL API 来管理项目。 有关如何在 {% data variables.product.prodname_actions %} 工作流程中使用 API 的详细信息,请参阅“[自动化项目(测试版)](/issues/trying-out-the-new-projects-experience/automating-projects)”。 有关可用数据类型的完整列表,请参阅“[参考](/graphql/reference)”。 {% data reusables.projects.projects-beta %} @@ -19,7 +19,7 @@ topics: {% curl %} -在所有下面的 cURL 示例中, 将 `TOKENN` 替换为具有 `read:org` 范围(对于查询)或 `write:org` 范围(对于查询和突变)的令牌。 The token can be a personal access token for a user or an installation access token for a {% data variables.product.prodname_github_app %}. For more information about creating a personal access token, see "[Creating a personal access token](/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)." For more information about creating an installation access token for a {% data variables.product.prodname_github_app %}, see "[Authenticating with {% data variables.product.prodname_github_apps %}](/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-a-github-app)." +在所有下面的 cURL 示例中, 将 `TOKENN` 替换为具有 `read:org` 范围(对于查询)或 `write:org` 范围(对于查询和突变)的令牌。 令牌可以是用户的个人访问令牌,也可以是 {% data variables.product.prodname_github_app %} 的安装访问令牌。 有关创建个人访问令牌的更多信息,请参阅“[创建个人访问令牌](/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)”。 有关为 {% data variables.product.prodname_github_app %} 创建安装访问令牌的详细信息,请参阅“[使用 {% data variables.product.prodname_github_apps %} 进行身份验证](/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-a-github-app)”。 {% endcurl %} @@ -27,7 +27,7 @@ topics: {% data reusables.cli.cli-learn-more %} -Before running {% data variables.product.prodname_cli %} commands, you must authenticate by running `gh auth login --scopes "write:org"`. If you only need to read, but not edit, projects, you can omit the `--scopes` argument. 有关命令行身份验证的更多信息,请参阅 "[gh auth login](https://cli.github.com/manual/gh_auth_login)"。 +在运行 {% data variables.product.prodname_cli %} 命令之前,必须通过运行 `gh auth login --scopes "write:org"` 进行身份验证。 如果只需要读取项目,但不需要编辑项目,则可以省略 `--scopes` 参数。 有关命令行身份验证的更多信息,请参阅 "[gh auth login](https://cli.github.com/manual/gh_auth_login)"。 {% endcli %} @@ -50,19 +50,19 @@ gh api graphql -f query=' }' -f organization=$my_org -F number=$my_num ``` -For more information, see "[Forming calls with GraphQL]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql#working-with-variables)." +更多信息请参阅“[使用 GraphQL 创建调用]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql#working-with-variables)”。 {% endcli %} ## 查找项目信息 -使用查询获取项目数据。 For more information, see "[About queries]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql#about-queries)." +使用查询获取项目数据。 更多信息请参阅“[关于查询]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql#about-queries)。” -### Finding the node ID of an organization project +### 查找组织项目的节点 ID 要通过 API 更新您的项目,您需要知道项目的节点 ID。 -You can find the node ID of an organization project if you know the organization name and project number. 将 `ORGANIZATION` 替换为您的组织名称。 例如 `octo-org`。 Replace `NUMBER` with the project number. 要查找项目编号,请查看项目 URL。 例如,`https://github.com/orgs/octo-org/projects/5` 有一个编号为 5 的项目。 +如果您知道组织名称和项目编号,则可以找到组织项目的节点 ID。 将 `ORGANIZATION` 替换为您的组织名称。 例如 `octo-org`。 将 `NUMBER` 替换为项目编号。 要查找项目编号,请查看项目 URL。 例如,`https://github.com/orgs/octo-org/projects/5` 有一个编号为 5 的项目。 {% curl %} ```shell @@ -113,11 +113,11 @@ gh api graphql -f query=' ``` {% endcli %} -### Finding the node ID of a user project +### 查找用户项目的节点 ID 要通过 API 更新您的项目,您需要知道项目的节点 ID。 -You can find the node ID of a user project if you know the project number. Replace `USER` with your user name. 例如 `octocat`。 将 `NUMBER` 替换为项目编号。 要查找项目编号,请查看项目 URL。 For example, `https://github.com/users/octocat/projects/5` has a project number of 5. +如果您知道项目编号,则可以找到用户项目的节点 ID。 将 `USER` 替换为您的用户名。 例如 `octocat`。 将 `NUMBER` 替换为项目编号。 要查找项目编号,请查看项目 URL。 例如,`https://github.com/users/octocat/projects/5` 有一个编号为 5 的项目。 {% curl %} ```shell @@ -141,7 +141,7 @@ gh api graphql -f query=' ``` {% endcli %} -You can also find the node ID for all of your projects. The following example will return the node ID and title of your first 20 projects. Replace `USER` with your username. 例如 `octocat`。 +您还可以找到所有项目的节点 ID。 以下示例将返回前 20 个项目的节点 ID 和标题。 将 `USER` 替换为您的用户名。 例如 `octocat`。 {% curl %} ```shell @@ -170,7 +170,7 @@ gh api graphql -f query=' ### 查找字段的节点 ID -要更新字段的值,您需要知道字段的节点 ID。 Additionally, you will need to know the ID of the options for single select fields and the ID of the iterations for iteration fields. +要更新字段的值,您需要知道字段的节点 ID。 此外,您还需要知道单个选择字段的选项 ID 和迭代字段的迭代 ID。 下面的示例将返回项目中前 20 个字段的 ID、名称和设置。 将 `PROJECT_ID` 替换为项目的节点 ID。 @@ -237,7 +237,7 @@ gh api graphql -f query=' } ``` -每个字段都有 ID。 Additionally, single select fields and iteration fields have a `settings` value. In the single select settings, you can find the ID of each option for the single select. In the iteration settings, you can find the duration of the iteration, the start day of the iteration (from 1 for Monday to 7 for Sunday), the list of incomplete iterations, and the list of completed iterations. For each iteration in the lists of iterations, you can find the ID, title, duration, and start date of the iteration. +每个字段都有 ID。 此外,单个选择字段和迭代字段有`设置`值。 在单选设置中,您可以找到单选的每个选项的 ID。 在迭代设置中,您可以找到迭代的持续时间、迭代的开始日期(从星期一的 1 到星期日的 7)、未完成迭代的列表以及已完成迭代的列表。 对于迭代列表中的每个迭代,您可以找到迭代的 ID、标题、持续时间和开始日期。 ### 查找项目中各项的信息 @@ -245,7 +245,7 @@ gh api graphql -f query=' {% note %} -**Note**: The API will not return information about draft issues. +**注意**:API 不会返回有关草稿议题的信息。 {% endnote %} @@ -302,7 +302,7 @@ gh api graphql -f query=' ``` {% endcli %} -项目可能包含用户无权查看的项。 In this case, the response will include a redacted item. +项目可能包含用户无权查看的项。 在这种情况下,响应将包括已编辑的项。 ```shell { @@ -315,7 +315,7 @@ gh api graphql -f query=' ## 更新项目 -使用突变来更新项目。 For more information, see "[About mutations]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql#about-mutations)." +使用突变来更新项目。 更多信息请参阅“[关于突变]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql#about-mutations)。” {% note %} @@ -363,11 +363,11 @@ gh api graphql -f query=' } ``` -If you try to add an item that already exists, the existing item ID is returned instead. +如果您尝试添加已经存在的项,则返回现有项 ID。 -### Updating a project's settings +### 更新项目的设置 -The following example will update your project's settings. 将 `PROJECT_ID` 替换为项目的节点 ID。 Set `public` to `true` to make your project public on {% data variables.product.product_name %}. Modify `description` to make changes to your project's README. +以下示例将更新项目的设置。 将 `PROJECT_ID` 替换为项目的节点 ID。 将 `public` 设置为 `true` ,以便在 {% data variables.product.product_name %} 上公开您的项目。 修改 `description` 以对项目的 README 进行更改。 {% curl %} ```shell @@ -402,9 +402,9 @@ gh api graphql -f query=' ``` {% endcli %} -### Updating a custom text, number, or date field +### 更新自定义文本、数字或日期字段 -The following example will update the value of a date field for an item. 将 `PROJECT_ID` 替换为项目的节点 ID。 将 `ITEM_ID` 替换为您想要更新的项的节点 ID。 将 `FIELD_ID` 替换为您想要更新的字段的 ID。 +下面的示例将更新项目的日期字段值。 将 `PROJECT_ID` 替换为项目的节点 ID。 将 `ITEM_ID` 替换为您想要更新的项的节点 ID。 将 `FIELD_ID` 替换为您想要更新的字段的 ID。 {% curl %} ```shell @@ -437,18 +437,18 @@ gh api graphql -f query=' {% note %} -**注意:** 您不能使用 `updateProjectNextItemField` 更改 `Assignees`、`Labels`、`Milestone` 或 `Repository`,因为这些字段是拉取请求和议题,而不是项目项的属性。 Instead, you must use the [addAssigneesToAssignable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#addassigneestoassignable), [removeAssigneesFromAssignable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#removeassigneesfromassignable), [addLabelsToLabelable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#addlabelstolabelable), [removeLabelsFromLabelable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#removelabelsfromlabelable), [updateIssue]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#updateissue), [updatePullRequest]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#updatepullrequest), or [transferIssue]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#transferissue) mutations. +**注意:** 您不能使用 `updateProjectNextItemField` 更改 `Assignees`、`Labels`、`Milestone` 或 `Repository`,因为这些字段是拉取请求和议题,而不是项目项的属性。 相反,您必须使用 [addAssigneesToAssignable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#addassigneestoassignable)、[removeAssigneesFromAssignable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#removeassigneesfromassignable)、[addLabelsToLabelable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#addlabelstolabelable)、[removeLabelsFromLabelable]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#removelabelsfromlabelable)、[updateIssue]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#updateissue)、[updatePullRequest]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#updatepullrequest) 或 [transferIssue]({% ifversion ghec%}/free-pro-team@latest{% endif %}/graphql/reference/mutations#transferissue) 突变。 {% endnote %} -### Updating a single select field +### 更新单选字段 -The following example will update the value of a single select field for an item. +下面的示例将更新项的单选字段值。 - `PROJECT_ID` - 用项目节点 ID 替换。 - `ITEM_ID` - 替换为您想要更新的项的节点 ID。 -- `FIELD_ID` - Replace this with the ID of the single select field that you want to update. -- `OPTION_ID` - Replace this with the ID of the desired single select option. +- `FIELD_ID` - 替换为您想要更新的单选字段的 ID。 +- `OPTION_ID` - 替换为所需单选选项的 ID。 {% curl %} ```shell @@ -479,14 +479,14 @@ gh api graphql -f query=' ``` {% endcli %} -### Updating an iteration field +### 更新迭代字段 -The following example will update the value of an iteration field for an item. +下面的示例将更新项的迭代字段值。 - `PROJECT_ID` - 用项目节点 ID 替换。 - `ITEM_ID` - 替换为您想要更新的项的节点 ID。 -- `FIELD_ID` - Replace this with the ID of the iteration field that you want to update. -- `ITERATION_ID` - Replace this with the ID of the desired iteration. This can be either an active iteration (from the `iterations` array) or a completed iteration (from the `completed_iterations` array). +- `FIELD_ID` - 替换为您想要更新的迭代字段的 ID。 +- `ITERATION_ID` - 替换为所需迭代的 ID。 这可以是活动迭代(来自 `iterations` 数组)或已完成迭代(来自 `completed_iterations` 数组)。 {% curl %} ```shell diff --git a/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/about-your-organizations-news-feed.md b/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/about-your-organizations-news-feed.md index 58ae6d21bfba..fff64a160fc6 100644 --- a/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/about-your-organizations-news-feed.md +++ b/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/about-your-organizations-news-feed.md @@ -22,7 +22,7 @@ shortTitle: 组织消息馈送 ## 访问组织的消息馈送 1. {% data variables.product.signin_link %} 到 {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} 上的帐户。 -2. 打开 {% data reusables.user_settings.personal_dashboard %}。 +2. 打开 {% data reusables.user-settings.personal_dashboard %}。 3. 单击页面左上角的帐户上下文切换器。 ![Enterprise 中的上下文切换器按钮](/assets/images/help/organizations/account_context_switcher.png) 4. 从下拉菜单中选择组织。{% ifversion fpt or ghec %} ![Context switcher menu in dotcom](/assets/images/help/organizations/account-context-switcher-selected-dotcom.png){% else %} ![Context switcher menu in Enterprise](/assets/images/help/organizations/account_context_switcher.png){% endif %} diff --git a/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch.md b/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch.md index 80346e7e9717..e4decd23c73f 100644 --- a/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch.md +++ b/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch.md @@ -18,8 +18,8 @@ shortTitle: 创建新组织 从头开始创建新组织时,它没有任何与之关联的仓库。 有关为组织添加仓库的更多信息,请参阅“[创建新仓库](/articles/creating-a-new-repository)”和“[转让仓库](/articles/transferring-a-repository)”。 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.organizations %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.organizations %} {% data reusables.organizations.new-organization %} 4. 按照提示创建组织。 {% ifversion fpt or ghec %}要详细了解可用于您的团队的计划,请参阅“[{% data variables.product.prodname_dotcom %} 的产品](/articles/githubs-products)”。{% endif %} diff --git a/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/viewing-insights-for-your-organization.md b/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/viewing-insights-for-your-organization.md index 4217654b388a..8bfb16e6072b 100644 --- a/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/viewing-insights-for-your-organization.md +++ b/translations/zh-CN/content/organizations/collaborating-with-groups-in-organizations/viewing-insights-for-your-organization.md @@ -29,7 +29,7 @@ shortTitle: 查看组织见解 通过组织活动洞察,您可以查看整个组织或特定仓库每周、每月和每年的数据可视化,包括议题和拉取请求活动、热门使用语言以及有关组织成员花费其时间累积的信息。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} 3. 在组织名称下,单击 {% octicon "graph" aria-label="The bar graph icon" %} **Insights(洞察)**。 ![单击组织洞察选项卡](/assets/images/help/organizations/org-nav-insights-tab.png) 4. (可选)在页面的右上角,选择查看过去 **1 周**、**1 个月**或 **1 年**的数据。 ![选择查看组织洞察的时间段](/assets/images/help/organizations/org-insights-time-period.png) 5. (可选)在页面的右上角,选择查看最多三个仓库的数据,然后单击 **Apply(应用)**。 ![选择查看组织洞察的仓库](/assets/images/help/organizations/org-insights-repos.png) @@ -45,7 +45,7 @@ shortTitle: 查看组织见解 通过依赖项洞察,您可以查看组织所依赖的开源项目的漏洞、许可证和其他重要信息。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} 3. 在组织名称下,单击 {% octicon "graph" aria-label="The bar graph icon" %} **Insights(洞察)**。 ![主要组织导航栏中的洞察选项卡](/assets/images/help/organizations/org-nav-insights-tab.png) 4. 要查看此组织的依赖项,请单击 **Dependencies(依赖项)**。 ![主要组织导航栏下的依赖项选项卡](/assets/images/help/organizations/org-insights-dependencies-tab.png) 5. 要查看所有您的 {% data variables.product.prodname_ghe_cloud %} 组织的依赖项洞察,请单击 **My organizations(我的组织)**。 ![依赖项选项卡下的我的组织按钮](/assets/images/help/organizations/org-insights-dependencies-my-orgs-button.png) diff --git a/translations/zh-CN/content/organizations/collaborating-with-your-team/creating-a-team-discussion.md b/translations/zh-CN/content/organizations/collaborating-with-your-team/creating-a-team-discussion.md index e5a6c0a6e4a2..10224cb34e7a 100644 --- a/translations/zh-CN/content/organizations/collaborating-with-your-team/creating-a-team-discussion.md +++ b/translations/zh-CN/content/organizations/collaborating-with-your-team/creating-a-team-discussion.md @@ -18,7 +18,7 @@ shortTitle: 创建团队讨论 {% data reusables.organizations.team-discussions-permissions %} 更多信息请参阅“[关于团队讨论](/organizations/collaborating-with-your-team/about-team-discussions)”。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team-discussions-tab %} 6. 输入团队讨论标题和评论以开始对话。 ![新的团队讨论评论](/assets/images/help/projects/team-discussions-comment.png) diff --git a/translations/zh-CN/content/organizations/collaborating-with-your-team/editing-or-deleting-a-team-discussion.md b/translations/zh-CN/content/organizations/collaborating-with-your-team/editing-or-deleting-a-team-discussion.md index f7839d18cd94..da9074a50121 100644 --- a/translations/zh-CN/content/organizations/collaborating-with-your-team/editing-or-deleting-a-team-discussion.md +++ b/translations/zh-CN/content/organizations/collaborating-with-your-team/editing-or-deleting-a-team-discussion.md @@ -16,7 +16,7 @@ shortTitle: 管理团队讨论 --- {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team-discussions-tab %} 6. 单击要编辑或删除的团队讨论旁边的 {% octicon "kebab-horizontal" aria-label="The edit icon" %}。 diff --git a/translations/zh-CN/content/organizations/collaborating-with-your-team/pinning-a-team-discussion.md b/translations/zh-CN/content/organizations/collaborating-with-your-team/pinning-a-team-discussion.md index 59401ab54236..c1ebd65dca7b 100644 --- a/translations/zh-CN/content/organizations/collaborating-with-your-team/pinning-a-team-discussion.md +++ b/translations/zh-CN/content/organizations/collaborating-with-your-team/pinning-a-team-discussion.md @@ -15,7 +15,7 @@ topics: --- {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team-discussions-tab %} 5. 单击要固定的团队讨论旁边的 {% octicon "pin" aria-label="The pin icon" %}。 单击该图标也可以取消固定讨论。 ![固定讨论](/assets/images/help/projects/pin-discussion-button.png) diff --git a/translations/zh-CN/content/organizations/granting-access-to-your-organization-with-saml-single-sign-on/viewing-and-managing-a-members-saml-access-to-your-organization.md b/translations/zh-CN/content/organizations/granting-access-to-your-organization-with-saml-single-sign-on/viewing-and-managing-a-members-saml-access-to-your-organization.md index 6c2dda06fbc8..6db887e258b6 100644 --- a/translations/zh-CN/content/organizations/granting-access-to-your-organization-with-saml-single-sign-on/viewing-and-managing-a-members-saml-access-to-your-organization.md +++ b/translations/zh-CN/content/organizations/granting-access-to-your-organization-with-saml-single-sign-on/viewing-and-managing-a-members-saml-access-to-your-organization.md @@ -39,7 +39,7 @@ shortTitle: 管理 SAML 访问 {% data reusables.identity-and-permissions.revoking-identity-team-sync %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.saml.click-person-revoke-identity %} {% data reusables.saml.saml-identity-linked %} @@ -50,7 +50,7 @@ shortTitle: 管理 SAML 访问 ## 查看和撤销活动的 SAML 会话 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.saml.click-person-revoke-session %} {% data reusables.saml.saml-identity-linked %} @@ -62,7 +62,7 @@ shortTitle: 管理 SAML 访问 {% data reusables.saml.about-authorized-credentials %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.saml.click-person-revoke-credentials %} {% data reusables.saml.saml-identity-linked %} diff --git a/translations/zh-CN/content/organizations/index.md b/translations/zh-CN/content/organizations/index.md index 76f399a6a073..8b45d95d0b1f 100644 --- a/translations/zh-CN/content/organizations/index.md +++ b/translations/zh-CN/content/organizations/index.md @@ -1,11 +1,30 @@ --- title: 组织和团队 shortTitle: 组织 -intro: 跨多个项目协作,同时管理对项目和数据的访问,并为组织自定义设置。 +intro: 您可以使用组织同时与多个项目中无限数量的人员进行协作,同时管理对数据的访问和自定义设置。 redirect_from: - /articles/about-improved-organization-permissions - /categories/setting-up-and-managing-organizations-and-teams - /github/setting-up-and-managing-organizations-and-teams +introLinks: + overview: /organizations/collaborating-with-groups-in-organizations/about-organizations +featuredLinks: + guides: + - /get-started/learning-about-github/types-of-github-accounts + - /organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization + - /organizations/organizing-members-into-teams/about-teams + popular: + - /organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch + - /organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization + - /organizations/managing-organization-settings/verifying-or-approving-a-domain-for-your-organization + - /organizations/restricting-access-to-your-organizations-data/about-oauth-app-access-restrictions + - '{% ifversion ghae %}/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization{% endif %}' + guideCards: + - /organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization + - /organizations/managing-membership-in-your-organization/adding-people-to-your-organization + - /organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository + - /organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization +layout: product-landing versions: fpt: '*' ghes: '*' diff --git a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md index 8701ddab1aa5..0130ed90b129 100644 --- a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md +++ b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md @@ -21,6 +21,8 @@ shortTitle: 审核审计日志 The audit log lists events triggered by activities that affect your organization within the current month and previous six months. 只有所有者才能访问组织的审核日志。 +{% data reusables.audit_log.only-three-months-displayed %} + {% data reusables.profile.access_org %} {% data reusables.profile.org_settings %} {% data reusables.audit_log.audit_log_sidebar_for_org_admins %} @@ -170,6 +172,8 @@ GraphQL 响应可包含长达 90 至 120 天的数据。 {% data reusables.audit_log.audit-log-git-events-retention %} +By default, only events from the past three months are returned. To include older events, you must specify a timestamp in your query. + 有关审核日志 REST API 的更多信息,请参阅“[组织](/rest/reference/orgs#get-the-audit-log-for-an-organization)”。 {% endif %} @@ -544,22 +548,22 @@ GraphQL 响应可包含长达 90 至 120 天的数据。 ### `protected_branch` 类操作 -| 操作 | 描述 | -| ----------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `create` | 在分支上启用分支保护时触发。 | -| `destroy` | 在分支上禁用分支保护时触发。 | -| `update_admin_enforced` | 为仓库管理员实施分支保护时触发。 | -| `update_require_code_owner_review` | 在分支上更新必需代码所有者审查的实施时触发。 | -| `dismiss_stale_reviews` | 在分支上更新忽略旧拉取请求的实施时触发。 | -| `update_signature_requirement_enforcement_level` | 在分支上更新必需提交签名的实施时触发。 | -| `update_pull_request_reviews_enforcement_level` | 在分支上更新必需拉取请求审查的实施时触发。 Can be one of `0`(deactivated), `1`(non-admins), `2`(everyone). | -| `update_required_status_checks_enforcement_level` | 在分支上更新必需状态检查的实施时触发。 | -| `update_strict_required_status_checks_policy` | 当分支在合并之前保持最新的要求被更改时触发。 | -| `rejected_ref_update` | 当分支更新尝试被拒绝时触发。 | +| 操作 | 描述 | +| ----------------------------------------------------- | ------------------------------------------------------------- | +| `create` | 在分支上启用分支保护时触发。 | +| `destroy` | 在分支上禁用分支保护时触发。 | +| `update_admin_enforced` | 为仓库管理员实施分支保护时触发。 | +| `update_require_code_owner_review` | 在分支上更新必需代码所有者审查的实施时触发。 | +| `dismiss_stale_reviews` | 在分支上更新忽略旧拉取请求的实施时触发。 | +| `update_signature_requirement_enforcement_level` | 在分支上更新必需提交签名的实施时触发。 | +| `update_pull_request_reviews_enforcement_level` | 在分支上更新必需拉取请求审查的实施时触发。 可以是 `0`(已停用)、`1`(非管理员)`2`(所有人)之一。 | +| `update_required_status_checks_enforcement_level` | 在分支上更新必需状态检查的实施时触发。 | +| `update_strict_required_status_checks_policy` | 当分支在合并之前保持最新的要求被更改时触发。 | +| `rejected_ref_update` | 当分支更新尝试被拒绝时触发。 | | `policy_override` | 当仓库管理员重写分支保护要求时触发。{% ifversion fpt or ghes or ghae or ghec %} -| `update_allow_force_pushes_enforcement_level` | 对受保护分支启用或禁用强制推送时触发。 | -| `update_allow_deletions_enforcement_level` | 对受保护分支启用或禁用分支删除时触发。 | -| `update_linear_history_requirement_enforcement_level` | 对受保护分支启用或禁用必要线性提交历史记录时触发。 | +| `update_allow_force_pushes_enforcement_level` | 对受保护分支启用或禁用强制推送时触发。 | +| `update_allow_deletions_enforcement_level` | 对受保护分支启用或禁用分支删除时触发。 | +| `update_linear_history_requirement_enforcement_level` | 对受保护分支启用或禁用必要线性提交历史记录时触发。 | {% endif %} {% ifversion fpt or ghes > 3.1 or ghae or ghec %} diff --git a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/viewing-whether-users-in-your-organization-have-2fa-enabled.md b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/viewing-whether-users-in-your-organization-have-2fa-enabled.md index 22328f419b08..fec776fc8be8 100644 --- a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/viewing-whether-users-in-your-organization-have-2fa-enabled.md +++ b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/viewing-whether-users-in-your-organization-have-2fa-enabled.md @@ -22,7 +22,7 @@ shortTitle: View 2FA usage {% endnote %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 要查看已启用或已禁用双因素身份验证的组织成员(包括组织所有者),在右侧单击 **2FA**,然后选择 **Enabled(启用)**或 **Disabled(禁用)**。 ![filter-org-members-by-2fa](/assets/images/help/2fa/filter-org-members-by-2fa.png) 5. 要查看组织中的外部协作者,在“People(人员)”选项卡下,单击 **Outside collaborators(外部协作者)**。 ![select-outside-collaborators](/assets/images/help/organizations/select-outside-collaborators.png) diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/adding-an-outside-collaborator-to-a-project-board-in-your-organization.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/adding-an-outside-collaborator-to-a-project-board-in-your-organization.md index 7519488488db..5b31212b28de 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/adding-an-outside-collaborator-to-a-project-board-in-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/adding-an-outside-collaborator-to-a-project-board-in-your-organization.md @@ -18,7 +18,7 @@ shortTitle: 添加协作者 外部协作者并未明确是组织的成员,但对组织的项目板具有访问权限。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.select-project %} {% data reusables.project-management.click-menu %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-access-to-a-project-board-for-organization-members.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-access-to-a-project-board-for-organization-members.md index 906d1920978c..6ef61279332c 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-access-to-a-project-board-for-organization-members.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-access-to-a-project-board-for-organization-members.md @@ -26,7 +26,7 @@ shortTitle: 管理成员的访问权限 {% endtip %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.select-project %} {% data reusables.project-management.click-menu %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-an-individuals-access-to-an-organization-project-board.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-an-individuals-access-to-an-organization-project-board.md index cf450ff1cf43..7cde45fd4274 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-an-individuals-access-to-an-organization-project-board.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-an-individuals-access-to-an-organization-project-board.md @@ -25,7 +25,7 @@ shortTitle: 管理个人访问 ## 授予组织成员对项目板的访问 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.select-project %} {% data reusables.project-management.click-menu %} @@ -38,7 +38,7 @@ shortTitle: 管理个人访问 ## 更改组织成员对项目板的访问 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.select-project %} {% data reusables.project-management.click-menu %} @@ -51,7 +51,7 @@ shortTitle: 管理个人访问 从项目板删除协作者时,根据他们其他角色的权限,他们可能仍然保有对项目板的访问权限。 要完全删除个人对项目板的访问权限,必须删除其每个角色的访问权限。 例如,某个人可能对项目板具有组织成员或团队成员的访问权限。 更多信息请参阅“[组织的项目板权限](/articles/project-board-permissions-for-an-organization)”。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.select-project %} {% data reusables.project-management.click-menu %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-team-access-to-an-organization-project-board.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-team-access-to-an-organization-project-board.md index 8d8141f68031..6e230c5c8a2f 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-team-access-to-an-organization-project-board.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/managing-team-access-to-an-organization-project-board.md @@ -34,7 +34,7 @@ shortTitle: 管理团队访问 {% endnote %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.select-project %} {% data reusables.project-management.click-menu %} @@ -48,7 +48,7 @@ shortTitle: 管理团队访问 如果团队的项目板访问权限继承自父团队,您必须删除父团队的项目板访问权限,以更新子团队的访问权限。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} 4. 在团队的对话上方,单击 {% octicon "project" aria-label="The Projects icon" %} **Projects(项目)**。 ![团队仓库选项卡](/assets/images/help/organizations/team-project-board-button.png) 5. 要更改权限级别,在要更新的项目板右侧使用下拉列表。 要删除项目板,请单击 **{% octicon "trash" aria-label="The trash icon" %}**。 ![从团队删除项目板的垃圾桶按钮](/assets/images/help/organizations/trash-button.png) diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/removing-an-outside-collaborator-from-an-organization-project-board.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/removing-an-outside-collaborator-from-an-organization-project-board.md index d46672537c00..1808759f2267 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/removing-an-outside-collaborator-from-an-organization-project-board.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-project-boards/removing-an-outside-collaborator-from-an-organization-project-board.md @@ -16,7 +16,7 @@ shortTitle: 删除外部协作者 --- {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.organization-wide-project %} {% data reusables.project-management.select-project %} {% data reusables.project-management.click-menu %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization.md index 8735fe8696d9..91970401f2e8 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization.md @@ -1,6 +1,6 @@ --- title: 添加外部协作者到组织的仓库 -intro: '*外部协作者*并未明确是组织的成员,但对组织中的一个或多个仓库具有、读取、写入或管理员权限。' +intro: 您可以允许不属于您组织成员的人员访问您的组织拥有的仓库。 redirect_from: - /articles/adding-outside-collaborators-to-repositories-in-your-organization - /github/setting-up-and-managing-organizations-and-teams/adding-outside-collaborators-to-repositories-in-your-organization @@ -18,35 +18,32 @@ permissions: People with admin access to a repository can add an outside collabo ## 关于外部协作者 +外部协作者是指不是您组织的成员,但有权访问您组织的一个或多个仓库的人员。 您可以选择要为每个外部协作者授予的访问权限级别。 {% data reusables.organizations.outside_collaborator_forks %} + {% data reusables.organizations.outside-collaborators-use-seats %} -组织所有者可以限制邀请协作者的能力。 更多信息请参阅“[设置添加外部协作者的权限](/articles/setting-permissions-for-adding-outside-collaborators)”。. +组织所有者可以限制邀请协作者的能力。 更多信息请参阅“[设置添加外部协作者的权限](/organizations/managing-organization-settings/setting-permissions-for-adding-outside-collaborators)”。. {% ifversion ghes %} 要将某人添加为仓库的外部协作者,此人必须在 {% data variables.product.product_location %} 上拥有用户帐户。 如果您的企业使用外部身份验证系统(如 SAML 或 LDAP),则要添加的人员必须通过该系统登录才能创建帐户。 如果此人无权访问身份验证系统,并且为您的企业启用了内置身份验证,则站点管理员可以为该人员创建用户帐户。 更多信息请参阅“[使用内置身份验证](/admin/authentication/authenticating-users-for-your-github-enterprise-server-instance/using-built-in-authentication#inviting-users)”。 {% endif %} {% ifversion not ghae %} -如果您的组织[要求成员和外部协作者使用双重身份验证](/articles/requiring-two-factor-authentication-in-your-organization),则他们必须启用双重身份验证后才可接受您的邀请,协作处理组织仓库。 +如果您的组织需要双重身份验证,则在接受您的邀请以在仓库上进行协作之前,所有外部协作者都必须启用双重身份验证。 更多信息请参阅“[您的组织中需要双重身份验证](/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization)”。 {% endif %} -{% data reusables.organizations.outside_collaborator_forks %} - {% ifversion fpt %} 为了进一步支持团队的协作能力,您可以升级到 {% data variables.product.prodname_ghe_cloud %},其中包括受保护的分支机构和私有仓库的代码所有者等功能。 {% data reusables.enterprise.link-to-ghec-trial %} {% endif %} ## 添加外部协作者到仓库 +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +您可以在仓库设置中授予外部协作者访问仓库的权限。 更多信息请参阅“[管理有权访问仓库的团队和人员](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository#inviting-a-team-or-person)”。 +{% else %} {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} -{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} -{% data reusables.repositories.click-collaborators-teams %} -{% data reusables.organizations.invite-teams-or-people %} -5. 在搜索字段中,开始键入您想邀请的人员的姓名,然后单击匹配列表中的姓名。 ![搜索字段以键入要邀请加入仓库的人员姓名](/assets/images/help/repository/manage-access-invite-search-field.png) -6. 在“Choose a role(选择角色)”下,选择要授予此人的权限,然后单击 **Add NAME to REPOSITORY(将姓名添加到仓库)**。 ![为此人选择权限](/assets/images/help/repository/manage-access-invite-choose-role-add.png) -{% else %} 5. 在左侧边栏中,单击 **Collaborators & teams(协作者和团队)**。 ![突出显示协作者和团队的仓库设置侧边栏](/assets/images/help/repository/org-repo-settings-collaborators-and-teams.png) 6. 在 "Collaborators"(协作者)下,输入您要授权其访问仓库的人员的名称,然后单击 **Add collaborator(添加协作者)**。 ![在搜索字段中输入了 Octocat 用户名的协作者部分](/assets/images/help/repository/org-repo-collaborators-find-name.png) -7. 在新协作者名称旁边,选择适当的权限级别:*写入*、*读取*或*管理员*。 ![仓库权限选择器](/assets/images/help/repository/org-repo-collaborators-choose-permissions.png) +7. 在新协作者的姓名旁边,使用下拉菜单并选择适当的访问权限级别。 ![仓库权限选择器](/assets/images/help/repository/org-repo-collaborators-choose-permissions.png) {% endif %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/canceling-an-invitation-to-become-an-outside-collaborator-in-your-organization.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/canceling-an-invitation-to-become-an-outside-collaborator-in-your-organization.md index bbb650517acc..3afe84ad25e7 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/canceling-an-invitation-to-become-an-outside-collaborator-in-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/canceling-an-invitation-to-become-an-outside-collaborator-in-your-organization.md @@ -18,7 +18,7 @@ shortTitle: 取消协作者邀请 对于每个待定协作者,您可以同时取消加入组织仓库的所有邀请。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.people_tab_outside_collaborators %} 5. 单击 **X pending collaborators(删除待定协作者)**。 !["待定协作者" 按钮](/assets/images/help/organizations/pending-collaborator-list.png) diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-organization-member-to-an-outside-collaborator.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-organization-member-to-an-outside-collaborator.md index d77080b9f18e..bebbcc7a8340 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-organization-member-to-an-outside-collaborator.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-organization-member-to-an-outside-collaborator.md @@ -33,7 +33,7 @@ shortTitle: 将成员转换为协作者 将组织成员转换为外部协作者时,他们作为组织成员的权限将保存三个月,因此,如果您在该时间范围内{% ifversion fpt or ghec %} 邀请他们重新加入{% else %} 将他们重新添加到{% endif %} 您的组织,您可以恢复其成员权限。 更多信息请参阅“[恢复组织的前成员](/articles/reinstating-a-former-member-of-your-organization)”。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 选择要转换为外部协作者的人员。 ![选择了两名成员的成员列表](/assets/images/help/teams/list-of-members-selected-bulk.png) 5. 在成员列表的上方,使用下拉菜单并单击 **Convert to outside collaborator(转换为外部协作者)**。 ![含有将成员转换为外部协作者选项的下拉菜单](/assets/images/help/teams/user-bulk-management-options.png) diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-outside-collaborator-to-an-organization-member.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-outside-collaborator-to-an-organization-member.md index 5b3c98bc752b..4bbeda86127f 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-outside-collaborator-to-an-organization-member.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/converting-an-outside-collaborator-to-an-organization-member.md @@ -24,7 +24,7 @@ shortTitle: 将协作者转换为成员 {% endif %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.people_tab_outside_collaborators %} {% ifversion fpt or ghec %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository.md index 7c71c1b48895..baf3527cd2d0 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository.md @@ -24,15 +24,15 @@ permissions: People with admin access to a repository can manage access to the r {% data reusables.repositories.deleted_forks_from_private_repositories_warning %} +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +## 管理个人对组织仓库的访问 +您可以在仓库设置中授予个人对仓库的访问权限,或更改个人对仓库的访问权限级别。 更多信息请参阅“[管理有权访问仓库的团队和人员](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository)”。 +{% else %} ## 授予用户对仓库的访问权限 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} -{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} -{% data reusables.repositories.click-collaborators-teams %} -{% else %} {% data reusables.repositories.navigate-to-manage-access %} -{% endif %} {% data reusables.organizations.invite-teams-or-people %} 1. 在搜索字段中,开始输入要邀请的人员的名称,然后单击匹配列表中的名称。 ![用于输入要邀请加入仓库的团队或人员名称的搜索字段](/assets/images/help/repository/manage-access-invite-search-field.png) 6. 在“Choose a role(选择角色)”下,选择要授予此人的仓库角色,然后单击 **Add NAME to REPOSITORY(将姓名添加到仓库)**。 ![为团队或人员选择权限](/assets/images/help/repository/manage-access-invite-choose-role-add.png) @@ -40,13 +40,13 @@ permissions: People with admin access to a repository can manage access to the r ## 管理个人对组织仓库的访问 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 单击 **Members(成员)**或 **Outside collaborators(外部协作者)**以管理具有不同访问权限的人员。 ![邀请成员或外部协作者参加组织的按钮](/assets/images/help/organizations/select-outside-collaborators.png) 5. 在您要管理的人员名称右侧,使用 {% octicon "gear" aria-label="The Settings gear" %} 下拉菜单,并单击 **Manage(管理)**。 ![管理访问链接](/assets/images/help/organizations/member-manage-access.png) 6. 在 "Manage access"(管理访问权限)页面上的仓库旁边,单击 **Manage access(管理访问权限)**。 ![管理对仓库的访问权限按钮](/assets/images/help/organizations/repository-manage-access.png) 7. 检查个人对指定仓库的访问权限,例如他们是协作者还是通过团队成员资格来访问仓库。 ![用户的仓库访问矩阵](/assets/images/help/organizations/repository-access-matrix-for-user.png) - +{% endif %} ## 延伸阅读 {% ifversion fpt or ghec %}- "[限制与仓库的交互](/articles/limiting-interactions-with-your-repository)"{% endif %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository.md index aa6980a54647..a25d2154d8c9 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository.md @@ -28,28 +28,40 @@ shortTitle: 管理团队访问 ## 授予团队对仓库的访问权限 +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +您可以在仓库设置中授予团队对仓库的访问权限,或更改团队对仓库的访问权限级别。 更多信息请参阅“[管理有权访问仓库的团队和人员](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository#inviting-a-team-or-person)”。 +{% else %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team-repositories-tab %} 5. 在仓库列表上方,单击 **Add repository(添加仓库)**。 ![添加仓库按钮](/assets/images/help/organizations/add-repositories-button.png) 6. 输入仓库的名称,然后单击 **Add repository to team(添加仓库到团队)**。 ![仓库搜索字段](/assets/images/help/organizations/team-repositories-add.png) 7. 也可选择在仓库名称右侧使用下拉菜单,为团队选择不同的权限级别。 ![仓库访问权限下拉菜单](/assets/images/help/organizations/team-repositories-change-permission-level.png) - +{% endif %} ## 删除团队对仓库的访问权限 +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +您可以在仓库设置中删除团队对组织仓库的访问权限。 更多信息请参阅“[管理有权访问仓库的团队和人员](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository#removing-access-for-a-team-or-person)”。 + +如果团队可以直接访问仓库,您可以删除该团队对仓库的访问。 如果团队对仓库的访问权限继承自父团队,则必须删除父团队对仓库的访问权限才可删除其子团队的相应权限。 + +{% data reusables.repositories.deleted_forks_from_private_repositories_warning %} + +{% else %} + 如果团队能够直接访问仓库,您可以更改其对仓库的访问权限。 如果团队对仓库的访问权限继承自父团队,则必须删除父团队对仓库的访问权限才可删除其子团队的相应权限。 {% data reusables.repositories.deleted_forks_from_private_repositories_warning %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team-repositories-tab %} 5. 选择要从团队删除的仓库。 ![某些仓库的勾选框已选中的团队仓库列表](/assets/images/help/teams/select-team-repositories-bulk.png) 6. 在仓库列表上方,使用下拉菜单,然后单击 **Remove from team(从团队删除)**。 ![包含从团队删除仓库的选项的下拉菜单](/assets/images/help/teams/remove-team-repo-dropdown.png) 7. 检查要从团队删除的仓库,然后单击 **Remove repositories(删除仓库)**。 ![包含团队无法再访问的仓库列表的模态框](/assets/images/help/teams/confirm-remove-team-repos.png) - +{% endif %} ## 延伸阅读 - "[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)" diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/reinstating-a-former-outside-collaborators-access-to-your-organization.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/reinstating-a-former-outside-collaborators-access-to-your-organization.md index e9343ef194be..7c222a0747bb 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/reinstating-a-former-outside-collaborators-access-to-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/reinstating-a-former-outside-collaborators-access-to-your-organization.md @@ -40,7 +40,7 @@ shortTitle: 恢复协作者 {% endtip %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.invite_member_from_people_tab %} {% data reusables.organizations.reinstate-user-type-username %} diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/removing-an-outside-collaborator-from-an-organization-repository.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/removing-an-outside-collaborator-from-an-organization-repository.md index 62eeb2ed496e..73436f6a3cc9 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/removing-an-outside-collaborator-from-an-organization-repository.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/removing-an-outside-collaborator-from-an-organization-repository.md @@ -33,7 +33,7 @@ shortTitle: 删除协作者 ## 从组织中的所有仓库删除外部协作者 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.people_tab_outside_collaborators %} 5. 选择您想要从组织中删除的一个或多个外部协作者。 ![已选择两个外部协作者的外部协作者列表](/assets/images/help/teams/list-of-outside-collaborators-selected-bulk.png) @@ -45,7 +45,7 @@ shortTitle: 删除协作者 如果只是想要从组织的特定仓库中删除外部协作者,则可以一次删除此人员对一个特定仓库的访问权限。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.people_tab_outside_collaborators %} 5. 在您想要删除的人员用户名右侧,使用 {% octicon "gear" aria-label="The Settings gear" %} 下拉菜单,并单击 **Manage(管理)**。 ![管理访问权限按钮](/assets/images/help/organizations/member-manage-access.png) @@ -53,6 +53,9 @@ shortTitle: 删除协作者 7. 要完全删除外部协作者对仓库的访问权限,在右上角单击 **Remove access to this repository(删除对此仓库的访问权限)**。 ![删除此仓库访问权限按钮](/assets/images/help/organizations/remove-access-to-this-repository.png) 8. 要确认,请单击 **Remove access(删除访问权限)**。 ![确认将从仓库中删除的外部协作者](/assets/images/help/teams/confirm-remove-outside-collaborator-from-a-repository.png) +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +您还可以在仓库设置的访问概述中从仓库中删除外部协作者。 更多信息请参阅“[管理有权访问仓库的团队和人员](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository#removing-access-for-a-team-or-person)”。 +{% endif %} ## 延伸阅读 - “[将外部协作者添加到组织中的仓库](/articles/adding-outside-collaborators-to-repositories-in-your-organization)” diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/viewing-people-with-access-to-your-repository.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/viewing-people-with-access-to-your-repository.md index 1e2e03663779..a2b45ad24af0 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/viewing-people-with-access-to-your-repository.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/viewing-people-with-access-to-your-repository.md @@ -16,23 +16,20 @@ shortTitle: 查看有访问权限的人 --- 管理员可以使用此信息帮助非内部人员,收集数据用于合规性以及其他常规安全检查。 - +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +![访问权限管理概览](/assets/images/help/repository/manage-access-overview.png) +{% else %} ![仓库人员权限列表](/assets/images/help/repository/repository-permissions-list.png) - -## 查看具有仓库访问权限的人员 - -{% ifversion fpt or ghec %} -{% note %} - -**注**:您还可以查看有权访问仓库的团队和人员的组合概述。 更多信息请参阅“[管理有权访问仓库的团队和人员](/github/administering-a-repository/managing-teams-and-people-with-access-to-your-repository)”。 - -{% endnote %} {% endif %} +## 查看具有仓库访问权限的人员 +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} +您可以在仓库设置中查看有权访问仓库的团队和人员的组合概述。 更多信息请参阅“[管理有权访问仓库的团队和人员](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository#about-access-management-for-repositories)”。 +{% else %} {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.accessing-repository-graphs %} {% data reusables.repositories.accessing-repository-people %} - +{% endif %} ## 导出具有您的仓库访问权限人员的列表 {% data variables.product.prodname_ghe_cloud %} 或 {% data variables.product.prodname_ghe_server %} 上的组织所有者可以导出具有仓库访问权限人员的 CSV 列表。 diff --git a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/adding-people-to-your-organization.md b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/adding-people-to-your-organization.md index d093849e6b4d..0a885927156e 100644 --- a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/adding-people-to-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/adding-people-to-your-organization.md @@ -16,7 +16,7 @@ shortTitle: 将人员添加到组织 {% endif %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.invite_member_from_people_tab %} {% data reusables.organizations.invite_to_org %} diff --git a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/canceling-or-editing-an-invitation-to-join-your-organization.md b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/canceling-or-editing-an-invitation-to-join-your-organization.md index 16278c013bf5..a2671f014035 100644 --- a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/canceling-or-editing-an-invitation-to-join-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/canceling-or-editing-an-invitation-to-join-your-organization.md @@ -14,7 +14,7 @@ shortTitle: 取消或编辑邀请 --- {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 在 People(人员)选项卡上,单击 **Pending invitation(待定邀请)**。 ![待定邀请链接](/assets/images/help/organizations/pending-invitation-link.png) 5. 在要编辑或取消其邀请的受邀人用户名或电子邮件地址旁边,单击 **Edit invitation(编辑邀请)**。 ![编辑邀请按钮](/assets/images/help/organizations/edit-invitation-button.png) diff --git a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/exporting-member-information-for-your-organization.md b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/exporting-member-information-for-your-organization.md index 60d992d02db4..3e53f6b979b7 100644 --- a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/exporting-member-information-for-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/exporting-member-information-for-your-organization.md @@ -28,6 +28,6 @@ You can get member information directly from the {% data variables.product.produ For more information about the APIs, see our [GraphQL API](/graphql/reference/objects#user) and [REST API](/rest/reference/users) documentation about users. {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.people-export %} diff --git a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization.md b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization.md index 31b090c1f389..6d853d79d251 100644 --- a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization.md @@ -28,7 +28,7 @@ If your organization requires members to use two-factor authentication, users th ## Inviting a user to join your organization {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.invite_member_from_people_tab %} {% data reusables.organizations.invite_to_org %} diff --git a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/reinstating-a-former-member-of-your-organization.md b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/reinstating-a-former-member-of-your-organization.md index 4336c9754ee5..7689089637ce 100644 --- a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/reinstating-a-former-member-of-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/reinstating-a-former-member-of-your-organization.md @@ -55,7 +55,7 @@ If your organization has a paid per-user subscription, an unused license must be ## Reinstating a former member of your organization {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} {% data reusables.organizations.invite_member_from_people_tab %} {% data reusables.organizations.reinstate-user-type-username %} diff --git a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/removing-a-member-from-your-organization.md b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/removing-a-member-from-your-organization.md index 80e88cf7a8a8..b4ec0b6ed6ff 100644 --- a/translations/zh-CN/content/organizations/managing-membership-in-your-organization/removing-a-member-from-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-membership-in-your-organization/removing-a-member-from-your-organization.md @@ -55,7 +55,7 @@ shortTitle: 删除成员 ## 撤销用户的成员身份 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 选择您想要从组织中删除的成员。 ![选择了两名成员的成员列表](/assets/images/help/teams/list-of-members-selected-bulk.png) 5. 在成员列表上方,使用下拉菜单,然后单击 **Remove from organization(从组织中删除)**。 ![包含删除成员选项的下拉菜单](/assets/images/help/teams/user-bulk-management-options.png) diff --git a/translations/zh-CN/content/organizations/managing-organization-settings/disabling-project-boards-in-your-organization.md b/translations/zh-CN/content/organizations/managing-organization-settings/disabling-project-boards-in-your-organization.md index 8c9dfb369a18..6e7a6698e1f6 100644 --- a/translations/zh-CN/content/organizations/managing-organization-settings/disabling-project-boards-in-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-organization-settings/disabling-project-boards-in-your-organization.md @@ -25,7 +25,7 @@ shortTitle: 禁用项目板 {% data reusables.profile.access_org %} {% data reusables.profile.org_settings %} {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} -1. In the "Code planning, and automation" section of the sidebar, click **{% octicon "table" aria-label="The table icon" %} Projects**. +1. 在侧边栏的“Code planning, and automation(代码规划和自动化)”部分中,点击 **{% octicon "table" aria-label="The table icon" %} 项目**。 {% endif %} 1. 决定是否禁用组织范围的项目板,禁用组织中的仓库项目板,或两者均禁用。 然后,在“项目”(项目)下: - 要禁用组织范围的项目板,请取消选择 **Enable projects for the organization(启用组织的项目)**。 diff --git a/translations/zh-CN/content/organizations/managing-organization-settings/index.md b/translations/zh-CN/content/organizations/managing-organization-settings/index.md index c68a4aae6ce3..4daf8b7a3264 100644 --- a/translations/zh-CN/content/organizations/managing-organization-settings/index.md +++ b/translations/zh-CN/content/organizations/managing-organization-settings/index.md @@ -20,6 +20,7 @@ children: - /setting-permissions-for-deleting-or-transferring-repositories - /restricting-repository-visibility-changes-in-your-organization - /managing-the-forking-policy-for-your-organization + - /managing-pull-request-reviews-in-your-organization - /disabling-or-limiting-github-actions-for-your-organization - /configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization - /setting-permissions-for-adding-outside-collaborators diff --git a/translations/zh-CN/content/organizations/managing-organization-settings/integrating-jira-with-your-organization-project-board.md b/translations/zh-CN/content/organizations/managing-organization-settings/integrating-jira-with-your-organization-project-board.md index 752d895b95af..742954a3467f 100644 --- a/translations/zh-CN/content/organizations/managing-organization-settings/integrating-jira-with-your-organization-project-board.md +++ b/translations/zh-CN/content/organizations/managing-organization-settings/integrating-jira-with-your-organization-project-board.md @@ -16,7 +16,7 @@ shortTitle: 集成 Jira 1. 在左侧边栏中,选择 **{% octicon "code" aria-label="The code icon" %} 开发者设置**,然后单击 **OAuth Apps(OAuth 应用程序)**。 ![左侧边栏中的 OAuth 应用程序选项卡](/assets/images/help/organizations/org-oauth-applications-ghe.png) 1. 单击 **New OAuth App(新建 OAuth 应用程序)**。 {% else %} -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 1. 在左侧边栏的 **Organization settings(组织设置)**下,单击组织的名称。 ![侧边栏组织名称](/assets/images/help/settings/organization-settings-from-sidebar.png) 1. 在左侧边栏的 **Developer settings(开发者设置)**下,单击 **OAuth applications(OAuth 应用程序)**。 ![左侧边栏中的 OAuth 应用程序选项卡](/assets/images/help/organizations/org-oauth-applications-ghe.png) 1. 单击 **Register a new application(注册新应用程序)**。 @@ -26,7 +26,7 @@ shortTitle: 集成 Jira 3. 在 **Authorization callback URL(授权回叫 URL)**下,输入 Jira 实例的完整 URL。 4. 单击 **Register application(注册应用程序)**。 ![注册应用程序按钮](/assets/images/help/oauth/register-application-button.png) 9. 在 **Organization owned applications(组织拥有的应用程序)**下,记下 "Client ID"(客户 ID)和 "Client Secret"(客户端密钥)值。 ![客户端 ID 和客户端密码](/assets/images/help/oauth/client-id-and-secret.png) -{% data reusables.user_settings.jira_help_docs %} +{% data reusables.user-settings.jira_help_docs %} ## 延伸阅读 diff --git a/translations/zh-CN/content/organizations/managing-organization-settings/managing-pull-request-reviews-in-your-organization.md b/translations/zh-CN/content/organizations/managing-organization-settings/managing-pull-request-reviews-in-your-organization.md new file mode 100644 index 000000000000..2e709d88c291 --- /dev/null +++ b/translations/zh-CN/content/organizations/managing-organization-settings/managing-pull-request-reviews-in-your-organization.md @@ -0,0 +1,27 @@ +--- +title: Managing pull request reviews in your organization +intro: You can limit which users can approve or request changes to a pull requests in your organization. +versions: + feature: pull-request-approval-limit +permissions: Organization owners can limit which users can submit reviews that approve or request changes to a pull request. +topics: + - Organizations + - Pull requests +shortTitle: Manage pull request reviews +--- + +## About code review limits + +By default, in public repositories, any user can submit reviews that approve or request changes to a pull request. + +You can limit who is able to approve or request changes to pull requests in public repositories owned by your organization. After you enable code review limits, anyone can comment on pull requests in your public repositories, but only people with explicit access to a repository can approve a pull request or request changes. + +You can also enable code review limits for individual repositories. If you enable or limits for your organization, you will override any limits for individual repositories owned by the organization. For more information, see "[Managing pull request reviews in your repository](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-pull-request-reviews-in-your-repository)." + +## Enabling code review limits + +{% data reusables.profile.access_org %} +{% data reusables.profile.org_settings %} +{% data reusables.organizations.moderation-settings %} +1. Under "{% octicon "report" aria-label="The report icon" %} Moderation", click **Code review limits**. ![Screenshot of sidebar item for code review limits for organizations](/assets/images/help/organizations/code-review-limits-organizations.png) +1. Review the information on screen. Click **Limit review on all repositories** to limit reviews to those with explicit access, or click **Remove review limits from all repositories** to remove the limits from every public repository in your organization. ![Screenshot of code review limits settings for organizations](/assets/images/help/organizations/code-review-limits-organizations-settings.png) diff --git a/translations/zh-CN/content/organizations/managing-organization-settings/verifying-or-approving-a-domain-for-your-organization.md b/translations/zh-CN/content/organizations/managing-organization-settings/verifying-or-approving-a-domain-for-your-organization.md index fb152a3e3873..280fffbcc033 100644 --- a/translations/zh-CN/content/organizations/managing-organization-settings/verifying-or-approving-a-domain-for-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-organization-settings/verifying-or-approving-a-domain-for-your-organization.md @@ -31,7 +31,7 @@ shortTitle: 验证或批准域 {% ifversion fpt or ghec %}在 {% data variables.product.prodname_ghe_cloud %} 上,验证组织域的所有权后,您可以将组织的电子邮件通知限制为该域。 更多信息请参阅“[限制组织的电子邮件通知](/organizations/keeping-your-organization-secure/restricting-email-notifications-for-your-organization)”。 {% ifversion fpt %}{% data reusables.enterprise.link-to-ghec-trial %}{% endif %}{% endif %} -{% ifversion fpt or ghec %}You can also verify custom domains used for {% data variables.product.prodname_pages %} to prevent domain takeovers when a custom domain remains configured but your {% data variables.product.prodname_pages %} site is either disabled or no longer uses the domain. For more information, see "[Verifying your custom domain for {% data variables.product.prodname_pages %}](/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages)."{% endif %} +{% ifversion fpt or ghec %}您还可以验证用于 {% data variables.product.prodname_pages %} 的自定义域,以防止在自定义域保持配置状态但您的 {% data variables.product.prodname_pages %} 站点被禁用或不再使用该域时域接管。 更多信息请参阅“[验证 {% data variables.product.prodname_pages %} 的自定义域](/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages)”。{% endif %} ## 关于域批准 diff --git a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/maintaining-ownership-continuity-for-your-organization.md b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/maintaining-ownership-continuity-for-your-organization.md index f196c43a3d22..d71dd5c6d69a 100644 --- a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/maintaining-ownership-continuity-for-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/maintaining-ownership-continuity-for-your-organization.md @@ -34,7 +34,7 @@ shortTitle: 保持所有权连续性 ## 任命组织所有者 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.people %} 4. 选择要晋升为所有者的人员。 ![选择了两名成员的成员列表](/assets/images/help/teams/list-of-members-selected-bulk.png) 5. 在成员列表的上方,使用下拉菜单并单击 **Change role(更改角色)**。 ![包含删除成员选项的下拉菜单](/assets/images/help/teams/user-bulk-management-options.png) diff --git a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization.md b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization.md index 1d667d9e3c96..5e08b5d1386b 100644 --- a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization.md +++ b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization.md @@ -99,7 +99,7 @@ You can only choose an additional permission if it's not already included in the If a person is given different levels of access through different avenues, such as team membership and the base permissions for an organization, the highest access overrides the others. For example, if an organization owner gives an organization member a custom role that uses the "Read" inherited role, and then an organization owner sets the organization's base permission to "Write", then this custom role will have write access, along with any additional permissions included in the custom role. -If a person has been given conflicting access, you'll see a warning on the repository access page. The warning appears with "{% octicon "alert" aria-label="The alert icon" %} Mixed roles" next to the person with the conflicting access. To see the source of the conflicting access, hover over the warning icon or click **Mixed roles**. +{% data reusables.organizations.mixed-roles-warning %} To resolve conflicting access, you can adjust your organization's base permissions or the team's access, or edit the custom role. 更多信息请参阅: - “[设置组织的基本权限](/github/setting-up-and-managing-organizations-and-teams/setting-base-permissions-for-an-organization)” diff --git a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization.md b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization.md index 6b751cc4f6e1..2585d99f49f9 100644 --- a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization.md +++ b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization.md @@ -130,6 +130,7 @@ If your organization has a security team, you can use the security manager role | 管理默认标签(请参阅“[管理组织中仓库的默认标签](/articles/managing-default-labels-for-repositories-in-your-organization)”) | **X** | | | |{% ifversion ghec %} | 启用团队同步(详情请参阅“[管理组织的团队同步](/organizations/managing-saml-single-sign-on-for-your-organization/managing-team-synchronization-for-your-organization)”) | **X** | | | {% endif %} +| Manage pull request reviews in the organization (see "[Managing pull request reviews in your organization](/organizations/managing-organization-settings/managing-pull-request-reviews-in-your-organization)") | **X** | | | | {% elsif ghes > 3.2 or ghae-issue-4999 %} @@ -176,7 +177,9 @@ If your organization has a security team, you can use the security manager role | 将组织成员转换为[外部协作者](#outside-collaborators) | **X** | | | | [查看对组织仓库具有访问权限的人员](/articles/viewing-people-with-access-to-your-repository) | **X** | | | | [导出具有组织仓库访问权限人员的列表](/articles/viewing-people-with-access-to-your-repository/#exporting-a-list-of-people-with-access-to-your-repository) | **X** | | | -| 管理默认标签(请参阅“[管理组织中仓库的默认标签](/articles/managing-default-labels-for-repositories-in-your-organization)”) | **X** | | | +| 管理默认标签(请参阅“[管理组织中仓库的默认标签](/articles/managing-default-labels-for-repositories-in-your-organization)”) | **X** | | |{% if pull-request-approval-limit %} +| Manage pull request reviews in the organization (see "[Managing pull request reviews in your organization](/organizations/managing-organization-settings/managing-pull-request-reviews-in-your-organization)") | **X** | | | +{% endif %} {% ifversion ghae %}| Manage IP allow lists (see "[Restricting network traffic to your enterprise](/admin/configuration/restricting-network-traffic-to-your-enterprise)") | **X** | | |{% endif %} diff --git a/translations/zh-CN/content/organizations/managing-saml-single-sign-on-for-your-organization/accessing-your-organization-if-your-identity-provider-is-unavailable.md b/translations/zh-CN/content/organizations/managing-saml-single-sign-on-for-your-organization/accessing-your-organization-if-your-identity-provider-is-unavailable.md index ffb4f7eebe37..9f7f29490cc0 100644 --- a/translations/zh-CN/content/organizations/managing-saml-single-sign-on-for-your-organization/accessing-your-organization-if-your-identity-provider-is-unavailable.md +++ b/translations/zh-CN/content/organizations/managing-saml-single-sign-on-for-your-organization/accessing-your-organization-if-your-identity-provider-is-unavailable.md @@ -14,17 +14,9 @@ shortTitle: 不可用的身份提供程序 组织管理员可以使用[下载或保存的恢复代码](/articles/downloading-your-organization-s-saml-single-sign-on-recovery-codes)绕过单点登录。 您可能已将这些保存到密码管理器,如 [LastPass](https://lastpass.com/) 或 [1Password](https://1password.com/)。 -{% note %} +{% data reusables.saml.recovery-code-caveats %} -**注:**恢复代码只能使用一次,并且必须按连续的顺序使用。 恢复代码授予 24 小时访问权限。 - -{% endnote %} - -1. 在单点登录对话框底部,单击 **Use a recovery code(使用恢复代码)**绕过单点登录。 ![用于输入恢复代码的链接](/assets/images/help/saml/saml_use_recovery_code.png) -2. 在 "Recovery Code"(恢复代码)字段中,输入您的恢复代码。 ![无法输入恢复代码](/assets/images/help/saml/saml_recovery_code_entry.png) -3. 单击 **Verify(验证)**。 ![用于确认恢复代码的按钮](/assets/images/help/saml/saml_verify_recovery_codes.png) - -请务必注意,恢复代码在使用后便不再有效。 恢复代码不能重复使用。 +{% data reusables.saml.recovery-code-access %} ## 延伸阅读 diff --git a/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/converting-an-owners-team-to-improved-organization-permissions.md b/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/converting-an-owners-team-to-improved-organization-permissions.md index 687a4476bee4..3dd1cd716371 100644 --- a/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/converting-an-owners-team-to-improved-organization-permissions.md +++ b/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/converting-an-owners-team-to-improved-organization-permissions.md @@ -30,7 +30,7 @@ shortTitle: 转换所有者团队 {% endtip %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.owners-team %} {% data reusables.organizations.convert-owners-team-confirm %} 5. 在团队名称字段中,为所有者团队选择一个新名称。 例如: @@ -48,7 +48,7 @@ shortTitle: 转换所有者团队 {% endwarning %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.owners-team %} {% data reusables.organizations.convert-owners-team-confirm %} 5. 在页面底部,查看警告,然后单击 **Delete the Owners team(删除所有者团队)**。 ![删除所有者团队的链接](/assets/images/help/teams/owners-team-delete.png) diff --git a/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/migrating-admin-teams-to-improved-organization-permissions.md b/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/migrating-admin-teams-to-improved-organization-permissions.md index 94aaf490176a..69b1a12102d0 100644 --- a/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/migrating-admin-teams-to-improved-organization-permissions.md +++ b/translations/zh-CN/content/organizations/migrating-to-improved-organization-permissions/migrating-admin-teams-to-improved-organization-permissions.md @@ -40,6 +40,6 @@ shortTitle: 迁移管理团队 ## 迁移单一管理员团队 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} 1. 在团队说明框中,单击 **Migrate team(迁移团队)**。 ![迁移团队按钮](/assets/images/help/teams/migrate-a-legacy-admin-team.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/adding-organization-members-to-a-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/adding-organization-members-to-a-team.md index 31c60c081be1..e0d4f0cefa7f 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/adding-organization-members-to-a-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/adding-organization-members-to-a-team.md @@ -19,7 +19,7 @@ shortTitle: 将成员添加到团队 {% data reusables.organizations.team-synchronization %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_members_tab %} 6. 在团队成员列表上方,单击 **Add a member(添加成员)**。 ![添加成员按钮](/assets/images/help/teams/add-member-button.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/assigning-the-team-maintainer-role-to-a-team-member.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/assigning-the-team-maintainer-role-to-a-team-member.md index 48ad9abd9b86..47516fa5b50d 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/assigning-the-team-maintainer-role-to-a-team-member.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/assigning-the-team-maintainer-role-to-a-team-member.md @@ -41,7 +41,7 @@ People with the team maintainer role can manage team membership and settings. Before you can promote an organization member to team maintainer, the person must already be a member of the team. {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_members_tab %} 4. 选择要将其升级为团队维护员的人员。 ![组织成员旁的复选框](/assets/images/help/teams/team-member-check-box.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/changing-team-visibility.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/changing-team-visibility.md index f6ca68b62c81..a67463a23b09 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/changing-team-visibility.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/changing-team-visibility.md @@ -23,7 +23,7 @@ topics: {% endtip %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.teams %} 3. 选择要更改其可见性的一个或多个团队。 ![选择了两个团队的团队列表](/assets/images/help/teams/list-of-teams-selected.png) 4. 在团队列表的上方,使用下拉菜单并单击 **Change visibility(更改可见性)**。 ![包含更改团队可见性选项的下拉菜单](/assets/images/help/teams/team-bulk-management-options.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/creating-a-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/creating-a-team.md index dbe245a37d7d..ea5f0a23d55e 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/creating-a-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/creating-a-team.md @@ -20,7 +20,7 @@ topics: {% data reusables.organizations.team-synchronization %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.new_team %} {% data reusables.organizations.team_name %} {% data reusables.organizations.team_description %} diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/deleting-a-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/deleting-a-team.md index 9d4d659ee901..f74efaf04ada 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/deleting-a-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/deleting-a-team.md @@ -21,7 +21,7 @@ topics: {% endtip %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.teams %} 4. 选择要删除的团队。 ![选择了两个团队的团队列表](/assets/images/help/teams/list-of-teams-selected.png) 5. 在团队列表上方,使用下拉菜单并单击 **Delete(删除)**。 ![包含更改团队可见性选项的下拉菜单](/assets/images/help/teams/team-bulk-management-options.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team.md index 4c1f6a07f897..4565050b6d70 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team.md @@ -54,7 +54,7 @@ When code owners are automatically requested for review, the team is still remov ## Configuring team notifications {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} @@ -68,7 +68,7 @@ When code owners are automatically requested for review, the team is still remov ## Configuring auto assignment {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} @@ -92,7 +92,7 @@ When code owners are automatically requested for review, the team is still remov ## Disabling auto assignment {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} 1. 选择 **Enable auto assignment(启用自动分配)**以删除复选标记。 ![代码审查分配按钮](/assets/images/help/teams/review-assignment-enable.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-scheduled-reminders-for-your-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-scheduled-reminders-for-your-team.md index 2298c5379c16..cb49dc8dddfe 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-scheduled-reminders-for-your-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/managing-scheduled-reminders-for-your-team.md @@ -23,7 +23,7 @@ shortTitle: 预定提醒 ## 为团队创建预定提醒 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} {% data reusables.reminders.scheduled-reminders %} @@ -46,7 +46,7 @@ shortTitle: 预定提醒 ## 管理团队的预定提醒 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} {% data reusables.reminders.scheduled-reminders %} @@ -56,7 +56,7 @@ shortTitle: 预定提醒 ## Deleting a scheduled reminder for a team {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} {% data reusables.reminders.scheduled-reminders %} diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/moving-a-team-in-your-organizations-hierarchy.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/moving-a-team-in-your-organizations-hierarchy.md index d265f1efc0c0..d1c7c4b49874 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/moving-a-team-in-your-organizations-hierarchy.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/moving-a-team-in-your-organizations-hierarchy.md @@ -30,7 +30,7 @@ shortTitle: 移动团队 {% endtip %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.teams %} 4. 在团队列表中,单击您要更改其父团队的团队名称。 ![组织的团队列表](/assets/images/help/teams/click-team-name.png) {% data reusables.organizations.team_settings %} diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/removing-organization-members-from-a-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/removing-organization-members-from-a-team.md index f41fb2bc0208..8a112ce80005 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/removing-organization-members-from-a-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/removing-organization-members-from-a-team.md @@ -19,7 +19,7 @@ shortTitle: 删除成员 {% data reusables.repositories.deleted_forks_from_private_repositories_warning %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} 4. 选择您想要删除的一个或多个人员。 ![组织成员旁的复选框](/assets/images/help/teams/team-member-check-box.png) 5. 在团队成员列表上方,使用下拉菜单,然后单击 **Remove from team(从团队中删除)**。 ![包含更改角色选项的下拉菜单](/assets/images/help/teams/bulk-edit-drop-down.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/renaming-a-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/renaming-a-team.md index 5a115ce850ca..a8172c670110 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/renaming-a-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/renaming-a-team.md @@ -15,7 +15,7 @@ topics: --- {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} 5. 输入团队的新名称或说明。 ![团队名称和说明的字段](/assets/images/help/teams/team-name-description.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-a-child-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-a-child-team.md index afa5bf00e09b..65f09d50c4f3 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-a-child-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-a-child-team.md @@ -22,7 +22,7 @@ shortTitle: 添加子团队 {% data reusables.organizations.child-team-inherits-permissions %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.teams %} 4. 在团队列表中,单击您要在其中添加子团队的父团队名称。 ![组织的团队列表](/assets/images/help/teams/click-team-name.png) 5. 在团队页面顶部,单击 {% octicon "people" aria-label="The people icon" %} **Teams(团队)**。 ![团队页面上的团队选项卡](/assets/images/help/teams/team-teams-tab.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-or-change-a-parent-team.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-or-change-a-parent-team.md index 245d0e45f16f..89cbf4dd2d5b 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-or-change-a-parent-team.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/requesting-to-add-or-change-a-parent-team.md @@ -22,7 +22,7 @@ shortTitle: 添加或更改父团队 {% data reusables.organizations.child-team-inherits-permissions %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.teams %} 4. 在团队列表中,单击您要在父团队下嵌套的团队的名称。 ![组织的团队列表](/assets/images/help/teams/click-team-name.png) {% data reusables.organizations.team_settings %} diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/setting-your-teams-profile-picture.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/setting-your-teams-profile-picture.md index c74625870180..406f7c373300 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/setting-your-teams-profile-picture.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/setting-your-teams-profile-picture.md @@ -19,7 +19,7 @@ shortTitle: 团队头像 除非您设置团队的头像,否则团队头像将与组织的头像一致。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} 5. 单击 **Upload new picture(上传新图片)**并选择所需的头像。 ![上传新图片](/assets/images/help/teams/org-team-profile-picture-upload.png) diff --git a/translations/zh-CN/content/organizations/organizing-members-into-teams/synchronizing-a-team-with-an-identity-provider-group.md b/translations/zh-CN/content/organizations/organizing-members-into-teams/synchronizing-a-team-with-an-identity-provider-group.md index 91450cd1b09b..db7820dfb01e 100644 --- a/translations/zh-CN/content/organizations/organizing-members-into-teams/synchronizing-a-team-with-an-identity-provider-group.md +++ b/translations/zh-CN/content/organizations/organizing-members-into-teams/synchronizing-a-team-with-an-identity-provider-group.md @@ -77,7 +77,7 @@ shortTitle: 与 IdP 同步 将 IdP 组连接到 {% data variables.product.product_name %} 团队时,组中的所有用户都会自动添加到团队中。 {% ifversion ghae %}任何尚未成为父组织成员的用户也会添加到组织。{% endif %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} {% ifversion ghec %} @@ -90,7 +90,7 @@ shortTitle: 与 IdP 同步 如果您断开 IdP 组与 {% data variables.product.prodname_dotcom %} 团队的连接,则通过 IdP 组分配给 {% data variables.product.prodname_dotcom %} 团队的团队成员将从团队中删除。 {% ifversion ghae %} 任何只是因为团队连接而成为父组织成员的用户也会从组织中删除。{% endif %} {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} {% data reusables.organizations.specific_team %} {% data reusables.organizations.team_settings %} {% ifversion ghec %} diff --git a/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md b/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md index 034353899453..449ca03e9cc8 100644 --- a/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md +++ b/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md @@ -47,7 +47,7 @@ shortTitle: 关于权限 例如: - 要从仓库下载和安装包,您的令牌必须具有 `read:packages` 作用域,并且您的用户帐户必须具有读取权限。 -- {% ifversion fpt or ghes > 3.0 or ghec %}要在 {% data variables.product.product_name %}上删除软件包,您的令牌至少必须有 `delete:packages` 和 `read:packages` 作用域。 Repo-scoped 软件包也需要 `repo` 作用域。{% elsif ghes < 3.1 %}要在 {% data variables.product.product_name %} 上删除私有软件的指定版本,您的令牌必须具有 `delete:packages` 和 `repo` 作用域。 Public packages cannot be deleted.{% elsif ghae %}To delete a specified version of a package on {% data variables.product.product_name %}, your token must have the `delete:packages` and `repo` scope.{% endif %} For more information, see "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}." +- {% ifversion fpt or ghes > 3.0 or ghec %}要在 {% data variables.product.product_name %}上删除软件包,您的令牌至少必须有 `delete:packages` 和 `read:packages` 作用域。 Repo-scoped 软件包也需要 `repo` 作用域。{% elsif ghes < 3.1 %}要在 {% data variables.product.product_name %} 上删除私有软件的指定版本,您的令牌必须具有 `delete:packages` 和 `repo` 作用域。 公共包不能删除。{% elsif ghae %}要在 {% data variables.product.product_name %} 上删除包的指定版本,您必须具有 `delete:packages` 和 `repo` 作用域。{% endif %} 更多信息请参阅“{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[删除包](/packages/learn-github-packages/deleting-a-package){% endif %}”。 | 作用域 | 描述 | 所需权限 | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------ | diff --git a/translations/zh-CN/content/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility.md b/translations/zh-CN/content/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility.md index 9d40ba17d12a..4c92d59dea59 100644 --- a/translations/zh-CN/content/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility.md +++ b/translations/zh-CN/content/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility.md @@ -86,33 +86,33 @@ shortTitle: 访问控制和可见性 要进一步自定义对容器映像的访问,请参阅“[配置对组织的容器映像的访问](#configuring-access-to-container-images-for-an-organization)”。 -## Ensuring {% data variables.product.prodname_codespaces %} access to your package +## 确保 {% data variables.product.prodname_codespaces %} 访问您的软件包 -By default, a codespace can seamlessly access certain packages in the {% data variables.product.prodname_dotcom %} Container Registry, such as those published in the same repository with the **Inherit access** option selected. For more information on which access is automatically configured, see "[Accessing images stored in {% data variables.product.prodname_dotcom %} Container Registry](/codespaces/codespaces-reference/allowing-your-codespace-to-access-a-private-image-registry#accessing-images-stored-in-github-container-registry)." +默认情况下,代码空间可以无缝访问 {% data variables.product.prodname_dotcom %} 容器注册表中的某些包,例如在选中了 **Inherit access(继承访问)**选项的同一仓库中发布的包。 有关自动配置哪些访问权限的详细信息,请参阅“[访问存储在容器注册表 {% data variables.product.prodname_dotcom %} 中的映像](/codespaces/codespaces-reference/allowing-your-codespace-to-access-a-private-image-registry#accessing-images-stored-in-github-container-registry)”。 -Otherwise, to ensure that a codespace has access to your package, you must grant access to the repository where the codespace is being launched. +否则,为了确保代码空间能够访问您的软件包,必须授予对启动代码空间的仓库的访问权限。 -指定的仓库不需要是保存包源代码的仓库。 You can give codespaces in multiple repositories access to a package. +指定的仓库不需要是保存包源代码的仓库。 您可以授予多个仓库中的代码空间对包的访问权限。 -Once you've selected the package you're interested in sharing with codespaces in a repository, you can grant that repo access. +选择您想与仓库中的代码空间共享的包后,可以授予该仓库访问权限。 -1. In the right sidebar, click **Package settings**. +1. 在右侧边栏单击 **Package settings(包设置)**。 - !["Package settings" option in right menu](/assets/images/help/package-registry/package-settings.png) + ![右侧菜单中的"Package settings(包设置)"选项](/assets/images/help/package-registry/package-settings.png) -2. Under "Manage Codespaces access", click **Add repository**. +2. 在“Manage Codespaces access(管理 Codespaces 访问)”下,单击 **Add repository(添加仓库)**。 !["添加仓库"按钮](/assets/images/help/package-registry/manage-codespaces-access-blank.png) -3. Search for the repository you want to add. +3. 搜索要添加的仓库。 !["添加仓库"按钮](/assets/images/help/package-registry/manage-codespaces-access-search.png) -4. Repeat for any additional repositories you would like to allow access. +4. 对要允许访问的任何其他仓库重复此步骤。 -5. If the codespaces for a repository no longer need access to an image, you can remove access. +5. 如果仓库的代码空间不再需要访问映像,则可以删除访问权限。 - !["Remove repository" button](/assets/images/help/package-registry/manage-codespaces-access-item.png) + !["Remove repository(删除仓库)"按钮](/assets/images/help/package-registry/manage-codespaces-access-item.png) ## 为个人帐户配置容器映像的可见性 @@ -140,7 +140,7 @@ Once you've selected the package you're interested in sharing with codespaces in 6. 在“Container creation(容器创建)”下,选择是要启用公共、私有或内部容器映像。 - 要让组织成员创建公共容器映像,请单击 **Public(公共)**。 - 要让组织成员创建只对其他组织成员可见的私有容器映像,请单击 **Private(私有)**。 您可以进一步自定义私有容器映像的可见性。 - - To enable organization members to create internal container images that are visible to all organization members, click **Internal**. If the organization belongs to an enterprise, the container images will be visible to all enterprise members. ![组织成员发布的容器图像的可见性选项](/assets/images/help/package-registry/container-creation-org-settings.png) + - 要使组织成员能够创建对所有组织成员可见的内部容器映像,请单击 **Internal(内部)**。 如果组织属于企业,则容器映像将对所有企业成员可见。 ![组织成员发布的容器图像的可见性选项](/assets/images/help/package-registry/container-creation-org-settings.png) ## 为组织配置容器映像的可见性 diff --git a/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md b/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md index 1c25862e1021..35037f14f4af 100644 --- a/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md +++ b/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md @@ -211,7 +211,7 @@ HOSTNAME/graphql 如果包在您的一个仓库中或范围限于您的用户帐,则您可以通过用户帐户设置恢复已删除的包。 更多信息请参阅“[必需权限](#required-permissions-to-delete-or-restore-a-package)”。 -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 2. 在左侧,单击 **Packages(包)**。 4. 在“Deleted Packages(已删除的包)”下要恢复的包旁边,单击 **Restore(恢复)**。 ![恢复按钮](/assets/images/help/package-registry/restore-option-for-deleted-package-in-an-org.png) 5. 要确认,请输入包名称,然后单击**I understand the consequences, restore this package(我明白后果,恢复此包)**。 ![恢复包确认按钮](/assets/images/help/package-registry/type-package-name-and-restore-button.png) diff --git a/translations/zh-CN/content/packages/learn-github-packages/viewing-packages.md b/translations/zh-CN/content/packages/learn-github-packages/viewing-packages.md index 47c20f206326..5b7d3a04e906 100644 --- a/translations/zh-CN/content/packages/learn-github-packages/viewing-packages.md +++ b/translations/zh-CN/content/packages/learn-github-packages/viewing-packages.md @@ -51,7 +51,7 @@ versions: 您可以查找并查看位于您所属组织的仓库中的包。 {% data reusables.profile.access_org %} -{% data reusables.user_settings.access_org %} +{% data reusables.user-settings.access_org %} 3. 在组织名称下,单击 {% octicon "package" aria-label="The package icon" %} **Packages(包)**。 {% data reusables.package_registry.navigate-to-packages %} diff --git a/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages.md b/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages.md index fc37d655fb74..d8e5302de3e4 100644 --- a/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages.md +++ b/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages.md @@ -22,7 +22,7 @@ It's also possible to verify a domain for your organization{% ifversion ghec %} ## Verifying a domain for your user site -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 1. In the "Code, planning, and automation" section of the sidebar, click **{% octicon "browser" aria-label="The pages icon" %} Pages**. {% data reusables.pages.settings-verify-domain-setup %} 1. Wait for your DNS configuration to change, this may be immediate or take up to 24 hours. You can confirm the change to your DNS configuration by running the `dig` command on the command line. In the command below, replace `USERNAME` with your username and `example.com` with the domain you're verifying. If your DNS configuration has updated, you should see your new TXT record in the output. diff --git a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md index c97f07dfcb6e..7d0f9e3a27ab 100644 --- a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md +++ b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md @@ -37,8 +37,18 @@ You can provide feedback about auto-merge through a [{% data variables.product.p 1. 在“Pull Requests(拉取请求)”列表中,单击要自动合并的拉取请求。 1. (可选)要选择合并方法,请选择 **Enable auto-merge(启用自动合并)**下拉菜单,然后单击合并方法。 更多信息请参阅“[关于拉取请求合并](/github/collaborating-with-issues-and-pull-requests/about-pull-request-merges)”。 !["启用自动合并"下拉菜单](/assets/images/help/pull_requests/enable-auto-merge-drop-down.png) 1. 单击 **Enable auto-merge(启用自动合并)**。 ![启用自动合并的按钮](/assets/images/help/pull_requests/enable-auto-merge-button.png) + {% ifversion fpt %} 1. 如果选择合并或压缩并合并方法,请输入提交消息和说明,然后选择要创作合并提交的电子邮件地址。 ![输入提交消息和说明并选择提交作者电子邮件的字段](/assets/images/help/pull_requests/pull-request-information-fields.png) -1. 单击 **Confirm auto-merge(确认自动合并)**。 ![确认自动合并的按钮](/assets/images/help/pull_requests/confirm-auto-merge-button.png) + {% note %} + + **Note:** The email dropdown menu is not available if you have email privacy enabled or if you only have one verified and visible email associated with your {% data variables.product.company_short %} account. + + {% endnote %} + {% endif %} + {% ifversion ghes > 3.0 or ghae or ghec %} +1. If you chose the merge or squash and merge methods, type a commit message and description. ![Fields to enter commit message and description](/assets/images/help/pull_requests/pull-request-information-fields-enterprise.png) + {% endif %} +1. 单击 **Confirm auto-merge(确认自动合并)**。 ## 禁用自动合并 diff --git a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/reverting-a-pull-request.md b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/reverting-a-pull-request.md index 6aaa57151527..9650377408c9 100644 --- a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/reverting-a-pull-request.md +++ b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/reverting-a-pull-request.md @@ -17,7 +17,7 @@ topics: ## 关于还原拉取请求 -在 {% data variables.product.product_name %} 上还原拉取请求会创建一个新拉取请求。其中包含原始合并拉取请求中一个还原的合并提交。 +在 {% data variables.product.product_name %} 上还原拉取请求会创建一个新拉取请求。其中包含原始合并拉取请求中一个还原的合并提交。 To revert pull requests, you must have [write permissions](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization) in the repository. ## 还原拉取请求 @@ -34,5 +34,5 @@ topics: {% data reusables.repositories.sidebar-pr %} 2. 在“Pull Requests(拉取请求)”列表中,单击要还原的拉取请求。 -3. 在拉取请求底部附近,单击 **Revert(还原)**。 ![还原拉取请求链接](/assets/images/help/pull_requests/revert-pull-request-link.png) +3. 在拉取请求底部附近,单击 **Revert(还原)**。 If the **Revert** option isn't displayed, you'll need to ask the repository administrator for write permissions. ![还原拉取请求链接](/assets/images/help/pull_requests/revert-pull-request-link.png) 4. 合并产生的拉取请求。 更多信息请参阅“[合并拉取请求](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request)”。 diff --git a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests.md b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests.md index a15a7a7cdd66..e418e06287d2 100644 --- a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests.md +++ b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests.md @@ -32,7 +32,7 @@ You can create pull requests on {% data variables.product.prodname_dotcom_the_we 在创建拉取请求后,您可以从主题分支推送提交,以将它们添加到现有的拉取请求。 这些提交将以时间顺序显示在您的拉取请求中,在 "Files changed"(更改的文件)选项卡中可以看到更改。 -其他贡献者可以审查您提议的更改,添加审查注释,参与拉取请求讨论,甚至对拉取请求添加评论。 +其他贡献者可以审查您提议的更改,添加审查注释,参与拉取请求讨论,甚至对拉取请求添加评论。 {% if pull-request-approval-limit %}{% data reusables.pull_requests.code-review-limits %}{% endif %} {% ifversion fpt or ghec %} 您可以在“Conversation(对话)”选项卡上查看有关分支当前部署状态和以前部署活动的信息。 更多信息请参阅“[查看仓库的部署活动](/repositories/viewing-activity-and-data-for-your-repository/viewing-deployment-activity-for-your-repository)”。 @@ -72,6 +72,6 @@ You can create pull requests on {% data variables.product.prodname_dotcom_the_we ## 延伸阅读 - {% data variables.product.prodname_dotcom %} 词汇中的“[拉取请求](/articles/github-glossary/#pull-request)” -- "[About branches](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)" +- "[关于分支](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)" - "[评论拉取请求](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request)" - "[关闭拉取请求](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/closing-a-pull-request)" diff --git a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository.md b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository.md index 40842bc2649c..e65022bbf5cc 100644 --- a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository.md +++ b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository.md @@ -45,6 +45,6 @@ shortTitle: 创建和删除分支 ## 延伸阅读 -- "[About branches](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)" +- "[关于分支](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)" - “[查看仓库中的分支](/github/administering-a-repository/viewing-branches-in-your-repository)” - "[删除和恢复拉取请求中的分支](/github/administering-a-repository/deleting-and-restoring-branches-in-a-pull-request)" diff --git a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review.md b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review.md index ca97a53b1339..7afd4c566b8c 100644 --- a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review.md +++ b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review.md @@ -1,6 +1,7 @@ --- title: 请求拉取请求审查 intro: 创建拉取请求后,您可以请求特定人员审查您提议的更改。 如果您是组织成员,还可以请求特定团队审查您的更改。 +product: '{% data reusables.gated-features.multiple-pr-reviewers %}' redirect_from: - /github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review - /articles/requesting-a-pull-request-review @@ -29,9 +30,9 @@ shortTitle: 请求 PR 审查 您可以向建议的或特定的人员请求审查。 建议的审查者基于 [git 追溯数据](/articles/tracking-changes-in-a-file/)。 如果您请求审查,则具有仓库读取权限的其他人仍可审查您的拉取请求。 在有人审查您的拉取请求后您做了必要的更改,您可以重新请求同一审查者再次审查。 如果请求的审查者未提交审查,并且拉取请求满足仓库的[可合并性要求](/articles/defining-the-mergeability-of-pull-requests),则您仍然可以合并该拉取请求。 {% data reusables.repositories.sidebar-pr %} -2. 在拉取请求列表中,单击您想要请求特定人员或团队审查的拉取请求。 -3. 导航到右侧边栏中的 **Reviewers(审查者)**。 -4. 要向建议的人员请求审查,在 **Reviewers(审查者)**下其用户名旁边,单击 **Request(请求)**。 ![右侧边栏中的审查者请求图标](/assets/images/help/pull_requests/request-suggested-review.png) +1. 在拉取请求列表中,单击您想要请求特定人员或团队审查的拉取请求。 +2. 导航到右侧边栏中的 **Reviewers(审查者)**。 +3. 要向建议的人员请求审查,在 **Reviewers(审查者)**下其用户名旁边,单击 **Request(请求)**。 ![右侧边栏中的审查者请求图标](/assets/images/help/pull_requests/request-suggested-review.png) 5. (可选)要向建议人员以外的其他人请求审查,请单击 **Reviewers(审查者)**,然后单击下拉列表中的姓名。 ![右侧边栏中的审查者齿轮图标](/assets/images/help/pull_requests/request-a-review-not-suggested.png) 6. (可选)如果您知道想要其审查的人员或团队的名称,请单击 **Reviewers(审查者)**,然后输入您请求审查更改的人员用户名或团队名称。 单击其团队名称或用户名以请求审查。 ![用于输入审查者用户名的字段和带审查者姓名的下拉菜单](/assets/images/help/pull_requests/choose-pull-request-reviewer.png) 7. 审查您的拉取请求并且您已进行必要的更改后,可以请求审查者重新审查您的拉取请求。 导航到右侧边栏中的 **Reviewers(审查者)**,然后单击您想要其审查的审查者姓名旁边的 {% octicon "sync" aria-label="The sync icon" %}。 ![重新审查右侧边栏中的同步图标](/assets/images/help/pull_requests/request-re-review.png) diff --git a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews.md b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews.md index d66121e209c9..56f1dd8e2131 100644 --- a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews.md +++ b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews.md @@ -20,6 +20,8 @@ shortTitle: 关于 PR 审查 打开拉取请求后,具有*读取*权限的任何人都可以查看该拉取请求提议的更改并进行评论。 您也可以建议对代码行的具体更改,作者可直接从拉取请求应用这些更改。 更多信息请参阅“[审查拉取请求中提议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)”。 +{% if pull-request-approval-limit %}{% data reusables.pull_requests.code-review-limits %}{% endif %} + 仓库所有者和协作者可向具体的个人申请拉取请求审查。 组织成员也可向具有仓库读取权限的团队申请拉取请求审查。 更多信息请参阅“[申请拉取请求审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review)”。 {% ifversion fpt or ghae or ghes or ghec %}您可以指定自动分配一部分团队成员,而不是分配整个团队。 For more information, see "[Managing code review settings for your team](/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team)."{% endif %} 审查允许讨论提议的更改,帮助确保更改符合仓库的参与指南及其他质量标准。 您可以在 CODEOWNERS 文件中定义哪些个人或团队拥有代码的特定类型或区域。 当拉取请求修改定义了所有者的代码时,该个人或团队将自动被申请为审查者。 更多信息请参阅“[关于代码所有者](/articles/about-code-owners/)”。 diff --git a/translations/zh-CN/content/repositories/archiving-a-github-repository/archiving-repositories.md b/translations/zh-CN/content/repositories/archiving-a-github-repository/archiving-repositories.md index 5ddc0bb3049c..a5146ec04852 100644 --- a/translations/zh-CN/content/repositories/archiving-a-github-repository/archiving-repositories.md +++ b/translations/zh-CN/content/repositories/archiving-a-github-repository/archiving-repositories.md @@ -27,6 +27,14 @@ topics: {% endnote %} {% endif %} +{% ifversion ghec or ghes > 3.4 or ghae-issue-6329 %} +{% note %} + +**Note:** Customers who use {% data variables.product.prodname_GH_advanced_security %} can enable {% data variables.product.prodname_secret_scanning %} on archived repositories. 更多信息请参阅“[关于 {% data variables.product.prodname_secret_scanning %}](/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-private-repositories)”。 + +{% endnote %} +{% endif %} + {% data reusables.repositories.archiving-repositories-recommendation %} 在仓库存档后,便无法添加或删除协作者或团队。 具有仓库访问权限的贡献者只能对项目复刻或标星。 diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/about-merge-methods-on-github.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/about-merge-methods-on-github.md index f381c50aef13..49747d1b2774 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/about-merge-methods-on-github.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/about-merge-methods-on-github.md @@ -12,7 +12,7 @@ versions: ghec: '*' topics: - Repositories -shortTitle: About merge methods +shortTitle: 关于合并方法 --- {% data reusables.pull_requests.configure_pull_request_merges_intro %} 您可以只对仓库启用所需的方法,以实施一种合并方法,如提交压缩或变基。 @@ -20,7 +20,7 @@ shortTitle: About merge methods {% ifversion fpt or ghec %} {% note %} -**Note:** When using the merge queue, you no longer get to choose the merge method, as this is controlled by the queue. {% data reusables.pull_requests.merge-queue-references %} +**注意:**使用合并队列时,您将无法再选择合并方法,因为这由队列控制。 {% data reusables.pull_requests.merge-queue-references %} {% endnote %} {% endif %} diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches.md index 9043262f772c..bec3d6702f23 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches.md @@ -19,7 +19,7 @@ shortTitle: 自动删除分支 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} -3. Under {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6069 %}"Pull Requests"{% else %}"Merge button"{% endif %}, select or unselect **Automatically delete head branches**. ![启用或禁用分支自动删除的复选框](/assets/images/help/repository/automatically-delete-branches.png) +3. 在 {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6069 %}“拉取请求”{% else %}“合并按钮”{% endif %} 下,选择或取消选择 **Automatically delete head branches(自动删除头部分支)**。 ![启用或禁用分支自动删除的复选框](/assets/images/help/repository/automatically-delete-branches.png) ## 延伸阅读 - "[合并拉取请求](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request)" diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches.md index feae43c9620f..2a18627c2090 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches.md @@ -160,7 +160,7 @@ Any person or integration with write permissions to a repository can set the sta ### 允许强制推送 -{% ifversion fpt or ghec %} +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5624 %} 默认情况下,{% data variables.product.product_name %} 阻止对所有受保护分支的强制推送。 When you enable force pushes to a protected branch, you can choose one of two groups who can force push: 1. Allow everyone with at least write permissions to the repository to force push to the branch, including those with admin permissions. diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule.md index 4976a307b3e5..cfbf8ca1b28d 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule.md @@ -51,7 +51,7 @@ For more information about each of the available branch protection settings, see {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.repository-branches %} {% data reusables.repositories.add-branch-protection-rules %} -{% ifversion fpt or ghec %} +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5506 %} 1. Optionally, enable required pull requests. - Under "Protect matching branches", select **Require a pull request before merging**. ![拉取请求审查限制复选框](/assets/images/help/repository/PR-reviews-required-updated.png) - Optionally, to require approvals before a pull request can be merged, select **Require approvals**, click the **Required number of approvals before merging** drop-down menu, then select the number of approving reviews you would like to require on the branch. ![用于选择必需审查批准数量的下拉菜单](/assets/images/help/repository/number-of-required-review-approvals-updated.png) @@ -62,7 +62,7 @@ For more information about each of the available branch protection settings, see {% endif %} - (可选)要在将代码修改提交推送到分支时忽略拉取请求批准审查,请选择 **Dismiss stale pull request approvals when new commits are pushed(推送新提交时忽略旧拉取请求批准)**。 ![在推送新提交时,关闭旧拉取请求批准的复选框](/assets/images/help/repository/PR-reviews-required-dismiss-stale.png) - (可选)要在拉取请求影响具有指定所有者的代码时要求代码所有者审查,请选择 **Require review from Code Owners(需要代码所有者审查)**。 更多信息请参阅“[关于代码所有者](/github/creating-cloning-and-archiving-repositories/about-code-owners)”。 ![代码所有者的必需审查](/assets/images/help/repository/PR-review-required-code-owner.png) -{% ifversion fpt or ghec %} +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5611 %} - Optionally, to allow specific people or teams to push code to the branch without being subject to the pull request rules above, select **Allow specific actors to bypass pull request requirements**. Then, search for and select the people or teams who are allowed to bypass the pull request requirements. ![Allow specific actors to bypass pull request requirements checkbox](/assets/images/help/repository/PR-bypass-requirements.png) {% endif %} - (可选)如果仓库属于组织,请选择 **Restrict who can dismiss pull request reviews(限制谁可以忽略拉取请求审查)**。 然后,搜索并选择有权忽略拉取请求审查的人员或团队。 更多信息请参阅“[忽略拉取请求审查](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/dismissing-a-pull-request-review)”。 ![限制可以忽略拉取请求审查的人员复选框](/assets/images/help/repository/PR-review-required-dismissals.png) @@ -88,7 +88,7 @@ For more information about each of the available branch protection settings, see - 选择 **Restrict who can push to matching branches(限制谁可以推送到匹配分支)**。 ![分支限制复选框](/assets/images/help/repository/restrict-branch.png) - 搜索并选择有权限推送到受保护分支的人员、团队或应用程序。 ![分支限制搜索](/assets/images/help/repository/restrict-branch-search.png) 1. (可选)在“Rules applied to everyone including administrators(适用于包括管理员在内的所有人规则)”下,选择 **Allow force pushes(允许强制推送)**。 ![允许强制推送选项](/assets/images/help/repository/allow-force-pushes.png) -{% ifversion fpt or ghec %} +{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5624 %} Then, choose who can force push to the branch. - Select **Everyone** to allow everyone with at least write permissions to the repository to force push to the branch, including those with admin permissions. - Select **Specify who can force push** to allow only specific people or teams to force push to the branch. Then, search for and select those people or teams. ![Screenshot of the options to specify who can force push](/assets/images/help/repository/allow-force-pushes-specify-who.png) diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/index.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/index.md index 41e102a54a2e..db8fbf0da5a2 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/index.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/index.md @@ -1,6 +1,6 @@ --- -title: Configuring branches and merges in your repository -intro: 'You can manage branches in your repository, configure the way branches are merged in your repository, and protect important branches by defining the mergeability of pull requests.' +title: 在存储库中配置分支和合并 +intro: 您可以管理存储库中的分支,配置分支在存储库中的合并方式,并通过定义拉取请求的可合并性来保护重要分支。 versions: fpt: '*' ghes: '*' @@ -12,6 +12,6 @@ children: - /managing-branches-in-your-repository - /configuring-pull-request-merges - /defining-the-mergeability-of-pull-requests -shortTitle: Branches and merges +shortTitle: 分支和合并 --- diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/deleting-and-restoring-branches-in-a-pull-request.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/deleting-and-restoring-branches-in-a-pull-request.md index a41f9692a245..fcda45eb9029 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/deleting-and-restoring-branches-in-a-pull-request.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/deleting-and-restoring-branches-in-a-pull-request.md @@ -15,7 +15,7 @@ versions: ghec: '*' topics: - Repositories -shortTitle: Delete & restore branches +shortTitle: 删除和恢复分支 --- ## 删除用于拉取请求的分支 diff --git a/translations/zh-CN/content/repositories/creating-and-managing-repositories/cloning-a-repository.md b/translations/zh-CN/content/repositories/creating-and-managing-repositories/cloning-a-repository.md index 80efa691b631..0ad29594857e 100644 --- a/translations/zh-CN/content/repositories/creating-and-managing-repositories/cloning-a-repository.md +++ b/translations/zh-CN/content/repositories/creating-and-managing-repositories/cloning-a-repository.md @@ -86,7 +86,7 @@ gh repo clone https://github.com/cli/cli - 您可以使用 HTTPS 连接。 更多信息请参阅“[HTTPS 克隆错误](/github/creating-cloning-and-archiving-repositories/https-cloning-errors)”。 - 您有权访问要克隆的仓库。 更多信息请参阅“[错误:找不到仓库](/github/creating-cloning-and-archiving-repositories/error-repository-not-found)”。 -- 要克隆的默认分支仍然存在。 您有权访问要克隆的仓库。 更多信息请参阅“[错误:远程 HEAD 引用不存在的 ref,无法检出](/github/creating-cloning-and-archiving-repositories/error-remote-head-refers-to-nonexistent-ref-unable-to-checkout)”。 +- 要克隆的默认分支仍然存在。 更多信息请参阅“[错误:远程 HEAD 引用不存在的 ref,无法检出](/repositories/creating-and-managing-repositories/troubleshooting-cloning-errors#error-remote-head-refers-to-nonexistent-ref-unable-to-checkout)”。 {% ifversion fpt or ghec %} diff --git a/translations/zh-CN/content/repositories/creating-and-managing-repositories/index.md b/translations/zh-CN/content/repositories/creating-and-managing-repositories/index.md index b695df6407f3..ae6028569e3a 100644 --- a/translations/zh-CN/content/repositories/creating-and-managing-repositories/index.md +++ b/translations/zh-CN/content/repositories/creating-and-managing-repositories/index.md @@ -1,6 +1,6 @@ --- -title: Creating and managing repositories -intro: 'You can create a repository on {% data variables.product.product_name %} to store and collaborate on your project''s files, then manage the repository''s name and location.' +title: 创建和管理存储库 +intro: '您可以在 {% data variables.product.product_name %} 上创建存储库以存储和协作处理项目的文件,然后管理存储库的名称和位置。' redirect_from: - /articles/creating-a-repository-on-github - /github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github @@ -24,6 +24,6 @@ children: - /transferring-a-repository - /deleting-a-repository - /restoring-a-deleted-repository -shortTitle: Create & manage repositories +shortTitle: 创建和管理存储库 --- diff --git a/translations/zh-CN/content/repositories/creating-and-managing-repositories/restoring-a-deleted-repository.md b/translations/zh-CN/content/repositories/creating-and-managing-repositories/restoring-a-deleted-repository.md index 6f80196c142a..d6f054c5dec2 100644 --- a/translations/zh-CN/content/repositories/creating-and-managing-repositories/restoring-a-deleted-repository.md +++ b/translations/zh-CN/content/repositories/creating-and-managing-repositories/restoring-a-deleted-repository.md @@ -30,11 +30,11 @@ shortTitle: 恢复已删除的仓库 ## 恢复用户帐户所拥有的已删除仓库 -{% data reusables.user_settings.access_settings %} -{% data reusables.user_settings.repo-tab %} -{% data reusables.user_settings.deleted-repos %} -{% data reusables.user_settings.restore-repo %} -{% data reusables.user_settings.restore-confirmation %} +{% data reusables.user-settings.access_settings %} +{% data reusables.user-settings.repo-tab %} +{% data reusables.user-settings.deleted-repos %} +{% data reusables.user-settings.restore-repo %} +{% data reusables.user-settings.restore-confirmation %} ## 恢复组织所拥有的已删除仓库 @@ -42,8 +42,8 @@ shortTitle: 恢复已删除的仓库 {% data reusables.profile.access_org %} {% data reusables.profile.org_settings %} {% data reusables.organizations.deleted-repos %} -{% data reusables.user_settings.restore-repo %} -{% data reusables.user_settings.restore-confirmation %} +{% data reusables.user-settings.restore-repo %} +{% data reusables.user-settings.restore-confirmation %} ## 延伸阅读 diff --git a/translations/zh-CN/content/repositories/index.md b/translations/zh-CN/content/repositories/index.md index f8e4c4db9a86..58dba8a74ff7 100644 --- a/translations/zh-CN/content/repositories/index.md +++ b/translations/zh-CN/content/repositories/index.md @@ -1,6 +1,6 @@ --- title: 仓库 -intro: Learn to use and manage the repositories that allow you to store and collaborate on your project's code. +intro: 了解如何使用和管理存储库,以便存储项目代码并进行协作。 introLinks: quickstart: /get-started/quickstart/create-a-repo overview: /repositories/creating-and-managing-repositories/about-repositories diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners.md index 0909edba93c4..bf408ca1799b 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners.md @@ -50,9 +50,14 @@ To reduce the size of your CODEOWNERS file, consider using wildcard patterns to CODEOWNERS 文件使用遵循 [gitignore](https://git-scm.com/docs/gitignore#_pattern_format) 文件中所用大多数规则的模式,但有[一些例外](#syntax-exceptions)。 模式后接一个或多个使用标准 `@username` 或 `@org/team-name` 格式的 {% data variables.product.prodname_dotcom %} 用户名或团队名称。 Users must have `read` access to the repository and teams must have explicit `write` access, even if the team's members already have access. You can also refer to a user by an email address that has been added to their account on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}, for example `user@example.com`. +CODEOWNERS paths are case sensitive, because {% data variables.product.prodname_dotcom %} uses a case sensitive file system. Since CODEOWNERS are evaluated by {% data variables.product.prodname_dotcom %}, even systems that are case insensitive (for example, macOS) must use paths and files that are cased correctly in the CODEOWNERS file. + +{% if codeowners-errors %} +If any line in your CODEOWNERS file contains invalid syntax, that line will be skipped. When you navigate to the CODEOWNERS file in your repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}, you can see any errors highlighted. A list of errors in a repository's CODEOWNERS file is also accessible via the API. 更多信息请参阅 REST API 文档中的“[仓库](/rest/reference/repos#list-codeowners-errors)”。 +{% else %} 如果 CODEOWNERS 文件中的任何行包含无效语法,则该文件将不会被检测并且不会用于请求审查。 +{% endif %} -CODEOWNERS paths are case sensitive, because {% data variables.product.prodname_dotcom %} uses a case sensitive file system. Since CODEOWNERS are evaluated by {% data variables.product.prodname_dotcom %}, even systems that are case insensitive (for example, macOS) must use paths and files that are cased correctly in the CODEOWNERS file. ### CODEOWNERS 文件示例 ``` # This is a comment. diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md index f6b38871a1ff..1619c037aa9e 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md @@ -1,6 +1,6 @@ --- -title: 管理仓库的安全性和分析设置 -intro: '您可以控制功能以保护 {% data variables.product.prodname_dotcom %} 上项目的安全并分析其中的代码。' +title: Managing security and analysis settings for your repository +intro: 'You can control features that secure and analyze the code in your project on {% data variables.product.prodname_dotcom %}.' permissions: People with admin permissions to a repository can manage security and analysis settings for the repository. redirect_from: - /articles/managing-alerts-for-vulnerable-dependencies-in-your-organization-s-repositories @@ -22,22 +22,22 @@ topics: - Dependency graph - Secret scanning - Repositories -shortTitle: 安全和分析 +shortTitle: Security & analysis --- - {% ifversion fpt or ghec %} -## 为公共仓库启用或禁用安全和分析功能 +## Enabling or disabling security and analysis features for public repositories -您可以管理公共仓库的一部分安全和分析功能。 其他功能是永久启用的,包括依赖项图和密码扫描。 +You can manage a subset of security and analysis features for public repositories. Other features are permanently enabled, including dependency graph and secret scanning. {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**.{% ifversion fpt %} !["Enable" or "Disable" button for "Configure security and analysis" features in a public repository](/assets/images/help/repository/security-and-analysis-disable-or-enable-fpt-public.png){% elsif ghec %} -!["Enable" or "Disable" button for "Configure security and analysis" features in a public repository](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghec-public.png){% endif %} +4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**.{% ifversion fpt %} + !["Enable" or "Disable" button for "Configure security and analysis" features in a public repository](/assets/images/help/repository/security-and-analysis-disable-or-enable-fpt-public.png){% elsif ghec %} + !["Enable" or "Disable" button for "Configure security and analysis" features in a public repository](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghec-public.png){% endif %} {% endif %} -## 为私有仓库启用或禁用安全和分析功能{% ifversion fpt or ghec %}{% endif %} +## Enabling or disabling security and analysis features{% ifversion fpt or ghec %} for private repositories{% endif %} You can manage the security and analysis features for your {% ifversion fpt or ghec %}private or internal {% endif %}repository.{% ifversion ghes or ghec %} If your organization belongs to an enterprise with a license for {% data variables.product.prodname_GH_advanced_security %} then extra options are available. {% data reusables.advanced-security.more-info-ghas %} {% elsif fpt %} Organizations that use {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_advanced_security %} have extra options available. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest//repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#enabling-or-disabling-security-and-analysis-features-for-private-repositories). @@ -49,79 +49,82 @@ You can manage the security and analysis features for your {% ifversion fpt or g {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} {% ifversion fpt or ghes > 3.0 or ghec %} -4. 在“Configure security and analysis features(配置安全性和分析功能)”下,单击功能右侧的 **Disable(禁用)**或 **Enable(启用)**。 {% ifversion not fpt %}The control for "{% data variables.product.prodname_GH_advanced_security %}" is disabled if your enterprise has no available licenses for {% data variables.product.prodname_advanced_security %}.{% endif %}{% ifversion fpt %} !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-fpt-private.png){% elsif ghec %} -!["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghec-private.png){% elsif ghes > 3.2 %} -!["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/enterprise/3.3/repository/security-and-analysis-disable-or-enable-ghes.png){% else %} -!["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/enterprise/3.1/help/repository/security-and-analysis-disable-or-enable-ghes.png){% endif %} - +4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**. {% ifversion not fpt %}The control for "{% data variables.product.prodname_GH_advanced_security %}" is disabled if your enterprise has no available licenses for {% data variables.product.prodname_advanced_security %}.{% endif %}{% ifversion fpt %} + !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-fpt-private.png){% elsif ghec %} + !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghec-private.png){% elsif ghes > 3.2 %} + !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/enterprise/3.3/repository/security-and-analysis-disable-or-enable-ghes.png){% else %} + !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/enterprise/3.1/help/repository/security-and-analysis-disable-or-enable-ghes.png){% endif %} + {% ifversion not fpt %} {% note %} - **Note:** If you disable {% data variables.product.prodname_GH_advanced_security %}, {% ifversion ghec %}dependency review, {% endif %}{% data variables.product.prodname_secret_scanning %} and {% data variables.product.prodname_code_scanning %} are disabled. 任何工作流程、SARIF上传或 {% data variables.product.prodname_code_scanning %} 的 API 调用都将失败。 + **Note:** If you disable {% data variables.product.prodname_GH_advanced_security %}, {% ifversion ghec %}dependency review, {% endif %}{% data variables.product.prodname_secret_scanning %} and {% data variables.product.prodname_code_scanning %} are disabled. Any workflows, SARIF uploads, or API calls for {% data variables.product.prodname_code_scanning %} will fail. {% endnote %}{% endif %} {% endif %} {% ifversion ghes = 3.0 %} -4. 在“Configure security and analysis features(配置安全性和分析功能)”下,单击功能右侧的 **Disable(禁用)**或 **Enable(启用)**。 !["Configure security and analysis(配置安全性和分析)"功能的"Enable(启用)"或"Disable(禁用)"按钮](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghe.png) +4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**. + !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghe.png) {% endif %} {% ifversion ghae %} -4. 在“Configure security and analysis features(配置安全性和分析功能)”下,单击功能右侧的 **Disable(禁用)**或 **Enable(启用)**。 在启用“{% data variables.product.prodname_secret_scanning %}”之前,您可能需要先启用 {% data variables.product.prodname_GH_advanced_security %}。 ![为您的仓库启用或禁用 {% data variables.product.prodname_GH_advanced_security %} 或 {% data variables.product.prodname_secret_scanning %}](/assets/images/enterprise/github-ae/repository/enable-ghas-secret-scanning-ghae.png) +4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**. Before you can enable "{% data variables.product.prodname_secret_scanning %}" for your repository, you may need to enable {% data variables.product.prodname_GH_advanced_security %}. + ![Enable or disable {% data variables.product.prodname_GH_advanced_security %} or {% data variables.product.prodname_secret_scanning %} for your repository](/assets/images/enterprise/github-ae/repository/enable-ghas-secret-scanning-ghae.png) {% endif %} -## 授予对安全警报的访问权限 +## Granting access to security alerts Security alerts for a repository are visible to people with admin access to the repository and, when the repository is owned by an organization, organization owners. You can give additional teams and people access to the alerts. {% note %} -组织所有者和仓库管理员只能向具有仓库写入权限的人员授予安全警报的查看权限,如 {% data variables.product.prodname_secret_scanning %} 警报。 +Organization owners and repository administrators can only grant access to view security alerts, such as {% data variables.product.prodname_secret_scanning %} alerts, to people or teams who have write access to the repo. {% endnote %} {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -4. 在“Access to alerts(访问警报)”下,在搜索字段中开始键入您要查找的个人或团队的名称,然后单击匹配列表中的名称。 +4. Under "Access to alerts", in the search field, start typing the name of the person or team you'd like to find, then click a name in the list of matches. {% ifversion fpt or ghec or ghes > 3.2 %} - ![用于授予人员或团队访问安全警报的搜索字段](/assets/images/help/repository/security-and-analysis-security-alerts-person-or-team-search.png) + ![Search field for granting people or teams access to security alerts](/assets/images/help/repository/security-and-analysis-security-alerts-person-or-team-search.png) {% endif %} {% ifversion ghes < 3.3 %} - ![用于授予人员或团队访问安全警报的搜索字段](/assets/images/enterprise/3.2/repository/security-and-analysis-security-alerts-person-or-team-search.png) + ![Search field for granting people or teams access to security alerts](/assets/images/enterprise/3.2/repository/security-and-analysis-security-alerts-person-or-team-search.png) {% endif %} {% ifversion ghae %} - ![用于授予人员或团队访问安全警报的搜索字段](/assets/images/enterprise/github-ae/repository/security-and-analysis-security-alerts-person-or-team-search-ghae.png) + ![Search field for granting people or teams access to security alerts](/assets/images/enterprise/github-ae/repository/security-and-analysis-security-alerts-person-or-team-search-ghae.png) {% endif %} - -5. 单击 **Save changes(保存更改)**。 + +5. Click **Save changes**. {% ifversion fpt or ghes > 3.2 or ghec %} - ![用于更改安全警报设置的"Save changes(保存更改)"按钮](/assets/images/help/repository/security-and-analysis-security-alerts-save-changes.png) + !["Save changes" button for changes to security alert settings](/assets/images/help/repository/security-and-analysis-security-alerts-save-changes.png) {% endif %} {% ifversion ghes < 3.3 %} - ![用于更改安全警报设置的"Save changes(保存更改)"按钮](/assets/images/enterprise/3.2/repository/security-and-analysis-security-alerts-save-changes.png) + !["Save changes" button for changes to security alert settings](/assets/images/enterprise/3.2/repository/security-and-analysis-security-alerts-save-changes.png) {% endif %} {% ifversion ghae %} - ![用于更改安全警报设置的"Save changes(保存更改)"按钮](/assets/images/enterprise/github-ae/repository/security-and-analysis-security-alerts-save-changes-ghae.png) + !["Save changes" button for changes to security alert settings](/assets/images/enterprise/github-ae/repository/security-and-analysis-security-alerts-save-changes-ghae.png) {% endif %} -## 删除对安全警报的访问权限 +## Removing access to security alerts {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -4. 在“Access to alerts(访问警报)”下,在要删除其访问权限的个人或团队的右侧,单击 {% octicon "x" aria-label="X symbol" %}。 - {% ifversion fpt or ghec or ghes > 3.2 %} - ![用于删除某人对您仓库的安全警报访问权限的 "x" 按钮](/assets/images/help/repository/security-and-analysis-security-alerts-username-x.png) +4. Under "Access to alerts", to the right of the person or team whose access you'd like to remove, click {% octicon "x" aria-label="X symbol" %}. + {% ifversion fpt or ghec or ghes > 3.2 %} + !["x" button to remove someone's access to security alerts for your repository](/assets/images/help/repository/security-and-analysis-security-alerts-username-x.png) {% endif %} {% ifversion ghes < 3.3 %} - ![用于删除某人对您仓库的安全警报访问权限的 "x" 按钮](/assets/images/enterprise/3.2/repository/security-and-analysis-security-alerts-username-x.png) + !["x" button to remove someone's access to security alerts for your repository](/assets/images/enterprise/3.2/repository/security-and-analysis-security-alerts-username-x.png) {% endif %} {% ifversion ghae %} - ![用于删除某人对您仓库的安全警报访问权限的 "x" 按钮](/assets/images/enterprise/github-ae/repository/security-and-analysis-security-alerts-username-x-ghae.png) + !["x" button to remove someone's access to security alerts for your repository](/assets/images/enterprise/github-ae/repository/security-and-analysis-security-alerts-username-x-ghae.png) {% endif %} - 5. 单击 **Save changes(保存更改)**。 + 5. Click **Save changes**. -## 延伸阅读 +## Further reading -- "[保护您的仓库](/code-security/getting-started/securing-your-repository)" -- “[管理组织的安全性和分析设置](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)” +- "[Securing your repository](/code-security/getting-started/securing-your-repository)" +- "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)" diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/index.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/index.md index 55aba5b9ca02..29162eae146c 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/index.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/index.md @@ -12,6 +12,7 @@ children: - /setting-repository-visibility - /managing-teams-and-people-with-access-to-your-repository - /managing-the-forking-policy-for-your-repository + - /managing-pull-request-reviews-in-your-repository - /managing-git-lfs-objects-in-archives-of-your-repository - /enabling-anonymous-git-read-access-for-a-repository - /about-email-notifications-for-pushes-to-your-repository diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-pull-request-reviews-in-your-repository.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-pull-request-reviews-in-your-repository.md new file mode 100644 index 000000000000..f45430b860db --- /dev/null +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-pull-request-reviews-in-your-repository.md @@ -0,0 +1,27 @@ +--- +title: Managing pull request reviews in your repository +intro: You can limit which users can approve or request changes to a pull requests in a public repository. +versions: + feature: pull-request-approval-limit +permissions: Repository administrators can limit which users can approve or request changes to a pull request in a public repository. +topics: + - Repositories + - Pull requests +shortTitle: Manage pull request reviews +--- + +## About code review limits + +By default, in public repositories, any user can submit reviews that approve or request changes to a pull request. + +You can limit which users are able to submit reviews that approve or request changes to pull requests in your public repository. When you enable code review limits, anyone can comment on pull requests in your public repository, but only people with read access or higher can approve pull requests or request changes. + +You can also enable code review limits for an organization. If you enable limits for an organization, you will override any limits for individual repositories owned by the organization. For more information, see "[Managing pull request reviews in your organization](/organizations/managing-organization-settings/managing-pull-request-reviews-in-your-organization)" + +## Enabling code review limits + +{% data reusables.repositories.navigate-to-repo %} +{% data reusables.repositories.sidebar-settings %} +1. Under **Access**, click **Moderation options**. ![Moderation options repository settings](/assets/images/help/repository/access-settings-repositories.png) +1. Under **Moderation options**, click **Code review limits**. ![Code review limits repositories](/assets/images/help/repository/code-review-limits-repositories.png) +1. Select or deselect **Limit to users explicitly granted read or higher access**. ![Limit review in repository](/assets/images/help/repository/limit-reviews-in-repository.png) diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository.md index ea7e21bb8a86..640bd829cb81 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository.md @@ -9,6 +9,8 @@ redirect_from: versions: fpt: '*' ghec: '*' + ghes: '>3.3' + ghae: issue-5974 topics: - Repositories shortTitle: 团队和人员 @@ -20,6 +22,8 @@ shortTitle: 团队和人员 此概览可帮助您审核对仓库、内部或外部承包商或员工的访问权限,并有效响应安全事件。 +{% data reusables.organizations.mixed-roles-warning %} + For more information about repository roles, see "[Permission levels for a user account repository](/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository)" and "[Repository roles for an organization](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)." ![访问权限管理概览](/assets/images/help/repository/manage-access-overview.png) @@ -28,21 +32,33 @@ For more information about repository roles, see "[Permission levels for a user {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} +{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} {% data reusables.repositories.click-collaborators-teams %} -4. 在“Manage access(管理访问权限)”下的搜索字段中,开始输入您要查找的团队或人员的名称。 ![用于过滤具有访问权限的团队或人员列表的搜索字段](/assets/images/help/repository/manage-access-filter.png) +{% else %} +{% data reusables.repositories.navigate-to-manage-access %} +{% endif %} +1. 在“Manage access(管理访问权限)”下的搜索字段中,开始输入您要查找的团队或人员的名称。 Optionally, use the dropdown menus to filter your search. ![用于过滤具有访问权限的团队或人员列表的搜索字段](/assets/images/help/repository/manage-access-filter.png) ## 更改团队或人员的权限 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} +{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} +{% data reusables.repositories.click-collaborators-teams %} +{% else %} {% data reusables.repositories.navigate-to-manage-access %} +{% endif %} 4. Under "Manage access", find the team or person whose role you'd like to change, then select the Role drop-down and click a new role. ![使用"Role(角色)"下拉菜单为团队或人员选择新权限](/assets/images/help/repository/manage-access-role-drop-down.png) ## 邀请团队或人员 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} +{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} {% data reusables.repositories.click-collaborators-teams %} +{% else %} +{% data reusables.repositories.navigate-to-manage-access %} +{% endif %} {% data reusables.organizations.invite-teams-or-people %} 5. 在搜索字段中,开始输入要邀请的团队或人员的名称,然后单击匹配列表中的名称。 ![用于输入要邀请加入仓库的团队或人员名称的搜索字段](/assets/images/help/repository/manage-access-invite-search-field.png) 6. Under "Choose a role", select the repository role to grant to the team or person, then click **Add NAME to REPOSITORY**. ![为团队或人员选择权限](/assets/images/help/repository/manage-access-invite-choose-role-add.png) @@ -51,7 +67,11 @@ For more information about repository roles, see "[Permission levels for a user {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} +{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} {% data reusables.repositories.click-collaborators-teams %} +{% else %} +{% data reusables.repositories.navigate-to-manage-access %} +{% endif %} 4. 在“Manage access(管理访问权限)”下,找到要删除其访问权限的团队或人员,然后单击 {% octicon "trash" aria-label="The trash icon" %}。 ![用于删除访问权限的回收站图标](/assets/images/help/repository/manage-access-remove.png) ## 延伸阅读 diff --git a/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md b/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md index b69cfdc5dd03..39da3c9065ac 100644 --- a/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md +++ b/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md @@ -37,13 +37,12 @@ topics: 对仓库具有读取访问权限的任何人都可以查看和比较发行版,但只有对仓库具有写入权限的人员才能管理发行版。 更多信息请参阅“[管理仓库中的发行版](/github/administering-a-repository/managing-releases-in-a-repository)”。 {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-4974 %} - You can manually create release notes while managing a release. Alternatively, you can automatically generate release notes from a default template, or customize your own release notes template. For more information, see "[Automatically generated release notes](/repositories/releasing-projects-on-github/automatically-generated-release-notes)." - -对仓库具有管理员权限的人可以选择是否将 {% data variables.large_files.product_name_long %} ({% data variables.large_files.product_name_short %}) 对象包含在 {% data variables.product.product_name %} 为每个发行版创建的 ZIP 文件和 tarball 中。 更多信息请参阅“[管理仓库存档中的 {% data variables.large_files.product_name_short %} 对象](/github/administering-a-repository/managing-git-lfs-objects-in-archives-of-your-repository)”。 {% endif %} {% ifversion fpt or ghec %} +People with admin permissions to a repository can choose whether {% data variables.large_files.product_name_long %} ({% data variables.large_files.product_name_short %}) objects are included in the ZIP files and tarballs that {% data variables.product.product_name %} creates for each release. For more information, see "[Managing {% data variables.large_files.product_name_short %} objects in archives of your repository](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-git-lfs-objects-in-archives-of-your-repository)." + 如果发行版修复了安全漏洞,您应该在仓库中发布安全通告。 {% data variables.product.prodname_dotcom %} 审查每个发布的安全通告,并且可能使用它向受影响的仓库发送 {% data variables.product.prodname_dependabot_alerts %}。 更多信息请参阅“[关于 GitHub 安全通告](/github/managing-security-vulnerabilities/about-github-security-advisories)”。 您可以查看依赖项图的 **Dependents(依赖项)**选项卡,了解哪些仓库和包依赖于您仓库中的代码,并因此可能受到新发行版的影响。 更多信息请参阅“[关于依赖关系图](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph)”。 diff --git a/translations/zh-CN/content/repositories/releasing-projects-on-github/searching-a-repositorys-releases.md b/translations/zh-CN/content/repositories/releasing-projects-on-github/searching-a-repositorys-releases.md index 73afcd809a63..00e10a4bc103 100644 --- a/translations/zh-CN/content/repositories/releasing-projects-on-github/searching-a-repositorys-releases.md +++ b/translations/zh-CN/content/repositories/releasing-projects-on-github/searching-a-repositorys-releases.md @@ -26,5 +26,7 @@ You can provide text in your search query which will be matched against the titl | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `draft:true` | **draft:true** will only match draft releases. | | `draft:false` | **draft:false** will only match published releases. | +| `prerelease:true` | **prerelease:true** will only match pre-releases. | +| `prerelease:false` | **prerelease:false** will only match releases that are not pre-releases. | | tag:TAG | **tag:v1** matches a release with the v1 tag and any minor or patch versions within v1, such as v1.0, v1.2, and v1.2.5. | | created:DATE | **created:2021** will match releases created during 2021. You can also provide date ranges. 更多信息请参阅“[了解搜索语法](/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)”。 | diff --git a/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories.md b/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories.md index 5c5c0a96c81c..1180043ae50e 100644 --- a/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories.md +++ b/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories.md @@ -1,6 +1,6 @@ --- title: 了解仓库之间的连接 -intro: You can better understand the connections that exist between repositories by viewing a repository's network and forks and the projects that depend on the repository. +intro: 通过查看存储库的网络和分叉以及依赖于存储库的项目,您可以更好地了解存储库之间存在的连接。 product: '{% data reusables.gated-features.repository-insights %}' redirect_from: - /articles/viewing-a-repository-s-network @@ -21,7 +21,7 @@ versions: ghec: '*' topics: - Repositories -shortTitle: Connections between repositories +shortTitle: 存储库之间的连接 --- ## 查看仓库的网络 diff --git a/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/viewing-a-summary-of-repository-activity.md b/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/viewing-a-summary-of-repository-activity.md index 90c455057fcb..13dcd74f1a70 100644 --- a/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/viewing-a-summary-of-repository-activity.md +++ b/translations/zh-CN/content/repositories/viewing-activity-and-data-for-your-repository/viewing-a-summary-of-repository-activity.md @@ -1,6 +1,6 @@ --- title: 查看仓库活动的摘要 -intro: 'You can view an overview of a repository''s pull request, issue, and commit activity.' +intro: 您可以查看存储库的拉取请求、议题和提交活动的概述。 product: '{% data reusables.gated-features.repository-insights %}' redirect_from: - /articles/viewing-a-summary-of-repository-activity @@ -16,13 +16,13 @@ topics: shortTitle: 查看仓库活动 --- -## About Pulse +## 关于 Pulse -您可以通过 Pulse 查看仓库活动的概览。 Pulse includes a list of open and merged pull requests, open and closed issues, and a graph showing the commit activity for the top 15 users who committed to the default branch of the project in the selected [time period](/articles/viewing-a-summary-of-repository-activity#filtering-by-time). +您可以通过 Pulse 查看仓库活动的概览。 Pulse 包括打开及合并的拉取请求列表、打开和关闭的议题列表,以及显示在所选[时间段](/articles/viewing-a-summary-of-repository-activity#filtering-by-time)提交到项目默认分支的前 15 名用户的提交活动图表。 如果提交合作作者的提交已合并到仓库的默认分支并且他们是贡献最多提交的前 15 名用户,则提交合作作者将包括在提交活动摘要中。 -## Accessing Pulse +## 访问 Pulse {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.accessing-repository-graphs %} diff --git a/translations/zh-CN/content/rest/reference/actions.md b/translations/zh-CN/content/rest/reference/actions.md index 8f93fca88597..ce79dfaffc00 100644 --- a/translations/zh-CN/content/rest/reference/actions.md +++ b/translations/zh-CN/content/rest/reference/actions.md @@ -33,9 +33,7 @@ miniTocMaxHeadingLevel: 3 {% ifversion fpt or ghes > 2.22 or ghae or ghec %} ## 权限 -Permissions API 允许您为允许哪些组织和存储库运行 {% data variables.product.prodname_actions %} 以及允许运行哪些操作设置权限。{% ifversion fpt or ghec or ghes %} 更多信息请参阅“[使用限制、计费和管理](/actions/reference/usage-limits-billing-and-administration#disabling-or-limiting-github-actions-for-your-repository-or-organization)”。{% endif %} - -您还可以为企业设置权限。 更多信息请参阅“[{% data variables.product.prodname_dotcom %} Enterprise 管理](/rest/reference/enterprise-admin#github-actions)”REST API。 +Permissions API 允许您为允许哪些企业、组织和存储库运行 {% data variables.product.prodname_actions %} 以及允许运行哪些操作设置权限。{% ifversion fpt or ghec or ghes %} 更多信息请参阅“[使用限制、计费和管理](/actions/reference/usage-limits-billing-and-administration#disabling-or-limiting-github-actions-for-your-repository-or-organization)”。{% endif %} {% for operation in currentRestOperations %} {% if operation.subcategory == 'permissions' %}{% include rest_operation %}{% endif %} @@ -58,9 +56,7 @@ Permissions API 允许您为允许哪些组织和存储库运行 {% data variabl 自托管运行器 API 允许您注册、查看和删除自托管的运行器。 {% data reusables.actions.about-self-hosted-runners %} 更多信息请参阅“[托管您自己的运行器](/actions/hosting-your-own-runners)”。 -{% data reusables.actions.actions-authentication %} {% data variables.product.prodname_github_apps %} 必须对仓库具有`管理`权限,或者对组织具有 `organization_self_hosted_runners` 权限。 经过身份验证的用户必须对仓库或组织具有管理员权限才可使用此 API。 - -您可以管理企业的自托管运行器。 更多信息请参阅“[{% data variables.product.prodname_dotcom %} Enterprise 管理](/rest/reference/enterprise-admin#github-actions)”REST API。 +{% data reusables.actions.actions-authentication %} {% data variables.product.prodname_github_apps %} 必须对仓库具有`管理`权限,或者对组织具有 `organization_self_hosted_runners` 权限。 经过身份验证的用户必须具有对存储库或组织的管理员访问权限或者企业的 `manage_runners:enterprise` 作用域才能使用此 API。 {% for operation in currentRestOperations %} {% if operation.subcategory == 'self-hosted-runners' %}{% include rest_operation %}{% endif %} @@ -72,9 +68,7 @@ Permissions API 允许您为允许哪些组织和存储库运行 {% data variabl 自托管运行器组 API 允许您管理自托运行器组。 更多信息请参阅“[使用组管理对自托管运行器的访问](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups)”。 -{% data reusables.actions.actions-authentication %} {% data variables.product.prodname_github_apps %} 必须对仓库具有`管理`权限,或者对组织具有 `organization_self_hosted_runners` 权限。 经过身份验证的用户必须对仓库或组织具有管理员权限才可使用此 API。 - -您可以管理企业的自托管运行器组。 更多信息请参阅“[{% data variables.product.prodname_dotcom %} Enterprise 管理](/rest/reference/enterprise-admin##github-actions)”REST API。 +{% data reusables.actions.actions-authentication %} {% data variables.product.prodname_github_apps %} 必须对仓库具有`管理`权限,或者对组织具有 `organization_self_hosted_runners` 权限。 经过身份验证的用户必须具有对存储库或组织的管理员访问权限或者企业的 `manage_runners:enterprise` 作用域才能使用此 API。 {% for operation in currentRestOperations %} {% if operation.subcategory == 'self-hosted-runner-groups' %}{% include rest_operation %}{% endif %} diff --git a/translations/zh-CN/content/rest/reference/enterprise-admin.md b/translations/zh-CN/content/rest/reference/enterprise-admin.md index 230e3f76b552..303f997677e8 100644 --- a/translations/zh-CN/content/rest/reference/enterprise-admin.md +++ b/translations/zh-CN/content/rest/reference/enterprise-admin.md @@ -1,6 +1,6 @@ --- title: GitHub Enterprise administration -intro: You can use these endpoints to administer your enterprise. Among the tasks you can perform with this API are many relating to GitHub Actions. +intro: You can use these endpoints to administer your enterprise. allowTitleToDifferFromFilename: true redirect_from: - /v3/enterprise-admin @@ -87,14 +87,6 @@ You can also read the current version by calling the [meta endpoint](/rest/refer {% endif %} -## GitHub Actions - - -{% for operation in currentRestOperations %} - {% if operation.subcategory == 'actions' %}{% include rest_operation %}{% endif %} -{% endfor %} - - {% ifversion ghae or ghes %} ## Admin stats diff --git a/translations/zh-CN/content/rest/reference/migrations.md b/translations/zh-CN/content/rest/reference/migrations.md index be4405d4b590..b73c56059654 100644 --- a/translations/zh-CN/content/rest/reference/migrations.md +++ b/translations/zh-CN/content/rest/reference/migrations.md @@ -8,6 +8,8 @@ redirect_from: versions: fpt: '*' ghec: '*' + ghes: '>3.3' + ghae: issue-6184 topics: - API miniTocMaxHeadingLevel: 3 @@ -27,6 +29,7 @@ miniTocMaxHeadingLevel: 3 {% if operation.subcategory == 'orgs' %}{% include rest_operation %}{% endif %} {% endfor %} +{% ifversion fpt or ghec %} ## 源导入 {% data variables.migrations.source_imports_intro %} @@ -111,7 +114,7 @@ miniTocMaxHeadingLevel: 3 {% for operation in currentRestOperations %} {% if operation.subcategory == 'source-imports' %}{% include rest_operation %}{% endif %} {% endfor %} - +{% endif %} ## 用户 用户迁移 API 仅适用于经过身份验证的帐户所有者。 更多信息请参阅“[其他身份验证方法](/rest/overview/other-authentication-methods)”。 diff --git a/translations/zh-CN/content/rest/reference/permissions-required-for-github-apps.md b/translations/zh-CN/content/rest/reference/permissions-required-for-github-apps.md index 19406639a348..7bd5f733f1ac 100644 --- a/translations/zh-CN/content/rest/reference/permissions-required-for-github-apps.md +++ b/translations/zh-CN/content/rest/reference/permissions-required-for-github-apps.md @@ -348,6 +348,9 @@ _流量_ - [`GET /repos/:owner/:repo/check-suites/:check_suite_id`](/rest/reference/checks#get-a-check-suite) (:read) - [`GET /repos/:owner/:repo/check-suites/:check_suite_id/check-runs`](/rest/reference/checks#list-check-runs-in-a-check-suite) (:read) - [`POST /repos/:owner/:repo/check-suites/:check_suite_id/rerequest`](/rest/reference/checks#rerequest-a-check-suite) (:write) +{% if codeowners-errors %} +- [`GET /repos/:owner/:repo/codeowners/errors`](/rest/reference/repos#list-codeowners-errors) (:read) +{% endif %} - [`GET /repos/:owner/:repo/commits`](/rest/reference/commits#list-commits) (:read) - [`GET /repos/:owner/:repo/commits/:sha`](/rest/reference/commits#get-a-commit) (:read) - [`GET /repos/:owner/:repo/commits/:sha/check-runs`](/rest/reference/checks#list-check-runs-for-a-git-reference) (:read) @@ -377,8 +380,8 @@ _分支_ _提交注释_ - [`PATCH /repos/:owner/:repo/comments/:comment_id`](/rest/reference/commits#update-a-commit-comment) (:write) - [`DELETE /repos/:owner/:repo/comments/:comment_id`](/rest/reference/commits#delete-a-commit-comment) (:write) -- [`POST /repos/:owner/:repo/comments/:comment_id/reactions`](/rest/reference/reactions#create-reaction-for-a-commit-comment) (:read) -- [`POST /repos/:owner/:repo/commits/:sha/comments`](/rest/reference/commits#create-a-commit-comment) (:read) +- [`POST /repos/:owner/:repo/comments/:comment_id/reactions`](/rest/reference/reactions#create-reaction-for-a-commit-comment) (:write) +- [`POST /repos/:owner/:repo/commits/:sha/comments`](/rest/reference/commits#create-a-commit-comment) (:write) _Git_ - [`POST /repos/:owner/:repo/git/blobs`](/rest/reference/git#create-a-blob) (:write) diff --git a/translations/zh-CN/content/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax.md b/translations/zh-CN/content/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax.md index c4095de80810..665f5a5c3542 100644 --- a/translations/zh-CN/content/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax.md +++ b/translations/zh-CN/content/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax.md @@ -61,7 +61,7 @@ shortTitle: 了解搜索语法 | 查询 | 示例 | | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | YYYY-MM-DDTHH:MM:SS+00:00 | **[cats created:2017-01-01T01:00:00+07:00..2017-03-01T15:30:15+07:00](https://github.com/search?utf8=%E2%9C%93&q=cats+created%3A2017-01-01T01%3A00%3A00%2B07%3A00..2017-03-01T15%3A30%3A15%2B07%3A00&type=Issues)** 匹配在 2017 年 1 月 1 日凌晨 1 点(UTC 偏移为 `07:00`)与 2017 年 3 月 1 日下午 3 点(UTC 偏移为 `07:00`)之间创建的议题。 UTC 偏移量 `07:00`,2017 年 3 月 1 日下午 3 点。 UTC 偏移量 `07:00`。 | -| YYYY-MM-DDTHH:MM:SSZ | **[cats created:2016-03-21T14:11:00Z..2016-04-07T20:45:00Z](https://github.com/search?utf8=%E2%9C%93&q=cats+created%3A2016-03-21T14%3A11%3A00Z..2016-04-07T20%3A45%3A00Z&type=Issues)** 匹配在 2016 年 3 月 21 日下午 2:11 与 2016 年 4 月 7 日晚上 8:45 之间创建的议题。 | +| YYYY-MM-DDTHH:MM:SSZ | **[cats created:2016-03-21T14:11:00Z..2016-04-07T20:45:00Z](https://github.com/search?utf8=%E2%9C%93&q=cats+created%3A2016-03-21T14%3A11%3A00Z..2016-04-07T20%3A45%3A00Z&type=Issues)** matches issues created between March 21, 2016 at 2:11pm and April 7, 2016 at 8:45pm. | ## 排除特定结果 diff --git a/translations/zh-CN/content/search-github/index.md b/translations/zh-CN/content/search-github/index.md index b9e744478dd3..0e655dc0d44c 100644 --- a/translations/zh-CN/content/search-github/index.md +++ b/translations/zh-CN/content/search-github/index.md @@ -1,6 +1,26 @@ --- title: 在 GitHub 上搜索信息 -intro: 使用不同类型的搜索来查找您想要的信息。 +intro: 'Learn how to use the search functions available on GitHub to find different types of information, like projects, people, and code.' +introLinks: + overview: /search-github/getting-started-with-searching-on-github/about-searching-on-github +featuredLinks: + guides: + - /search-github/searching-on-github/searching-issues-and-pull-requests + - /search-github/searching-on-github/searching-code + - /search-github/searching-on-github/searching-for-repositories + - /search-github/searching-on-github/searching-commits + popular: + - /search-github/getting-started-with-searching-on-github/understanding-the-search-syntax + - /search-github/searching-on-github/searching-users + - /search-github/searching-on-github/finding-files-on-github + - /search-github/getting-started-with-searching-on-github/sorting-search-results + guideCards: + - /search-github/searching-on-github/searching-in-forks + - /search-github/searching-on-github/searching-topics + - /search-github/searching-on-github/searching-for-packages +changelog: + label: search +layout: product-landing redirect_from: - /categories/78/articles - /categories/search diff --git a/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers.md b/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers.md index 3a2cf667b9d7..ef5724d9a091 100644 --- a/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers.md +++ b/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers.md @@ -71,18 +71,18 @@ shortTitle: 管理付款等级 - 如果赞助的个人资料用于个人帐户,仓库转移到组织,并且个人帐户具有对新仓库的管理员访问权限,则将转移现有赞助商,并且将继续将新赞助商添加到仓库。 - 如果仓库转移到个人帐户,则所有赞助商都将被删除,并且不会将新的赞助商添加到仓库中。 -### Adding a repository a sponsorship tier +### 将仓库添加到赞助等级 {% data reusables.sponsors.navigate-to-sponsors-dashboard %} {% data reusables.sponsors.navigate-to-sponsor-tiers-tab %} {% data reusables.sponsors.edit-tier %} -1. Select **Grant sponsors access to a private repository**. +1. 选择 **Grant sponsors access to a private repository(授权赞助者访问私有仓库)**。 - ![Screenshot of checkbox to grant sponsors access to a private repository](/assets/images/help/sponsors/grant-sponsors-access-to-repo-checkbox.png) + ![用于授予发起人访问私有仓库的复选框的屏幕截图](/assets/images/help/sponsors/grant-sponsors-access-to-repo-checkbox.png) -1. Select the dropdown menu and click the repository you want to add. +1. 选择下拉菜单并单击您想要添加的仓库。 - ![Screenshot of dropdown menu to choose the repository to grant sponsors access to](/assets/images/help/sponsors/grant-sponsors-access-to-repo-dropdown.png) + ![下拉菜单的屏幕截图,用于选择要授予赞助商访问权限的存储库](/assets/images/help/sponsors/grant-sponsors-access-to-repo-dropdown.png) {% data reusables.sponsors.tier-update %} diff --git a/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/sponsors-for-companies.md b/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/sponsors-for-companies.md index e9483e638c24..dcd299670803 100644 --- a/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/sponsors-for-companies.md +++ b/translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/sponsors-for-companies.md @@ -1,7 +1,7 @@ --- -title: Receiving payments from Sponsors for Companies -shortTitle: Sponsors for Companies -intro: 'To accept payments from the Sponsors for Companies service, you must accept some additional terms.' +title: 从公司赞助商接收付款 +shortTitle: 公司赞助商 +intro: 要接受来自公司赞助商服务的付款,您必须接受一些附加条款。 allowTitleToDifferFromFilename: true versions: fpt: '*' @@ -14,28 +14,28 @@ topics: {% data reusables.sponsors.beta-note-sponsors-for-companies %} -## About the Sponsors for Companies service +## 关于公司赞助商服务 -When you create a sponsors profile, you become eligible for sponsorship payments from individual users and organizations who are billed by credit card. In addition, {% data variables.product.company_short %} now offers a Sponsors for Companies service to enterprise customers who pay by invoice, including companies who use {% data variables.product.prodname_ghe_server %} or {% data variables.product.prodname_ghe_managed %}. +创建赞助者个人资料后,您有资格获得通过信用卡计费的个人用户和组织的赞助付款。 此外,{% data variables.product.company_short %} 现在为通过发票付款的企业客户提供公司赞助商服务,包括使用 {% data variables.product.prodname_ghe_server %} 或 {% data variables.product.prodname_ghe_managed %} 的公司。 - The funds you receive under the Sponsors for Companies service come directly from {% data variables.product.company_short %}, and your participation in this service is subject to separate terms: the "GitHub Maintainer Additional Terms for Optional Data Provision". If you wish to receive funds from {% data variables.product.company_short %} under the Sponsors for Companies service, you'll need to complete the agreement before receiving any of those funds. + 您在公司赞助商服务下获得的资金直接来自 {% data variables.product.company_short %},并且您参与此服务受单独条款的约束:“GitHub 维护者可选数据规定附加条款”。 如果您希望从 {% data variables.product.company_short %} 公司赞助商服务下获得资金,则需要在收到任何这些资金之前完成协议。 -## About the additional terms +## 关于附加条款 -The "GitHub Maintainer Additional Terms for Optional Data Provision" agreement is available from your [{% data variables.product.prodname_sponsors %} dashboard](https://github.com/sponsors/accounts) (see steps below). Key points of the agreement include: +“GitHub 维护者可选数据规定附加条款”协议可从您的 [{% data variables.product.prodname_sponsors %} 仪表板](https://github.com/sponsors/accounts)获得(请参阅以下步骤)。 该协议的要点包括: -* Due to the way the service is set up, you'll receive payment from {% data variables.product.company_short %}, not from another company. -* If taxes are required to be withheld on payment made through this program, {% data variables.product.company_short %} will deduct taxes from the amount owed and pay them to the appropriate taxing authority. -* We'll share some aggregated data on your project(s) or projects you contribute to with the companies that pay for access to this data on a {% data variables.product.company_short %} dashboard. These data fields are outlined in Section 5 of the agreement. -* Data will be aggregated and will not include any User Personal Information (as defined in {% data variables.product.company_short %}’s [Privacy Statement](/free-pro-team@latest/github/site-policy/github-privacy-statement)), or any information from private repositories. -* You, as a Maintainer, can terminate the agreement with 14 days notice by contacting us. +* 由于服务的设置方式,您将从 {% data variables.product.company_short %} 收到付款,而不是从其他公司收到付款。 +* 如果通过此计划付款时需要预扣税款,{% data variables.product.company_short %} 将从欠款中扣除税款并将其支付给相应的税务机关。 +* 我们将在 {% data variables.product.company_short %} 仪表板上与为访问这些数据付费的公司共享有关您的项目或您参与的项目的一些汇总数据。 协议第 5 节中概述了这些数据领域。 +* 数据将被汇总,不包括任何用户个人信息(如 {% data variables.product.company_short %} [隐私声明](/free-pro-team@latest/github/site-policy/github-privacy-statement)中所定义)或来自私人仓库的任何信息。 +* 作为维护者,您可以通过提前 14 天联系我们终止协议。 -If you agree to the terms outlined in the "GitHub Maintainer Additional Terms for Optional Data Provision" agreement, you will receive a payment from {% data variables.product.company_short %} each time a company purchases access to the service. The company purchases access to the dashboard from {% data variables.product.company_short %} for a limited amount of time (for example, one month or one year), and {% data variables.product.company_short %} purchases a license to your data to populate the dashboard. Your financial relationship is with {% data variables.product.company_short %}, not the company taking part in the service. +如果您同意“GitHub 维护者可选数据规定附加条款”协议中概述的条款,则每次公司购买服务访问权限时,您都将收到来自 {% data variables.product.company_short %} 的付款。 公司从 {% data variables.product.company_short %} 购买对仪表板的限时(例如,一个月或一年)访问权限,{% data variables.product.company_short %} 购买数据的许可证以填充仪表板。 您的财务关系是与 {% data variables.product.company_short %},而不是参与服务的公司。 -## Accepting the additional terms +## 接受附加条款 -You can view and accept the "GitHub Maintainer Additional Terms for Optional Data Provision" agreement from your [{% data variables.product.prodname_sponsors %} dashboard](https://github.com/sponsors/accounts). For information about joining the Sponsors for Companies service, see "[Paying for GitHub Sponsors by invoice](/sponsors/sponsoring-open-source-contributors/paying-for-github-sponsors-by-invoice)." +您可以从 [{% data variables.product.prodname_sponsors %} 仪表板](https://github.com/sponsors/accounts)查看和接受“GitHub 维护者可选数据规定附加条款”协议。 有关加入公司赞助商服务的信息,请参阅“[按发票为 GitHub Sponsors 付款](/sponsors/sponsoring-open-source-contributors/paying-for-github-sponsors-by-invoice)”。 {% data reusables.sponsors.navigate-to-sponsors-dashboard %} -3. On the "Overview" tab, under "Optional steps", click **GitHub Maintainer Additional Terms for Optional Data Provision** to display the agreement. -4. When you have read the agreement, click **Accept** to accept the terms and join the Sponsors for Companies service. Alternatively, click the {% octicon "x" aria-label="The x octicon" %} in the top right corner of the dialog to close the agreement without accepting. +3. 在“Overview(概述)”选项卡的“Optional steps(可选步骤)”下,单击 **GitHub Maintainer Additional Terms for Optional Data Provision(GitHub 维护者可选数据规定附加条款)**以显示协议。 +4. 阅读协议后,单击 **Accept(接受)**接受条款并加入公司赞助商服务。 或者,单击对话框右上角的 {% octicon "x" aria-label="The x octicon" %} 以关闭协议而不接受。 diff --git a/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/paying-for-github-sponsors-by-invoice.md b/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/paying-for-github-sponsors-by-invoice.md index 85eeb24bcb93..b928416fd7f7 100644 --- a/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/paying-for-github-sponsors-by-invoice.md +++ b/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/paying-for-github-sponsors-by-invoice.md @@ -1,7 +1,7 @@ --- -title: Paying for GitHub Sponsors by invoice -shortTitle: Paying by invoice -intro: 'If your company pays {% data variables.product.company_short %} by invoice, you can join the Sponsors for Companies service.' +title: 按发票支付 GitHub Sponsors +shortTitle: 按发票支付 +intro: '如果您的公司通过发票支付 {% data variables.product.company_short %} ,您可以加入公司赞助商服务。' versions: fpt: '*' ghec: '*' @@ -15,8 +15,8 @@ redirect_from: {% data reusables.sponsors.beta-note-sponsors-for-companies %} -Companies can use an invoice method to participate in the {% data variables.product.prodname_sponsors %} program. This can be particularly convenient if your company has an existing invoiced billing relationship with {% data variables.product.company_short %}. Companies paying by invoice get access to a {% data variables.product.product_name %} dashboard that measures open source contributions and activity across the public projects on {% data variables.product.prodname_dotcom_the_website %} they're interested in. +公司可以使用发票方法参与 {% data variables.product.prodname_sponsors %} 计划。 如果您的公司与 {% data variables.product.company_short %} 存在发票计费关系,这可能特别方便。 按发票付款的公司可以访问 {% data variables.product.product_name %} 仪表板,该仪表板根据他们感兴趣的 {% data variables.product.prodname_dotcom_the_website %} 衡量公共项目中的开源贡献和活动。 -You can join this beta program by talking to your sales representative, or by [contacting us](https://support.github.com/contact/org-sponsors-waitlist). +您可以联系您的销售代表或[联系我们](https://support.github.com/contact/org-sponsors-waitlist)加入此测试计划。 -For information about receiving payments from the Sponsors for Companies service, see "[Receiving payments from Sponsors for Companies](/sponsors/receiving-sponsorships-through-github-sponsors/sponsors-for-companies)." +有关从公司担保人服务接收付款的信息,请参阅“[从公司赞助商接收付款](/sponsors/receiving-sponsorships-through-github-sponsors/sponsors-for-companies)”。 diff --git a/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor.md b/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor.md index d43d450c432f..cca57c19b123 100644 --- a/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor.md +++ b/translations/zh-CN/content/sponsors/sponsoring-open-source-contributors/sponsoring-an-open-source-contributor.md @@ -37,7 +37,7 @@ shortTitle: 赞助贡献者 {% data reusables.sponsors.manage-updates-for-orgs %} -You can choose whether to display your sponsorship publicly. One-time sponsorships remain visible for one month. +您可以选择是否公开显示您的赞助。 一次性赞助在一个月内保持可见。 如果被赞助帐户撤销的等级,您将仍保留在该等级,直到您选择其他等级或取消订阅。 更多信息请参阅“[升级赞助](/articles/upgrading-a-sponsorship)”和“[降级赞助](/articles/downgrading-a-sponsorship)”。 diff --git a/translations/zh-CN/content/support/contacting-github-support/providing-data-to-github-support.md b/translations/zh-CN/content/support/contacting-github-support/providing-data-to-github-support.md index af9f4ca0f043..3e83cee79207 100644 --- a/translations/zh-CN/content/support/contacting-github-support/providing-data-to-github-support.md +++ b/translations/zh-CN/content/support/contacting-github-support/providing-data-to-github-support.md @@ -177,3 +177,4 @@ $ ssh -p122 admin@hostname -- 'ghe-diagnostics' > diagnostics.txt ## 延伸阅读 - "[About GitHub Support](/support/learning-about-github-support/about-github-support)" +- "[Generating a Health Check for your enterprise](/enterprise-server@latest/admin/enterprise-management/monitoring-your-appliance/generating-a-health-check-for-your-enterprise)" diff --git a/translations/zh-CN/content/support/learning-about-github-support/about-github-premium-support.md b/translations/zh-CN/content/support/learning-about-github-support/about-github-premium-support.md index 0c9b1ffe0106..b6d5e1071a52 100644 --- a/translations/zh-CN/content/support/learning-about-github-support/about-github-premium-support.md +++ b/translations/zh-CN/content/support/learning-about-github-support/about-github-premium-support.md @@ -54,7 +54,8 @@ There are two {% data variables.contact.premium_support %} plans: Premium and Pr {% note %} **Notes:** - - Scheduled checks are limited to one organization per term. You can add scheduled checks for additional organizations at any time for an additional fee by [contacting our account management team](https://enterprise.github.com/contact) or calling [+1 (877) 448-4820](tel:+1-877-448-4820). + - Scheduled checks are limited to one organization per term. You can add scheduled checks for additional organizations at any time for an additional fee by [contacting our account management team](https://enterprise.github.com/contact) or calling [+1 (877) 448-4820](tel:+1-877-448-4820).{% ifversion ghes %} + - You can generate a Health Check at any time by uploading a support bundle. For more information, see "[Generating a Health Check for your enterprise](/admin/enterprise-management/monitoring-your-appliance/generating-a-health-check-for-your-enterprise)."{% endif %} - For the {% data variables.product.premium_plus_support_plan %}, 50% of unused Managed Services hours roll over to the next month and expire at the end of the quarter. - Enterprise owners and billing managers automatically have a support entitlement. Enterprise owners can add support entitlements to members of organizations owned by their enterprise account. For more information, see "[Managing support entitlements for your enterprise](/enterprise-cloud@latest/admin/user-management/managing-users-in-your-enterprise/managing-support-entitlements-for-your-enterprise)." diff --git a/translations/zh-CN/data/features/codeowners-errors.yml b/translations/zh-CN/data/features/codeowners-errors.yml new file mode 100644 index 000000000000..e186a4e6eccb --- /dev/null +++ b/translations/zh-CN/data/features/codeowners-errors.yml @@ -0,0 +1,6 @@ +--- +versions: + fpt: '*' + ghec: '*' + ghes: '>=3.5' + ghae: 'issue-6078' diff --git a/translations/zh-CN/data/features/dependabot-updates-github-connect.yml b/translations/zh-CN/data/features/dependabot-updates-github-connect.yml new file mode 100644 index 000000000000..6ec916de7e1f --- /dev/null +++ b/translations/zh-CN/data/features/dependabot-updates-github-connect.yml @@ -0,0 +1,4 @@ +--- +versions: + ghes: '>=3.4' + ghae: 'issue-5867' diff --git a/translations/zh-CN/data/features/pull-request-approval-limit.yml b/translations/zh-CN/data/features/pull-request-approval-limit.yml new file mode 100644 index 000000000000..27366e98e1ed --- /dev/null +++ b/translations/zh-CN/data/features/pull-request-approval-limit.yml @@ -0,0 +1,6 @@ +--- +#Reference: #5244 +#Documentation for moderation setting to limit who can approve or request changes on a PR. +versions: + fpt: '*' + ghec: '*' diff --git a/translations/zh-CN/data/glossaries/external.yml b/translations/zh-CN/data/glossaries/external.yml index ce33aa0de5d3..427d5545539c 100644 --- a/translations/zh-CN/data/glossaries/external.yml +++ b/translations/zh-CN/data/glossaries/external.yml @@ -210,7 +210,7 @@ description: 发送到用户电子邮件地址的通知。 - term: 企业帐户 - description: Enterprise accounts allow you to centrally manage policy and billing for multiple organizations. {% data reusables.gated-features.enterprise-accounts %} + description: 企业帐户允许您集中管理多个组织的策略和帐单。{% data reusables.gated-features.enterprise-accounts %} - term: Explorer description: >- @@ -594,7 +594,7 @@ description: >- 仓库是 GitHub 最基本的元素,最容易被想象成项目的文件夹。一个仓库包含所有项目文件(包括文档),并且存储每个文件的修订历史记录。仓库可有多个协作者,也可以是公共仓库或私有仓库。 - - term: repository cache + term: 存储库缓存 description: >- A read-only mirror of repositories for your GitHub Enterprise server instance, located near distributed teams and CI clients. - diff --git a/translations/zh-CN/data/graphql/ghes-3.4/graphql_previews.enterprise.yml b/translations/zh-CN/data/graphql/ghes-3.4/graphql_previews.enterprise.yml new file mode 100644 index 000000000000..a304950c11c3 --- /dev/null +++ b/translations/zh-CN/data/graphql/ghes-3.4/graphql_previews.enterprise.yml @@ -0,0 +1,124 @@ +--- +- + title: 使用包版本删除 + description: >- + 此预览支持允许删除私有包版本 DeletePackageVersion 突变。 + toggled_by: ':package-deletes-preview' + announcement: null + updates: null + toggled_on: + - Mutation.deletePackageVersion + owning_teams: + - '@github/pe-package-registry' +- + title: 部署 + description: >- + 此预览支持部署突变和新部署功能。 + toggled_by: ':flash-preview' + announcement: null + updates: null + toggled_on: + - DeploymentStatus.environment + - Mutation.createDeploymentStatus + - CreateDeploymentStatusInput + - CreateDeploymentStatusPayload + - Mutation.createDeployment + - CreateDeploymentInput + - CreateDeploymentPayload + owning_teams: + - '@github/c2c-actions-service' +- + title: >- + >- MergeInfoPreview - More detailed information about a pull request's merge state. + description: >- + 此预览支持访问提供有关拉取请求合并状态的更多详细信息的字段。 + toggled_by: ':merge-info-preview' + announcement: null + updates: null + toggled_on: + - PullRequest.canBeRebased + - PullRequest.mergeStateStatus + owning_teams: + - '@github/pe-pull-requests' +- + title: UpdateRefsPreview - 在单个操作中更新多个 ref。 + description: 此预览支持在单个操作中更新多个 ref。 + toggled_by: ':update-refs-preview' + announcement: null + updates: null + toggled_on: + - Mutation.updateRefs + - GitRefname + - RefUpdate + - UpdateRefsInput + - UpdateRefsPayload + owning_teams: + - '@github/reponauts' +- + title: 项目事件详细信息 + description: >- + 此预览将项目、项目卡和项目列详细信息添加到与项目相关的议题事件。 + toggled_by: ':starfox-preview' + announcement: null + updates: null + toggled_on: + - AddedToProjectEvent.project + - AddedToProjectEvent.projectCard + - AddedToProjectEvent.projectColumnName + - ConvertedNoteToIssueEvent.project + - ConvertedNoteToIssueEvent.projectCard + - ConvertedNoteToIssueEvent.projectColumnName + - MovedColumnsInProjectEvent.project + - MovedColumnsInProjectEvent.projectCard + - MovedColumnsInProjectEvent.projectColumnName + - MovedColumnsInProjectEvent.previousProjectColumnName + - RemovedFromProjectEvent.project + - RemovedFromProjectEvent.projectColumnName + owning_teams: + - '@github/github-projects' +- + title: 标签预览 + description: >- + 此预览支持添加、更新、创建和删除标签。 + toggled_by: ':bane-preview' + announcement: null + updates: null + toggled_on: + - Mutation.createLabel + - CreateLabelPayload + - CreateLabelInput + - Mutation.deleteLabel + - DeleteLabelPayload + - DeleteLabelInput + - Mutation.updateLabel + - UpdateLabelPayload + - UpdateLabelInput + owning_teams: + - '@github/pe-pull-requests' +- + title: 导入项目 + description: 此预览增加了对导入项目的支持。 + toggled_by: ':slothette-preview' + announcement: null + updates: null + toggled_on: + - Mutation.importProject + owning_teams: + - '@github/pe-issues-projects' +- + title: 团队审查任务预览 + description: >- + 此预览支持更新团队审查任务的设置。 + toggled_by: ':stone-crop-preview' + announcement: null + updates: null + toggled_on: + - Mutation.updateTeamReviewAssignment + - UpdateTeamReviewAssignmentInput + - TeamReviewAssignmentAlgorithm + - Team.reviewRequestDelegationEnabled + - Team.reviewRequestDelegationAlgorithm + - Team.reviewRequestDelegationMemberCount + - Team.reviewRequestDelegationNotifyTeam + owning_teams: + - '@github/pe-pull-requests' diff --git a/translations/zh-CN/data/graphql/ghes-3.4/graphql_upcoming_changes.public-enterprise.yml b/translations/zh-CN/data/graphql/ghes-3.4/graphql_upcoming_changes.public-enterprise.yml new file mode 100644 index 000000000000..b0d87df97a19 --- /dev/null +++ b/translations/zh-CN/data/graphql/ghes-3.4/graphql_upcoming_changes.public-enterprise.yml @@ -0,0 +1,114 @@ +--- +upcoming_changes: + - + location: LegacyMigration.uploadUrlTemplate + description: '`uploadUrlTemplate` 将被删除。使用 `uploadUrl` 代替。' + reason: '`uploadUrlTemplate` 正在被删除,因为它不是标准的 URL,并且增加了一个额外的用户步骤。' + date: '2019-04-01T00:00:00+00:00' + criticality: 重大 + owner: tambling + - + location: AssignedEvent.user + description: '`user` 将被删除。使用 `assignee` 字段代替。' + reason: 受理人现在可以作为人体模型。 + date: '2020-01-01T00:00:00+00:00' + criticality: 重大 + owner: tambling + - + location: EnterpriseBillingInfo.availableSeats + description: '`availableSeats` 将被删除。使用 EnterpriseBillingInfo.totalAvailableLicenses 代替。' + reason: '`availableSeats` 将被替换为 `totalAvailableLicenses`,以便更明确地表示要返回的值' + date: '2020-01-01T00:00:00+00:00' + criticality: 重大 + owner: BlakeWilliams + - + location: EnterpriseBillingInfo.seats + description: '`seats` 将被删除。使用 EnterpriseBillingInfo.totalLicenses 代替。' + reason: '`seats` 将被替换为 `totalLicenses`,以便更明确地表示要返回的值' + date: '2020-01-01T00:00:00+00:00' + criticality: 重大 + owner: BlakeWilliams + - + location: UnassignedEvent.user + description: '`user` 将被删除。使用 `assignee` 字段代替。' + reason: 受理人现在可以作为人体模型。 + date: '2020-01-01T00:00:00+00:00' + criticality: 重大 + owner: tambling + - + location: EnterprisePendingMemberInvitationEdge.isUnlicensed + description: '`isUnlicensed` 将被删除。' + reason: 所有挂起的成员都会使用许可证 + date: '2020-07-01T00:00:00+00:00' + criticality: 重大 + owner: BrentWheeldon + - + location: EnterpriseOwnerInfo.pendingCollaborators + description: '`pendingCollaborators` 将被删除。改用 `pendingCollaboratorInvitations` 字段。' + reason: 仓库邀请此时可与电子邮件关联,而不仅仅是被邀请者。 + date: '2020-10-01T00:00:00+00:00' + criticality: 重大 + owner: jdennes + - + location: Issue.timeline + description: '`timeline` 将被删除。使用 Issue.timelineItems 代替。' + reason: '`timeline` 将被删除' + date: '2020-10-01T00:00:00+00:00' + criticality: 重大 + owner: mikesea + - + location: PullRequest.timeline + description: '`timeline` 将被删除。使用 PullRequest.timelineItems 代替。' + reason: '`timeline` 将被删除' + date: '2020-10-01T00:00:00+00:00' + criticality: 重大 + owner: mikesea + - + location: RepositoryInvitationOrderField.INVITEE_LOGIN + description: '`INVITEE_LOGIN` 将被删除。' + reason: '`INVITEE_LOGIN` 不再是有效字段值。仓库邀请此时可与电子邮件关联,而不仅仅是被邀请者。' + date: '2020-10-01T00:00:00+00:00' + criticality: 重大 + owner: jdennes + - + location: EnterpriseMemberEdge.isUnlicensed + description: '`isUnlicensed` 将被删除。' + reason: 所有成员都会使用许可证 + date: '2021-01-01T00:00:00+00:00' + criticality: 重大 + owner: BrentWheeldon + - + location: EnterpriseOutsideCollaboratorEdge.isUnlicensed + description: '`isUnlicensed` 将被删除。' + reason: 所有外部协作者使用许可证 + date: '2021-01-01T00:00:00+00:00' + criticality: 重大 + owner: BrentWheeldon + - + location: EnterprisePendingCollaboratorEdge.isUnlicensed + description: '`isUnlicensed` 将被删除。' + reason: 所有挂起的协作者使用许可证 + date: '2021-01-01T00:00:00+00:00' + criticality: 重大 + owner: BrentWheeldon + - + location: MergeStateStatus.DRAFT + description: '`DRAFT` 将被删除。改为使用 PullRequest.isDraft。' + reason: DRAFT 状态将从这个枚举中删除,应改用 `isDraft` + date: '2021-01-01T00:00:00+00:00' + criticality: 重大 + owner: nplasterer + - + location: PackageType.DOCKER + description: '`DOCKER` 将被删除。' + reason: DOCKER 将从这个枚举中移除,因为这种类型将被迁移到仅供软件包 REST API 使用。 + date: '2021-06-21' + criticality: 重大 + owner: reybard + - + location: ReactionGroup.users + description: '`user` 将被删除。使用 `reactors` 字段代替。' + reason: 反应者现在可以是人体模特、自动程序和组织。 + date: '2021-10-01T00:00:00+00:00' + criticality: 重大 + owner: synthead diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-0/21.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-0/21.yml index 9ccd94c77a99..3b118cef522e 100644 --- a/translations/zh-CN/data/release-notes/enterprise-server/3-0/21.yml +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-0/21.yml @@ -4,6 +4,7 @@ sections: security_fixes: - Support bundles could include sensitive files if they met a specific set of conditions. - A UI misrepresentation vulnerability was identified in GitHub Enterprise Server that allowed more permissions to be granted during a GitHub App's user-authorization web flow than was displayed to the user during approval. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.3 and was fixed in versions 3.2.5, 3.1.13, 3.0.21. This vulnerability was reported via the GitHub Bug Bounty program and has been assigned [CVE-2021-41598](https://www.cve.org/CVERecord?id=CVE-2021-41598). + - A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.3 and was fixed in versions 3.0.21, 3.1.13, 3.2.5. This vulnerability was reported via the GitHub Bug Bounty program and has been assigned [CVE-2021-41599](https://www.cve.org/CVERecord?id=CVE-2021-41599). Updated February 17, 2022. bugs: - Running `ghe-config-apply` could sometimes fail because of permission issues in `/data/user/tmp/pages`. - A misconfiguration in the Management Console caused scheduling errors. diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-0/25.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-0/25.yml new file mode 100644 index 000000000000..9b8fab7db175 --- /dev/null +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-0/25.yml @@ -0,0 +1,13 @@ +--- +date: '2022-02-17' +sections: + security_fixes: + - 包已更新到最新的安全版本。 + known_issues: + - On a freshly set up {% data variables.product.prodname_ghe_server %} instance without any users, an attacker could create the first admin user. + - 自定义防火墙规则在升级过程中被删除。 + - Git LFS 跟踪的文件[通过 Web 界面上传](https://github.com/blog/2105-upload-files-to-your-repositories) 被错误地直接添加到仓库。 + - 如果议题包含文件路径长于 255 个字符的同一仓库中 blob 的永久链接,则议题无法关闭。 + - 对 GitHub Connect 启用“用户可以搜索 GitHub.com”后,私有和内部仓库中的议题不包括在 GitHub.com 搜索结果中。 + - 当副本节点在高可用性配置下离线时,{% data variables.product.product_name %} 仍可能将 {% data variables.product.prodname_pages %} 请求路由到离线节点,从而减少用户的 {% data variables.product.prodname_pages %} 可用性。 + - Resource limits that are specific to processing pre-receive hooks may cause some pre-receive hooks to fail. diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-1/13.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-1/13.yml index 781daeca611a..804b31386ecc 100644 --- a/translations/zh-CN/data/release-notes/enterprise-server/3-1/13.yml +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-1/13.yml @@ -4,6 +4,7 @@ sections: security_fixes: - Support bundles could include sensitive files if they met a specific set of conditions. - A UI misrepresentation vulnerability was identified in GitHub Enterprise Server that allowed more permissions to be granted during a GitHub App's user-authorization web flow than was displayed to the user during approval. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.3 and was fixed in versions 3.2.5, 3.1.13, 3.0.21. This vulnerability was reported via the GitHub Bug Bounty program and has been assigned [CVE-2021-41598](https://www.cve.org/CVERecord?id=CVE-2021-41598). + - A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.3 and was fixed in versions 3.0.21, 3.1.13, 3.2.5. This vulnerability was reported via the GitHub Bug Bounty program and has been assigned [CVE-2021-41599](https://www.cve.org/CVERecord?id=CVE-2021-41599). Updated February 17, 2022 bugs: - Running `ghe-config-apply` could sometimes fail because of permission issues in `/data/user/tmp/pages`. - A misconfiguration in the Management Console caused scheduling errors. diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-1/17.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-1/17.yml new file mode 100644 index 000000000000..cdea421aa74e --- /dev/null +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-1/17.yml @@ -0,0 +1,16 @@ +--- +date: '2022-02-17' +sections: + security_fixes: + - 包已更新到最新的安全版本。 + bugs: + - Fixes SystemStackError (stack too deep) when getting more than 2^16 keys from memcached. + known_issues: + - '{% data variables.product.prodname_registry %} npm 注册表不再返回元数据响应的时间值。这样做是为了大幅改善性能。作为元数据响应的一部分,我们继续拥有返回时间值所需的所有数据,并将在我们解决现有性能问题后恢复返回这个值。' + - On a freshly set up {% data variables.product.prodname_ghe_server %} instance without any users, an attacker could create the first admin user. + - 自定义防火墙规则在升级过程中被删除。 + - Git LFS 跟踪的文件[通过 Web 界面上传](https://github.com/blog/2105-upload-files-to-your-repositories) 被错误地直接添加到仓库。 + - 如果议题包含文件路径长于 255 个字符的同一仓库中 blob 的永久链接,则议题无法关闭。 + - 对 GitHub Connect 启用“用户可以搜索 GitHub.com”后,私有和内部仓库中的议题不包括在 GitHub.com 搜索结果中。 + - If {% data variables.product.prodname_actions %} is enabled for {% data variables.product.prodname_ghe_server %}, teardown of a replica node with `ghe-repl-teardown` will succeed, but may return `ERROR:Running migrations`. + - Resource limits that are specific to processing pre-receive hooks may cause some pre-receive hooks to fail. diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-2/5.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-2/5.yml index f8311e8c59c1..5e229c664067 100644 --- a/translations/zh-CN/data/release-notes/enterprise-server/3-2/5.yml +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-2/5.yml @@ -4,6 +4,7 @@ sections: security_fixes: - Support bundles could include sensitive files if they met a specific set of conditions. - A UI misrepresentation vulnerability was identified in GitHub Enterprise Server that allowed more permissions to be granted during a GitHub App's user-authorization web flow than was displayed to the user during approval. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.3 and was fixed in versions 3.2.5, 3.1.13, 3.0.21. This vulnerability was reported via the GitHub Bug Bounty program and has been assigned [CVE-2021-41598](https://www.cve.org/CVERecord?id=CVE-2021-41598). + - A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.3 and was fixed in versions 3.0.21, 3.1.13, 3.2.5. This vulnerability was reported via the GitHub Bug Bounty program and has been assigned [CVE-2021-41599](https://www.cve.org/CVERecord?id=CVE-2021-41599). Updated February 17, 2022. bugs: - In some cases when Actions was not enabled, `ghe-support-bundle` reported an unexpected message `Unable to find MS SQL container.` - Running `ghe-config-apply` could sometimes fail because of permission issues in `/data/user/tmp/pages`. diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-2/9.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-2/9.yml new file mode 100644 index 000000000000..d57809fbc9e4 --- /dev/null +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-2/9.yml @@ -0,0 +1,20 @@ +--- +date: '2022-02-17' +sections: + security_fixes: + - It was possible for a user to register a user or organization named "saml". + - 包已更新到最新的安全版本。 + bugs: + - GitHub Packages storage settings could not be validated and saved in the Management Console when Azure Blob Storage was used. + - The mssql.backup.cadence configuration option failed ghe-config-check with an invalid characterset warning. + - Fixes SystemStackError (stack too deep) when getting more than 2^16 keys from memcached. + changes: + - Secret scanning will skip scanning ZIP and other archive files for secrets. + known_issues: + - On a freshly set up {% data variables.product.prodname_ghe_server %} instance without any users, an attacker could create the first admin user. + - 自定义防火墙规则在升级过程中被删除。 + - Git LFS 跟踪的文件[通过 Web 界面上传](https://github.com/blog/2105-upload-files-to-your-repositories) 被错误地直接添加到仓库。 + - 如果议题包含文件路径长于 255 个字符的同一仓库中 blob 的永久链接,则议题无法关闭。 + - 对 GitHub Connect 启用“用户可以搜索 GitHub.com”后,私有和内部仓库中的议题不包括在 GitHub.com 搜索结果中。 + - '{% data variables.product.prodname_registry %} npm 注册表不再返回元数据响应的时间值。这样做是为了大幅改善性能。作为元数据响应的一部分,我们继续拥有返回时间值所需的所有数据,并将在我们解决现有性能问题后恢复返回这个值。' + - Resource limits that are specific to processing pre-receive hooks may cause some pre-receive hooks to fail. diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-3/4.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-3/4.yml new file mode 100644 index 000000000000..2b91cfca2009 --- /dev/null +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-3/4.yml @@ -0,0 +1,24 @@ +--- +date: '2022-02-17' +sections: + security_fixes: + - It was possible for a user to register a user or organization named "saml". + - 包已更新到最新的安全版本。 + bugs: + - GitHub Packages storage settings could not be validated and saved in the Management Console when Azure Blob Storage was used. + - The mssql.backup.cadence configuration option failed ghe-config-check with an invalid characterset warning. + - Fixes SystemStackError (stack too deep) when getting more than 2^16 keys from memcached. + - A number of select menus across the site rendered incorrectly and were not functional. + changes: + - Dependency Graph can now be enabled without vulnerability data, allowing customers to see what dependencies are in use and at what versions. Enabling Dependency Graph without enabling GitHub Connect will *not* provide vulnerability information. + - Secret scanning will skip scanning ZIP and other archive files for secrets. + known_issues: + - After upgrading to {% data variables.product.prodname_ghe_server %} 3.3, {% data variables.product.prodname_actions %} may fail to start automatically. To resolve this issue, connect to the appliance via SSH and run the `ghe-actions-start` command. + - On a freshly set up {% data variables.product.prodname_ghe_server %} instance without any users, an attacker could create the first admin user. + - 自定义防火墙规则在升级过程中被删除。 + - Git LFS 跟踪的文件[通过 Web 界面上传](https://github.com/blog/2105-upload-files-to-your-repositories) 被错误地直接添加到仓库。 + - 如果议题包含文件路径长于 255 个字符的同一仓库中 blob 的永久链接,则议题无法关闭。 + - 对 GitHub Connect 启用“用户可以搜索 GitHub.com”后,私有和内部仓库中的议题不包括在 GitHub.com 搜索结果中。 + - '{% data variables.product.prodname_registry %} npm 注册表不再返回元数据响应的时间值。这样做是为了大幅改善性能。作为元数据响应的一部分,我们继续拥有返回时间值所需的所有数据,并将在我们解决现有性能问题后恢复返回这个值。' + - Resource limits that are specific to processing pre-receive hooks may cause some pre-receive hooks to fail. + - '{% data variables.product.prodname_actions %} storage settings cannot be validated and saved in the {% data variables.enterprise.management_console %} when "Force Path Style" is selected, and must instead be configured with the `ghe-actions-precheck` command line utility.' diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-4/0-rc1.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-4/0-rc1.yml new file mode 100644 index 000000000000..f566c33f24c9 --- /dev/null +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-4/0-rc1.yml @@ -0,0 +1,193 @@ +--- +date: '2022-03-15' +release_candidate: true +deprecated: false +intro: | + {% note %} + + **Note:** If {% data variables.product.product_location %} is running a release candidate build, you can't upgrade with a hotpatch. We recommend only running release candidates on test environments. + + {% endnote %} + + For upgrade instructions, see "[Upgrading {% data variables.product.prodname_ghe_server %}](/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/upgrading-github-enterprise-server)." + + > This release is dedicated to our colleague and friend John, a Hubber who was always there to help. You will be greatly missed. + > + > **John "Ralph" Wiebalk 1986–2021** +sections: + features: + - + heading: Secret scanning REST API now returns locations + notes: + - | + {% data variables.product.prodname_GH_advanced_security %} customers can now use the REST API to retrieve commit details of secrets detected in private repository scans. The new endpoint returns details of a secret's first detection within a file, including the secret's location and commit SHA. For more information, see "[Secret scanning](/rest/reference/secret-scanning)" in the REST API documentation. + - + heading: Export license data of committer-based billing for GitHub Advanced Security + notes: + - | + Enterprise and organization owners can now export their {% data variables.product.prodname_GH_advanced_security %} license usage data to a CSV file. The {% data variables.product.prodname_advanced_security %} billing data can also be retrieved via billing endpoints in the REST API. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-11-export-github-advanced-security-license-usage-data/)." + - + heading: GitHub Actions reusable workflows in public beta + notes: + - | + You can now reuse entire workflows as if they were an action. This feature is available in public beta. Instead of copying and pasting workflow definitions across repositories, you can now reference an existing workflow with a single line of configuration. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-10-05-github-actions-dry-your-github-actions-configuration-by-reusing-workflows/)." + - + heading: Dependabot security and version updates in public beta + notes: + - | + {% data variables.product.prodname_dependabot %} is now available in {% data variables.product.prodname_ghe_server %} 3.4 as a public beta, offering both version updates and security updates for several popular ecosystems. {% data variables.product.prodname_dependabot %} on {% data variables.product.prodname_ghe_server %} requires {% data variables.product.prodname_actions %} and a pool of self-hosted runners configured for {% data variables.product.prodname_dependabot %} use. {% data variables.product.prodname_dependabot %} on {% data variables.product.prodname_ghe_server %} also requires {% data variables.product.prodname_github_connect %} and {% data variables.product.prodname_dependabot %} to be enabled by an administrator. Beta feedback and suggestions can be shared in the [{% data variables.product.prodname_dependabot %} Feedback GitHub discussion](https://github.com/github/feedback/discussions/categories/dependabot-feedback). For more information and to try the beta, see "[Setting up {% data variables.product.prodname_dependabot %} security and version updates on your enterprise](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates)." + changes: + - + heading: 管理更改 + notes: + - Users can now choose the number of spaces a tab is equal to, by setting their preferred tab size in the "Appearance" settings of their user account. All code with a tab indent will render using the preferred tab size. + - The {% data variables.product.prodname_github_connect %} data connection record now includes a count of the number of active and dormant users and the configured dormancy period. + - + heading: Performance Changes + notes: + - WireGuard, used to secure communication between {% data variables.product.prodname_ghe_server %} instances in a High Availability configuration, has been migrated to the Kernel implementation. + - + heading: Notification Changes + notes: + - Organization owners can now unsubscribe from email notifications when new deploy keys are added to repositories belonging to their organizations. For more information, see "[Configuring notifications](/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications)." + - 'Notification emails from newly created issues and pull requests now include `(Issue #xx)` or `(PR #xx)` in the email subject, so you can recognize and filter emails that reference these types of issues.' + - + heading: Organization Changes + notes: + - Organizations can now display a `README.md` file on their profile Overview. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-09-14-readmes-for-organization-profiles/)." + - 'Members of organizations can now view a list of their enterprise owners under the organization''s "People" tab. The enterprise owners list is also now accessible using the GraphQL API. For more information, see the "[`enterpriseOwners`](/graphql/reference/objects#organization)" field under the Organization object in the GraphQL API documentation.' + - + heading: Repositories changes + notes: + - | + A "Manage Access" section is now shown on the "Collaborators and teams" page in your repository settings. The new section makes it easier for repository administrators to see and manage who has access to their repository, and the level of access granted to each user. Administrators can now: + + * Search all members, teams and collaborators who have access to the repository. + * View when members have mixed role assignments, granted to them directly as individuals or indirectly via a team. This is visualized through a new "mixed roles" warning, which displays the highest level role the user is granted if their permission level is higher than their assigned role. + * Manage access to popular repositories reliably, with page pagination and fewer timeouts when large groups of users have access. + - '{% data variables.product.prodname_ghe_server %} 3.4 includes improvements to the repository invitation experience, such as notifications for private repository invites, a UI prompt when visiting a private repository you have a pending invitation for, and a banner on a public repository overview page when there is an pending invitation.' + - 'You can now use single-character prefixes for custom autolinks. Autolink prefixes also now allow `.`, `-`, `_`, `+`, `=`, `:`, `/`, and `#` characters, as well as alphanumerics. For more information about custom autolinks, see "[Configuring autolinks to reference external resources](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-autolinks-to-reference-external-resources)."' + - A `CODE_OF_CONDUCT.md` file in the root of a repository is now highlighted in the "About" sidebar on the repository overview page. + - + heading: 'Releases changes' + notes: + - '{% data variables.product.prodname_ghe_server %} 3.4 includes improvements to the Releases UI, such as automatically generated release notes which display a summary of all the pull requests for a given release. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-10-20-improvements-to-github-releases-generally-available/)."' + - When a release is published, an avatar list is now displayed at the bottom of the release. Avatars for all user accounts mentioned in the release notes are shown. For more information, see "[Managing releases in a repository](/repositories/releasing-projects-on-github/managing-releases-in-a-repository)." + - + heading: 'Markdown changes' + notes: + - You can now use the new "Accessibility" settings page to manage your keyboard shortcuts. You can choose to disable keyboard shortcuts that only use single characters like S, GC, and . (the period key). For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-16-managing-keyboard-shortcuts-using-accessibility-settings/)." + - You can now choose to use a fixed-width font in Markdown-enabled fields, like issue comments and pull request descriptions. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-10-12-fixed-width-font-support-in-markdown-enabled-fields/)." + - You can now paste a URL on selected text to quickly create a Markdown link. This works in all Markdown-enabled fields, such as issue comments and pull request descriptions. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-10-linkify-selected-text-on-url-paste/)." + - 'An image URL can now be appended with a theme context, such as `#gh-dark-mode-only`, to define how the Markdown image is displayed to a viewer. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/)."' + - When creating or editing a gist file with the Markdown (`.md`) file extension, you can now use the "Preview" or "Preview Changes" tab to display a Markdown rendering of the file contents. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-17-preview-the-markdown-rendering-of-gists/)." + - When typing the name of a {% data variables.product.prodname_dotcom %} user in issues, pull requests and discussions, the @mention suggester now ranks existing participants higher than other {% data variables.product.prodname_dotcom %} users, so that it's more likely the user you're looking for will be listed. + - Right-to-left languages are now supported natively in Markdown files, issues, pull requests, discussions, and comments. + - + heading: 'Issues and pull requests changes' + notes: + - The diff setting to hide whitespace changes in the pull request "Files changed" tab is now retained for your user account for that pull request. The setting you have chosen is automatically reapplied if you navigate away from the page and then revisit the "Files changed" tab of the same pull request. + - When using auto assignment for pull request code reviews, you can now choose to only notify requested team members independently of your auto assignment settings. This setting is useful in scenarios where many users are auto assigned but not all users require notification. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-10-team-member-pull-request-review-notifications-can-be-configured-independently-of-auto-assignment/)." + - + heading: 'Branches changes' + notes: + - 'Organization and repository administrators can now trigger webhooks to listen for changes to branch protection rules on their repositories. For more information, see the "[branch_protection_rule](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_rule)" event in the webhooks events and payloads documentation.' + - When configuring protected branches, you can now enforce that a required status check is provided by a specific {% data variables.product.prodname_github_app %}. If a status is then provided by a different application, or by a user via a commit status, merging is prevented. This ensures all changes are validated by the intended application. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-12-01-ensure-required-status-checks-provided-by-the-intended-app/)." + - Only users with administrator permissions are now able to rename protected branches and modify branch protection rules. Previously, with the exception of the default branch, a collaborator could rename a branch and consequently any non-wildcard branch protection rules that applied to that branch were also renamed. For more information, see "[Renaming a branch](/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch)" and "[Managing a branch protection rule](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule)." + - Administrators can now allow only specific users and teams to bypass pull request requirements. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-19-allow-bypassing-required-pull-requests/)." + - Administrators can now allow only specific users and teams to force push to a repository. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-12-21-specify-who-can-force-push-to-a-repository/)." + - When requiring pull requests for all changes to a protected branch, administrators can now choose if approved reviews are also a requirement. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-10-require-pull-requests-without-requiring-reviews/)." + - + heading: 'GitHub Actions changes' + notes: + - '{% data variables.product.prodname_actions %} workflows triggered by {% data variables.product.prodname_dependabot %} for the `create`, `deployment`, and `deployment_status` events now always receive a read-only token and no secrets. Similarly, workflows triggered by {% data variables.product.prodname_dependabot %} for the `pull_request_target` event on pull requests where the base ref was created by {% data variables.product.prodname_dependabot %}, now always receive a read-only token and no secrets. These changes are designed to prevent potentially malicious code from executing in a privileged workflow. For more information, see "[Automating {% data variables.product.prodname_dependabot %} with {% data variables.product.prodname_actions %}](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions)."' + - Workflow runs on `push` and `pull_request` events triggered by {% data variables.product.prodname_dependabot %} will now respect the permissions specified in your workflows, allowing you to control how you manage automatic dependency updates. The default token permissions will remain read-only. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-10-06-github-actions-workflows-triggered-by-dependabot-prs-will-respect-permissions-key-in-workflows/)." + - '{% data variables.product.prodname_actions %} workflows triggered by {% data variables.product.prodname_dependabot %} will now be sent the {% data variables.product.prodname_dependabot %} secrets. You can now pull from private package registries in your CI using the same secrets you have configured for {% data variables.product.prodname_dependabot %} to use, improving how {% data variables.product.prodname_actions %} and {% data variables.product.prodname_dependabot %} work together. For more information, see "[Automating {% data variables.product.prodname_dependabot %} with {% data variables.product.prodname_actions %}](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions)."' + - You can now manage runner groups and see the status of your self-hosted runners using new Runners and Runner Groups pages in the UI. The Actions settings page for your repository or organization now shows a summary view of your runners, and allows you to deep dive into a specific runner to edit it or see what job it may be currently running. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-09-20-github-actions-experience-refresh-for-the-management-of-self-hosted-runners/)." + - 'Actions authors can now have their action run in Node.js 16 by specifying [`runs.using` as `node16` in the action''s `action.yml`](/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions). This is in addition to the existing Node.js 12 support; actions can continue to specify `runs.using: node12` to use the Node.js 12 runtime.' + - 'For manually triggered workflows, {% data variables.product.prodname_actions %} now supports the `choice`, `boolean`, and `environment` input types in addition to the default `string` type. For more information, see "[`on.workflow_dispatch.inputs`](/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs)."' + - Actions written in YAML, also known as composite actions, now support `if` conditionals. This lets you prevent specific steps from executing unless a condition has been met. Like steps defined in workflows, you can use any supported context and expression to create a conditional. + - The search order behavior for self-hosted runners has now changed, so that the first available matching runner at any level will run the job in all cases. This allows jobs to be sent to self-hosted runners much faster, especially for organizations and enterprises with lots of self-hosted runners. Previously, when running a job that required a self-hosted runner, {% data variables.product.prodname_actions %} would look for self-hosted runners in the repository, organization, and enterprise, in that order. + - 'Runner labels for {% data variables.product.prodname_actions %} self-hosted runners can now be listed, added and removed using the REST API. For more information about using the new APIs at a repository, organization, or enterprise level, see "[Repositories](/rest/reference/actions#list-labels-for-a-self-hosted-runner-for-a-repository)", "[Organizations](/rest/reference/actions#add-custom-labels-to-a-self-hosted-runner-for-an-organization)", and "[Enterprises](/rest/reference/enterprise-admin#list-labels-for-a-self-hosted-runner-for-an-enterprise)" in the REST API documentation.' + - + heading: 'Dependabot and Dependency graph changes' + notes: + - Dependency graph now supports detecting Python dependencies in repositories that use the Poetry package manager. Dependencies will be detected from both `pyproject.toml` and `poetry.lock` manifest files. + - When configuring {% data variables.product.prodname_dependabot %} security and version updates on GitHub Enterprise Server, we recommend you also enable {% data variables.product.prodname_dependabot %} in {% data variables.product.prodname_github_connect %}. This will allow {% data variables.product.prodname_dependabot %} to retrieve an updated list of dependencies and vulnerabilities from {% data variables.product.prodname_dotcom_the_website %}, by querying for information such as the changelogs of the public releases of open source code that you depend upon. For more information, see "[Enabling the dependency graph and Dependabot alerts for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)." + - '{% data variables.product.prodname_dependabot_alerts %} alerts can now be dismissed using the GraphQL API. For more information, see the "[dismissRepositoryVulnerabilityAlert](/graphql/reference/mutations#dismissrepositoryvulnerabilityalert)" mutation in the GraphQL API documentation.' + - + heading: 'Code scanning and secret scanning changes' + notes: + - The {% data variables.product.prodname_codeql %} CLI now supports including markdown-rendered query help in SARIF files, so that the help text can be viewed in the {% data variables.product.prodname_code_scanning %} UI when the query generates an alert. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-23-display-help-text-for-your-custom-codeql-queries-in-code-scanning/)." + - The {% data variables.product.prodname_codeql %} CLI and {% data variables.product.prodname_vscode %} extension now support building databases and analyzing code on machines powered by Apple Silicon, such as Apple M1. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-10-codeql-now-supports-apple-silicon-m1/)." + - | + The depth of {% data variables.product.prodname_codeql %}'s analysis has been improved by adding support for more [libraries and frameworks](https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/) from the Python ecosystem. As a result, {% data variables.product.prodname_codeql %} can now detect even more potential sources of untrusted user data, steps through which that data flows, and potentially dangerous sinks where the data could end up. This results in an overall improvement of the quality of {% data variables.product.prodname_code_scanning %} alerts. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-11-24-codeql-code-scanning-now-recognizes-more-python-libraries-and-frameworks/)." + - Code scanning with {% data variables.product.prodname_codeql %} now includes beta support for analyzing code in all common Ruby versions, up to and including 3.02. For more information, see the "[{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-10-27-codeql-code-scanning-adds-beta-support-for-ruby/)." + - | + Several improvements have been made to the {% data variables.product.prodname_code_scanning %} API: + + * The `fixed_at` timestamp has been added to alerts. This timestamp is the first time that the alert was not detected in an analysis. + * Alert results can now be sorted using `sort` and `direction` on either `created`, `updated` or `number`. For more information, see "[List code scanning alerts for a repository](/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository)." + * A `Last-Modified` header has been added to the alerts and alert endpoint response. For more information, see [`Last-Modified`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified) in the Mozilla documentation. + * The `relatedLocations` field has been added to the SARIF response when you request a code scanning analysis. The field may contain locations which are not the primary location of the alert. See an example in the [SARIF spec](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html#_Toc16012616) and for more information see "[Get a code scanning analysis for a repository](/rest/reference/code-scanning#get-a-code-scanning-analysis-for-a-repository)." + * Both `help` and `tags` data have been added to the webhook response alert rule object. For more information, see "[Code scanning alert webhooks events and payloads](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#code_scanning_alert)." + * Personal access tokens with the `public_repo` scope now have write access for code scanning endpoints on public repos, if the user has permission. + + For more information, see "[Code scanning](/rest/reference/code-scanning)" in the REST API documentation. + - '{% data variables.product.prodname_GH_advanced_security %} customers can now use the REST API to retrieve private repository secret scanning results at the enterprise level. The new endpoint supplements the existing repository-level and organization-level endpoints. For more information, see "[Secret scanning](/rest/reference/secret-scanning)" in the REST API documentation.' + #No security/bug fixes for the RC release + #security_fixes: + #- PLACEHOLDER + #bugs: + #- PLACEHOLDER + known_issues: + - On a freshly set up {% data variables.product.prodname_ghe_server %} instance without any users, an attacker could create the first admin user. + - 自定义防火墙规则在升级过程中被删除。 + - Git LFS 跟踪的文件[通过 Web 界面上传](https://github.com/blog/2105-upload-files-to-your-repositories) 被错误地直接添加到仓库。 + - 如果议题包含文件路径长于 255 个字符的同一仓库中 blob 的永久链接,则议题无法关闭。 + - 对 GitHub Connect 启用“用户可以搜索 GitHub.com”后,私有和内部仓库中的议题不包括在 GitHub.com 搜索结果中。 + - '{% data variables.product.prodname_registry %} npm 注册表不再返回元数据响应的时间值。这样做是为了大幅改善性能。作为元数据响应的一部分,我们继续拥有返回时间值所需的所有数据,并将在我们解决现有性能问题后恢复返回这个值。' + - Resource limits that are specific to processing pre-receive hooks may cause some pre-receive hooks to fail. + deprecations: + - + heading: Deprecation of GitHub Enterprise Server 3.0 + notes: + - '**{% data variables.product.prodname_ghe_server %} 3.0 was discontinued on February 16, 2022**. This means that no patch releases will be made, even for critical security issues, after this date. For better performance, improved security, and new features, [upgrade to the newest version of {% data variables.product.prodname_ghe_server %}](/enterprise-server@3.4/admin/enterprise-management/upgrading-github-enterprise-server) as soon as possible.' + - + heading: Deprecation of GitHub Enterprise Server 3.1 + notes: + - '**{% data variables.product.prodname_ghe_server %} 3.1 will be discontinued on June 3, 2022**. This means that no patch releases will be made, even for critical security issues, after this date. For better performance, improved security, and new features, [upgrade to the newest version of {% data variables.product.prodname_ghe_server %}](/enterprise-server@3.4/admin/enterprise-management/upgrading-github-enterprise-server) as soon as possible.' + - + heading: XenServer Hypervisor 支持终止 + notes: + - Starting in {% data variables.product.prodname_ghe_server %} 3.3, {% data variables.product.prodname_ghe_server %} on XenServer was deprecated and is no longer supported. Please contact [GitHub Support](https://support.github.com) with questions or concerns. + - + heading: Deprecation of the Content Attachments API preview + notes: + - Due to low usage, we have deprecated the Content References API preview in {% data variables.product.prodname_ghe_server %} 3.4. The API was previously accessible with the `corsair-preview` header. Users can continue to navigate to external URLs without this API. Any registered usages of the Content References API will no longer receive a webhook notification for URLs from your registered domain(s) and we no longer return valid response codes for attempted updates to existing content attachments. + - + heading: Deprecation of the Codes of Conduct API preview + notes: + - 'The Codes of Conduct API preview, which was accessible with the `scarlet-witch-preview` header, is deprecated and no longer accessible in {% data variables.product.prodname_ghe_server %} 3.4. We instead recommend using the "[Get community profile metrics](/rest/reference/repos#get-community-profile-metrics)" endpoint to retrieve information about a repository''s code of conduct. For more information, see the "[Deprecation Notice: Codes of Conduct API preview](https://github.blog/changelog/2021-10-06-deprecation-notice-codes-of-conduct-api-preview/)" in the {% data variables.product.prodname_dotcom %} changelog.' + - + heading: Deprecation of OAuth Application API endpoints and API authentication using query parameters + notes: + - | + Starting with {% data variables.product.prodname_ghe_server %} 3.4, the [deprecated version of the OAuth Application API endpoints](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/#endpoints-affected) have been removed. If you encounter 404 error messages on these endpoints, convert your code to the versions of the OAuth Application API that do not have `access_tokens` in the URL. We've also disabled the use of API authentication using query parameters. We instead recommend using [API authentication in the request header](https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/#changes-to-make). + - + heading: Deprecation of the CodeQL runner + notes: + - The {% data variables.product.prodname_codeql %} runner is deprecated in {% data variables.product.prodname_ghe_server %} 3.4 and is no longer supported. The deprecation only affects users who use {% data variables.product.prodname_codeql %} code scanning in third party CI/CD systems; {% data variables.product.prodname_actions %} users are not affected. We strongly recommend that customers migrate to the {% data variables.product.prodname_codeql %} CLI, which is a feature-complete replacement for the {% data variables.product.prodname_codeql %} runner. For more information, see the [{% data variables.product.prodname_dotcom %} changelog](https://github.blog/changelog/2021-09-21-codeql-runner-deprecation/). + - + heading: Deprecation of custom bit-cache extensions + notes: + - | + Starting in {% data variables.product.prodname_ghe_server %} 3.1, support for {% data variables.product.company_short %}'s proprietary bit-cache extensions began to be phased out. These extensions are deprecated in {% data variables.product.prodname_ghe_server %} 3.3 onwards. + + Any repositories that were already present and active on {% data variables.product.product_location %} running version 3.1 or 3.2 will have been automatically updated. + + Repositories which were not present and active before upgrading to {% data variables.product.prodname_ghe_server %} 3.3 may not perform optimally until a repository maintenance task is run and has successfully completed. + + To start a repository maintenance task manually, browse to `https:///stafftools/repositories///network` for each affected repository and click the Schedule button. + backups: + - '{% data variables.product.prodname_ghe_server %} 3.4 requires at least [GitHub Enterprise Backup Utilities 3.4.0](https://github.com/github/backup-utils) for [Backups and Disaster Recovery](/admin/configuration/configuring-your-enterprise/configuring-backups-on-your-appliance).' diff --git a/translations/zh-CN/data/reusables/accounts/accounts-billed-separately.md b/translations/zh-CN/data/reusables/accounts/accounts-billed-separately.md index 3e99bbe8985f..2cc6e8486c0d 100644 --- a/translations/zh-CN/data/reusables/accounts/accounts-billed-separately.md +++ b/translations/zh-CN/data/reusables/accounts/accounts-billed-separately.md @@ -1 +1 @@ -Each account on {% data variables.product.product_name %} is billed separately. Upgrading an organization account enables paid features for the organization's repositories only and does not affect the features available in repositories owned by any associated personal accounts. Similarly, upgrading a personal account enables paid features for the personal account's repositories only and does not affect the repositories of any organization accounts. For more information about account types, see "[Types of {% data variables.product.prodname_dotcom %} accounts](/get-started/learning-about-github/types-of-github-accounts)." +Each account on {% data variables.product.product_name %} is billed separately. Upgrading an organization account enables paid features for the organization's repositories only and does not affect the features available in repositories owned by any associated personal accounts. Similarly, upgrading a personal account enables paid features for the personal account's repositories only and does not affect the repositories of any organization accounts. 有关帐户类型的详细信息,请参阅“[{% data variables.product.prodname_dotcom %} 帐户类型](/get-started/learning-about-github/types-of-github-accounts)”。 diff --git a/translations/zh-CN/data/reusables/actions/hardware-requirements-after.md b/translations/zh-CN/data/reusables/actions/hardware-requirements-3.3.md similarity index 100% rename from translations/zh-CN/data/reusables/actions/hardware-requirements-after.md rename to translations/zh-CN/data/reusables/actions/hardware-requirements-3.3.md diff --git a/translations/zh-CN/data/reusables/actions/hardware-requirements-3.4.md b/translations/zh-CN/data/reusables/actions/hardware-requirements-3.4.md new file mode 100644 index 000000000000..ac847f318d26 --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/hardware-requirements-3.4.md @@ -0,0 +1,8 @@ +| vCPU | 内存 | 最大并行数 | +|:---- |:------ |:-------- | +| 8 | 64 GB | 300 个作业 | +| 16 | 128 GB | 700 个作业 | +| 32 | 160 GB | 1500 个作业 | +| 64 | 256 GB | 2500 个作业 | +| 96 | 384 GB | 4500 个作业 | +| 128 | 550 GB | 5000 个作业 | diff --git a/translations/zh-CN/data/reusables/actions/minimum-hardware.md b/translations/zh-CN/data/reusables/actions/minimum-hardware.md new file mode 100644 index 000000000000..4f4460df6b4f --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/minimum-hardware.md @@ -0,0 +1 @@ +{% data variables.product.company_short %} recommends a minimum of 8 vCPU and 64 GB memory to run {% data variables.product.prodname_actions %}. \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/actions/oidc-permissions-token.md b/translations/zh-CN/data/reusables/actions/oidc-permissions-token.md index abc7dba3541b..5bbde1868dea 100644 --- a/translations/zh-CN/data/reusables/actions/oidc-permissions-token.md +++ b/translations/zh-CN/data/reusables/actions/oidc-permissions-token.md @@ -1,4 +1,6 @@ -The job or workflow run requires a `permissions` setting with [`id-token: write`](/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token). This allows the JWT to be requested from GitHub's OIDC provider using one of these approaches: +The job or workflow run requires a `permissions` setting with [`id-token: write`](/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token). You won't be able to request the OIDC JWT ID token if the `permissions` setting for `id-token` is set to `read` or `none`. + +The `id-token: write` setting allows the JWT to be requested from {% data variables.product.prodname_dotcom %}'s OIDC provider using one of these approaches: - Using environment variables on the runner (`ACTIONS_ID_TOKEN_REQUEST_URL` and `ACTIONS_ID_TOKEN_REQUEST_TOKEN`). - Using `getIDToken()` from the Actions toolkit. @@ -10,4 +12,4 @@ permissions: id-token: write ``` -You may need to specify additional permissions here, depending on your workflow's requirements. \ No newline at end of file +You may need to specify additional permissions here, depending on your workflow's requirements. diff --git a/translations/zh-CN/data/reusables/actions/reusable-workflows-ghes-beta.md b/translations/zh-CN/data/reusables/actions/reusable-workflows-ghes-beta.md new file mode 100644 index 000000000000..7264d89ee072 --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/reusable-workflows-ghes-beta.md @@ -0,0 +1,9 @@ +{% ifversion ghes = 3.4 %} + +{% note %} + +**Note**: Reusable workflows are currently in beta and subject to change. + +{% endnote %} + +{% endif %} \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/advanced-security/ghas-availability.md b/translations/zh-CN/data/reusables/advanced-security/ghas-availability.md index ad4315d7c13b..e968589009b8 100644 --- a/translations/zh-CN/data/reusables/advanced-security/ghas-availability.md +++ b/translations/zh-CN/data/reusables/advanced-security/ghas-availability.md @@ -1,10 +1,10 @@ -{% data variables.product.prodname_GH_advanced_security %} is available +{% data variables.product.prodname_GH_advanced_security %} features are available -{%- ifversion fpt %} and enabled for public repositories on {% data variables.product.prodname_dotcom_the_website %}. Organizations that use {% data variables.product.prodname_ghe_cloud %} can also access these features in private repositories with a license for {% data variables.product.prodname_GH_advanced_security %}. {% data reusables.advanced-security.more-info-ghas %} +{%- ifversion fpt %} for public repositories on {% data variables.product.prodname_dotcom_the_website %}. Organizations that use {% data variables.product.prodname_ghe_cloud %} can also access these features in private repositories with a license for {% data variables.product.prodname_GH_advanced_security %}. {% data reusables.advanced-security.more-info-ghas %} -{%- elsif ghec %} and enabled for public repositories on {% data variables.product.prodname_dotcom_the_website %}. It is also available for private or internal repositories that are owned by an organization that is part of an enterprise with a license for {% data variables.product.prodname_GH_advanced_security %}. {% data reusables.advanced-security.more-info-ghas %} +{%- elsif ghec %} and free of charge for public repositories on {% data variables.product.prodname_dotcom_the_website %}. Organizations within an enterprise that has a {% data variables.product.prodname_GH_advanced_security %} license can also access these features on private or internal repositories. {% data reusables.advanced-security.more-info-ghas %} -{%- elsif ghes %} if your enterprise has a license for {% data variables.product.prodname_GH_advanced_security %}. It is restricted to repositories owned by an organization. {% data reusables.advanced-security.more-info-ghas %} +{%- elsif ghes %} for enterprises with a license for {% data variables.product.prodname_GH_advanced_security %}. The features are restricted to repositories owned by an organization. {% data reusables.advanced-security.more-info-ghas %} {%- elsif ghae %} for repositories owned by an organization. {% data reusables.advanced-security.more-info-ghas %} {% endif %} diff --git a/translations/zh-CN/data/reusables/audit_log/only-three-months-displayed.md b/translations/zh-CN/data/reusables/audit_log/only-three-months-displayed.md new file mode 100644 index 000000000000..930f68050024 --- /dev/null +++ b/translations/zh-CN/data/reusables/audit_log/only-three-months-displayed.md @@ -0,0 +1 @@ +By default, only events from the past three months are displayed. To view older events, you must specify a date range with the `created` parameter. 更多信息请参阅“[了解搜索语法](/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)”。 diff --git a/translations/zh-CN/data/reusables/billing/per-user-pricing-reference.md b/translations/zh-CN/data/reusables/billing/per-user-pricing-reference.md new file mode 100644 index 000000000000..f40e4d0f80db --- /dev/null +++ b/translations/zh-CN/data/reusables/billing/per-user-pricing-reference.md @@ -0,0 +1,30 @@ +With per-user pricing, each person consumes one license. {% data variables.product.company_short %} identifies individuals by primary email address. + +{% data variables.product.company_short %} bills for the following people. + +{%- ifversion ghec %} +- Enterprise owners who are a member or owner of at least one organization in the enterprise +{%- endif %} +- Organization members, including owners +- Outside collaborators on private{% ifversion ghec %} or internal{% endif %} repositories owned by your organization, excluding forks +- Anyone with a pending invitation to become an organization owner or member +- Anyone with a pending invitation to become an outside collaborator on private{% ifversion ghec %} or internal{% endif %} repositories owned by your organization, excluding forks +{%- ifversion ghec %} +- Each user on any {% data variables.product.prodname_ghe_server %} instance that you deploy +{% endif %} + +{% data variables.product.company_short %} does not bill for any of the following people. + +{%- ifversion ghec %} +- Enterprise owners who are not a member or owner of at least one organization in the enterprise +- Enterprise billing managers +{%- endif %} +- Organization billing managers{% ifversion ghec %} for individual organizations on {% data variables.product.prodname_ghe_cloud %}{% endif %} +- Anyone with a pending invitation to become an{% ifversion ghec %} enterprise or{% endif %} organization billing manager +- Anyone with a pending invitation to become an outside collaborator on a public repository owned by your organization + +{% note %} + +**注**:{% data reusables.organizations.org-invite-scim %} + +{% endnote %} diff --git a/translations/zh-CN/data/reusables/codespaces/review-pr.md b/translations/zh-CN/data/reusables/codespaces/review-pr.md index cf263511e8a0..6429e37dfb7b 100644 --- a/translations/zh-CN/data/reusables/codespaces/review-pr.md +++ b/translations/zh-CN/data/reusables/codespaces/review-pr.md @@ -1,5 +1,5 @@ 1. Open the pull request in a codespace, as described in "[Opening a pull request](/codespaces/developing-in-codespaces/using-codespaces-for-pull-requests#opening-a-pull-request-in-codespaces)." -2. In the Activity Bar, click the **GitHub Pull Request** view. This view only appears when you open a pull request in a codespace. ![Option to open PR in a codespace](/assets/images/help/codespaces/github-pr-view.png) -3. To review a specific file, click the **Open File** icon in the Side Bar. ![Option to open PR in a codespace](/assets/images/help/codespaces/changes-in-files.png) -4. To add review comments, click the **+** icon next to the line number. Type your review comment and then click **Start Review**. ![Option to open PR in a codespace](/assets/images/help/codespaces/start-review.png) -5. When you are finished adding review comments, from the Side Bar you can choose to either submit the comments, approve the changes, or request changes. ![Option to open PR in a codespace](/assets/images/help/codespaces/submit-review.png) +2. In the Activity Bar, click the **GitHub Pull Request** view. This view only appears when you open a pull request in a codespace. ![用于在代码空间中打开 PR 的选项](/assets/images/help/codespaces/github-pr-view.png) +3. To review a specific file, click the **Open File** icon in the Side Bar. ![用于在代码空间中打开 PR 的选项](/assets/images/help/codespaces/changes-in-files.png) +4. To add review comments, click the **+** icon next to the line number. Type your review comment and then click **Start Review**. ![用于在代码空间中打开 PR 的选项](/assets/images/help/codespaces/start-review.png) +5. When you are finished adding review comments, from the Side Bar you can choose to either submit the comments, approve the changes, or request changes. ![用于在代码空间中打开 PR 的选项](/assets/images/help/codespaces/submit-review.png) diff --git a/translations/zh-CN/data/reusables/dependabot/about-the-dependency-graph.md b/translations/zh-CN/data/reusables/dependabot/about-the-dependency-graph.md new file mode 100644 index 000000000000..89a68384b2bc --- /dev/null +++ b/translations/zh-CN/data/reusables/dependabot/about-the-dependency-graph.md @@ -0,0 +1,4 @@ +依赖项图是存储在仓库中的清单和锁定文件的摘要。 对于每个仓库,它显示{% ifversion fpt or ghec %}: + +- 依赖项、它依赖的生态系统和包 +- 依赖项、依赖于它的仓库和包{% else %} 依赖项,即它所依赖的生态系统和包。 {% data variables.product.product_name %} 不计算有关依赖项、仓库和依赖于仓库的包的信息。{% endif %} \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md b/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md index 80d479ff906c..e356372aa4b0 100644 --- a/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md +++ b/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md @@ -1,9 +1,11 @@ {% ifversion ghes > 3.2 %} {% note %} - +{% if dependabot-updates-github-connect %} +**Note:** {% data variables.product.prodname_dependabot %} security and version updates are currently in public beta and subject to change. +{% else %} **Note:** {% data variables.product.prodname_dependabot %} security and version updates are currently in private beta and subject to change. To request access to the beta release, [contact your account management team](https://enterprise.github.com/contact). - +{% endif %} {% endnote %} {% endif %} \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/dependabot/dependabot-alerts-dependency-graph-enterprise.md b/translations/zh-CN/data/reusables/dependabot/dependabot-alerts-dependency-graph-enterprise.md index 8d32bf782726..14d560b7e435 100644 --- a/translations/zh-CN/data/reusables/dependabot/dependabot-alerts-dependency-graph-enterprise.md +++ b/translations/zh-CN/data/reusables/dependabot/dependabot-alerts-dependency-graph-enterprise.md @@ -1,3 +1,3 @@ {% ifversion ghes or ghae-issue-4864 %} -The dependency graph and {% data variables.product.prodname_dependabot_alerts %} are configured at an enterprise level by the enterprise owner. For more information, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)." +The dependency graph and {% data variables.product.prodname_dependabot_alerts %} are configured at an enterprise level by the enterprise owner. For more information, see {% ifversion ghes %}"[Enabling the dependency graph for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise)" and {% endif %}"[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." {% endif %} diff --git a/translations/zh-CN/data/reusables/dependabot/enterprise-enable-dependabot.md b/translations/zh-CN/data/reusables/dependabot/enterprise-enable-dependabot.md index f3d533df734f..1df0abf90596 100644 --- a/translations/zh-CN/data/reusables/dependabot/enterprise-enable-dependabot.md +++ b/translations/zh-CN/data/reusables/dependabot/enterprise-enable-dependabot.md @@ -2,7 +2,7 @@ {% note %} -**Note:** Your site administrator must set up {% data variables.product.prodname_dependabot %} updates for {% data variables.product.product_location %} before you can use this feature. For more information, see "[Setting up {% data variables.product.prodname_dependabot %} security and version updates on your enterprise](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates)." +**Note:** Your site administrator must set up {% data variables.product.prodname_dependabot_updates %} for {% data variables.product.product_location %} before you can use this feature. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." {% endnote %} diff --git a/translations/zh-CN/data/reusables/desktop/revert-commit.md b/translations/zh-CN/data/reusables/desktop/revert-commit.md index 6553914c6542..5694921a0f77 100644 --- a/translations/zh-CN/data/reusables/desktop/revert-commit.md +++ b/translations/zh-CN/data/reusables/desktop/revert-commit.md @@ -1 +1 @@ -1. 右键单击要还原的提交,然后单击 **Revert This Commit(还原此提交)**。 +1. Right-click the commit you want to revert and click **Revert Changes in Commit**. diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/about-recovery-codes.md b/translations/zh-CN/data/reusables/enterprise-accounts/about-recovery-codes.md new file mode 100644 index 000000000000..baed587cdcb7 --- /dev/null +++ b/translations/zh-CN/data/reusables/enterprise-accounts/about-recovery-codes.md @@ -0,0 +1 @@ +If a SAML configuration error or an issue with your identity provider (IdP) prevents you from using SAML SSO, you can use a recovery code to access your enterprise. \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/download-recovery-codes.md b/translations/zh-CN/data/reusables/enterprise-accounts/download-recovery-codes.md new file mode 100644 index 000000000000..7c2756a15a17 --- /dev/null +++ b/translations/zh-CN/data/reusables/enterprise-accounts/download-recovery-codes.md @@ -0,0 +1,3 @@ +1. To ensure you can still access your enterprise in the event that your identity provider is ever unavailable in the future, click **Download**, **Print**, or **Copy** to save your recovery codes. For more information, see "[Downloading your enterprise account's SAML single sign-on recovery codes](/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/downloading-your-enterprise-accounts-saml-single-sign-on-recovery-codes)." + + ![Screenshot of the buttons to download, print, or copy your recovery codes](/assets/images/help/saml/saml_recovery_code_options.png) \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/enterprise_installation/hardware-rec-table.md b/translations/zh-CN/data/reusables/enterprise_installation/hardware-rec-table.md index fcb26259aadf..58ca08fffb5e 100644 --- a/translations/zh-CN/data/reusables/enterprise_installation/hardware-rec-table.md +++ b/translations/zh-CN/data/reusables/enterprise_installation/hardware-rec-table.md @@ -36,9 +36,15 @@ If you plan to enable {% data variables.product.prodname_actions %} for the user {%- endif %} -{%- ifversion ghes > 3.2 %} +{%- ifversion ghes = 3.3 %} -{% data reusables.actions.hardware-requirements-after %} +{% data reusables.actions.hardware-requirements-3.3 %} + +{%- endif %} + +{%- ifversion ghes = 3.4 %} + +{% data reusables.actions.hardware-requirements-3.4 %} {%- endif %} diff --git a/translations/zh-CN/data/reusables/enterprise_installation/preventing-nameservers-change.md b/translations/zh-CN/data/reusables/enterprise_installation/preventing-nameservers-change.md new file mode 100644 index 000000000000..c90d54c03a9d --- /dev/null +++ b/translations/zh-CN/data/reusables/enterprise_installation/preventing-nameservers-change.md @@ -0,0 +1,5 @@ + {% note %} + + **Note**: The 127.0.0.1 entry is required to be the first entry in the list. Do not remove the 127.0.0.1 entry, add another entry above the 127.0.0.1 entry, or use options that affect the ordering of entries, such as "options rotate". + + {% endnote %} diff --git a/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md b/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md index abf2d6c5d87c..adeca7e48807 100644 --- a/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md +++ b/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md @@ -1,2 +1,11 @@ -1. 在左侧边栏下,单击 **Save settings(保存设置)**。 ![{% data variables.enterprise.management_console %} 中的 Save settings 按钮](/assets/images/enterprise/management-console/save-settings.png) +1. 在左侧边栏下,单击 **Save settings(保存设置)**。 + + ![Screenshot of the save settings button in the {% data variables.enterprise.management_console %}](/assets/images/enterprise/management-console/save-settings.png) + + {% note %} + + **Note:** Saving settings in the {% data variables.enterprise.management_console %} restarts system services, which could result in user-visible downtime. + + {% endnote %} + {% data reusables.enterprise_site_admin_settings.wait-for-configuration-run %} \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication-option.md b/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication-option.md index 74c81c53a6d2..fd71dc95da91 100644 --- a/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication-option.md +++ b/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication-option.md @@ -1 +1 @@ -(可选)选择 **Allow built-in authentication(允许内置身份验证)**以邀请用户使用内置身份验证(如果他们不属于 {% data variables.product.product_location %} 的身份提供程序)。 +Optionally, to allow people to use built-in authentication if they don't have an account on your IdP, select **Allow built-in authentication**. 更多信息请参阅“[允许对身份提供程序覆盖范围以外的用户进行内置身份验证](/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/allowing-built-in-authentication-for-users-outside-your-identity-provider)”。 diff --git a/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication.md b/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication.md index c4ff26b44f1f..94fb039976cd 100644 --- a/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication.md +++ b/translations/zh-CN/data/reusables/enterprise_user_management/built-in-authentication.md @@ -1 +1 @@ -如果要验证用户而不将他们添加到您的身份提供程序中,您可以配置内置身份验证。 更多信息请参阅“[允许对身份提供程序覆盖范围以外的用户进行内置身份验证](/enterprise/{{ currentVersion }}/admin/guides/user-management/allowing-built-in-authentication-for-users-outside-your-identity-provider)”。 +If you want to authenticate some users without adding them to your identity provider, you can configure built-in authentication in addition to SAML SSO. 更多信息请参阅“[允许对身份提供程序覆盖范围以外的用户进行内置身份验证](/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/allowing-built-in-authentication-for-users-outside-your-identity-provider)”。 diff --git a/translations/zh-CN/data/reusables/gated-features/dependency-review.md b/translations/zh-CN/data/reusables/gated-features/dependency-review.md index 0a7c119f658f..d9a0a56fffbd 100644 --- a/translations/zh-CN/data/reusables/gated-features/dependency-review.md +++ b/translations/zh-CN/data/reusables/gated-features/dependency-review.md @@ -1,3 +1,3 @@ -{% ifversion fpt or ghec %}Dependency review is available for all public repositories, as well as well as private repositories owned by organizations where {% data variables.product.prodname_GH_advanced_security %} is enabled.{% endif %} +{% ifversion fpt or ghec %}Dependency review is available for all public repositories, as well as private repositories owned by organizations where {% data variables.product.prodname_GH_advanced_security %} is enabled.{% endif %} {% ifversion ghes > 3.1 %}Dependency review is available for organization-owned repositories where {% data variables.product.prodname_GH_advanced_security %} is enabled. {% endif %} {% data reusables.advanced-security.more-info-ghas %} diff --git a/translations/zh-CN/data/reusables/gated-features/generated-health-checks.md b/translations/zh-CN/data/reusables/gated-features/generated-health-checks.md new file mode 100644 index 000000000000..9a2d11951d7c --- /dev/null +++ b/translations/zh-CN/data/reusables/gated-features/generated-health-checks.md @@ -0,0 +1 @@ +Generating a Health Check is available with {% data variables.contact.premium_support %}. 更多信息请参阅“[关于 {% data variables.contact.premium_support %}](/support/learning-about-github-support/about-github-premium-support)”。 \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/gated-features/multiple-pr-reviewers.md b/translations/zh-CN/data/reusables/gated-features/multiple-pr-reviewers.md new file mode 100644 index 000000000000..275295cc2534 --- /dev/null +++ b/translations/zh-CN/data/reusables/gated-features/multiple-pr-reviewers.md @@ -0,0 +1 @@ +The ability to add multiple pull request reviewers or requests reviews from teams is available in public repositories with {% data variables.product.prodname_free_team %} for organizations and legacy per-repository billing plans, and in public and private repositories with {% data variables.product.prodname_team %}, {% data variables.product.prodname_ghe_server %},{% ifversion ghae %} {% data variables.product.prodname_ghe_managed %},{% endif %} and {% data variables.product.prodname_ghe_cloud %}. {% ifversion fpt or ghec %}{% data reusables.gated-features.more-info %}{% endif %} diff --git a/translations/zh-CN/data/reusables/github-actions/github-token-available-permissions.md b/translations/zh-CN/data/reusables/github-actions/github-token-available-permissions.md index 0620d6452444..5fca1254333e 100644 --- a/translations/zh-CN/data/reusables/github-actions/github-token-available-permissions.md +++ b/translations/zh-CN/data/reusables/github-actions/github-token-available-permissions.md @@ -24,3 +24,9 @@ permissions: ```yaml permissions: read-all|write-all ``` + +You can use the following syntax to disable permissions for all of the available scopes: + +```yaml +permissions: {} +``` diff --git a/translations/zh-CN/data/reusables/github-actions/github-token-permissions.md b/translations/zh-CN/data/reusables/github-actions/github-token-permissions.md index 8e5eb1e52089..1c46d2342ec1 100644 --- a/translations/zh-CN/data/reusables/github-actions/github-token-permissions.md +++ b/translations/zh-CN/data/reusables/github-actions/github-token-permissions.md @@ -1 +1 @@ -每当工作流程中的作业开始时,都会将 `GITHUB_TOKEN` 密钥设置为仓库的访问令牌。 {% ifversion fpt or ghes > 3.1 or ghae or ghec %}You should set the permissions for this access token in the workflow file to grant read access for the `contents` scope and write access for the `packages` scope. {% else %}它对工作流程运行的仓库中的包具有读取和写入权限。 {% endif %} 更多信息请参阅“[使用 GITHUB_TOKEN 验证身份](/actions/configuring-and-managing-workflows/authenticating-with-the-github_token)”。 +每当工作流程中的作业开始时,都会将 `GITHUB_TOKEN` 密钥设置为仓库的访问令牌。 {% ifversion fpt or ghes > 3.1 or ghae or ghec %}您应该在工作流程文件中设置此访问令牌的权限,以授予 `contents` 范围的读取访问权限,并授予 `packages` 范围的写入访问权限。 {% else %}它对工作流程运行的仓库中的包具有读取和写入权限。 {% endif %} 更多信息请参阅“[使用 GITHUB_TOKEN 验证身份](/actions/configuring-and-managing-workflows/authenticating-with-the-github_token)”。 diff --git a/translations/zh-CN/data/reusables/notifications-v2/email-notification-caveats.md b/translations/zh-CN/data/reusables/notifications-v2/email-notification-caveats.md index f4eb293177ae..cde6cd8e65e2 100644 --- a/translations/zh-CN/data/reusables/notifications-v2/email-notification-caveats.md +++ b/translations/zh-CN/data/reusables/notifications-v2/email-notification-caveats.md @@ -1,5 +1,5 @@ 只有在通知设置中选择了接收电子邮件通知时,才会收到通知电子邮件。 {% ifversion fpt or ghec %} -{% data reusables.user_settings.verify-org-approved-email-domain %} +{% data reusables.user-settings.verify-org-approved-email-domain %} {% endif %} diff --git a/translations/zh-CN/data/reusables/organizations/billing-settings.md b/translations/zh-CN/data/reusables/organizations/billing-settings.md index feb35fd55616..6456fb0651fe 100644 --- a/translations/zh-CN/data/reusables/organizations/billing-settings.md +++ b/translations/zh-CN/data/reusables/organizations/billing-settings.md @@ -1,4 +1,4 @@ -{% data reusables.user_settings.access_settings %} +{% data reusables.user-settings.access_settings %} 1. In the "Access" section of the sidebar, click **{% octicon "organization" aria-label="The organization icon" %} Organizations**. {% data reusables.profile.org_settings %} 1. If you are an organization owner, in the "Access" section of the sidebar, click **{% octicon "credit-card" aria-label="The credit-card icon" %} Billing and plans**. diff --git a/translations/zh-CN/data/reusables/organizations/invite-teams-or-people.md b/translations/zh-CN/data/reusables/organizations/invite-teams-or-people.md index 78c82f41eabe..4858c67d37f1 100644 --- a/translations/zh-CN/data/reusables/organizations/invite-teams-or-people.md +++ b/translations/zh-CN/data/reusables/organizations/invite-teams-or-people.md @@ -1 +1 @@ -1. 在“Manage access(管理访问)”的右侧,单击 **Invite teams or people(邀请团队或人员)**。 !["Invite teams or people(邀请团队或人员)"按钮](/assets/images/help/repository/manage-access-invite-button.png) +1. To the right of "Manage access", click **Add people** or **Add teams**. !["Invite teams or people(邀请团队或人员)"按钮](/assets/images/help/repository/manage-access-invite-button.png) diff --git a/translations/zh-CN/data/reusables/organizations/mixed-roles-warning.md b/translations/zh-CN/data/reusables/organizations/mixed-roles-warning.md new file mode 100644 index 000000000000..a88e2a17dd55 --- /dev/null +++ b/translations/zh-CN/data/reusables/organizations/mixed-roles-warning.md @@ -0,0 +1 @@ +If a person has been given conflicting access, you'll see a warning on the repository access page. The warning appears with "{% octicon "alert" aria-label="The alert icon" %} Mixed roles" next to the person with the conflicting access. To see the source of the conflicting access, hover over the warning icon or click **Mixed roles**. \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/organizations/org-invite-scim.md b/translations/zh-CN/data/reusables/organizations/org-invite-scim.md index b4f655a26378..cb5d723d4821 100644 --- a/translations/zh-CN/data/reusables/organizations/org-invite-scim.md +++ b/translations/zh-CN/data/reusables/organizations/org-invite-scim.md @@ -1 +1 @@ -Pending invitations will expire after 7 days, restoring any unclaimed licenses.{% ifversion ghec %} If an invitation is generated by your identity provider, the invitation will not expire.{% endif %} +If an invitee does not accept the invitation within seven days, the pending invitation expires automatically. After expiration, {% data variables.product.company_short %} will no longer bill you for the pending invitation.{% ifversion ghec %} If a SCIM request from your identity provider (IdP) generates the invitation, the invitation will not expire.{% endif %} diff --git a/translations/zh-CN/data/reusables/organizations/outside-collaborators-use-seats.md b/translations/zh-CN/data/reusables/organizations/outside-collaborators-use-seats.md index 8d82ae5f5e24..7857597cad13 100644 --- a/translations/zh-CN/data/reusables/organizations/outside-collaborators-use-seats.md +++ b/translations/zh-CN/data/reusables/organizations/outside-collaborators-use-seats.md @@ -1 +1 @@ -{% ifversion fpt or ghec %}将一个外部协作者添加到私人仓库将会使用您组织的一个付费许可。 更多信息请参阅“[关于每用户定价](/articles/about-per-user-pricing/)”。{% endif %} +Adding an outside collaborator to a private{% ifversion ghec %} or internal{% endif %} repository will use one of your paid licenses. For more information, see "{% ifversion fpt or ghec %}[About per-user pricing](/billing/managing-billing-for-your-github-account/about-per-user-pricing){% elsif ghes or ghae %}[About billing for your enterprise](/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise){% endif %}." diff --git a/translations/zh-CN/data/reusables/pages/sidebar-pages.md b/translations/zh-CN/data/reusables/pages/sidebar-pages.md index 9ceaa0a91378..604188b3885c 100644 --- a/translations/zh-CN/data/reusables/pages/sidebar-pages.md +++ b/translations/zh-CN/data/reusables/pages/sidebar-pages.md @@ -1,5 +1,5 @@ {% ifversion fpt or ghes > 3.4 or ghec or ghae-issue-5658 %} -1. In the "Code & operations" section of the sidebar, click **{% octicon "browser" aria-label="The browser icon" %} Pages**. +1. In the "Code and automation" section of the sidebar, click **{% octicon "browser" aria-label="The browser icon" %} Pages**. {% else %} 1. 在左侧边栏中,单击 **Pages(页面)**。 ![左侧边栏中的页面选项卡](/assets/images/help/pages/pages-tab.png) {% endif %} diff --git a/translations/zh-CN/data/reusables/pull_requests/auto-merge-requires-branch-protection.md b/translations/zh-CN/data/reusables/pull_requests/auto-merge-requires-branch-protection.md index 04a0866d8f0b..df12b5df378d 100644 --- a/translations/zh-CN/data/reusables/pull_requests/auto-merge-requires-branch-protection.md +++ b/translations/zh-CN/data/reusables/pull_requests/auto-merge-requires-branch-protection.md @@ -1,5 +1,5 @@ {% note %} -**注意**:启用自动合并的选项仅在无法立即合并的拉取请求中显示。 例如, 当分支保护规则执行“合并前需要拉取请求审查”或“需要通过状态检查才能合并”并且这些条件尚未满足。 更多信息请参阅“[管理分支保护规则](/github/administering-a-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule)。” +**Note**: The option to enable auto-merge is shown only on pull requests that cannot be merged immediately. 例如, 当分支保护规则执行“合并前需要拉取请求审查”或“需要通过状态检查才能合并”并且这些条件尚未满足。 更多信息请参阅“[管理分支保护规则](/github/administering-a-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule)。” {% endnote %} diff --git a/translations/zh-CN/data/reusables/pull_requests/code-review-limits.md b/translations/zh-CN/data/reusables/pull_requests/code-review-limits.md new file mode 100644 index 000000000000..55d0836c64e3 --- /dev/null +++ b/translations/zh-CN/data/reusables/pull_requests/code-review-limits.md @@ -0,0 +1 @@ +By default, in public repositories, any user can submit reviews that approve or request changes to a pull request. Organization owners and repository admins can limit who is able to give approving pull request reviews or request changes. For more information, see "[Managing pull request reviews in your organization](/organizations/managing-organization-settings/managing-pull-request-reviews-in-your-organization)" and "[Managing pull request reviews in your repository](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-pull-request-reviews-in-your-repository)." diff --git a/translations/zh-CN/data/reusables/repositories/enable-security-alerts.md b/translations/zh-CN/data/reusables/repositories/enable-security-alerts.md index 28d7ac275fa6..ceec95422ed5 100644 --- a/translations/zh-CN/data/reusables/repositories/enable-security-alerts.md +++ b/translations/zh-CN/data/reusables/repositories/enable-security-alerts.md @@ -1,4 +1,4 @@ {% ifversion ghes or ghae-issue-4864 %} Enterprise owners must enable -{% data variables.product.prodname_dependabot_alerts %} for vulnerable dependencies for {% data variables.product.product_location %} before you can use this feature. For more information, see "[Enabling the dependency graph and {% data variables.product.prodname_dependabot_alerts %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-the-dependency-graph-and-dependabot-alerts-for-your-enterprise)." +{% data variables.product.prodname_dependabot_alerts %} for vulnerable dependencies for {% data variables.product.product_location %} before you can use this feature. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." {% endif %} diff --git a/translations/zh-CN/data/reusables/repositories/repository-branches.md b/translations/zh-CN/data/reusables/repositories/repository-branches.md index e32f6b4e31e1..6507fea26f39 100644 --- a/translations/zh-CN/data/reusables/repositories/repository-branches.md +++ b/translations/zh-CN/data/reusables/repositories/repository-branches.md @@ -1,5 +1,5 @@ {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} -1. In the "Code & operations" section of the sidebar, click **{% octicon "git-branch" aria-label="The git-branch icon" %} Branches**. +1. In the "Code and automation" section of the sidebar, click **{% octicon "git-branch" aria-label="The git-branch icon" %} Branches**. {% else %} 1. 在左侧菜单中,单击 **Branches(分支)**。 ![仓库选项子菜单](/assets/images/help/repository/repository-options-branch.png) {% endif %} diff --git a/translations/zh-CN/data/reusables/saml/recovery-code-access.md b/translations/zh-CN/data/reusables/saml/recovery-code-access.md new file mode 100644 index 000000000000..063a87b3b428 --- /dev/null +++ b/translations/zh-CN/data/reusables/saml/recovery-code-access.md @@ -0,0 +1,13 @@ +1. 在单点登录对话框底部,单击 **Use a recovery code(使用恢复代码)**绕过单点登录。 + + ![Screenshot of the link to enter your recovery code](/assets/images/help/saml/saml_use_recovery_code.png) + +2. 在 "Recovery Code"(恢复代码)字段中,输入您的恢复代码。 + + ![Screenshot of the field to enter your recovery code](/assets/images/help/saml/saml_recovery_code_entry.png) + +3. 单击 **Verify(验证)**。 + + ![Screenshot of the button to verify your recovery code](/assets/images/help/saml/saml_verify_recovery_codes.png) + +After you've used a recovery code, make sure to note that the code is no longer valid. 恢复代码不能重复使用。 \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/saml/recovery-code-caveats.md b/translations/zh-CN/data/reusables/saml/recovery-code-caveats.md new file mode 100644 index 000000000000..4654ad81e9d8 --- /dev/null +++ b/translations/zh-CN/data/reusables/saml/recovery-code-caveats.md @@ -0,0 +1 @@ +You can only use recovery codes once and you must use your codes in consecutive order. 恢复代码授予 24 小时访问权限。 diff --git a/translations/zh-CN/data/reusables/user_settings/about-commit-email-addresses.md b/translations/zh-CN/data/reusables/user-settings/about-commit-email-addresses.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/about-commit-email-addresses.md rename to translations/zh-CN/data/reusables/user-settings/about-commit-email-addresses.md diff --git a/translations/zh-CN/data/reusables/user_settings/access_applications.md b/translations/zh-CN/data/reusables/user-settings/access_applications.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/access_applications.md rename to translations/zh-CN/data/reusables/user-settings/access_applications.md diff --git a/translations/zh-CN/data/reusables/user_settings/access_authorized_oauth_apps.md b/translations/zh-CN/data/reusables/user-settings/access_authorized_oauth_apps.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/access_authorized_oauth_apps.md rename to translations/zh-CN/data/reusables/user-settings/access_authorized_oauth_apps.md diff --git a/translations/zh-CN/data/reusables/user_settings/access_org.md b/translations/zh-CN/data/reusables/user-settings/access_org.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/access_org.md rename to translations/zh-CN/data/reusables/user-settings/access_org.md diff --git a/translations/zh-CN/data/reusables/user-settings/access_settings.md b/translations/zh-CN/data/reusables/user-settings/access_settings.md index 8fdd257c8c92..eeee85222dd6 100644 --- a/translations/zh-CN/data/reusables/user-settings/access_settings.md +++ b/translations/zh-CN/data/reusables/user-settings/access_settings.md @@ -1 +1,3 @@ -1. 在任何页面的右上角,单击您的个人资料照片,然后单击 **Settings(设置)**。 ![用户栏中的 Settings 图标](/assets/images/settings/userbar-account-settings_post2dot12.png) +1. 在任何页面的右上角,单击您的个人资料照片,然后单击 **Settings(设置)**。 + + ![用户栏中的 Settings 图标](/assets/images/help/settings/userbar-account-settings.png) diff --git a/translations/zh-CN/data/reusables/user_settings/accessibility_settings.md b/translations/zh-CN/data/reusables/user-settings/accessibility_settings.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/accessibility_settings.md rename to translations/zh-CN/data/reusables/user-settings/accessibility_settings.md diff --git a/translations/zh-CN/data/reusables/user_settings/account_settings.md b/translations/zh-CN/data/reusables/user-settings/account_settings.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/account_settings.md rename to translations/zh-CN/data/reusables/user-settings/account_settings.md diff --git a/translations/zh-CN/data/reusables/user_settings/add_and_verify_email.md b/translations/zh-CN/data/reusables/user-settings/add_and_verify_email.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/add_and_verify_email.md rename to translations/zh-CN/data/reusables/user-settings/add_and_verify_email.md diff --git a/translations/zh-CN/data/reusables/user_settings/appearance-settings.md b/translations/zh-CN/data/reusables/user-settings/appearance-settings.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/appearance-settings.md rename to translations/zh-CN/data/reusables/user-settings/appearance-settings.md diff --git a/translations/zh-CN/data/reusables/user_settings/automatic_watching_box.md b/translations/zh-CN/data/reusables/user-settings/automatic_watching_box.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/automatic_watching_box.md rename to translations/zh-CN/data/reusables/user-settings/automatic_watching_box.md diff --git a/translations/zh-CN/data/reusables/user_settings/billing_plans.md b/translations/zh-CN/data/reusables/user-settings/billing_plans.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/billing_plans.md rename to translations/zh-CN/data/reusables/user-settings/billing_plans.md diff --git a/translations/zh-CN/data/reusables/user_settings/blocked_users.md b/translations/zh-CN/data/reusables/user-settings/blocked_users.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/blocked_users.md rename to translations/zh-CN/data/reusables/user-settings/blocked_users.md diff --git a/translations/zh-CN/data/reusables/user_settings/codespaces-secret-repository-access.md b/translations/zh-CN/data/reusables/user-settings/codespaces-secret-repository-access.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/codespaces-secret-repository-access.md rename to translations/zh-CN/data/reusables/user-settings/codespaces-secret-repository-access.md diff --git a/translations/zh-CN/data/reusables/user_settings/codespaces-secret-value.md b/translations/zh-CN/data/reusables/user-settings/codespaces-secret-value.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/codespaces-secret-value.md rename to translations/zh-CN/data/reusables/user-settings/codespaces-secret-value.md diff --git a/translations/zh-CN/data/reusables/user_settings/codespaces-tab.md b/translations/zh-CN/data/reusables/user-settings/codespaces-tab.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/codespaces-tab.md rename to translations/zh-CN/data/reusables/user-settings/codespaces-tab.md diff --git a/translations/zh-CN/data/reusables/user_settings/confirm_git_email_address_correct.md b/translations/zh-CN/data/reusables/user-settings/confirm_git_email_address_correct.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/confirm_git_email_address_correct.md rename to translations/zh-CN/data/reusables/user-settings/confirm_git_email_address_correct.md diff --git a/translations/zh-CN/data/reusables/user_settings/confirm_git_username_correct.md b/translations/zh-CN/data/reusables/user-settings/confirm_git_username_correct.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/confirm_git_username_correct.md rename to translations/zh-CN/data/reusables/user-settings/confirm_git_username_correct.md diff --git a/translations/zh-CN/data/reusables/user_settings/context_switcher.md b/translations/zh-CN/data/reusables/user-settings/context_switcher.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/context_switcher.md rename to translations/zh-CN/data/reusables/user-settings/context_switcher.md diff --git a/translations/zh-CN/data/reusables/user_settings/deleted-repos.md b/translations/zh-CN/data/reusables/user-settings/deleted-repos.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/deleted-repos.md rename to translations/zh-CN/data/reusables/user-settings/deleted-repos.md diff --git a/translations/zh-CN/data/reusables/user-settings/developer_settings.md b/translations/zh-CN/data/reusables/user-settings/developer_settings.md index 7b0fbcb0f55e..c112642795c8 100644 --- a/translations/zh-CN/data/reusables/user-settings/developer_settings.md +++ b/translations/zh-CN/data/reusables/user-settings/developer_settings.md @@ -1 +1,5 @@ -1. 在左侧边栏中,单击 **Developer settings**。 ![Developer settings 部分](/assets/images/settings/developer_settings.png) +{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} +1. In the left sidebar, click **{% octicon "code" aria-label="The code icon" %} Developer settings**. +{% else %} +1. 在左侧边栏中,单击 **Developer settings**。 ![开发者设置](/assets/images/help/settings/developer-settings.png) +{% endif %} \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/user_settings/emails.md b/translations/zh-CN/data/reusables/user-settings/emails.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/emails.md rename to translations/zh-CN/data/reusables/user-settings/emails.md diff --git a/translations/zh-CN/data/reusables/user_settings/enabling-fixed-width-fonts.md b/translations/zh-CN/data/reusables/user-settings/enabling-fixed-width-fonts.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/enabling-fixed-width-fonts.md rename to translations/zh-CN/data/reusables/user-settings/enabling-fixed-width-fonts.md diff --git a/translations/zh-CN/data/reusables/user-settings/export-data.md b/translations/zh-CN/data/reusables/user-settings/export-data.md new file mode 100644 index 000000000000..effb3cf78a50 --- /dev/null +++ b/translations/zh-CN/data/reusables/user-settings/export-data.md @@ -0,0 +1,3 @@ +{% ifversion fpt or ghec %} +您可以导出并查看 {% data variables.product.product_name %} 存储的有关您个人帐户的元数据。 +{% endif %} diff --git a/translations/zh-CN/data/reusables/user_settings/generate_new_token.md b/translations/zh-CN/data/reusables/user-settings/generate_new_token.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/generate_new_token.md rename to translations/zh-CN/data/reusables/user-settings/generate_new_token.md diff --git a/translations/zh-CN/data/reusables/user_settings/jira_help_docs.md b/translations/zh-CN/data/reusables/user-settings/jira_help_docs.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/jira_help_docs.md rename to translations/zh-CN/data/reusables/user-settings/jira_help_docs.md diff --git a/translations/zh-CN/data/reusables/user_settings/keeping_your_email_address_private.md b/translations/zh-CN/data/reusables/user-settings/keeping_your_email_address_private.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/keeping_your_email_address_private.md rename to translations/zh-CN/data/reusables/user-settings/keeping_your_email_address_private.md diff --git a/translations/zh-CN/data/reusables/user-settings/link_email_with_your_account.md b/translations/zh-CN/data/reusables/user-settings/link_email_with_your_account.md new file mode 100644 index 000000000000..63861d873621 --- /dev/null +++ b/translations/zh-CN/data/reusables/user-settings/link_email_with_your_account.md @@ -0,0 +1,3 @@ +{% ifversion not ghae %} +Add the email address to your account on {% data variables.product.product_name %}, so that your commits are attributed to you and appear in your contributions graph. 更多信息请参阅“[添加电子邮件地址到 {% data variables.product.prodname_dotcom %} 帐户](/github/setting-up-and-managing-your-github-user-account/adding-an-email-address-to-your-github-account)”。 +{% endif %} diff --git a/translations/zh-CN/data/reusables/user_settings/no-verification-disposable-emails.md b/translations/zh-CN/data/reusables/user-settings/no-verification-disposable-emails.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/no-verification-disposable-emails.md rename to translations/zh-CN/data/reusables/user-settings/no-verification-disposable-emails.md diff --git a/translations/zh-CN/data/reusables/user_settings/notifications.md b/translations/zh-CN/data/reusables/user-settings/notifications.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/notifications.md rename to translations/zh-CN/data/reusables/user-settings/notifications.md diff --git a/translations/zh-CN/data/reusables/user_settings/organizations.md b/translations/zh-CN/data/reusables/user-settings/organizations.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/organizations.md rename to translations/zh-CN/data/reusables/user-settings/organizations.md diff --git a/translations/zh-CN/data/reusables/user_settings/password-authentication-deprecation-desktop.md b/translations/zh-CN/data/reusables/user-settings/password-authentication-deprecation-desktop.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/password-authentication-deprecation-desktop.md rename to translations/zh-CN/data/reusables/user-settings/password-authentication-deprecation-desktop.md diff --git a/translations/zh-CN/data/reusables/user_settings/password-authentication-deprecation.md b/translations/zh-CN/data/reusables/user-settings/password-authentication-deprecation.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/password-authentication-deprecation.md rename to translations/zh-CN/data/reusables/user-settings/password-authentication-deprecation.md diff --git a/translations/zh-CN/data/reusables/user_settings/payment-info-link.md b/translations/zh-CN/data/reusables/user-settings/payment-info-link.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/payment-info-link.md rename to translations/zh-CN/data/reusables/user-settings/payment-info-link.md diff --git a/translations/zh-CN/data/reusables/user_settings/personal_access_tokens.md b/translations/zh-CN/data/reusables/user-settings/personal_access_tokens.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/personal_access_tokens.md rename to translations/zh-CN/data/reusables/user-settings/personal_access_tokens.md diff --git a/translations/zh-CN/data/reusables/user_settings/personal_dashboard.md b/translations/zh-CN/data/reusables/user-settings/personal_dashboard.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/personal_dashboard.md rename to translations/zh-CN/data/reusables/user-settings/personal_dashboard.md diff --git a/translations/zh-CN/data/reusables/user_settings/removes-personal-access-tokens.md b/translations/zh-CN/data/reusables/user-settings/removes-personal-access-tokens.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/removes-personal-access-tokens.md rename to translations/zh-CN/data/reusables/user-settings/removes-personal-access-tokens.md diff --git a/translations/zh-CN/data/reusables/user_settings/repo-tab.md b/translations/zh-CN/data/reusables/user-settings/repo-tab.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/repo-tab.md rename to translations/zh-CN/data/reusables/user-settings/repo-tab.md diff --git a/translations/zh-CN/data/reusables/user_settings/restore-confirmation.md b/translations/zh-CN/data/reusables/user-settings/restore-confirmation.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/restore-confirmation.md rename to translations/zh-CN/data/reusables/user-settings/restore-confirmation.md diff --git a/translations/zh-CN/data/reusables/user_settings/restore-repo.md b/translations/zh-CN/data/reusables/user-settings/restore-repo.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/restore-repo.md rename to translations/zh-CN/data/reusables/user-settings/restore-repo.md diff --git a/translations/zh-CN/data/reusables/user_settings/review-oauth-apps.md b/translations/zh-CN/data/reusables/user-settings/review-oauth-apps.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/review-oauth-apps.md rename to translations/zh-CN/data/reusables/user-settings/review-oauth-apps.md diff --git a/translations/zh-CN/data/reusables/user_settings/review_oauth_tokens_tip.md b/translations/zh-CN/data/reusables/user-settings/review_oauth_tokens_tip.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/review_oauth_tokens_tip.md rename to translations/zh-CN/data/reusables/user-settings/review_oauth_tokens_tip.md diff --git a/translations/zh-CN/data/reusables/user_settings/saved_replies.md b/translations/zh-CN/data/reusables/user-settings/saved_replies.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/saved_replies.md rename to translations/zh-CN/data/reusables/user-settings/saved_replies.md diff --git a/translations/zh-CN/data/reusables/user_settings/security-analysis.md b/translations/zh-CN/data/reusables/user-settings/security-analysis.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/security-analysis.md rename to translations/zh-CN/data/reusables/user-settings/security-analysis.md diff --git a/translations/zh-CN/data/reusables/user_settings/security.md b/translations/zh-CN/data/reusables/user-settings/security.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/security.md rename to translations/zh-CN/data/reusables/user-settings/security.md diff --git a/translations/zh-CN/data/reusables/user_settings/select_primary_email.md b/translations/zh-CN/data/reusables/user-settings/select_primary_email.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/select_primary_email.md rename to translations/zh-CN/data/reusables/user-settings/select_primary_email.md diff --git a/translations/zh-CN/data/reusables/user_settings/set_your_email_address_in_git.md b/translations/zh-CN/data/reusables/user-settings/set_your_email_address_in_git.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/set_your_email_address_in_git.md rename to translations/zh-CN/data/reusables/user-settings/set_your_email_address_in_git.md diff --git a/translations/zh-CN/data/reusables/user_settings/set_your_git_username.md b/translations/zh-CN/data/reusables/user-settings/set_your_git_username.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/set_your_git_username.md rename to translations/zh-CN/data/reusables/user-settings/set_your_git_username.md diff --git a/translations/zh-CN/data/reusables/user_settings/ssh.md b/translations/zh-CN/data/reusables/user-settings/ssh.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/ssh.md rename to translations/zh-CN/data/reusables/user-settings/ssh.md diff --git a/translations/zh-CN/data/reusables/user_settings/sudo-mode-popup.md b/translations/zh-CN/data/reusables/user-settings/sudo-mode-popup.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/sudo-mode-popup.md rename to translations/zh-CN/data/reusables/user-settings/sudo-mode-popup.md diff --git a/translations/zh-CN/data/reusables/user_settings/verify-org-approved-email-domain.md b/translations/zh-CN/data/reusables/user-settings/verify-org-approved-email-domain.md similarity index 100% rename from translations/zh-CN/data/reusables/user_settings/verify-org-approved-email-domain.md rename to translations/zh-CN/data/reusables/user-settings/verify-org-approved-email-domain.md diff --git a/translations/zh-CN/data/reusables/user_settings/access_settings.md b/translations/zh-CN/data/reusables/user_settings/access_settings.md deleted file mode 100644 index 9e5ac5f91981..000000000000 --- a/translations/zh-CN/data/reusables/user_settings/access_settings.md +++ /dev/null @@ -1 +0,0 @@ -1. 在任何页面的右上角,单击您的个人资料照片,然后单击 **Settings(设置)**。 ![用户栏中的 Settings 图标](/assets/images/help/settings/userbar-account-settings.png) diff --git a/translations/zh-CN/data/reusables/user_settings/developer_settings.md b/translations/zh-CN/data/reusables/user_settings/developer_settings.md deleted file mode 100644 index acf04e632370..000000000000 --- a/translations/zh-CN/data/reusables/user_settings/developer_settings.md +++ /dev/null @@ -1,5 +0,0 @@ -{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %} -1. In the left sidebar, click **{% octicon "code" aria-label="The code icon" %} Developer settings**. -{% else %} -1. 在左侧边栏中,单击 **Developer settings**。 ![开发者设置](/assets/images/help/settings/developer-settings.png) -{% endif %} diff --git a/translations/zh-CN/data/reusables/user_settings/export-data.md b/translations/zh-CN/data/reusables/user_settings/export-data.md deleted file mode 100644 index 59bd0f408297..000000000000 --- a/translations/zh-CN/data/reusables/user_settings/export-data.md +++ /dev/null @@ -1,4 +0,0 @@ -{% ifversion fpt or ghec %} -您可以导出和查看 -{% data variables.product.product_name %} 存储的您的个人帐户元数据。 -{% endif %} diff --git a/translations/zh-CN/data/reusables/user_settings/link_email_with_your_account.md b/translations/zh-CN/data/reusables/user_settings/link_email_with_your_account.md deleted file mode 100644 index c0a0f15b4748..000000000000 --- a/translations/zh-CN/data/reusables/user_settings/link_email_with_your_account.md +++ /dev/null @@ -1,4 +0,0 @@ -{% ifversion not ghae %} -将电子邮件地址添加到您在 -{% data variables.product.product_name %} 上的帐户,以便您的提交归因于您并且出现在您的贡献图中。 更多信息请参阅“[添加电子邮件地址到 {% data variables.product.prodname_dotcom %} 帐户](/github/setting-up-and-managing-your-github-user-account/adding-an-email-address-to-your-github-account)”。 -{% endif %} diff --git a/translations/zh-CN/data/variables/product.yml b/translations/zh-CN/data/variables/product.yml index 10adcab0e5a6..09ae4a446816 100644 --- a/translations/zh-CN/data/variables/product.yml +++ b/translations/zh-CN/data/variables/product.yml @@ -143,6 +143,7 @@ prodname_dependabot: 'Dependabot' prodname_dependabot_alerts: 'Dependabot 警报' prodname_dependabot_security_updates: 'Dependabot 安全更新' prodname_dependabot_version_updates: 'Dependabot 版本更新' +prodname_dependabot_updates: 'Dependabot updates' #GitHub Archive Program prodname_archive: 'GitHub 存档计划' prodname_arctic_vault: 'Arctic 代码库' diff --git a/translations/zh-CN/data/variables/release_candidate.yml b/translations/zh-CN/data/variables/release_candidate.yml index ec65ef6f9445..08448113eecb 100644 --- a/translations/zh-CN/data/variables/release_candidate.yml +++ b/translations/zh-CN/data/variables/release_candidate.yml @@ -1,2 +1,2 @@ --- -version: '' +version: enterprise-server@3.4
-Uses the tibdex/github-app-token action to generate an installation access token for your app from the app ID and private key. The installation access token is accessed later in the workflow as {% raw %}${{ steps.generate_token.outputs.token }}{% endraw %}. +使用 tibdex/github-app-token action 从应用 ID 和私钥为应用生成安装访问令牌。 稍后在工作流程中以s {% raw %}${{ steps.generate_token.outputs.token }}{% endraw %} 的形式访问安装访问令牌。

-Replace APP_ID with the name of the secret that contains your app ID. +将 APP_ID 替换为包含应用 ID 的密钥的名称。

-Replace APP_PEM with the name of the secret that contains your app private key. +将 APP_PEM 替换为包含应用私钥的机密的名称。