mirror of
https://github.com/tauri-apps/tauri-github-bot.git
synced 2026-01-31 00:35:20 +01:00
* chore(deps): update dependency @octokit/rest to v20 * ci: update to node 18 * fmt * update node engine field * update ci workflow --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
17 lines
611 B
TypeScript
17 lines
611 B
TypeScript
// Copyright 2019-2022 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
export const UPSTREAM_ISSUE_BODY_PREDICATE =
|
|
"> This issue has been upstreamed from";
|
|
export const UPSTREAM_ISSUE_BODY_SEPARATOR = "\n\n";
|
|
export function makeUpstreamIssueBody(
|
|
originalIssueUrl: string,
|
|
body: string,
|
|
): string {
|
|
return `${UPSTREAM_ISSUE_BODY_PREDICATE} ${originalIssueUrl} ${UPSTREAM_ISSUE_BODY_SEPARATOR}${body}`;
|
|
}
|
|
export function makeUpstreamIssueClosedComment(url: string): string {
|
|
return `Upstream issue at ${url} has been closed.`;
|
|
}
|