Skip to content

Commit 4283b41

Browse files
authored
fspiers/ENT-3334/incremental-sync-batch-1 (#33)
2 parents db0a0ed + 08d0024 commit 4283b41

File tree

173 files changed

+5493
-1342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+5493
-1342
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ body:
5656
- universal
5757
- clusterpirate
5858
- common
59+
- etcd
5960
- ghost
6061
- keycloak
6162
- mariadb
@@ -68,6 +69,7 @@ body:
6869
- redis
6970
- timescaledb
7071
- valkey
72+
- wordpress
7173
- zookeeper
7274
validations:
7375
required: true

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ body:
4545
- universal
4646
- clusterpirate
4747
- common
48+
- etcd
4849
- ghost
4950
- keycloak
5051
- mariadb
@@ -57,4 +58,5 @@ body:
5758
- redis
5859
- timescaledb
5960
- valkey
61+
- wordpress
6062
- zookeeper

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
- Describe the scope of your change - i.e. what the change does.
55
- Describe any known limitations with your change.
66
- Please run any tests or examples that can exercise your modified code.
7+
- Labels are automatically applied when they are inside the square brackets of your PR title on opening. Examples:
8+
- [redis]: adds `redis` label
9+
- [redis, valkey] Adds `redis` and `valkey` labels
710
811
Thank you for contributing! We will try to test and integrate the change as soon as we can.
912
-->
@@ -23,6 +26,7 @@
2326
### Applicable issues
2427

2528
<!-- Enter any applicable Issues here (You can reference an issue using #) -->
29+
2630
- fixes #
2731

2832
### Additional information
@@ -33,6 +37,6 @@
3337

3438
<!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] -->
3539

36-
- [ ] Chart version bumped in `Chart.yaml` according to [semver](http://semver.org/). This is *not necessary* when the changes only affect README.md files.
40+
- [ ] Chart version bumped in `Chart.yaml` according to [semver](http://semver.org/). This is _not necessary_ when the changes only affect README.md files.
3741
- [ ] Variables are documented in the values.yaml and added to the `README.md`
3842
- [ ] Title of the pull request follows this pattern [<name_of_the_chart>] Descriptive title

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
labels:
10+
- "dependencies"
11+
- "github-actions"
12+
commit-message:
13+
prefix: "chore(deps)"
14+
include: "scope"
15+
open-pull-requests-limit: 10
16+
assignees:
17+
- "CloudPirates-io/maintainers"
18+
# Group all GitHub Actions updates into a single PR
19+
groups:
20+
github-actions:
21+
patterns:
22+
- "*"

.github/workflows/auto-label.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,44 @@ name: Auto-label issues
22
on:
33
issues:
44
types: [opened]
5+
pull_request:
6+
types: [opened]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number }}
10+
cancel-in-progress: true
511

612
jobs:
713
label:
814
runs-on: ubuntu-latest
15+
timeout-minutes: 5
916
permissions:
1017
issues: write
18+
pull-requests: write
1119
steps:
1220
- name: Apply labels
13-
uses: actions/github-script@v7
21+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
1422
with:
1523
script: |
16-
const labels = (context.payload.issue.body.split(/### Affected Helm charts/)[1] || "")
24+
let content = "";
25+
if (context.payload.pull_request) {
26+
const parsedTitle = context.payload.pull_request.title.match(/^\[([a-z_-]+(?:, [a-z_-]+)*)\].+$/);
27+
content = parsedTitle ? parsedTitle[1] : "";
28+
} else {
29+
content = context.payload.issue.body.split(/### Affected Helm charts/)[1] || "";
30+
}
31+
const { data } = await github.rest.issues.listLabelsForRepo({
32+
...context.repo,
33+
per_page: 100,
34+
});
35+
const existingLabels = new Set(data.map((label) => label.name));
36+
const labels = content
1737
.trim()
1838
.split(",")
1939
.map((s) => s.trim())
20-
.filter((s) => s && s !== "_No response_");
40+
.filter((s) => s && existingLabels.has(s));
2141
if (labels.length) {
42+
console.log(`Adding ${labels.length} labels: ${labels.join(', ')}`)
2243
await github.rest.issues.addLabels({
2344
...context.repo,
2445
issue_number: context.issue.number,
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Check signed commits in PR
2+
on: pull_request_target
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
6+
cancel-in-progress: true
7+
8+
jobs:
9+
check-signed-commits:
10+
name: Check signed commits in PR
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
fetch-depth: 0
22+
23+
- name: Check for bot commits
24+
id: check-bots
25+
run: |
26+
# Get all commits in the PR
27+
git fetch origin ${{ github.event.pull_request.base.ref }}
28+
COMMITS=$(git log origin/${{ github.event.pull_request.base.ref }}..HEAD --format="%an")
29+
30+
echo "Commits in PR:"
31+
echo "$COMMITS"
32+
33+
# Check if any commits are NOT from bots
34+
# grep -v returns 0 (true) if it finds lines NOT matching the pattern
35+
# grep -v returns 1 (false) if all lines match the pattern (all are bots)
36+
if echo "$COMMITS" | grep -qv '\[bot\]'; then
37+
echo "Found human commits"
38+
echo "has_human_commits=true" >> $GITHUB_OUTPUT
39+
else
40+
echo "All commits are from bots"
41+
echo "has_human_commits=false" >> $GITHUB_OUTPUT
42+
fi
43+
44+
- name: Check signed commits in PR
45+
if: steps.check-bots.outputs.has_human_commits == 'true'
46+
continue-on-error: true
47+
uses: 1Password/check-signed-commits-action@ed2885f3ed2577a4f5d3c3fe895432a557d23d52 # v1.2.0
48+
with:
49+
comment: |
50+
## ⚠️ Unsigned Commits Detected
51+
52+
This pull request contains unsigned commits.
53+
54+
### What does this mean?
55+
56+
Signed commits help ensure the authenticity and traceability of contributions. They allow us to verify that commits actually came from the stated author, even if GitHub accounts are deleted or modified in the future.
57+
58+
### Current Policy (Grace Period)
59+
60+
**This is currently a warning only.** We are in a transition period to give all contributors time to set up commit signing.
61+
62+
After this grace period, **all commits will be required to be signed** before PRs can be merged.
63+
64+
### How to sign your commits
65+
66+
Please see our [Contributing Guide](../blob/main/CONTRIBUTING.md#setting-up-your-development-environment) for detailed instructions on setting up commit signing.
67+
68+
### Resources
69+
70+
- [Contributing Guide: Development Setup](../blob/main/CONTRIBUTING.md#setting-up-your-development-environment)
71+
- [GitHub Docs: About Commit Signature Verification](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
72+
73+
---
74+
75+
_This check will become mandatory in the future. Please start signing your commits now to avoid issues later._

0 commit comments

Comments
 (0)