Skip to content

Commit abcf142

Browse files
committed
➕ Add new properties for the common values which could be customized for child-projects in the release intent config.
1 parent b3c7822 commit abcf142

File tree

1 file changed

+85
-20
lines changed

1 file changed

+85
-20
lines changed
Lines changed: 85 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# Example release intent configuration
2-
# This file controls whether and how to release the project
1+
# Enhanced Release Configuration
2+
# This file controls release behavior and all project-specific settings
33
# If this file doesn't exist, defaults will be used
44

5+
# === RELEASE CONTROL ===
56
release: true
67
level: patch # auto | patch | minor | major
8+
9+
# === RELEASE ARTIFACTS ===
710
artifacts:
811
python: auto # auto | force | skip
912
docker: auto # auto | force | skip
@@ -22,25 +25,87 @@ artifacts:
2225

2326
notes: "Automatic release based on semantic versioning and enhanced release with multi-section docs versioning"
2427

25-
# Configuration Examples:
28+
# === PROJECT CONFIGURATION ===
29+
project:
30+
name: ~ # Defaults to repository name if not set
31+
package_name: ~ # Defaults to repository name if not set
32+
base_branch: master # Main/default branch for the project
33+
34+
# === GIT CONFIGURATION ===
35+
git:
36+
commit:
37+
name: "GitHub Actions Bot" # Git commit author name
38+
email: "[email protected]" # Git commit author email
39+
40+
# === DOCKER CONFIGURATION ===
41+
docker:
42+
registries:
43+
dockerhub: docker.io # DockerHub registry URL
44+
ghcr: ghcr.io # GitHub Container Registry URL
45+
46+
health_check:
47+
port: 8000 # Port for container health checks
48+
path: "/health" # Health check endpoint path
49+
50+
application:
51+
env_var_name: "API_TOKEN" # Environment variable name for application
52+
env_var_value: "test_token" # Environment variable value for testing
53+
54+
# === VALIDATION CONFIGURATION ===
55+
validation:
56+
version: "1.0.0-validation" # Version tag for validation runs
57+
test_version: "validation-test" # Version tag for validation testing
58+
59+
# === DOCUMENTATION CONFIGURATION ===
60+
docs:
61+
paths:
62+
ci_cd: "docs/CI_CD.md" # CI/CD documentation path
63+
installation: "docs/INSTALLATION.md" # Installation guide path
64+
readme: "README.md" # Main README file path
65+
66+
preview:
67+
branch: "docs-preview" # Branch for documentation previews
68+
69+
# === CONFIGURATION EXAMPLES ===
2670
#
27-
# 1. Legacy format (backward compatible):
28-
# docs: auto
71+
# 1. Minimal configuration (uses defaults):
72+
# release: true
73+
# level: auto
2974
#
30-
# 2. Version all sections always:
31-
# docs:
32-
# mode: force
33-
# sections: ["docs", "dev", "api"]
34-
# strategy: always
75+
# 2. Custom project settings:
76+
# project:
77+
# name: "My Custom Project"
78+
# package_name: "my_custom_package"
79+
# base_branch: "main"
3580
#
36-
# 3. Only version changed sections (recommended):
37-
# docs:
38-
# mode: auto
39-
# sections: ["docs", "dev"]
40-
# strategy: changed
81+
# 3. Custom Docker configuration:
82+
# docker:
83+
# health_check:
84+
# port: 3000
85+
# path: "/api/health"
86+
# application:
87+
# env_var_name: "CUSTOM_TOKEN"
88+
# env_var_value: "custom_test_value"
4189
#
42-
# 4. Skip docs versioning entirely:
43-
# docs: skip
44-
# # or
45-
# docs:
46-
# mode: skip
90+
# 4. Documentation versioning examples:
91+
# # Legacy format (backward compatible):
92+
# artifacts:
93+
# docs: auto
94+
#
95+
# # Enhanced format - version all sections:
96+
# artifacts:
97+
# docs:
98+
# mode: force
99+
# sections: ["docs", "dev", "api"]
100+
# strategy: always
101+
#
102+
# # Only version changed sections (recommended):
103+
# artifacts:
104+
# docs:
105+
# mode: auto
106+
# sections: ["docs", "dev"]
107+
# strategy: changed
108+
#
109+
# # Skip docs versioning entirely:
110+
# artifacts:
111+
# docs: skip

0 commit comments

Comments
 (0)