diff --git a/.github/workflows/milestone.yaml b/.github/workflows/milestone.yaml new file mode 100644 index 0000000..9137df0 --- /dev/null +++ b/.github/workflows/milestone.yaml @@ -0,0 +1,26 @@ +name: Set milestone +on: + issues: + types: + - closed + pull_request: + types: + - closed +jobs: + set_milestone: + name: Set milestone + runs-on: ubuntu-latest + 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 }} diff --git a/REUSE.toml b/REUSE.toml index 29355c4..6c9f373 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -6,5 +6,5 @@ SPDX-PackageDownloadLocation = "https://github.com/open-component-model/signing- [[annotations]] path = "**" precedence = "aggregate" -SPDX-FileCopyrightText = ["2024 SAP SE or an SAP affiliate company and Open Component Model contributors \\", ""] +SPDX-FileCopyrightText = ["2025 SAP SE or an SAP affiliate company and Open Component Model contributors \\", ""] SPDX-License-Identifier = "Apache-2.0"