Skip to content

Commit

Permalink
Merge branch 'gh-actions-test-branch' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars authored Oct 15, 2024
2 parents a5a1397 + b80ac6b commit 93dd114
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/re-draft-on-changes-requested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
repo: context.repo.repo,
pull_number,
});
if (!pullRequest.data.id) throw new Error(`pullRequestId no found for '${pull_number}'`);
return pullRequest.data.id;
if (!pullRequest.data.node_id) throw new Error(`pullRequestId no found for '${pull_number}'`);
return pullRequest.data.node_id;
}
const query = `
mutation($id: ID!) {
mutation {
convertPullRequestToDraft(input: { pullRequestId: $id }) {
pullRequest {
id
Expand Down

0 comments on commit 93dd114

Please sign in to comment.