diff --git a/.github/workflows/label-check.yaml b/.github/workflows/label-check.yaml new file mode 100644 index 0000000..d6e97f2 --- /dev/null +++ b/.github/workflows/label-check.yaml @@ -0,0 +1,21 @@ +name: Labels + +on: + pull_request: + types: + - opened + - reopened + - labeled + - unlabeled + - synchronize + +env: + LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }} + +jobs: + check-type-label: + name: ensure type label + runs-on: ubuntu-latest + steps: + - if: "contains( env.LABELS, 'type: ' ) == false" + run: exit 1 diff --git a/.github/workflows/milestone-merged-prs.yaml b/.github/workflows/milestone-merged-prs.yaml new file mode 100644 index 0000000..71ae037 --- /dev/null +++ b/.github/workflows/milestone-merged-prs.yaml @@ -0,0 +1,18 @@ +name: Milestone + +on: + pull_request_target: + types: + - closed + branches: + - "main" + +jobs: + milestone_pr: + name: attach to PR + runs-on: ubuntu-latest + steps: + - uses: scientific-python/attach-next-milestone-action@bc07be829f693829263e57d5e8489f4e57d3d420 + with: + token: ${{ secrets.MILESTONE_LABELER_TOKEN }} + force: true diff --git a/requirements/release.txt b/requirements/release.txt new file mode 100644 index 0000000..b2531f9 --- /dev/null +++ b/requirements/release.txt @@ -0,0 +1 @@ +changelist==0.4