Skip to content

Commit 49280c0

Browse files
authored
Merge pull request #37827 from github/repo-sync
Repo sync
2 parents d8af80c + f6a7ee4 commit 49280c0

File tree

7 files changed

+25
-7
lines changed

7 files changed

+25
-7
lines changed

content/admin/enforcing-policies/enforcing-policy-with-pre-receive-hooks/about-pre-receive-hooks.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@ Due to risk of failure and performance impact for all users of your instance, we
4343

4444
> [!NOTE]
4545
> To avoid rejection of a push due to a timeout, all combined pre-receive hooks should run in under five seconds.
46+
47+
{% ifversion ghes > 3.16 %}
48+
49+
{% data reusables.repositories.push-rule-and-prereceive-hooks %}
50+
51+
{% endif %}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ Each package manager **must** define a schedule interval.
498498
* Use `semiannually` to run every six months, on the first day of January and July.
499499
* Use `yearly` to run on the first day of January.
500500
* Use `cron` for cron expression based scheduling option. See [`cronjob`](#cronjob).
501-
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.
501+
502+
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..
502503

503504
### `day`
504505

content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ When referencing a commit from a private repository inside of a commit message,
7575

7676
## Avoiding backlinks to linked references
7777

78-
By default, references generate a backlink. For example, manually linking to an issue in a pull request will automatically generate another link from the issue *back* to the pull request.
78+
By default, references generate a backlink. For example, manually linking to an issue in a pull request will automatically generate another link from the issue _back_ to the pull request.
7979
To avoid this behavior, you can use `redirect.github.com` instead of `github.com` when constructing the URL in your reference. If you do use a `redirect.github.com` URL in your reference link, no pop-up window will appear when hovering over it.
8080

8181
## Further reading

data/release-notes/enterprise-server/3-16/0.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ sections:
223223
224224
[Updated: 2025-03-19]
225225
- |
226-
The security risk page returns a 500 error when Secret scanning is disabled. [Updated: 2025-04-25]
227-
226+
The security risk page returns a 500 error when secret scanning is disabled. [Updated: 2025-04-25]
227+
228228
closing_down:
229229
# https://github.com/github/releases/issues/4683
230230
- |

data/release-notes/enterprise-server/3-16/1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ sections:
7373
- |
7474
After a geo-replica is promoted to be a primary by running `ghe-repl-promote`, the actions workflow of a repository does not have any suggested workflows.
7575
- |
76-
The security risk page returns a 500 error when Secret scanning is disabled. [Updated: 2025-04-25]
76+
The security risk page returns a 500 error when secret scanning is disabled. [Updated: 2025-04-25]
7777
errata:
7878
- |
7979
Known issues incorrectly indicated that administrators could immediately run the `/usr/local/share/enterprise/ghe-es-search-repair` script after a restore to resolve indexing and collaborator access issues. In reality, this script must be run only after the system has been up for at least one hour. [Updated: 2025-04-22]

data/release-notes/enterprise-server/3-16/2.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@ sections:
7979
- |
8080
Repository Cache Replicas return `Repository not found` when changes have been pushed to the Primary instance that have not yet synchronized to the Cache Replica. This issue can also occur in all previous patches of this release.
8181
- |
82-
The security risk page returns a 500 error when Secret scanning is disabled. [Updated: 2025-04-25]
83-
82+
The security risk page returns a 500 error when secret scanning is disabled. [Updated: 2025-04-25]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Choosing between push rules and pre-receive hooks
2+
You can use push rules and pre-receive hooks to control what changes users can push to your repository. Both help you enforce policies, but they work in different ways and are designed for different use cases.
3+
4+
Push rules are a built-in way to enforce common policies across repositories. You can use them to block pushes that don’t meet specific conditions, such as updates to specific files and paths, file size, or file type.
5+
You can manage push rules through the UI or API. As they are a type of repository rulesets, push rules support audit logs, and can be used with evaluate mode to preview changes or bypassed when needed.
6+
7+
Use push rules if you want to easily:
8+
9+
* Enforce standard policies without writing scripts.
10+
* Apply policies consistently across organizations and repositories.
11+
* Manage rules through {% data variables.product.github %}'s UI and APIs.
12+
* Use {% data variables.product.github %} native features like audit logging, bypass lists and rule insights.

0 commit comments

Comments
 (0)