@gitkraken/provider-apis 0.22.8 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
- added `getIssuesForProjects` function (Jira, Jira Server)
|
|
6
|
+
|
|
7
|
+
### ⚠️ Breaking Changes
|
|
8
|
+
|
|
9
|
+
Previously, users of this library were expected to supply a project name as an argument to Jira's `getIssuesForProject` function. But now, users are expected to supply a project key as an argument to Jira's `getIssuesForProject` function. As such, the `project` argument used by Jira's `getIssuesForProject` function has been renamed to `projectKey`. This is because project names can contain special characters (namely, `"`) that will result in the Jira API returning an error when used in a JQL query. Project keys do not have this issue, and should be used for Jira's `getIssuesForProject` query in the future.
|
|
10
|
+
|
|
11
|
+
This is how you should fetch issues from now on:
|
|
12
|
+
```ts
|
|
13
|
+
const projects = await jira.getJiraProjectsForResource({
|
|
14
|
+
resourceId,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const project = projects.data[0];
|
|
18
|
+
|
|
19
|
+
const issues = await jira.getIssuesForProject({
|
|
20
|
+
resourceId,
|
|
21
|
+
projectKey: project.key, // replaces project.name
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 0.22.9
|
|
26
|
+
|
|
27
|
+
- made `includeFromArchivedRepos` optional in GitLab functions that return PRs
|
|
28
|
+
|
|
29
|
+
- fixed reviewer default state being normalized as `ChangesRequested` instead of `ReviewRequested` (GitLab)
|
|
30
|
+
|
|
3
31
|
## 0.22.8
|
|
4
32
|
|
|
5
33
|
- added `BitbucketServerUtils.restApiPullRequestToCommonPullRequest` function
|
|
34
|
+
- added `includeFromArchivedRepos` option to functions that return PRs and Issues (GitHub, GitLab)
|
|
6
35
|
|
|
7
36
|
## 0.22.7
|
|
8
37
|
|