Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update jira.js and linear@sdk #1305

Merged
merged 3 commits into from
Feb 25, 2025
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
2 changes: 2 additions & 0 deletions linear-jira/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
buildbuddy-io/5.0.138
7.4.1
6 changes: 6 additions & 0 deletions linear-jira/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
110 changes: 110 additions & 0 deletions linear-jira/MODULE.bazel.lock

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

6 changes: 3 additions & 3 deletions linear-jira/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Issue.prototype.createLinearLink = async function (this: Issue, jiraIssueKey: st
}

Issue.prototype.jiraEpic = async function (this: Issue): Promise<string | undefined> {
return (await (await this.project)?.links())?.nodes.find(a => a.label === JIRA_ISSUE_LINK_TITLE || a.label === JIRA_ISSUE_LINK_IMPORTED_TITLE)?.url?.split('/').pop()
return (await (await this.project)?.externalLinks())?.nodes.find(a => a.label === JIRA_ISSUE_LINK_TITLE || a.label === JIRA_ISSUE_LINK_IMPORTED_TITLE)?.url?.split('/').pop()
}

Issue.prototype.assigneeEmail = async function (this: Issue): Promise<string | undefined> {
Expand Down Expand Up @@ -160,11 +160,11 @@ Project.prototype.stateName = async function (this: Project): Promise<string | u
}

Project.prototype.jiraKey = async function (this: Project): Promise<string | undefined> {
return this.links().then(a => a.nodes.find(a => a.label === JIRA_ISSUE_LINK_TITLE || a.label === JIRA_ISSUE_LINK_IMPORTED_TITLE)?.url?.split('/').pop())
return this.externalLinks().then(a => a.nodes.find(a => a.label === JIRA_ISSUE_LINK_TITLE || a.label === JIRA_ISSUE_LINK_IMPORTED_TITLE)?.url?.split('/').pop())
}

Project.prototype.createLinearLink = async function (this: Project, jiraIssueKey: string): Promise<void> {
await linearClient.createProjectLink({
await linearClient.createEntityExternalLink({
label: JIRA_ISSUE_LINK_TITLE,
url: jiraIssueUrl(jiraIssueKey),
projectId: this.id,
Expand Down
Loading