Skip to content

Commit e9d0dbe

Browse files
committed
Cleanup
1 parent 386f186 commit e9d0dbe

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

src/config.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class Configuration(BaseSettings):
4242

4343
token: str | None = None
4444
skip_pull_request: bool = False
45-
git_committer_username: str = "github-actions[bot]"
46-
git_committer_email: str = "github-actions[bot]@users.noreply.github.com"
45+
committer_username: str = "github-actions[bot]"
46+
committer_email: str = "github-actions[bot]@users.noreply.github.com"
4747
pull_request_title: str = "Update GitHub Action Versions"
4848
pull_request_branch: str | None = None
4949
commit_message: str = "Update GitHub Action Versions"
@@ -65,9 +65,6 @@ class Config:
6565
allow_mutation = False
6666
env_prefix = "INPUT_"
6767
fields = {
68-
"git_committer_username": {
69-
"env": "INPUT_COMMITTER_USERNAME",
70-
},
7168
"ignore_actions": {
7269
"env": "INPUT_IGNORE",
7370
},
@@ -100,7 +97,7 @@ def get_pull_request_branch_name(self) -> tuple[bool, str]:
10097
@property
10198
def git_commit_author(self) -> str:
10299
"""git_commit_author option"""
103-
return f"{self.git_committer_username} <{self.git_committer_email}>"
100+
return f"{self.committer_username} <{self.committer_email}>"
104101

105102
@validator("release_types", pre=True)
106103
def check_release_types(cls, value: frozenset[str]) -> frozenset[str]:

src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ def _get_all_actions(self, data: Any) -> Generator[str, None, None]:
463463

464464
# Configure Git Author
465465
configure_git_author(
466-
user_configuration.git_committer_username,
467-
user_configuration.git_committer_email,
466+
user_configuration.committer_username,
467+
user_configuration.committer_email,
468468
)
469469

470470
with gha_utils.group("Run GitHub Actions Version Updater"):

0 commit comments

Comments
 (0)