- name: Log Review Event run: echo "A review was submitted to the pull request." - name: Check PR milestone id: check-milestone uses: actions/github-script@v6.1.0 with: script: | const { owner, repo } = context.repo; const pull_number = context.payload.pull_request.number; const { data: pullRequest } = await github.pulls.get({ owner, repo, pull_number }); const requiredMilestone = 'v-532'; // Replace with the current milestone name if (!pullRequest.milestone || pullRequest.milestone.title !== requiredMilestone) { core.setOutput('run', 'false'); } else { core.setOutput('run', 'true'); - name: Move PR to '1 approval done' column if: steps.check-milestone.outputs.run == 'true' run: python .github/scripts/move_to_one_approval.py env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} REPO: ${{ github.repository }}