Skip to content

Commit 60bfa9c

Browse files
authored
Propose fix to Dependabot documentation (#58315)
1 parent 1c5acee commit 60bfa9c

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,9 @@ Reviewers must have at least read access to the repository.
607607
| `interval` | **Required.** Defines the frequency for {% data variables.product.prodname_dependabot %}. |
608608
| `day` | Specify the day to run for a **weekly** interval. |
609609
| `time` | Specify the time to run. |
610+
| {% ifversion dependabot-schedule-updates %} |
610611
| `cronjob` | Defines the cron expression if the interval type is `cron`. |
612+
| {% endif %} |
611613
| `timezone` | Specify the timezone of the `time` value. |
612614

613615
{% ifversion fpt or ghec %}
@@ -630,18 +632,18 @@ Each package manager **must** define a schedule interval.
630632

631633
### `interval`
632634

633-
Supported values: `daily`, `weekly`, `monthly`, or `cron`
635+
Supported values: `daily`, `weekly`, `monthly`{% ifversion dependabot-schedule-updates %}, or `cron`{% endif %}
634636

635637
Each package manager **must** define a schedule interval.
636638

637639
* Use `daily` to run on every weekday, Monday to Friday.
638640
* Use `weekly` to run once a week, by default on Monday.
639-
* Use `monthly` to run on the first day of each month.
640-
* Use `cron` for cron expression based scheduling option. See [`cronjob`](#cronjob).
641+
* Use `monthly` to run on the first day of each month.{% ifversion dependabot-schedule-updates %}
642+
* Use `cron` for cron expression based scheduling option. See [`cronjob`](#cronjob).{% endif %}
641643

642644
{% endif %}
643645

644-
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. If you use a `cron` interval, you can define the update time with a `cronjob` expression.
646+
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. {% ifversion dependabot-schedule-updates %}If you use a `cron` interval, you can define the update time with a `cronjob` expression.{% endif %}
645647

646648
### `day`
647649

@@ -655,6 +657,8 @@ Format: `hh:mm`
655657

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

660+
{% ifversion dependabot-schedule-updates %}
661+
658662
### `cronjob`
659663

660664
Supported values: Valid cron expression in cron syntax or natural expression.
@@ -684,6 +688,8 @@ updates:
684688
cronjob: "0 9 * * *"
685689
```
686690
691+
{% endif %}
692+
687693
### `timezone`
688694

689695
Specify a time zone for the `time` value.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reference: #17004
2+
# Dependabot `schedule` enhancements [GA]
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '> 3.17'

0 commit comments

Comments
 (0)