1
0
mirror of synced 2025-12-30 12:02:01 -05:00

Merge pull request #12950 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2021-12-13 12:29:45 -06:00
committed by GitHub
4 changed files with 10 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ name: Create translation Batch Pull Request
on:
workflow_dispatch:
schedule:
- cron: '33 18 * * *' # every day at 18:33 UTC at least until automerge is working
- cron: '25 */6 * * *' # Every six hours
jobs:
create-translation-batch:

View File

@@ -370,7 +370,7 @@ function ShowSearchResults({
isHeaderSearch && 'overflow-auto'
)}
>
<div className="mt-4 pb-6 width-full border-bottom">
<div className="mt-4 pb-4 width-full border-bottom">
<p className={cx(styles.searchWording, 'f6 ml-4 d-inline-block')}>
You're searching the <strong>{searchVersion}</strong> version.
</p>

View File

@@ -31,7 +31,7 @@ export const TableOfContents = (props: Props) => {
text: title,
renderItem: () => (
<ActionList.Item>
<li key={href} className="f4 d-list-item width-full">
<li key={href} className="f4 d-list-item width-full list-style-none">
<Link className="d-block width-full" href={href}>
{title}
</Link>
@@ -48,7 +48,7 @@ export const TableOfContents = (props: Props) => {
return null
}
return (
<li key={childItem.fullPath} className="f4 d-block width-full">
<li key={childItem.fullPath} className="f4 d-block width-full m-2">
<Link className="d-block width-full" href={childItem.fullPath}>
{childItem.title}
</Link>

View File

@@ -3,6 +3,7 @@
"alert": {
"number": 10,
"created_at": "2020-07-22T14:06:31Z",
"updated_at": "2020-07-22T14:06:31Z",
"url": "https://api.github.com/repos/Codertocat/Hello-World/code-scanning/alerts/10",
"html_url": "https://github.com/Codertocat/Hello-World/security/code-scanning/10",
"instances": [
@@ -14,13 +15,17 @@
}
],
"state": "open",
"fixed_at": null,
"dismissed_by": null,
"dismissed_at": null,
"dismissed_reason": null,
"rule": {
"id": "Style/FrozenStringLiteralComment",
"severity": "note",
"description": "Add the frozen_string_literal comment to the top of files to help transition to frozen string literals by default."
"description": "Add the frozen_string_literal comment to the top of files to help transition to frozen string literals by default.",
"full_description": "Add the frozen_string_literal comment to the top of files to help transition to frozen string literals by default.",
"tags": ["style"],
"help": "Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged\n--- | --- | --- | --- | ---\nEnabled | No | Yes (Unsafe) | 0.36 | 0.79\n\nThis cop is designed to help you transition from mutable string literals\nto frozen string literals.\nIt will add the comment `# frozen_string_literal: true` to the top of\nfiles to enable frozen string literals. Frozen string literals may be\ndefault in future Ruby. The comment will be added below a shebang and\nencoding comment. The frozen string literal comment is only valid in\nRuby 2.3+.\n\nNote that the cop will ignore files where the comment exists but is set\nto `false` instead of `true`.\n\n### Examples\n\n#### EnforcedStyle: always (default)\n\n```ruby\n# The `always` style will always add the frozen string literal comment\n# to a file, regardless of the Ruby version or if `freeze` or `<<` are\n# called on a string literal.\n# bad\nmodule Bar\n # ...\nend\n\n# good\n# frozen_string_literal: true\n\nmodule Bar\n # ...\nend\n\n# good\n# frozen_string_literal: false\n\nmodule Bar\n # ...\nend\n```\n#### EnforcedStyle: never\n\n```ruby\n# The `never` will enforce that the frozen string literal comment does\n# not exist in a file.\n# bad\n# frozen_string_literal: true\n\nmodule Baz\n # ...\nend\n\n# good\nmodule Baz\n # ...\nend\n```\n#### EnforcedStyle: always_true\n\n```ruby\n# The `always_true` style enforces that the frozen string literal\n# comment is set to `true`. This is a stricter option than `always`\n# and forces projects to use frozen string literals.\n# bad\n# frozen_string_literal: false\n\nmodule Baz\n # ...\nend\n\n# bad\nmodule Baz\n # ...\nend\n\n# good\n# frozen_string_literal: true\n\nmodule Bar\n # ...\nend\n```\n\n### Configurable attributes\n\nName | Default value | Configurable values\n--- | --- | ---\nEnforcedStyle | `always` | `always`, `always_true`, `never`\n\n"
},
"tool": {
"name": "Rubocop",