Skip to content

Commit

Permalink
ci(pre-commit): add config for yamlfix, fixes failed pre-commit ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Sep 9, 2024
1 parent 402de58 commit b3e6f16
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
52 changes: 25 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,56 @@
# Changelog
# CHANGELOG

> \[!NOTE\]
> All notable changes to this project are documented in this file. The list is not exhaustive,
> typically, only important changes, fixes, and new features in the code are reflected here.
<sub>The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)</sub>

---
<sub>The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
</sub>---

## Unreleased

### 🐛 Bug fixes

- **tests**: remove unnecessary issue.key in PR success message - *Tomas Sebestik (a106f9b)*
- **action-yml**: fix format of legacy input "cron_job" - *Tomas Sebestik (c41e928)*
- **action-log**: fix missing capture of issue for success message - *Tomas Sebestik (b2b1889)*
- **action-yml**: pass secrets from caller workflow as ENV - *Tomas Sebestik (baa7d2f)*
- **tests**: fix failed test after adding check for empty JIRA_PROJECT - *Tomas Sebestik (3449a13)*
- **pre-commit**: fix error pip-compile hook, ignore "node_modules" directory - *Tomas Sebestik (4482b4b)*
- **tests**: remove unnecessary issue.key in PR success message *(Tomas Sebestik)* *(a106f9b)*
- **action-yml**: fix format of legacy input "cron_job" *(Tomas Sebestik)* *(c41e928)*
- **action-log**: fix missing capture of issue for success message *(Tomas Sebestik)* *(b2b1889)*
- **action-yml**: pass secrets from caller workflow as ENV *(Tomas Sebestik)* *(baa7d2f)*
- **tests**: fix failed test after adding check for empty JIRA_PROJECT *(Tomas Sebestik)* *(3449a13)*
- **pre-commit**: fix error pip-compile hook, ignore "node_modules" directory *(Tomas Sebestik)* *(4482b4b)*

### 🏗️ Changes
### 📖 Documentation

- **action-log**: specifics (json response, JQL query) print only in debug mode - *Tomas Sebestik (12ce1a0)*
- **action-yml**: set inputs with defaults instead environment variables - *Tomas Sebestik (ae9e68e)*
- **npm**: without global install, add package-lock.json - *Tomas Sebestik (97968da)*
- **action**: change from Docker to Composite - *Tomas Sebestik (08467b8)*
- **caller-workflow**: limit permission for github_token *(Tomas Sebestik)* *(eafe485)*
- **caller-workflow**: simplify run-name, other details are in subtext *(Tomas Sebestik)* *(8332091)*
- **caller-workflow**: add custom run-name; more clear in Action tab *(Tomas Sebestik)* *(d63dad5)*
- **caller-workflow**: add secrets ENV vars to be passed to action *(Tomas Sebestik)* *(8c43b5b)*
- **caller-workflow**: add caller workflow for easy copy to target repo *(Tomas Sebestik)* *(61759b0)*

### 📖 Documentation
### 🏗️ Changes

- **caller-workflow**: limit permission for github_token - *Tomas Sebestik (eafe485)*
- **caller-workflow**: simplify run-name, other details are in subtext - *Tomas Sebestik (8332091)*
- **caller-workflow**: add custom run-name; more clear in Action tab - *Tomas Sebestik (d63dad5)*
- **caller-workflow**: add secrets ENV vars to be passed to action - *Tomas Sebestik (8c43b5b)*
- **caller-workflow**: add caller workflow for easy copy to target repo - *Tomas Sebestik (61759b0)*
- **action-log**: specifics (json response, JQL query) print only in debug mode *(Tomas Sebestik)* *(12ce1a0)*
- **action-yml**: set inputs with defaults instead environment variables *(Tomas Sebestik)* *(ae9e68e)*
- **npm**: without global install, add package-lock.json *(Tomas Sebestik)* *(97968da)*
- **action**: change from Docker to Composite *(Tomas Sebestik)* *(08467b8)*

---

## v0.1.1 (2024-02-14)

### 🏗️ Changes
### 📖 Documentation

- **bump-version**: bump release version to v0.1.1 - *Tomas Sebestik (253dd16)*
- add CONTRIBUTING guide, update README *(Tomas Sebestik)* *(b82419e)*

### 📖 Documentation
### 🏗️ Changes

- add CONTRIBUTING guide, update README - *Tomas Sebestik (b82419e)*
- **bump-version**: bump release version to v0.1.1 *(Tomas Sebestik)* *(253dd16)*

---

## v0.1.0 (2024-02-07)

### ✨ New features

- **init**: original code from github-actions repo - *Tomas Sebestik (36ac8e0)*
- **init**: original code from github-actions repo *(Tomas Sebestik)* *(36ac8e0)*

---

Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,17 @@
[tool.coverage.run]
omit = ["__*__.py", "tests/*"]

[tool.yamlfix]
comments_min_spaces_from_content = 1 # Minimum number of spaces between comments and content
line_length = 200 # Maximum line length before wrapping
preserve_quotes = true # Preserve quotes around string values if they are present
section_whitelines = 1 # Number of blank lines before and after sections
sequence_style = "keep_style" # Determines how sequences (lists) are formatted: 'flow_style', 'block_style', or 'keep_style'
whitelines = 1 # Number of blank lines between elements, useful for separating items

[tool.commitizen]
annotated_tag = true
bump_message = 'change(bump): release $current_version → $new_version [skip-ci]'
change_type_order = ['🚨 Breaking changes', '✨ New features', '🐛 Bug fixes', '🏗️ Changes']
changelog_merge_prerelease = true
name = "czespressif"
tag_format = "v$version"
Expand Down

0 comments on commit b3e6f16

Please sign in to comment.