diff --git a/.github/workflows/github-lock-closed-prs.yml b/.github/workflows/github-lock-closed-prs.yml new file mode 100644 index 000000000..baba9a902 --- /dev/null +++ b/.github/workflows/github-lock-closed-prs.yml @@ -0,0 +1,22 @@ +name: GitHub - Lock Closed PRs +on: + pull_request_target: + types: [closed] +permissions: + issues: write + pull-requests: write +jobs: + lock: + name: Lock Closed PR + runs-on: ubuntu-24.04 + steps: + - uses: actions/github-script@v3a2844b7e9c422d3c10d287c955573f7108da1b3 # v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + await github.rest.issues.lock({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + lock_reason: 'resolved' + }); \ No newline at end of file diff --git a/scripts/build.ts b/scripts/build.ts index b74db9233..af86003c7 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -170,7 +170,6 @@ const cmd = [ '--outfile', outfile, '--minify', - '--bytecode', '--packages', 'bundle', '--conditions',