Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions .github/workflows/pull-request-lint.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 1 addition & 22 deletions .projenrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from src.bin.cicd_helper import (
cdk_validate_workflow,
github_cicd,
pin_github_actions,
)
from src.bin.env_helper import CDK_VALIDATE_COMMAND, cdk_action_task

Expand Down Expand Up @@ -60,24 +59,7 @@
"requires_python": python_requires,
},
},
github_options={
"pull_request_lint_options": {
"semantic_title_options": {
"types": [
"feat",
"fix",
"chore",
"refactor",
"perf",
"docs",
"style",
"test",
"build",
"ci",
],
},
},
},
github_options={"pull_request_lint": False},
git_ignore_options={
"ignore_patterns": [
"__pycache__",
Expand Down Expand Up @@ -118,9 +100,6 @@

gh = project.github

# Keep projen-managed workflows (pull-request-lint) on the same action versions
pin_github_actions(gh)

# Validate the CDK app offline on every pull request (no AWS credentials required)
cdk_validate_workflow(
gh,
Expand Down
11 changes: 1 addition & 10 deletions src/bin/cicd_helper.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
from projen import github

# Pinned GitHub Actions used by every workflow in this repo. `.projenrc.py` registers these
# with projen's actions provider so projen-managed workflows (pull-request-lint)
# render the same versions as the workflows built here.
# Pinned GitHub Actions used by every workflow in this repo.
GITHUB_ACTIONS = {
"checkout": "actions/checkout@v7",
"cache_restore": "actions/cache/restore@v6",
"cache_save": "actions/cache/save@v6",
"configure_aws_credentials": "aws-actions/configure-aws-credentials@v6",
"semantic_pull_request": "amannn/action-semantic-pull-request@v6",
"setup_python": "actions/setup-python@v7",
"setup_uv": "astral-sh/setup-uv@v10.0.1", # setup-uv publishes no floating v10 tag
}


def pin_github_actions(gh):
"""Register GITHUB_ACTIONS with projen's actions provider so every workflow uses the same versions."""
for action in GITHUB_ACTIONS.values():
gh.actions.set(action.split("@")[0], action)


def cdk_environment_steps(python_version, cdk_cli_version, aws_credentials=None):
"""Checkout, Python, uv, project dependencies and the CDK CLI."""
return [
Expand Down
Loading