From 9cc78bd2af882ad72a624089eaa38d688256fdcf Mon Sep 17 00:00:00 2001 From: Doug Latornell Date: Mon, 3 Feb 2025 15:53:40 -0800 Subject: [PATCH] Add GHA to auto-assign milestones to issues/PRs (#60) (#56) Introduces a workflow to automatically assign the current milestone to newly opened issues and pull requests targeting the main branch. This improves workflow automation and ensures consistent milestone tracking. Leverages a reusable workflow from UBC-MOAD. --- .github/workflows/add-milestone-issue-pr.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/add-milestone-issue-pr.yaml diff --git a/.github/workflows/add-milestone-issue-pr.yaml b/.github/workflows/add-milestone-issue-pr.yaml new file mode 100644 index 0000000..0286d52 --- /dev/null +++ b/.github/workflows/add-milestone-issue-pr.yaml @@ -0,0 +1,18 @@ +name: Add Milestone to Issue/PR + +on: + issues: + types: + - opened + pull_request: + types: + - opened + branches: + - main + +jobs: + add_milestone: + permissions: + issues: write + pull-requests: write + uses: UBC-MOAD/gha-workflows/.github/workflows/auto-milestone-issue-pr.yaml@main