diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 55941f4e1..a00a86997 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,13 +2,17 @@ + + ## Checklist - [ ] If code changes were made then they have been tested. - [ ] I have updated the documentation to reflect the changes. + - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] This PR fixes an issue. - [ ] This PR adds something new (e.g. new method or parameters). - [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed) - [ ] This PR is **not** a code change (e.g. documentation, README, ...) +- [ ] I have ensured that my code follows the style guidelines of this project. diff --git a/.github/workflows/scripts/close_and_reopen_pr.js b/.github/workflows/scripts/close_and_reopen_pr.js index dc1214301..436cedcc9 100644 --- a/.github/workflows/scripts/close_and_reopen_pr.js +++ b/.github/workflows/scripts/close_and_reopen_pr.js @@ -1,4 +1,4 @@ -module.exports = (async function ({github, context}) { +module.exports = (async function ({ github, context }) { const pr_number = process.env.PR_NUMBER; const pr_operation = process.env.PR_OPERATION; @@ -12,8 +12,8 @@ module.exports = (async function ({github, context}) { await new Promise(r => setTimeout(r, 5000)); // Close the PR - github.issues.update({ - issue_number: pr_number, + await github.pulls.update({ + pull_number: pr_number, owner: context.repo.owner, repo: context.repo.repo, state