Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 0019ba3

Browse files
authored
Better handling of code wikis and attachments (#14)
1 parent 42bdc26 commit 0019ba3

23 files changed

+2324
-2009
lines changed

.azext/changelog-cache.json

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"issues": [
3+
{
4+
"id": 1186517317,
5+
"number": 11,
6+
"submitter": "BlackPhlox",
7+
"title": "Images is always read from `wikiMaster`",
8+
"url": "https://github.com/joachimdalen/azdevops-work-item-wiki/issues/11"
9+
},
310
{
411
"id": 1186531140,
512
"number": 12,
@@ -16,6 +23,13 @@
1623
}
1724
],
1825
"pullRequests": [
26+
{
27+
"id": 894797926,
28+
"number": 14,
29+
"submitter": "joachimdalen",
30+
"title": "Better handling of code wikis and attachments",
31+
"url": "https://github.com/joachimdalen/azdevops-work-item-wiki/pull/14"
32+
},
1933
{
2034
"id": 894611967,
2135
"number": 13,

.azext/changelog-prod.json

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"description": "Update rendered link attributes",
99
"issue": 12,
1010
"pullRequest": 13
11+
},
12+
{
13+
"type": "fix",
14+
"description": "Fixed images always being loaded from the branch `wikiMaster`",
15+
"issue": 11,
16+
"pullRequest": 14
1117
}
1218
]
1319
},

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22

33
## 1.1.2 (2022-03-XX)
44

5-
### 🐛 Fixes (1)
5+
### 🐛 Fixes (2)
66

77
- Update rendered link attributes
8+
89
- Reported in: [GH#12 - Links should be parsed as `target="_blank"`](https://github.com/joachimdalen/azdevops-work-item-wiki/issues/12)
910
- Fixed in: [PR#13 - Update link attributes](https://github.com/joachimdalen/azdevops-work-item-wiki/pull/13)
1011

12+
- Fixed images always being loaded from the branch `wikiMaster`
13+
- Reported in: [GH#11 - Images is always read from `wikiMaster`](https://github.com/joachimdalen/azdevops-work-item-wiki/issues/11)
14+
- Fixed in: [PR#14 - Better handling of code wikis and attachments](https://github.com/joachimdalen/azdevops-work-item-wiki/pull/14)
15+
1116
## 🌟 Contributors
1217

1318
Thank you to the following for contributing to the latest release

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ Example where rendered on custom page:
103103

104104
Work Item Link is a custom form control that needs to be added to the Work Item Form. It can be added on an existing page, or as a new tab. For how to do this, refer to the [official documentation](https://docs.microsoft.com/en-us/azure/devops/organizations/settings/work/custom-controls-process?view=azure-devops#add-a-field-level-contribution-or-custom-control).
105105

106-
Wiki Url is the url to the wiki page, it should look something like: `https://dev.azure.com/organization/demo-project/_wiki/wikis/demo-project.wiki/1/This-is-a-page`
106+
- `Wiki Url` is the url to the wiki page, it should look something like: `https://dev.azure.com/organization/demo-project/_wiki/wikis/demo-project.wiki/1/This-is-a-page`
107+
- `Version Branch` is used when publishing the wiki from code. If your main branch is not `wikiMaster`, this field must be set to load links, images and attachments correctly.
107108

108109
| ![Config one][config-one] | ![Config one][config-two] |
109110
| ------------------------- | ------------------------- |

build-scripts/webpack.common.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ module.exports = {
3434
'azure-devops-extension-api': path.resolve('node_modules/azure-devops-extension-api'),
3535
react: path.resolve('node_modules/react'),
3636
'react-dom': path.resolve('node_modules/react-dom'),
37-
'azure-devops-ui': path.resolve('node_modules/azure-devops-ui'),
37+
'azure-devops-ui': path.resolve('node_modules/azure-devops-ui')
38+
},
39+
fallback: {
40+
path: require.resolve('path-browserify')
3841
}
3942
},
4043
// stats: 'errors-only',
4.41 KB
Loading

marketplace/raw/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ See [documenation](https://docs.devops-extensions.dev/docs/extensions/work-item-
6363

6464
Work Item Link is a custom form control that needs to be added to the Work Item Form. It can be added on an existing page, or as a new tab. For how to do this, refer to the [official documentation](https://docs.microsoft.com/en-us/azure/devops/organizations/settings/work/custom-controls-process?view=azure-devops#add-a-field-level-contribution-or-custom-control).
6565

66-
Wiki Url is the url to the wiki page, it should look something like: `https://dev.azure.com/organization/demo-project/_wiki/wikis/demo-project.wiki/1/This-is-a-page`
66+
- `Wiki Url` is the url to the wiki page, it should look something like: `https://dev.azure.com/organization/demo-project/_wiki/wikis/demo-project.wiki/1/This-is-a-page`
67+
- `Version Branch` is used when publishing the wiki from code. If your main branch is not `wikiMaster`, this field must be set to load links, images and attachments correctly.
6768

6869
| ![Config one](marketplace/docs/images/control-config-1.png) | ![Config two](marketplace/docs/images/control-config-2.png) |
6970
| ----------------------------------------------------------- | ----------------------------------------------------------- |

0 commit comments

Comments
 (0)