Refactor aperture classes and deprecate aperture mask Mixin classes #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check PR milestone | |
| on: | |
| pull_request: | |
| types: [synchronize, milestoned, demilestoned] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| pull-requests: read | |
| jobs: | |
| # https://stackoverflow.com/questions/69434370/how-can-i-get-the-latest-pr-data-specifically-milestones-when-running-yaml-jobs | |
| milestone_checker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| if: github.repository == 'astropy/photutils' | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const { data } = await github.request("GET /repos/{owner}/{repo}/pulls/{pr}", { | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pr: context.payload.pull_request.number | |
| }); | |
| if (data.milestone) { | |
| core.info(`This pull request has a milestone set: ${data.milestone.title}`); | |
| } else { | |
| core.setFailed(`A maintainer needs to set the milestone for this pull request.`); | |
| } |