Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions .github/workflows/milestone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@ name: Set milestone
on:
issues:
types:
- closed
- closed
pull_request:
types:
- closed
- closed

jobs:
set_milestone:
name: Set milestone
runs-on: ubuntu-latest
uses: open-component-model/.github/.github/workflows/milestone.yml@main
secrets: inherit
permissions:
issues: write
pull-requests: write
steps:
- name: Set milestone on issue
if: github.event.issue.state_reason == 'completed'
run: gh issue edit ${{ github.event.issue.number }} --milestone "$(date +"%Y-Q%q")" --repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set milestone on pull request
if: github.event.pull_request.merged == true
run: gh pr edit ${{ github.event.pull_request.number }} --milestone "$(date +"%Y-Q%q")" --repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pull-requests: write
Loading