Commit Graph

30 Commits

Author SHA1 Message Date
Jack Green 8fd0e574d2 Improve error handling on authentication failure
When incorrect credentials are supplied, it's hard to reason this from the error produced:
```
% GITHUB_WORKSPACE=. \
INPUT_FROM=readme.md \
INPUT_TO=1 \
INPUT_CLOUD=hazelcast \
INPUT_USER=user@example.com \
INPUT_TOKEN=incorrect-token \
python3 src/main.py
Traceback (most recent call last):
  File "confluence-markdown-sync/src/main.py", line 47, in <module>
    'id': current['id'],
KeyError: 'id'
```

Instead, by checking the response we get a _hint_ where the problem might be:
```
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hazelcast.atlassian.net/wiki/rest/api/content/1
```
2026-03-27 19:18:09 +00:00
cupcakearmy e3c11d1f58 Merge pull request #9 from elias-AD/support_different_cloud_urls
Support different Confluence URL patterns
v1.0.3
2024-12-17 15:00:58 +01:00
elias-AD e43940725b update readme to make it more clear 2024-11-28 09:34:59 -05:00
elias-AD a59824adbb modified cloud to support both subdomains (*.atlassian.net) or actual domains (e.g. ame.jira.com)
instead of introducing a potential breaking change, this will support both cases
2024-11-28 09:29:50 -05:00
elias-AD 090b5472c5 support_cloud_URLs
Instead of relying only on *.atlassian.net, modify the input to be cloudUrl so different flavours of Confluence URLs can be used (including *.jira.com).
2024-11-27 23:19:05 -05:00
cupcakearmy 0d3d395931 typo 2023-03-30 10:19:55 +02:00
cupcakearmy aefcf035d8 Update README.md 2023-03-30 10:18:10 +02:00
cupcakearmy 93af96cd42 load dotenv v1.0.2 2022-12-08 17:24:06 +01:00
cupcakearmy b38b874a2c cleanup 2022-12-08 16:00:30 +01:00
cupcakearmy 5c70f435c1 update deps and optimize dockerfile 2022-12-08 15:57:33 +01:00
cupcakearmy 1779f1b903 Update README.md 2021-10-27 13:49:59 +02:00
cupcakearmy 67d0f1dba0 Update README.md 2021-10-27 13:48:10 +02:00
cupcakearmy 60427a1726 updates v1.0.1 2021-10-27 13:44:44 +02:00
cupcakearmy ad77892b7c Update README.md 2021-10-27 12:27:38 +02:00
cupcakearmy 6515c6f5a8 Merge pull request #2 from cupcakearmy/dependabot/pip/urllib3-1.26.3
Bump urllib3 from 1.26.2 to 1.26.3
2021-03-19 23:19:51 +01:00
dependabot[bot] 1cb3b489e6 Bump urllib3 from 1.26.2 to 1.26.3
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.2 to 1.26.3.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.2...1.26.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-19 20:10:02 +00:00
cupcakearmy 07bb4100ed print page link v1 2020-12-13 16:53:16 +01:00
cupcakearmy bfd4cdc043 how to handle secrets 2020-12-13 16:53:08 +01:00
cupcakearmy cfffad00ba ignore secrets 2020-12-13 16:53:03 +01:00
cupcakearmy ddd3241370 Update README.md 2020-12-13 16:45:16 +01:00
cupcakearmy cf9bdf6523 Update README.md 2020-12-13 16:44:26 +01:00
cupcakearmy e6000cda12 Merge branch 'master' of https://github.com/cupcakearmy/confluence-action 2020-12-13 16:35:05 +01:00
cupcakearmy 6bd8c079c7 rm entrypoint 2020-12-13 16:35:02 +01:00
cupcakearmy e775de7234 Merge pull request #1 from cupcakearmy/add-license-1
Create LICENSE
2020-12-13 16:34:32 +01:00
cupcakearmy 9e9e1d86b3 Create LICENSE 2020-12-13 16:34:22 +01:00
cupcakearmy 67726ba823 branding 2020-12-13 16:33:14 +01:00
cupcakearmy 7944409f8d Update README.md 2020-12-13 16:24:52 +01:00
cupcakearmy 245ac20842 dev 2020-12-13 16:15:28 +01:00
cupcakearmy 59a6497240 initial 2020-12-13 16:14:13 +01:00
cupcakearmy 80c6c8e7ed test 2020-12-13 12:14:35 +01:00