Skip to content

Commit f7cae7a

Browse files
committed
chore: update pull request lint configuration and gitignore for additional types
1 parent 82a414b commit f7cae7a

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

‎.github/workflows/pull-request-lint.yml‎

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.gitignore‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.projenrc.py‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22

3-
from projen import github, YamlFile
3+
from projen import YamlFile
44
from projen.awscdk import AwsCdkPythonApp
5-
from projen.github import AutoApprove
65

76
from src.bin.cicd_helper import github_cicd
87
from src.bin.env_helper import cdk_action_task
@@ -29,7 +28,14 @@
2928
deps=["aws-cdk-github-oidc"],
3029
dev_deps=["projen@0.98.4", "ruff"], # Find the latest projen version here: https://pypi.org/project/projen/
3130
github_options={
32-
"pull_request_lint": False,
31+
"pull_request_lint_options": {
32+
"semantic_title_options": {
33+
"types": ["feat", "fix", "chore", "refactor", "perf", "docs", "style", "test", "build", "ci"],
34+
},
35+
},
36+
},
37+
auto_approve_options={
38+
"allowed_usernames": ["dependabot", "dependabot[bot]"],
3339
},
3440
git_ignore_options={
3541
"ignore_patterns": [
@@ -59,7 +65,7 @@
5965
"production": None,
6066
}
6167

62-
gh = github.GitHub(project)
68+
gh = project.github
6369

6470
# Add Dependabot configuration for pip
6571
YamlFile(
@@ -89,9 +95,6 @@
8995
},
9096
)
9197

92-
# Add auto-approve configuration
93-
AutoApprove(gh, allowed_usernames=["dependabot", "dependabot[bot]"])
94-
9598
# Add auto-merge step to the auto-approve workflow
9699
auto_approve_workflow = project.try_find_object_file(".github/workflows/auto-approve.yml")
97100
if auto_approve_workflow:

0 commit comments

Comments
 (0)