Skip to content

Commit

Permalink
fix: next command not work
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed May 29, 2024
1 parent 42380e3 commit 7450c9a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/constants/opensumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export namespace ActionsRepo {

export const PR_NEXT_RELEASE_FILE = 'release-next.yml';
export const PR_NEXT_WORKFLOW = {
...info,
workflow_id: PR_NEXT_RELEASE_FILE,
ref: 'main',
};
Expand Down
2 changes: 0 additions & 2 deletions src/github/commands/pullRequests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ Please see: <${getActionsUrl(ActionsRepo.BACKPORT_PR_WORKFLOW)}>`,
}

await app.opensumiOctoService.prNextRelease({
owner,
repo,
pull_number: issue.number,
});
await app.createReactionForIssueComment(ctx, 'eyes');
Expand Down
8 changes: 1 addition & 7 deletions src/github/service/opensumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,9 @@ export class OpenSumiOctoService extends GitHubService {
return workflow;
}

async prNextRelease({
pull_number,
owner,
repo,
}: { pull_number: number } & RepoInfo) {
async prNextRelease({ pull_number }: { pull_number: number }) {
const workflow = await this.octo.actions.createWorkflowDispatch({
...ActionsRepo.PR_NEXT_WORKFLOW,
owner,
repo,
inputs: {
pull_number: pull_number.toString(),
},
Expand Down

0 comments on commit 7450c9a

Please sign in to comment.