Skip to content

Commit 322cb68

Browse files
authored
Merge pull request #66 from Telefonica/release
Release v2.5.0
2 parents bc2bd7a + fb25441 commit 322cb68

File tree

8 files changed

+25
-2
lines changed

8 files changed

+25
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
#### Deprecated
1212
#### Removed
1313

14+
## [2.5.0] - 2025-11-25
15+
16+
### Added
17+
18+
* feat: Add `confluence-api-prefix` option to allow the user to set a custom API prefix for Confluence instance.
19+
1420
## [2.4.0] - 2025-11-25
1521

1622
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ The action accepts a configuration file in the root of the repository, and it ca
207207
| `files-pattern` | Pattern to filter the files to sync in flat or id mode | No | |
208208
| `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 | |
209209
| `confluence-url` | Confluence base URL | __Yes__ | |
210+
| `confluence-api-prefix` | Custom API prefix for Confluence instance | No | `/rest/` |
210211
| `confluence-root-page-id` | ID of the Confluence page under which the pages will be synchronized | __Yes__ | |
211212
| `confluence-space-key` | Key of the Confluence space where the pages will be synced | __Yes__ | |
212213
| `confluence-personal-access-token` | Confluence personal access token. Deprecated. Use `confluence-authentication` instead | __No__ | |

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ inputs:
4444
confluence-personal-access-token:
4545
description: 'Confluence personal access token'
4646
type: string
47+
confluence-api-prefix:
48+
description: 'Custom API prefix for Confluence instances'
49+
type: string
4750
confluence-authentication:
4851
description: 'Confluence authentication object expressed as a stringified JSON'
4952
multiline: true

dist/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "markdown-confluence-sync-action",
33
"description": "GitHub Action to sync markdown files to Confluence",
4-
"version": "2.4.0",
4+
"version": "2.5.0",
55
"author": "Telefónica Innovación Digital",
66
"homepage": "https://github.com/Telefonica/markdown-confluence-sync-action",
77
"repository": {

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export async function run(): Promise<void> {
5353
core.getMultilineInput("files-metadata")?.join("\n"),
5454
);
5555
const confluenceUrl: string = core.getInput("confluence-url");
56+
const confluenceApiPrefix: string = core.getInput("confluence-api-prefix");
5657

5758
const confluencePersonalAccessToken: string = core.getInput(
5859
"confluence-personal-access-token",
@@ -111,6 +112,7 @@ export async function run(): Promise<void> {
111112
docsDir: valueIfDefined(docsDir),
112113
confluence: {
113114
url: valueIfDefined(confluenceUrl),
115+
apiPrefix: valueIfDefined(confluenceApiPrefix),
114116
personalAccessToken: valueIfDefined(confluencePersonalAccessToken),
115117
authentication: confluenceAuthentication,
116118
spaceKey: valueIfDefined(confluenceSpaceKey),

test/unit/specs/main.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ describe("action", () => {
9090
}),
9191
},
9292
},
93+
{
94+
key: "confluence-api-prefix",
95+
value: "foo-api-prefix",
96+
expected: {
97+
confluence: expect.objectContaining({
98+
apiPrefix: "foo-api-prefix",
99+
}),
100+
},
101+
},
93102
{
94103
key: "confluence-personal-access-token",
95104
value: "foo-token",

0 commit comments

Comments
 (0)