From 88ed1e30150f2aebb5f324de22976cedaf209765 Mon Sep 17 00:00:00 2001 From: Doug Latornell Date: Sun, 2 Feb 2025 10:31:49 -0800 Subject: [PATCH 1/2] Use shared auto-milestone workflow Replace the custom milestone action with the shared workflow from UBC-MOAD. This simplifies maintenance and ensures consistency across repositories. --- .github/workflows/add-milestone-issue-pr.yaml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/add-milestone-issue-pr.yaml b/.github/workflows/add-milestone-issue-pr.yaml index 1d7171ff..dbc38d3f 100644 --- a/.github/workflows/add-milestone-issue-pr.yaml +++ b/.github/workflows/add-milestone-issue-pr.yaml @@ -17,16 +17,4 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: benelan/milestone-action@v3 - with: - # If true, add the milestone with the farthest due date. By default, - # the action adds the current milestone (the closest due date). - farthest: false - - # If true, overwrite existing milestones on issues and pull requests. - # By default, the action exits if a milestone has already been added. - overwrite: false - - # If true, add the only open milestone in a repo, even if there is no - # due date. By default, milestones with no due date are ignored. - single: false + uses: UBC-MOAD/gha-workflows/.github/workflows/auto-milestone-issue-pr.yaml@main From 5c8a84b55154e7826e6b2387498d465018eb9595 Mon Sep 17 00:00:00 2001 From: Doug Latornell Date: Sun, 2 Feb 2025 10:38:59 -0800 Subject: [PATCH 2/2] Correct auto-milestone workflow syntax --- .github/workflows/add-milestone-issue-pr.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/add-milestone-issue-pr.yaml b/.github/workflows/add-milestone-issue-pr.yaml index dbc38d3f..0286d523 100644 --- a/.github/workflows/add-milestone-issue-pr.yaml +++ b/.github/workflows/add-milestone-issue-pr.yaml @@ -15,6 +15,4 @@ jobs: permissions: issues: write pull-requests: write - runs-on: ubuntu-latest - steps: - uses: UBC-MOAD/gha-workflows/.github/workflows/auto-milestone-issue-pr.yaml@main + uses: UBC-MOAD/gha-workflows/.github/workflows/auto-milestone-issue-pr.yaml@main