From 251161dcb4cd29b6983eecfeb807621d82ec883c Mon Sep 17 00:00:00 2001 From: Frederic Wilhelm Date: Tue, 18 Nov 2025 12:31:22 +0100 Subject: [PATCH 1/3] remove workflow Signed-off-by: Frederic Wilhelm --- .github/workflows/milestone.yaml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/milestone.yaml diff --git a/.github/workflows/milestone.yaml b/.github/workflows/milestone.yaml deleted file mode 100644 index cd2cc93..0000000 --- a/.github/workflows/milestone.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Set milestone -on: - issues: - types: - - closed - pull_request: - types: - - closed - -jobs: - set_milestone: - uses: open-component-model/.github/.github/workflows/milestone.yml@main - secrets: inherit - permissions: - issues: write - pull-requests: write - \ No newline at end of file From 4e3e682d94a7d6d934dd4528e65531ec3848f1e8 Mon Sep 17 00:00:00 2001 From: Frederic Wilhelm Date: Tue, 18 Nov 2025 12:35:15 +0100 Subject: [PATCH 2/3] remove workflow that created milestone workflow Signed-off-by: Frederic Wilhelm --- .github/workflows/create-prs.yaml | 96 ------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 .github/workflows/create-prs.yaml diff --git a/.github/workflows/create-prs.yaml b/.github/workflows/create-prs.yaml deleted file mode 100644 index 5b6f1fa..0000000 --- a/.github/workflows/create-prs.yaml +++ /dev/null @@ -1,96 +0,0 @@ -# This workflow will iterate over a set of repositories and add/update one single file in each of them. Then it will create a pull request for each repository. -name: Create Pull Requests - -on: - workflow_dispatch: - -env: - FILE_TO_ADD: .github/workflows/milestone.yaml - BRANCH: chore/auto-created-pr/${{ github.run_id }}-${{ github.run_number }} - PR_TITLE: "chore: add set milestone action" - PR_BODY: "See [#401 - Automatically set milestone at issues when closed](https://github.com/open-component-model/ocm-project/issues/401) for more information. Now with reuse of central managed action." - LABEL: component/github-actions - -jobs: - create_prs: - name: Create Pull Requests - runs-on: ubuntu-latest - continue-on-error: true - strategy: - fail-fast: false - matrix: - repo: - - demo-secure-delivery - - git-controller - - homebrew-tap - - internal-processes - - ocm - - ocm-action - - ocm-controller - - ocm-e2e-framework - - ocm-examples - - ocm-integrationtest - - ocm-k8s-toolkit - - ocm-project - - ocm-setup-action - - ocm-spec - - ocm-website - - open-component-model - - pkg - - pocm - - replication-controller - - repository-template - - service-model - - signing-server - permissions: - contents: write - pull-requests: write - steps: - - name: Generate token - id: generate_token - uses: tibdex/github-app-token@v2 - with: - app_id: ${{ secrets.OCMBOT_APP_ID }} - private_key: ${{ secrets.OCMBOT_PRIV_KEY }} - - name: Checkout this - uses: actions/checkout@v4 - - name: Checkout ${{ matrix.repo }} - uses: actions/checkout@v4 - with: - path: remote/${{ matrix.repo }} - repository: ${{ github.repository_owner }}/${{ matrix.repo }} - token: ${{ steps.generate_token.outputs.token }} - - - name: Copy file - run: | - mkdir -p "remote/${{ matrix.repo }}/$(dirname "${{ env.FILE_TO_ADD }}")" - cp "${{ env.FILE_TO_ADD }}" "remote/${{ matrix.repo }}/${{ env.FILE_TO_ADD }}" - - - name: Prepare branch - run: | - cd remote/${{ matrix.repo }} - git checkout -b ${{ env.BRANCH }} - git push origin ${{ env.BRANCH }} - env: - GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} - - - name: Create sigened commit - run: | - cd "remote/${{ matrix.repo }}" - gh api graphql \ - -F "REPO=${{ github.repository_owner }}/${{ matrix.repo }}" \ - -F BRANCH=${{ env.BRANCH }} \ - -F "SHA=$(git rev-parse HEAD)" \ - -F MESSAGE="${{ env.PR_TITLE }}" \ - -F files[][path]="${{ env.FILE_TO_ADD }}" \ - -F "files[][contents]=$(base64 -w0 ${{ env.FILE_TO_ADD }})" \ - -F 'query=@../../.github/api/createSignedCommit.gql' - env: - GH_TOKEN: ${{ steps.generate_token.outputs.token }} - - - name: Create PR - run: | - cd remote/${{ matrix.repo }} - gh pr create --title "${{ env.PR_TITLE }}" --body "${{ env.PR_BODY }}" --project "OCM Backlog Board" --label "${{ env.LABEL }}" --assignee ${{ github.actor }} - env: - GH_TOKEN: ${{ steps.generate_token.outputs.token }} From 806b25aef1149c21006df3dfa442fa2ddafe3ed8 Mon Sep 17 00:00:00 2001 From: Frederic Wilhelm Date: Tue, 18 Nov 2025 12:48:38 +0100 Subject: [PATCH 3/3] remove milestone settings Signed-off-by: Frederic Wilhelm --- safe-settings/settings.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/safe-settings/settings.yml b/safe-settings/settings.yml index 9a7cfc0..cef8e84 100644 --- a/safe-settings/settings.yml +++ b/safe-settings/settings.yml @@ -7,38 +7,6 @@ -# Milestones: define milestones for Issues and Pull Requests -milestones: - - title: '2024-Q4' - state: 'closed' - description: '4th quarter of 2024' - due_on: '2024-12-31' - - - title: '2025-Q1' - state: 'closed' - description: '1st quarter of 2025' - due_on: '2025-04-07' - - - title: '2025-Q2' - state: 'closed' - description: '2nd quarter of 2025' - due_on: '2025-06-30' - - - title: '2025-Q3' - state: 'open' - description: '3rd quarter of 2025' - due_on: '2025-09-30' - - - title: '2025-Q4' - state: 'open' - description: '4th quarter of 2025' - due_on: '2025-12-31' - - - title: '2026-Q1' - state: 'open' - description: '1st quarter of 2026' - due_on: '2026-04-07' - # Rulesets # See https://docs.github.com/en/rest/orgs/rules?apiVersion=2022-11-28#create-an-organization-repository-rulesetfor available options rulesets: