Skip to content

Commit c778cb0

Browse files
authored
Merge pull request #560 from apache/add-cooldown
Add cooldown to dependabot and expand .gitignore
2 parents 89cad00 + 2c8aa0c commit c778cb0

3 files changed

Lines changed: 58 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ updates:
3535
- dependency-name: "cpp-linter/cpp-linter-action"
3636
versions: ">=2.16"
3737
open-pull-requests-limit: 50
38+
cooldown:
39+
default: 4

.gitignore

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
1+
# IDE
2+
.idea/
3+
.vscode/
4+
*.swp
5+
*.swo
6+
7+
# Claude Code
8+
.claude/
9+
10+
# Python
11+
__pycache__/
12+
*.py[cod]
13+
*.egg-info/
14+
*.egg
15+
dist/
16+
build/
17+
.eggs/
18+
*.whl
19+
20+
# Virtual environments
21+
.venv/
22+
venv/
23+
env/
24+
25+
# Testing / Coverage
26+
.pytest_cache/
27+
.coverage
28+
htmlcov/
29+
.tox/
30+
31+
# Environment variables
32+
.env
33+
.env.local
34+
35+
# OS
36+
.DS_Store
37+
Thumbs.db
38+
139
# Generated file, prevent accidental commits
240
approved_patterns.yml
3-
/gateway/__pycache__
441
/gateway/test_out_dummy.yml

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This repository hosts GitHub Actions developed by the ASF community and approved
88
- [Adding a New Action](#adding-a-new-action-to-the-allow-list)
99
- [Reviewing](#reviewing)
1010
- [Adding a New Version](#adding-a-new-version-to-the-allow-list)
11+
- [Dependabot Cooldown Period](#dependabot-cooldown-period)
1112
- [Manual Version Addition](#manual-addition-of-specific-versions)
1213
- [Removing a Version](#removing-a-version-manually)
1314

@@ -100,6 +101,23 @@ In most cases, new versions are automatically added through Dependabot:
100101

101102
Projects are encouraged to help review updates to actions they use. Please have a look at the diff and mention in your approval what you have checked and why you think the action is safe.
102103

104+
#### Dependabot Cooldown Period
105+
106+
This repository uses a [Dependabot cooldown period](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#cooldown) of 4 days. After a Dependabot PR is merged or closed, Dependabot will wait 4 days before opening the next PR for the same ecosystem. This helps keep the volume of update PRs manageable and gives reviewers time to catch up.
107+
108+
> [!TIP]
109+
> We recommend that ASF projects configure a similar cooldown in their own `dependabot.yml` to avoid being overwhelmed by update PRs and to catch up with approved actions here:
110+
> ```yaml
111+
> updates:
112+
> - package-ecosystem: "github-actions"
113+
> directory: "/"
114+
> schedule:
115+
> interval: "weekly"
116+
> cooldown:
117+
> default: 4
118+
> ```
119+
> Adjust the `default` value (in days) to match your project's review capacity.
120+
103121
### Manual Addition of Specific Versions
104122

105123
If you need to add a specific version of an already approved action (especially an older one):

0 commit comments

Comments
 (0)