Skip to content

Commit f13f153

Browse files
committed
fix: formatting
1 parent 137179f commit f13f153

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ configuring the following optional input parameters as needed.
199199
| `module-change-exclude-patterns` | Comma-separated list of file patterns (relative to each module) to exclude from triggering version changes. Lets you release a module but control which files inside it do not force a version bump.<br><sub>[Read more here](#understanding-the-filtering-options)</sub> | `.gitignore,*.md,*.tftest.hcl,tests/**` |
200200
| `module-asset-exclude-patterns` | A comma-separated list of file patterns to exclude when bundling a Terraform module for tag/release. Patterns follow glob syntax (e.g., `tests/\*\*`) and are relative to each Terraform module directory. Files matching these patterns will be excluded from the bundled output. | `.gitignore,*.md,*.tftest.hcl,tests/**` |
201201
| `use-ssh-source-format` | If enabled, all links to source code in generated Wiki documentation will use SSH standard format (e.g., `git::ssh://[email protected]/owner/repo.git`) instead of HTTPS format (`git::https://github.com/owner/repo.git`) | `false` |
202-
| `tag-directory-separator` | Character used to separate directory path components in Git tags. Supports `/`, `-`, `_`, or `.` | `/` |
203-
| `use-version-prefix` | Whether to include the 'v' prefix on version tags (e.g., v1.2.3 vs 1.2.3) | `true` |
202+
| `tag-directory-separator` | Character used to separate directory path components in Git tags. Supports `/`, `-`, `_`, or `.` | `/` |
203+
| `use-version-prefix` | Whether to include the 'v' prefix on version tags (e.g., v1.2.3 vs 1.2.3) | `true` |
204204

205205
### Understanding the filtering options
206206

__tests__/utils/metadata.test.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('utils/metadata', () => {
88
it('should contain all expected input configurations', () => {
99
const expectedInputs = [
1010
'major-keywords',
11-
'minor-keywords',
11+
'minor-keywords',
1212
'patch-keywords',
1313
'default-first-tag',
1414
'terraform-docs-version',
@@ -31,7 +31,7 @@ describe('utils/metadata', () => {
3131

3232
it('should have correct metadata structure for required string inputs', () => {
3333
const stringInputs = ['default-first-tag', 'terraform-docs-version', 'github_token', 'tag-directory-separator'];
34-
34+
3535
for (const inputName of stringInputs) {
3636
const metadata = ACTION_INPUTS[inputName];
3737
expect(metadata).toEqual({
@@ -45,12 +45,12 @@ describe('utils/metadata', () => {
4545
it('should have correct metadata structure for required boolean inputs', () => {
4646
const booleanInputs = [
4747
'delete-legacy-tags',
48-
'disable-wiki',
48+
'disable-wiki',
4949
'disable-branding',
5050
'use-ssh-source-format',
5151
'use-version-prefix',
5252
];
53-
53+
5454
for (const inputName of booleanInputs) {
5555
const metadata = ACTION_INPUTS[inputName];
5656
expect(metadata).toEqual({
@@ -63,7 +63,7 @@ describe('utils/metadata', () => {
6363

6464
it('should have correct metadata structure for required array inputs', () => {
6565
const arrayInputs = ['major-keywords', 'minor-keywords', 'patch-keywords'];
66-
66+
6767
for (const inputName of arrayInputs) {
6868
const metadata = ACTION_INPUTS[inputName];
6969
expect(metadata).toEqual({
@@ -76,7 +76,7 @@ describe('utils/metadata', () => {
7676

7777
it('should have correct metadata structure for required number inputs', () => {
7878
const numberInputs = ['wiki-sidebar-changelog-max'];
79-
79+
8080
for (const inputName of numberInputs) {
8181
const metadata = ACTION_INPUTS[inputName];
8282
expect(metadata).toEqual({
@@ -93,7 +93,7 @@ describe('utils/metadata', () => {
9393
'module-change-exclude-patterns',
9494
'module-asset-exclude-patterns',
9595
];
96-
96+
9797
for (const inputName of optionalArrayInputs) {
9898
const metadata = ACTION_INPUTS[inputName];
9999
expect(metadata).toEqual({
@@ -119,7 +119,7 @@ describe('utils/metadata', () => {
119119
'module-change-exclude-patterns': 'moduleChangeExcludePatterns',
120120
'module-asset-exclude-patterns': 'moduleAssetExcludePatterns',
121121
'use-ssh-source-format': 'useSSHSourceFormat',
122-
'github_token': 'githubToken',
122+
github_token: 'githubToken',
123123
'tag-directory-separator': 'tagDirectorySeparator',
124124
'use-version-prefix': 'useVersionPrefix',
125125
};
@@ -137,9 +137,9 @@ describe('utils/metadata', () => {
137137
configKey: expect.any(String),
138138
required: expect.any(Boolean),
139139
type: expect.stringMatching(/^(string|boolean|array|number)$/),
140-
})
140+
}),
141141
);
142-
142+
143143
// Ensure type is properly typed
144144
const validTypes: ActionInputMetadata['type'][] = ['string', 'boolean', 'array', 'number'];
145145
expect(validTypes).toContain(metadata.type);
@@ -163,7 +163,9 @@ describe('utils/metadata', () => {
163163
throw errorObject;
164164
});
165165

166-
expect(() => createConfigFromInputs()).toThrow(`Failed to process input 'major-keywords': ${String(errorObject)}`);
166+
expect(() => createConfigFromInputs()).toThrow(
167+
`Failed to process input 'major-keywords': ${String(errorObject)}`,
168+
);
167169
});
168170

169171
it('should process all input types correctly', () => {
@@ -179,7 +181,7 @@ describe('utils/metadata', () => {
179181
'module-path-ignore': '',
180182
'module-change-exclude-patterns': '*.md,tests/**',
181183
'module-asset-exclude-patterns': '*.md,tests/**',
182-
'github_token': 'fake-token',
184+
github_token: 'fake-token',
183185
'tag-directory-separator': '/',
184186
'use-ssh-source-format': 'false',
185187
};

0 commit comments

Comments
 (0)