Skip to content

systemUtils.ExecAndPump: the thread handle passed to msgWaitForMultipleObjects should be a proper HANDLE not c_int. This stops the ctypes argument error, and more importantly ensures the full thread handle is represented on 64 bit. #2048

systemUtils.ExecAndPump: the thread handle passed to msgWaitForMultipleObjects should be a proper HANDLE not c_int. This stops the ctypes argument error, and more importantly ensures the full thread handle is represented on 64 bit.

systemUtils.ExecAndPump: the thread handle passed to msgWaitForMultipleObjects should be a proper HANDLE not c_int. This stops the ctypes argument error, and more importantly ensures the full thread handle is represented on 64 bit. #2048

name: Assign Milestone on Close
env:
MILESTONE_ID: ${{ vars.MILESTONE_ID }}
on:
pull_request_target:
types: [closed]
permissions:
issues: write
pull-requests: write
jobs:
assign-milestone:
runs-on: ubuntu-latest
steps:
- name: Check if milestone is set
id: check-milestone
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const pr = context.payload.pull_request;
if (!pr.milestone) {
core.setOutput('milestoneNotSet', 'true');
} else {
core.setOutput('milestoneNotSet', 'false');
}
- name: Check merged
id: check-done
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
if (context.payload.pull_request.merged === true) {
core.setOutput('isDone', 'true');
} else {
core.setOutput('isDone', 'false');
}
- name: Assign default milestone
if: steps.check-milestone.outputs.milestoneNotSet == 'true' && steps.check-done.outputs.isDone == 'true'
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const prNumber = context.payload.pull_request.number;
const repository = context.repo;
await github.rest.issues.update({
...repository,
issue_number: prNumber,
milestone: process.env.MILESTONE_ID
});