Skip to content

202 support GitHub enterprise server with custom gh api base urls #208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion __mocks__/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const defaultConfig: Config = {
minorKeywords: ['feat', 'feature'],
patchKeywords: ['fix', 'chore'],
defaultFirstTag: 'v1.0.0',
terraformDocsVersion: 'v0.19.0',
terraformDocsVersion: 'v0.20.0',
deleteLegacyTags: false,
disableWiki: false,
wikiSidebarChangelogMax: 10,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/terraform-docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ vi.mock('node:util', () => ({
}));

describe('terraform-docs', async () => {
const terraformDocsVersion = 'v0.19.0';
const terraformDocsVersion = 'v0.20.0';
const mockExecFileSync = vi.mocked(execFileSync);
const mockWhichSync = vi.mocked(which.sync);
const fsExistsSyncMock = vi.mocked(existsSync);
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:

See: https://github.com/terraform-docs/terraform-docs/releases
required: true
default: v0.19.0
default: v0.20.0
delete-legacy-tags:
description: >
Specifies a boolean that determines whether tags from Terraform modules that have been deleted
Expand Down
194 changes: 97 additions & 97 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"package": "ncc build src/index.ts --source-map -o dist",
"test": "vitest run --coverage",
"test:watch": "vitest",
"coverage": "make-coverage-badge --output-path ./assets/coverage-badge.svg"
"coverage": "make-coverage-badge --output-path ./assets/coverage-badge.svg",
"terraform-docs-version": "gh api repos/terraform-docs/terraform-docs/releases/latest --jq '.tag_name'"
},
"dependencies": {
"@actions/core": "^1.11.1",
Expand All @@ -63,7 +64,7 @@
"@vercel/ncc": "^0.38.3",
"@vitest/coverage-v8": "^3.1.2",
"make-coverage-badge": "^1.2.0",
"textlint": "^14.6.0",
"textlint": "^14.7.1",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-rule-terminology": "^5.2.12",
"ts-deepmerge": "^7.0.2",
Expand Down
1 change: 0 additions & 1 deletion src/utils/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export function removeDirectoryContents(directory: string, exceptions: string[]

// Skip removal for items listed in the exceptions array
if (!shouldExcludeFile(directory, itemPath, exceptions)) {
//if (!exceptions.includes(item)) {
rmSync(itemPath, { recursive: true, force: true });
}
}
Expand Down