@tahminator/pipeline 1.0.73-beta.5f78512c → 1.0.73

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.
@@ -39,5 +39,4 @@ export declare class GitHubClient {
39
39
  outputToGithubOutput(...args: Parameters<GitHubOutputManager["outputToGithubOutput"]>): Promise<void>;
40
40
  updateK8sTagWithPR(...args: Parameters<GitHubPRManager["updateK8sTagWithPR"]>): Promise<void>;
41
41
  sendPrMessage(...args: Parameters<GitHubPRManager["sendPrMessage"]>): Promise<void>;
42
- mergePr(...args: Parameters<GitHubPRManager["mergePr"]>): Promise<void>;
43
42
  }
package/dist/gh/client.js CHANGED
@@ -68,7 +68,4 @@ export class GitHubClient {
68
68
  sendPrMessage(...args) {
69
69
  return this.prManager.sendPrMessage(...args);
70
70
  }
71
- mergePr(...args) {
72
- return this.prManager.mergePr(...args);
73
- }
74
71
  }
@@ -34,16 +34,6 @@ export declare class GitHubPRManager {
34
34
  originRepo: [OwnerString, RepoString];
35
35
  manifestRepo: [OwnerString, RepoString];
36
36
  }): Promise<void>;
37
- /**
38
- * @note if the PR doesn't exist yet, just use `updateK8sTagWithPR` instead, since it
39
- * creates the PR with the necessary changes and merges it for you in one call.
40
- */
41
- mergePr({ prId, owner, repository, mergeMethod, }: {
42
- prId: number;
43
- owner: string;
44
- repository: string;
45
- mergeMethod?: "merge" | "squash" | "rebase";
46
- }): Promise<void>;
47
37
  sendPrMessage({ prId, owner, repository, message, }: {
48
38
  prId: number;
49
39
  owner: string;
@@ -91,22 +91,11 @@ export class GitHubPRManager {
91
91
  base: baseBranch,
92
92
  body: `Automated image tag change to ${newTag} for ${imageName} in ${environment} triggered by [${originOwner}/${originRepository}](https://github.com/${originOwner}/${originRepository}).`,
93
93
  });
94
- await this.mergePr({
95
- prId: pr.number,
96
- owner: manifestOwner,
97
- repository: manifestRepository,
98
- });
99
- }
100
- /**
101
- * @note if the PR doesn't exist yet, just use `updateK8sTagWithPR` instead, since it
102
- * creates the PR with the necessary changes and merges it for you in one call.
103
- */
104
- async mergePr({ prId, owner, repository, mergeMethod = "squash", }) {
105
94
  await this.client.rest.pulls.merge({
106
- owner,
107
- repo: repository,
108
- pull_number: prId,
109
- merge_method: mergeMethod,
95
+ owner: manifestOwner,
96
+ repo: manifestRepository,
97
+ pull_number: pr.number,
98
+ merge_method: "squash",
110
99
  });
111
100
  }
112
101
  async sendPrMessage({ prId, owner, repository, message, }) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "author": "Tahmid Ahmed",
5
5
  "description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
6
- "version": "1.0.73-beta.5f78512c",
6
+ "version": "1.0.73",
7
7
  "repository": {
8
8
  "url": "git+https://github.com/tahminator/pipeline.git"
9
9
  },