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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Deprecated
#### Removed

## [2.5.0] - 2025-11-25

### Added

* feat: Add `confluence-api-prefix` option to allow the user to set a custom API prefix for Confluence instance.

## [2.4.0] - 2025-11-25

### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ The action accepts a configuration file in the root of the repository, and it ca
| `files-pattern` | Pattern to filter the files to sync in flat or id mode | No | |
| `ignore`| Semicolon separated list of [glob](https://github.com/cowboy/node-globule) patterns to ignore files. Matches are based on the current working directory | No | |
| `confluence-url` | Confluence base URL | __Yes__ | |
| `confluence-api-prefix` | Custom API prefix for Confluence instance | No | `/rest/` |
| `confluence-root-page-id` | ID of the Confluence page under which the pages will be synchronized | __Yes__ | |
| `confluence-space-key` | Key of the Confluence space where the pages will be synced | __Yes__ | |
| `confluence-personal-access-token` | Confluence personal access token. Deprecated. Use `confluence-authentication` instead | __No__ | |
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ inputs:
confluence-personal-access-token:
description: 'Confluence personal access token'
type: string
confluence-api-prefix:
description: 'Custom API prefix for Confluence instances'
type: string
confluence-authentication:
description: 'Confluence authentication object expressed as a stringified JSON'
multiline: true
Expand Down
2 changes: 2 additions & 0 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "markdown-confluence-sync-action",
"description": "GitHub Action to sync markdown files to Confluence",
"version": "2.4.0",
"version": "2.5.0",
"author": "Telefónica Innovación Digital",
"homepage": "https://github.com/Telefonica/markdown-confluence-sync-action",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export async function run(): Promise<void> {
core.getMultilineInput("files-metadata")?.join("\n"),
);
const confluenceUrl: string = core.getInput("confluence-url");
const confluenceApiPrefix: string = core.getInput("confluence-api-prefix");

const confluencePersonalAccessToken: string = core.getInput(
"confluence-personal-access-token",
Expand Down Expand Up @@ -111,6 +112,7 @@ export async function run(): Promise<void> {
docsDir: valueIfDefined(docsDir),
confluence: {
url: valueIfDefined(confluenceUrl),
apiPrefix: valueIfDefined(confluenceApiPrefix),
personalAccessToken: valueIfDefined(confluencePersonalAccessToken),
authentication: confluenceAuthentication,
spaceKey: valueIfDefined(confluenceSpaceKey),
Expand Down
9 changes: 9 additions & 0 deletions test/unit/specs/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ describe("action", () => {
}),
},
},
{
key: "confluence-api-prefix",
value: "foo-api-prefix",
expected: {
confluence: expect.objectContaining({
apiPrefix: "foo-api-prefix",
}),
},
},
{
key: "confluence-personal-access-token",
value: "foo-token",
Expand Down