Skip to content

Commit d4a47ab

Browse files
authored
Merge pull request #37769 from github/repo-sync
Repo sync
2 parents e60cc44 + b1c847f commit d4a47ab

File tree

6 files changed

+47
-9
lines changed

6 files changed

+47
-9
lines changed

content/code-security/dependabot/working-with-dependabot/dependabot-options-reference.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,18 +482,22 @@ Reviewers must have at least read access to the repository.
482482
| `interval` | **Required.** Defines the frequency for {% data variables.product.prodname_dependabot %}. |
483483
| `day` | Specify the day to run for a **weekly** interval. |
484484
| `time` | Specify the time to run. |
485+
| `cronjob` | Defines the cron expression if the interval type is `cron`. |
485486
| `timezone` | Specify the timezone of the `time` value. |
486487

487488
### `interval`
488489

489-
Supported values: `daily`, `weekly`, or `monthly`
490+
Supported values: `daily`, `weekly`, `monthly`, `quarterly`, `semiannually`, `yearly`, or `cron`
490491

491492
Each package manager **must** define a schedule interval.
492493

493494
* Use `daily` to run on every weekday, Monday to Friday.
494495
* Use `weekly` to run once a week, by default on Monday.
495496
* Use `monthly` to run on the first day of each month.
496-
497+
* Use `quarterly` to run on the first day of each quarter (January, April, July, and October).
498+
* Use `semiannually` to run every six months, on the first day of January and July.
499+
* Use `yearly` to run on the first day of January.
500+
* Use `cron` for cron expression based scheduling option. See [`cronjob`](#cronjob).
497501
By default, {% data variables.product.prodname_dependabot %} randomly assigns a time to apply all the updates in the configuration file. You can use the `time` and `timezone` parameters to set a specific runtime for all intervals.
498502

499503
### `day`
@@ -508,6 +512,40 @@ Format: `hh:mm`
508512

509513
Optionally, run all updates for a package manager at a specific time of day. By default, times are interpreted as UTC.
510514

515+
### `cronjob`
516+
517+
Supported values: Valid cron expression in cron format or natural expression.
518+
519+
Examples : `0 9 * * *`, `every day at 5pm`
520+
521+
cron format is defined as the following:
522+
* `*` The minute field.
523+
* `*` The hour field (in 24-hour time).
524+
* `*` The day of the month (matches any day of the month).
525+
* `*` The month (matches any month).
526+
* `*` The day of the week (matches any day of the week).
527+
528+
`0 9 * * *` is equivalent to "every day at 9am". `every day at 5pm` is equivalent to `0 17 * * *`.
529+
530+
> [!NOTE]
531+
> A `cronjob` type schedule is required to use a `cron` interval.
532+
533+
```yaml copy
534+
535+
# Basic `dependabot.yml` file for cronjob
536+
537+
version: 2
538+
updates:
539+
# Enable version updates for npm
540+
- package-ecosystem: "npm"
541+
# Look for `package.json` and `lock` files in the `root` directory
542+
directory: "/"
543+
# Check the npm registry for updates based on `cronjob` value
544+
schedule:
545+
interval: "cron"
546+
cronjob: "0 9 * * *"
547+
```
548+
511549
### `timezone`
512550

513551
Specify a time zone for the `time` value.

content/get-started/learning-to-code/setting-up-copilot-for-learning-to-code.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ You're ready to start building real coding skills with {% data variables.product
6262

6363
Throughout your work on the project, engage in a long-running conversation with **{% data variables.product.prodname_copilot_chat_short %}**. Treat it as your **personal tutor**, asking questions as they arise and using it to navigate challenges or clarify concepts.
6464

65-
> [!TIP] You can open {% data variables.product.prodname_copilot_chat_short %} with a keyboard shortcut: <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>I</kbd> (Windows/Linux) or <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>I</kbd> (Mac).
65+
<a href="vscode://GitHub.Copilot-Chat" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline" aria-label="Open Copilot Chat in Visual Studio Code">
66+
<span>Open {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode_shortname %}</span> {% octicon "link-external" height:16 %}
67+
</a><br></br>
6668

6769
{% data variables.product.prodname_copilot_chat_short %} is especially helpful for debugging your code. For step-by-step guidance, see [AUTOTITLE](/get-started/learning-to-code/learning-to-debug-with-github-copilot).

src/graphql/data/fpt/schema.docs.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7899,7 +7899,7 @@ input CreateIssueInput {
78997899
"""
79007900
The Node ID of the issue type for this issue
79017901
"""
7902-
issueTypeId: ID @possibleTypes(concreteTypes: ["IssueType"])
7902+
issueTypeId: ID
79037903

79047904
"""
79057905
An array of Node IDs of labels for this issue.

src/graphql/data/fpt/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100107,8 +100107,7 @@
100107100107
"type": "ID",
100108100108
"id": "id",
100109100109
"kind": "scalars",
100110-
"href": "/graphql/reference/scalars#id",
100111-
"isDeprecated": false
100110+
"href": "/graphql/reference/scalars#id"
100112100111
},
100113100112
{
100114100113
"name": "labelIds",

src/graphql/data/ghec/schema.docs.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7899,7 +7899,7 @@ input CreateIssueInput {
78997899
"""
79007900
The Node ID of the issue type for this issue
79017901
"""
7902-
issueTypeId: ID @possibleTypes(concreteTypes: ["IssueType"])
7902+
issueTypeId: ID
79037903

79047904
"""
79057905
An array of Node IDs of labels for this issue.

src/graphql/data/ghec/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100107,8 +100107,7 @@
100107100107
"type": "ID",
100108100108
"id": "id",
100109100109
"kind": "scalars",
100110-
"href": "/graphql/reference/scalars#id",
100111-
"isDeprecated": false
100110+
"href": "/graphql/reference/scalars#id"
100112100111
},
100113100112
{
100114100113
"name": "labelIds",

0 commit comments

Comments
 (0)