8000 feat: delete stale branches script by mklos-kw · Pull Request #11395 · owncloud/ocis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: delete stale branches script #11395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occa 8000 sionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mklos-kw
Copy link
Member
@mklos-kw mklos-kw commented Jun 4, 2025

Description

Related Issue

  • Fixes <issue_link>

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropria 8000 te):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Copy link
update-docs bot commented Jun 4, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@mklos-kw
Copy link
Member Author
mklos-kw commented Jun 4, 2025

Sandbox results

➜  sandbox git:(script) ./delete-stale-branches.sh

Repository: mklos-kw/sandbox

Configuration:
  Days before stale: 90
  Max branches per run: 5
  Dry run: true

Branch Filtering:
  IGNORE_BRANCHES_REGEX: ^(main|master|stable|release|docs$|docs-stable)
  Ignored branches:
main

Branches by age:
  195  days  old-branch-196-d-25118  2024-11-20T19:53:29+01:00  by Michal Klos
  192  days  old-branch-193-d-37997  2024-11-23T19:53:14+01:00  by Michal Klos
  178  days  old-branch-179-d-23107  2024-12-07T19:53:07+01:00  by Michal Klos
  158  days  old-branch-159-d-32457  2024-12-27T19:53:32+01:00  by Michal Klos
  157  days  old-branch-158-d-16337  2024-12-28T19:53:25+01:00  by Michal Klos
  156  days  old-branch-157-d-40978  2024-12-29T19:53:21+01:00  by Michal Klos
  148  days  old-branch-149-d-20605  2025-01-06T19:53:33+01:00  by Michal Klos
  148  days  old-branch-149-d-14172  2025-01-06T19:53:20+01:00  by Michal Klos
  132  days  old-branch-133-d-38013  2025-01-22T19:53:06+01:00  by Michal Klos
  131  days  old-branch-132-d-39160  2025-01-23T19:53:15+01:00  by Michal Klos
  129  days  old-branch-130-d-12169  2025-01-25T19:33:51+01:00  by Michal Klos
  121  days  old-branch-122-d-35573  2025-02-02T19:33:35+01:00  by Michal Klos
  119  days  old-branch-120-d-35143  2025-02-04T19:33:53+01:00  by Michal Klos
  117  days  old-branch-118-d-25376  2025-02-06T19:53:23+01:00  by Michal Klos
  112  days  old-branch-113-d-33508  2025-02-11T19:53:35+01:00  by Michal Klos
  111  days  old-branch-112-d-10337  2025-02-12T19:53:08+01:00  by Michal Klos
  111  days  old-branch-112-d-38933  2025-02-12T19:53:30+01:00  by Michal Klos
  108  days  old-branch-109-d-39869  2025-02-15T19:53:05+01:00  by Michal Klos
  104  days  old-branch-105-d-23653  2025-02-19T19:53:12+01:00  by Michal Klos
  101  days  old-branch-102-d-18065  2025-02-22T19:53:17+01:00  by Michal Klos

Deleting oldest branches (max 5):
  old-branch-196-d-25118 (195 days old)  by Michal Klos
  old-branch-193-d-37997 (192 days old)  by Michal Klos
  old-branch-179-d-23107 (178 days old)  by Michal Klos
  old-branch-159-d-32457 (158 days old)  by Michal Klos
  old-branch-158-d-16337 (157 days old)  by Michal Klos

Summary:
  DRY_RUN: No branches deleted
  Branches before:       39
  Branches after:        39
  Deleted:        0

➜  sandbox git:(script) DRY_RUN=false ./delete-stale-branches.sh

Repository: mklos-kw/sandbox

Configuration:
  Days before stale: 90
  Max branches per run: 5
  Dry run: false

Branch Filtering:
  IGNORE_BRANCHES_REGEX: ^(main|master|stable|release|docs$|docs-stable)
  Ignored branches:
main

Branches by age:
  195  days  old-branch-196-d-25118  2024-11-20T19:53:29+01:00  by Michal Klos
  192  days  old-branch-193-d-37997  2024-11-23T19:53:14+01:00  by Michal Klos
  178  days  old-branch-179-d-23107  2024-12-07T19:53:07+01:00  by Michal Klos
  158  days  old-branch-159-d-32457  2024-12-27T19:53:32+01:00  by Michal Klos
  157  days  old-branch-158-d-16337  2024-12-28T19:53:25+01:00  by Michal Klos
  156  days  old-branch-157-d-40978  2024-12-29T19:53:21+01:00  by Michal Klos
  148  days  old-branch-149-d-20605  2025-01-06T19:53:33+01:00  by Michal Klos
  148  days  old-branch-149-d-14172  2025-01-06T19:53:20+01:00  by Michal Klos
  132  days  old-branch-133-d-38013  2025-01-22T19:53:06+01:00  by Michal Klos
  131  days  old-branch-132-d-39160  2025-01-23T19:53:15+01:00  by Michal Klos
  129  days  old-branch-130-d-12169  2025-01-25T19:33:51+01:00  by Michal Klos
  121  days  old-branch-122-d-35573  2025-02-02T19:33:35+01:00  by Michal Klos
  119  days  old-branch-120-d-35143  2025-02-04T19:33:53+01:00  by Michal Klos
  117  days  old-branch-118-d-25376  2025-02-06T19:53:23+01:00  by Michal Klos
  112  days  old-branch-113-d-33508  2025-02-11T19:53:35+01:00  by Michal Klos
  111  days  old-branch-112-d-10337  2025-02-12T19:53:08+01:00  by Michal Klos
  111  days  old-branch-112-d-38933  2025-02-12T19:53:30+01:00  by Michal Klos
  108  days  old-branch-109-d-39869  2025-02-15T19:53:05+01:00  by Michal Klos
  104  days  old-branch-105-d-23653  2025-02-19T19:53:12+01:00  by Michal Klos
  101  days  old-branch-102-d-18065  2025-02-22T19:53:17+01:00  by Michal Klos

Deleting oldest branches (max 5):
  old-branch-196-d-25118 (195 days old)  by Michal Klos
  old-branch-193-d-37997 (192 days old)  by Michal Klos
  old-branch-179-d-23107 (178 days old)  by Michal Klos
  old-branch-159-d-32457 (158 days old)  by Michal Klos
  old-branch-158-d-16337 (157 days old)  by Michal Klos

Summary:
  Branches before:       39
  Branches after:        34
  Deleted:        5

@mklos-kw mklos-kw force-pushed the feat/delete-stale-branches branch 5 times, most recently from 2c0973a to e060efa Compare June 4, 2025 18:26
@mklos-kw
Copy link
Member Author
mklos-kw commented Jun 4, 2025

ocis CI output

+ VERBOSE=true ./scripts/delete-stale-branches.sh
From https://github.com/owncloud/ocis
 * [new branch]              BackportMore71Features  -> origin/BackportMore71Features
 * [new branch]              FixDelayProcessingFunctionality -> origin/FixDelayProcessingFunctionality
 * [new branch]              Renamed-Page-and-added-5.0.5-and-5.0.4 -> origin/Renamed-Page-and-added-5.0.5-and-5.0.4
 * [new branch]              TestAsyncPropagator     -> origin/TestAsyncPropagator
 * [new branch]              TranslationFix          -> origin/TranslationFix
 * [new branch]              adr00029                -> origin/adr00029
 * [new branch]              adr0028                 -> origin/adr0028
 * [new branch]              backport-release-v7.1.3 -> origin/backport-release-v7.1.3
 * [new branch]              chore-bump-i18next-conv -> origin/chore-bump-i18next-conv
 * [new branch]              chore/GO-2025-3563      -> origin/chore/GO-2025-3563
 * [new branch]              chore/backport-role-names-fix -> origin/chore/backport-role-names-fix
 * [new branch]              chore/bump-babel-core   -> origin/chore/bump-babel-core
 * [new branch]              chore/bump-esbuild      -> origin/chore/bump-esbuild
 * [new branch]              chore/bump-idp-deps     -> origin/chore/bump-idp-deps
 * [new branch]              chore/bump-testing-library-react -> origin/chore/bump-testing-library-react
 * [new branch]              chore/bump-undici       -> origin/chore/bump-undici
 * [new branch]              chore/bump-vue-template-compiler -> origin/chore/bump-vue-template-compiler
 * [new branch]              chore/bump-web-11.1.3   -> origin/chore/bump-web-11.1.3
 * [new branch]              chore/bump-web-11.3.1   -> origin/chore/bump-web-11.3.1
 * [new branch]              chore/bump-web-in-stable-to-11.3.3 -> origin/chore/bump-web-in-stable-to-11.3.3
 * [new branch]              chore/bump-web-to-1.11.2 -> origin/chore/bump-web-to-1.11.2
 * [new branch]              chore/bump-web-to-11.2.0 -> origin/chore/bump-web-to-11.2.0
 * [new branch]              chore/bump-web-to-11.3.1 -> origin/chore/bump-web-to-11.3.1
 * [new branch]              chore/bump-web-to-11.3.2 -> origin/chore/bump-web-to-11.3.2
 * [new branch]              chore/bump-web-to-11.3.3 -> origin/chore/bump-web-to-11.3.3
 * [new branch]              chore/bump-web-to-11.3.4 -> origin/chore/bump-web-to-11.3.4
 * [new branch]              chore/bump-web-to-version-11.3.4 -> origin/chore/bump-web-to-version-11.3.4
 * [new branch]              chore/code-love-service-webdav -> origin/chore/code-love-service-webdav
 * [new branch]              chore/cs-1              -> origin/chore/cs-1
 * [new branch]              chore/cs-4              -> origin/chore/cs-4
 * [new branch]              chore/cs-5              -> origin/chore/cs-5
 * [new branch]              chore/idp-add-package-manager -> origin/chore/idp-add-package-manager
 * [new branch]              chore/port-quota-fixes  -> origin/chore/port-quota-fixes
 * [new branch]              chore/update-importer   -> origin/chore/update-importer
 * [new branch]              continuous-deploymemts  -> origin/continuous-deploymemts
 * [new branch]              create-public-link-with-enforce-password -> origin/create-public-link-with-enforce-password
 * [new branch]              crichter-update-tests   -> origin/crichter-update-tests
 * [new branch]              decomposedfs-indexes-cli -> origin/decomposedfs-indexes-cli
 * [new branch]              dedicated-upload-session-struct -> origin/dedicated-upload-session-struct
 * [new branch]              dependabot/go_modules/github.com/go-ldap/ldap/v3-3.4.11 -> origin/dependabot/go_modules/github.com/go-ldap/ldap/v3-3.4.11
 * [new branch]              dependabot/go_modules/github.com/golang-jwt/jwt/v5-5.2.2 -> origin/dependabot/go_modules/github.com/golang-jwt/jwt/v5-5.2.2
 * [new branch]              dependabot/go_modules/github.com/olekukonko/tablewriter-1.0.7 -> origin/dependabot/go_modules/github.com/olekukonko/tablewriter-1.0.7
 * [new branch]              dependabot/go_modules/github.com/onsi/ginkgo/v2-2.23.3 -> origin/dependabot/go_modules/github.com/onsi/ginkgo/v2-2.23.3
 * [new branch]              dependabot/npm_and_yarn/services/idp/eslint-plugin-import-2.31.0 -> origin/dependabot/npm_and_yarn/services/idp/eslint-plugin-import-2.31.0
 * [new branch]              dependabot/npm_and_yarn/services/idp/eslint-plugin-jest-28.12.0 -> origin/dependabot/npm_and_yarn/services/idp/eslint-plugin-jest-28.12.0
 * [new branch]              docs                    -> origin/docs
 * [new branch]              docs-adr-30-user-generated-client-keys -> origin/docs-adr-30-user-generated-client-keys
 * [new branch]              docs-article-helm-howto -> origin/docs-article-helm-howto
 * [new branch]              docs-education-3.1      -> origin/docs-education-3.1
 * [new branch]              docs-stable-2.0         -> origin/docs-stable-2.0
 * [new branch]              docs-stable-3.0         -> origin/docs-stable-3.0
 * [new branch]              docs-stable-4.0         -> origin/docs-stable-4.0
 * [new branch]              docs-stable-5.0         -> origin/docs-stable-5.0
 * [new branch]              docs-stable-7.0         -> origin/docs-stable-7.0
 * [new branch]              docs-stable-7.1         -> origin/docs-stable-7.1
 * [new branch]              drive-group-user-info   -> origin/drive-group-user-info
 * [new branch]              education-3.1           -> origin/education-3.1
 * [new branch]              enhance-ReadOnlyUserAttributes-desc -> origin/enhance-ReadOnlyUserAttributes-desc
 * [new branch]              excds/bugfix/Remove_unnecessary_url_decode -> origin/excds/bugfix/Remove_unnecessary_url_decode
 * [new branch]              experimental            -> origin/experimental
 * [new branch]              feat/add-space-editor-without-trashbin-role -> origin/feat/add-space-editor-without-trashbin-role
 * [new branch]              feat/caldav             -> origin/feat/caldav
 * [new branch]              feat/color-contrasts    -> origin/feat/color-contrasts
 * [new branch]              feat/delete-stale-branches -> origin/feat/delete-stale-branches
 * [new branch]              feat/docker-wait-for    -> origin/feat/docker-wait-for
 * [new branch]              feat/issue-10989        -> origin/feat/issue-10989
 * [new branch]              feat/issue-6307         -> origin/feat/issue-6307
 * [new branch]              feat/issue-7178         -> origin/feat/issue-7178
 * [new branch]              feat/list-shares        -> origin/feat/list-shares
 * [new branch]              feat/middleware-client-api-keys -> origin/feat/middleware-client-api-keys
 * [new branch]              feat/middleware-client-api-keys-2 -> origin/feat/middleware-client-api-keys-2
 * [new branch]              feat/sse_ephemeral_stream -> origin/feat/sse_ephemeral_stream
 * [new branch]              fix-check-env-var-annotations -> origin/fix-check-env-var-annotations
 * [new branch]              fix-env-var-deltas-WEB_OPTION_LOGIN_URL -> origin/fix-env-var-deltas-WEB_OPTION_LOGIN_URL
 * [new branch]              fix-gateway-nats-checks -> origin/fix-gateway-nats-checks
 * [new branch]              fix-idp-url-webfinger   -> origin/fix-idp-url-webfinger
 * [new branch]              fix-ocdav-spaceid       -> origin/fix-ocdav-spaceid
 * [new branch]              fix-ocis-docs-generation -> origin/fix-ocis-docs-generation
 * [new branch]              fix-revision-download   -> origin/fix-revision-download
 * [new branch]              fix-search-share-expose -> origin/fix-search-share-expose
 * [new branch]              fix-skip-user-info-option -> origin/fix-skip-user-info-option
 * [new branch]              fix-thumbnail-max-height-default -> origin/fix-thumbnail-max-height-default
 * [new branch]              fix-web-delegatedauthentication-type -> origin/fix-web-delegatedauthentication-type
 * [new branch]              fix/descr-show_email_in_results -> origin/fix/descr-show_email_in_results
 * [new branch]              fix/golint-tagalign     -> origin/fix/golint-tagalign
 * [new branch]              fix/idp-login-background -> origin/fix/idp-login-background
 * [new branch]              fix/issue-10815         -> origin/fix/issue-10815
 * [new branch]              fix/missing-invitation-in-permissions -> origin/fix/missing-invitation-in-permissions
 * [new branch]              fix/ocis-11314          -> origin/fix/ocis-11314
 * [new branch]              fix/ocis-11314-clientlog -> origin/fix/ocis-11314-clientlog
 * [new branch]              fix/ocis-1134-ocs       -> origin/fix/ocis-1134-ocs
 * [new branch]              fix/ocisdev-10          -> origin/fix/ocisdev-10
 * [new branch]              fix/web-ui-contrasts-control-elements -> origin/fix/web-ui-contrasts-control-elements
 * [new branch]              fix_server_data_race    -> origin/fix_server_data_race
 * [new branch]              flaky-change-quota      -> origin/flaky-change-quota
 * [new branch]              generate-application-id -> origin/generate-application-id
 * [new branch]              gherlint-ci-pipeline    -> origin/gherlint-ci-pipeline
 * [new branch]              graph-ocm-fixes         -> origin/graph-ocm-fixes
 * [new branch]              graph-select-expand     -> origin/graph-select-expand
 * [new branch]              heic-support            -> origin/heic-support
 * [new branch]              http2                   -> origin/http2
 * [new branch]              idp-use-theme-logo      -> origin/idp-use-theme-logo
 * [new branch]              ignore-address-for-kubernetes-registry -> origin/ignore-address-for-kubernetes-registry
 * [new branch]              image-processor         -> origin/image-processor
 * [new branch]              increase-default-max-concurrency -> origin/increase-default-max-concurrency
 * [new branch]              intermediate-failures   -> origin/intermediate-failures
 * [new branch]              introduce-enterprise-and-community-release -> origin/introduce-enterprise-and-community-release
 * [new branch]              invitations_call_graph_service_user_creation -> origin/invitations_call_graph_service_user_creation
 * [new branch]              log_improvements        -> origin/log_improvements
 * [new branch]              maintenance_example     -> origin/maintenance_example
 * [new branch]              manage-unfinished-uploads -> origin/manage-unfinished-uploads
 * [new branch]              migrate-storage-cli     -> origin/migrate-storage-cli
 * [new branch]              mk/issue-11042          -> origin/mk/issue-11042
 * [new branch]              mk/reva-bump            -> origin/mk/reva-bump
 * [new branch]              mk/wip-ocm-notif        -> origin/mk/wip-ocm-notif
 * [new branch]              mk/workflow-stale-branches -> origin/mk/workflow-stale-branches
 * [new branch]              nats-registry-fixes     -> origin/nats-registry-fixes
 * [new branch]              ocm-docker              -> origin/ocm-docker
 * [new branch]              ocm-list-in-sharedbyme  -> origin/ocm-list-in-sharedbyme
 * [new branch]              office_improvements     -> origin/office_improvements
 * [new branch]              owncloud-docker         -> origin/owncloud-docker
 * [new branch]              plain-output-demo       -> origin/plain-output-demo
 * [new branch]              poc-authz-firewall      -> origin/poc-authz-firewall
 * [new branch]              posix-storage           -> origin/posix-storage
 * [new branch]              proto-blah              -> origin/proto-blah
 * [new branch]              purge-expired-trashed-resource -> origin/purge-expired-trashed-resource
 * [new branch]              refactor-given-step-of-apiLocks-file-to-use-graph-for-share -> origin/refactor-given-step-of-apiLocks-file-to-use-graph-for-share
 * [new branch]              refactoring-all-graphAPI-featurefile-step -> origin/refactoring-all-graphAPI-featurefile-step
 * [new branch]              register-when-ready     -> origin/register-when-ready
 * [new branch]              release-7.1.0           -> origin/release-7.1.0
 * [new bran
8000
ch]              release-7.1.0-rc.1      -> origin/release-7.1.0-rc.1
 * [new branch]              release-7.1.1           -> origin/release-7.1.1
 * [new branch]              remove-privacy-and-imprint-url-from-config -> origin/remove-privacy-and-imprint-url-from-config
 * [new branch]              resource-info-owner-manager -> origin/resource-info-owner-manager
 * [new branch]              restart-resume-stale-uploads -> origin/restart-resume-stale-uploads
 * [new branch]              reva-selector-pool      -> origin/reva-selector-pool
 * [new branch]              run-test-on-kubernetes  -> origin/run-test-on-kubernetes
 * [new branch]              search-fix-panic        -> origin/search-fix-panic
 * [new branch]              search_scaling          -> origin/search_scaling
 * [new branch]              service_startup_replacement -> origin/service_startup_replacement
 * [new branch]              setup-app-provider-for-test -> origin/setup-app-provider-for-test
 * [new branch]              share-expiry-notification-tests-of-project-resource -> origin/share-expiry-notification-tests-of-project-resource
 * [new branch]              sse-notifications       -> origin/sse-notifications
 * [new branch]              stable-2.0              -> origin/stable-2.0
 * [new branch]              stable-3.0              -> origin/stable-3.0
 * [new branch]              stable-4.0              -> origin/stable-4.0
 * [new branch]              stable-5.0              -> origin/stable-5.0
 * [new branch]              stable-6.5              -> origin/stable-6.5
 * [new branch]              stable-7.0              -> origin/stable-7.0
 * [new branch]              stable-7.0-new          -> origin/stable-7.0-new
 * [new branch]              stable-7.1              -> origin/stable-7.1
 * [new branch]              startup_data_race       -> origin/startup_data_race
 * [new branch]              test-file-thumbnail     -> origin/test-file-thumbnail
 * [new branch]              test/disable-ocm-email-notifications -> origin/test/disable-ocm-email-notifications
 * [new branch]              test/enable-disable-share-sync -> origin/test/enable-disable-share-sync
 * [new branch]              test/notifications-for-user-light-role -> origin/test/notifications-for-user-light-role
 * [new branch]              test/test-for-flaky-share-expire-step -> origin/test/test-for-flaky-share-expire-step
 * [new branch]              transifex_test          -> origin/transifex_test
 * [new branch]              tus-adr                 -> origin/tus-adr
 * [new branch]              update-share-permission-check -> origin/update-share-permission-check
 * [new branch]              update-web-9.0.0        -> origin/update-web-9.0.0
 * [new branch]              upload-directly-to-dataprovider -> origin/upload-directly-to-dataprovider
 * [new branch]              use-token-created-via-imp -> origin/use-token-created-via-imp
 * [new branch]              use-tus-data-storage    -> origin/use-tus-data-storage
 * [new tag]                 accounts/v0.5.2         -> accounts/v0.5.2
 * [new tag]                 v1.0.0                  -> v1.0.0
 * [new tag]                 v1.0.0-beta1            -> v1.0.0-beta1
 * [new tag]                 v1.0.0-beta2            -> v1.0.0-beta2
 * [new tag]                 v1.0.0-beta3            -> v1.0.0-beta3
 * [new tag]                 v1.0.0-beta4            -> v1.0.0-beta4
 * [new tag]                 v1.0.0-beta5            -> v1.0.0-beta5
 * [new tag]                 v1.0.0-beta6            -> v1.0.0-beta6
 * [new tag]                 v1.0.0-beta7            -> v1.0.0-beta7
 * [new tag]                 v1.0.0-beta8            -> v1.0.0-beta8
 * [new tag]                 v1.0.0-beta9            -> v1.0.0-beta9
 * [new tag]                 v1.0.0-rc1              -> v1.0.0-rc1
 * [new tag]                 v1.0.0-rc2              -> v1.0.0-rc2
 * [new tag]                 v1.0.0-rc3              -> v1.0.0-rc3
 * [new tag]                 v1.0.0-rc4              -> v1.0.0-rc4
 * [new tag]                 v1.0.0-rc5              -> v1.0.0-rc5
 * [new tag]                 v1.0.0-rc6              -> v1.0.0-rc6
 * [new tag]                 v1.0.0-rc7              -> v1.0.0-rc7
 * [new tag]                 v1.0.0-rc8              -> v1.0.0-rc8
 * [new tag]                 v1.1.0-rc1              -> v1.1.0-rc1
 * [new tag]                 v1.10.0                 -> v1.10.0
 * [new tag]                 v1.10.0-rc1             -> v1.10.0-rc1
 * [new tag]                 v1.12.0                 -> v1.12.0
 * [new tag]                 v1.12.0-rc1             -> v1.12.0-rc1
 * [new tag]                 v1.13.0                 -> v1.13.0
 * [new tag]                 v1.13.0-rc1             -> v1.13.0-rc1
 * [new tag]                 v1.14.0                 -> v1.14.0
 * [new tag]                 v1.14.0-rc1             -> v1.14.0-rc1
 * [new tag]                 v1.14.0-rc2             -> v1.14.0-rc2
 * [new tag]                 v1.15.0                 -> v1.15.0
 * [new tag]                 v1.15.0-rc1             -> v1.15.0-rc1
 * [new tag]                 v1.16.0                 -> v1.16.0
 * [new tag]                 v1.16.0-rc1             -> v1.16.0-rc1
 * [new tag]                 v1.16.0-rc2             -> v1.16.0-rc2
 * [new tag]                 v1.18.0                 -> v1.18.0
 * [new tag]                 v1.18.0-rc1             -> v1.18.0-rc1
 * [new tag]                 v1.19.0                 -> v1.19.0
 * [new tag]                 v1.19.0-rc1             -> v1.19.0-rc1
 * [new tag]                 v1.19.1                 -> v1.19.1
 * [new tag]                 v1.2.0                  -> v1.2.0
 * [new tag]                 v1.2.0-rc1              -> v1.2.0-rc1
 * [new tag]                 v1.20.0                 -> v1.20.0
 * [new tag]                 v1.20.0-rc1             -> v1.20.0-rc1
 * [new tag]                 v1.3.0                  -> v1.3.0
 * [new tag]                 v1.3.0-rc1              -> v1.3.0-rc1
 * [new tag]                 v1.4.0                  -> v1.4.0
 * [new tag]                 v1.4.0-rc1              -> v1.4.0-rc1
 * [new tag]                 v1.5.0                  -> v1.5.0
 * [new tag]                 v1.5.0-rc1              -> v1.5.0-rc1
 * [new tag]                 v1.5.0-rc2              -> v1.5.0-rc2
 * [new tag]                 v1.6.0                  -> v1.6.0
 * [new tag]                 v1.6.0-rc1              -> v1.6.0-rc1
 * [new tag]                 v1.7.0                  -> v1.7.0
 * [new tag]                 v1.8.0                  -> v1.8.0
 * [new tag]                 v1.8.0-rc1              -> v1.8.0-rc1
 * [new tag]                 v1.9.0                  -> v1.9.0
 * [new tag]                 v1.9.0-rc1              -> v1.9.0-rc1
 * [new tag]                 v2.0.0                  -> v2.0.0
 * [new tag]                 v2.0.0-alpha1           -> v2.0.0-alpha1
 * [new tag]                 v2.0.0-alpha2           -> v2.0.0-alpha2
 * [new tag]                 v2.0.0-beta.4           -> v2.0.0-beta.4
 * [new tag]                 v2.0.0-beta.5           -> v2.0.0-beta.5
 * [new tag]                 v2.0.0-beta.6           -> v2.0.0-beta.6
 * [new tag]                 v2.0.0-beta.7           -> v2.0.0-beta.7
 * [new tag]                 v2.0.0-beta.8           -> v2.0.0-beta.8
 * [new tag]                 v2.0.0-beta1            -> v2.0.0-beta1
 * [new tag]                 v2.0.0-beta2            -> v2.0.0-beta2
 * [new tag]                 v2.0.0-rc.1             -> v2.0.0-rc.1
 * [new tag]                 v2.0.0-rc.2             -> v2.0.0-rc.2
 * [new tag]                 v3.0.0                  -> v3.0.0
 * [new tag]                 v3.0.0-alpha.1          -> v3.0.0-alpha.1
 * [new tag]                 v3.0.0-alpha.2          -> v3.0.0-alpha.2
 * [new tag]                 v3.0.0-rc.1             -> v3.0.0-rc.1
 * [new tag]                 v3.0.0-rc.2             -> v3.0.0-rc.2
 * [new tag]                 v3.0.0-rc.3             -> v3.0.0-rc.3
 * [new tag]                 v3.0.0-rc.4             -> v3.0.0-rc.4
 * [new tag]                 v3.0.0-rc.5             -> v3.0.0-rc.5
 * [new tag]                 v3.1.0-beta.1           -> v3.1.0-beta.1
 * [new tag]                 v3.1.0-next.1           -> v3.1.0-next.1
 * [new tag]                 v3.1.0-next.2           -> v3.1.0-next.2
 * [new tag]                 v3.1.0-rc.1             -> v3.1.0-rc.1
 * [new tag]                 v4.0.0                  -> v4.0.0
 * [new tag]                 v4.0.0-rc.1             -> v4.0.0-rc.1
 * [new tag]                 v4.0.1                  -> v4.0.1
 * [new tag]                 v4.0.2                  -> v4.0.2
 * [new tag]                 v4.0.2-rc.1             -> v4.0.2-rc.1
 * [new tag]                 v4.0.3                  -> v4.0.3
 * [new tag]                 v4.0.4                  -> v4.0.4
 * [new tag]                 v4.0.5                  -> v4.0.5
 * [new tag]                 v4.0.6                  -> v4.0.6
 * [new tag]                 v4.0.7                  -> v4.0.7
 * [new tag]                 v5.0.0                  -> v5.0.0
 * [new tag]                 v5.0.0-alpha.1          -> v5.0.0-alpha.1
 * [new tag]                 v5.0.0-alpha.2          -> v5.0.0-alpha.2
 * [new tag]                 v5.0.0-alpha.3          -> v5.0.0-alpha.3
 * [new tag]                 v5.0.0-alpha.4          -> v5.0.0-alpha.4
 * [new tag]                 v5.0.0-alpha.5          -> v5.0.0-alpha.5
 * [new tag]                 v5.0.0-alpha.6          -> v5.0.0-alpha.6
 * [new tag]                 v5.0.0-beta.1           -> v5.0.0-beta.1
 * [new tag]                 v5.0.0-beta.2           -> v5.0.0-beta.2
 * [new tag]                 v5.0.0-rc.1             -> v5.0.0-rc.1
 * [new tag]                 v5.0.0-rc.2             -> v5.0.0-rc.2
 * [new tag]                 v5.0.0-rc.3             -> v5.0.0-rc.3
 * [new tag]                 v5.0.0-rc.4             -> v5.0.0-rc.4
 * [new tag]                 v5.0.0-rc.5             -> v5.0.0-rc.5
 * [new tag]                 v5.0.0-rc.6             -> v5.0.0-rc.6
 * [new tag]                 v5.0.1                  -> v5.0.1
 * [new tag]                 v5.0.2                  -> v5.0.2
 * [new tag]                 v5.0.2-rc.1             -> v5.0.2-rc.1
 * [new tag]                 v5.0.3                  -> v5.0.3
 * [new tag]                 v6.0.0                  -> v6.0.0
 * [new tag]                 v6.0.0-alpha.1          -> v6.0.0-alpha.1
 * [new tag]                 v6.0.0-alpha.2          -> v6.0.0-alpha.2
 * [new tag]                 v6.1.0                  -> v6.1.0
 * [new tag]                 v6.1.0-alpha.1          -> v6.1.0-alpha.1
 * [new tag]                 v6.1.0-alpha.2          -> v6.1.0-alpha.2
 * [new tag]                 v6.2.0                  -> v6.2.0
 * [new tag]                 v6.2.0-rc.1             -> v6.2.0-rc.1
 * [new tag]                 v6.3.0                  -> v6.3.0
 * [new tag]                 v6.4.0                  -> v6.4.0
 * [new tag]                 v6.5.0                  -> v6.5.0
 * [new tag]                 v6.5.0-rc.1             -> v6.5.0-rc.1
 * [new tag]                 v6.6.0                  -> v6.6.0
 * [new tag]                 v6.6.0-alpha.1          -> v6.6.0-alpha.1
 * [new tag]                 v6.6.0-rc.1             -> v6.6.0-rc.1
 * [new tag]                 v6.6.1                  -> v6.6.1
 * [new tag]                 v6.6.1-rc.1             -> v6.6.1-rc.1
 * [new tag]                 v6.6.1-rc.2             -> v6.6.1-rc.2
 * [new tag]                 v7.0.0                  -> v7.0.0
 * [new tag]                 v7.0.0-rc.1             -> v7.0.0-rc.1
 * [new tag]                 v7.0.0-rc.2             -> v7.0.0-rc.2
 * [new tag]                 v7.0.0-rc.3             -> v7.0.0-rc.3
 * [new tag]                 v7.0.0-rc.4             -> v7.0.0-rc.4
 * [new tag]                 v7.0.0-rc.5             -> v7.0.0-rc.5
 * [new tag]                 v7.1.0                  -> v7.1.0
 * [new tag]                 v7.1.0-rc.1             -> v7.1.0-rc.1
 * [new tag]                 v7.1.0-rc.2             -> v7.1.0-rc.2
 * [new tag]                 v7.1.0-rc.3             -> v7.1.0-rc.3
 * [new tag]                 v7.1.0-rc.4             -> v7.1.0-rc.4
 * [new tag]                 v7.1.0-rc.5             -> v7.1.0-rc.5
 * [new tag]                 v7.1.1                  -> v7.1.1
 * [new tag]                 v3.1.0-next.3           -> v3.1.0-next.3
 * [new tag]                 v3.1.0-next.4           -> v3.1.0-next.4
 * [new tag]                 v5.0.4                  -> v5.0.4
 * [new tag]                 v5.0.4-rc.1             -> v5.0.4-rc.1
 * [new tag]                 v5.0.5                  -> v5.0.5
 * [new tag]                 v5.0.6                  -> v5.0.6
 * [new tag]                 v5.0.7                  -> v5.0.7
 * [new tag]                 v5.0.7-rc.1             -> v5.0.7-rc.1
 * [new tag]                 v5.0.8                  -> v5.0.8
 * [new tag]                 v5.0.9                  -> v5.0.9
 * [new tag]                 v6.5.1                  -> v6.5.1
 * [new tag]                 v7.0.1                  -> v7.0.1
 * [new tag]                 v7.1.0-rc.6             -> v7.1.0-rc.6
 * [new tag]                 v7.1.2                  -> v7.1.2
 * [new tag]                 v7.1.3                  -> v7.1.3

Repository: owncloud/ocis

Configuration:
  Today: Wed Jun  4 18:26:48 UTC 2025$
  Days before stale: 90$
  Max branches per run: 5$
  Dry run: true$

Branch Filtering:
  IGNORE_BRANCHES_REGEX: ^(main|master|stable|release|docs$|docs-stable)$
  Ignored branches:$
docs
docs-stable-2.0
docs-stable-3.0
docs-stable-4.0
docs-stable-5.0
docs-stable-7.0
docs-stable-7.1
maintenance_example
master
release-7.1.0
release-7.1.0-rc.1
release-7.1.1
stable-2.0
stable-3.0
stable-4.0
stable-5.0
stable-6.5
stable-7.0
stable-7.0-new
stable-7.1

Stale branches by age:
  993  days  graph-select-expand  2022-09-14T19:52:22Z  by Jörn Friedrich Dreyer
  973  days  FixDelayProcessingFunctionality  2022-10-05T14:09:57+02:00  by jkoberg
  945  days  experimental  2022-11-02T15:52:44+01:00  by Willy Kloucek
  926  days  fix-revision-download  2022-11-21T12:52:22Z  by Jörn Friedrich Dreyer
  881  days  resource-info-owner-manager  2023-01-05T14:45:40+05:45  by Phil Davis
  880  days  drive-group-user-info  2023-01-05T20:24:30+01:00  by Florian Schade
  873  days  generate-application-id  2023-01-13T16:04:30Z  by Jörn Friedrich Dreyer
  856  days  poc-authz-firewall  2023-01-30T09:41:55+01:00  by Florian Schade
  835  days  plain-output-demo  2023-02-20T14:14:40+05:45  by Phil Davis
  818  days  invitations_call_graph_service_user_creation  2023-03-09T11:02:43+01:00  by Daniel Swärd
  810  days  http2  2023-03-17T11:23:45+01:00  by Jörn Friedrich Dreyer
  804  days  migrate-storage-cli  2023-03-22T22:07:16+01:00  by Jörn Friedrich Dreyer
  793  days  sse-notifications  2023-04-03T16:18:32+02:00  by jkoberg
  784  days  excds/bugfix/Remove_unnecessary_url_decode  2023-04-12T11:25:53+02:00  by Daniel Swärd
  728  days  create-public-link-with-enforce-password  2023-06-07T16:27:56+05:45  by prajwol
  727  days  reva-selector-pool  2023-06-08T00:10:34+02:00  by Florian Schade
  714  days  introduce-enterprise-and-community-release  2023-06-21T17:11:51+02:00  by Tobias Baader
  709  days  tus-adr  2023-06-26T09:22:19+02:00  by Michael Barz
  708  days  intermediate-failures  2023-06-27T12:44:36+05:45  by prajwol
  691  days  upload-directly-to-dataprovider  2023-07-14T13:14:37+02:00  by Jörn Friedrich Dreyer
  686  days  docs-education-3.1  2023-07-19T04:53:13Z  by Phil Davis
  686  days  education-3.1  2023-07-19T10:36:04+05:45  by Phil Davis
  663  days  enhance-ReadOnlyUserAttributes-desc  2023-08-11T14:01:23+02:00  by Jan
  643  days  fix-search-share-expose  2023-08-31T00:41:40Z  by jkoberg
  638  days  fix-skip-user-info-option  2023-09-05T09:48:33+02:00  by Jörn Friedrich Dreyer
  622  days  search-fix-panic  2023-09-21T16:49:21+02:00  by Jörn Friedrich Dreyer
  614  days  refactoring-all-graphAPI-featurefile-step  2023-09-29T14:07:22+05:45  by Sabin
  609  days  image-processor  2023-10-04T13:11:32+02:00  by Florian Schade
  600  days  fix-idp-url-webfinger  2023-10-13T09:53:42+02:00  by Michael Barz
  551  days  feat/sse_ephemeral_stream  2023-12-01T15:08:33+01:00  by Juan Pablo Villafáñez
  547  days  use-tus-data-storage  2023-12-05T13:16:52+01:00  by Jörn Friedrich Dreyer
  546  days  posix-storage  2023-12-06T08:03:57+01:00  by Klaas Freitag
  540  days  remove-privacy-and-imprint-url-from-config  2023-12-12T13:23:25+01:00  by Jan Ackermann
  539  days  docs-article-helm-howto  2023-12-13T14:59:51+01:00  by mfeilner
  538  days  fix-ocdav-spaceid  2023-12-14T10:54:29+01:00  by Jörn Friedrich Dreyer
  537  days  update-share-permission-check  2023-12-15T14:52:11+01:00  by Michael Barz
  534  days  dedicated-upload-session-struct  2023-12-18T14:17:29+01:00  by Jörn Friedrich Dreyer
  488  days  decomposedfs-indexes-cli  2024-02-02T17:40:36+01:00  by Jörn Friedrich Dreyer
  484  days  crichter-update-tests  2024-02-06T10:54:38+01:00  by Christian Richter
  471  days  fix-env-var-deltas-WEB_OPTION_LOGIN_URL  2024-02-19T18:13:50+05:45  by Phil Davis
  469  days  fix-check-env-var-annotations  2024-02-21T16:56:33+05:45  by Phil Davis
  468  days  adr0028  2024-02-21T21:57:06+01:00  by Jörn Friedrich Dreyer
  460  days  feat/middleware-client-api-keys  2024-03-01T17:58:12+01:00  by Thomas Müller
  460  days  feat/middleware-client-api-keys-2  2024-03-01T17:58:12+01:00  by Thomas Müller
  453  days  feat/caldav  2024-03-08T12:30:19+01:00  by Thomas Müller
  414  days  docs-adr-30-user-generated-client-keys  2024-04-15T21:47:16+02:00  by Thomas Müller
  404  days  feat/docker-wait-for  2024-04-26T10:47:49+02:00  by Thomas Müller
  401  days  chore/code-love-service-webdav  2024-04-29T08:48:33+02:00  by Thomas Müller
  398  days  refactor-given-step-of-apiLocks-file-to-use-graph-for-share  2024-05-02T12:21:35+05:45  by Sawjan Gurung
  392  days  fix/golint-tagalign  2024-05-08T15:36:55+02:00  by Thomas Müller
  371  days  Renamed-Page-and-added-5.0.5-and-5.0.4  2024-05-29T15:10:07+02:00  by Tobias Baader
  364  days  graph-ocm-fixes  2024-06-05T10:10:26+02:00  by Christian Richter
  357  days  fix-thumbnail-max-height-default  2024-06-12T10:51:26+02:00  by Benedikt Kulmann
  352  days  update-web-9.0.0  2024-06-17T16:04:51+02:00  by Benedikt Kulmann
  342  days  adr00029  2024-06-27T14:26:35+02:00  by Jörn Friedrich Dreyer
  341  days  continuous-deploymemts  2024-06-28T17:33:00+02:00  by Michael Barz
  341  days  ignore-address-for-kubernetes-registry  2024-06-28T10:54:00+02:00  by Jörn Friedrich Dreyer
  338  days  gherlint-ci-pipeline  2024-07-01T14:53:53+05:45  by prashant-gurung899
  320  days  fix/missing-invitation-in-permissions  2024-07-19T10:44:57+02:00  by Jannik Stehle
  317  days  fix/descr-show_email_in_results  2024-07-22T14:08:39+02:00  by Juergen Weigert
  314  days  fix-web-delegatedauthentication-type  2024-07-25T16:42:58+02:00  by Jörn Friedrich Dreyer
  302  days  nats-registry-fixes  2024-08-06T13:04:45+02:00  by Jörn Friedrich Dreyer
  301  days  feat/color-contrasts  2024-08-07T11:29:48+02:00  by Jannik Stehle
  281  days  ocm-list-in-sharedbyme  2024-08-27T12:39:37+02:00  by Jörn Friedrich Dreyer
  278  days  chore/idp-add-package-manager  2024-08-30T12:52:10+02:00  by Jannik Stehle
  267  days  owncloud-docker  2024-09-10T14:45:11+02:00  by nicholas-wilson-au
  260  days  fix/web-ui-contrasts-control-elements  2024-09-17T14:27:29+02:00  by Jannik Stehle
  238  days  idp-use-theme-logo  2024-10-09T15:02:21+02:00  by Jan Ackermann
  233  days  fix-ocis-docs-generation  2024-10-14T13:11:01+05:45  by Sabin
  230  days  proto-blah  2024-10-17T12:39:39+02:00  by Michael Barz
  229  days  heic-support  2024-10-17T21:36:05+02:00  by Michael Barz
  209  days  fix-gateway-nats-checks  2024-11-07T12:22:06+01:00  by Jörn Friedrich Dreyer
  209  days  register-when-ready  2024-11-07T10:34:58+01:00  by Jörn Friedrich Dreyer
  198  days  increase-default-max-concurrency  2024-11-18T16:06:08+01:00  by Jörn Friedrich Dreyer
  190  days  log_improvements  2024-11-26T13:37:50+01:00  by Juan Pablo Villafáñez
  189  days  TestAsyncPropagator  2024-11-27T13:41:49+01:00  by Michael Barz
  159  days  flaky-change-quota  2024-12-27T11:53:08+05:45  by Prajwol Amatya
  154  days  test-file-thumbnail  2025-01-01T15:58:47+05:45  by Niraj Acharya
  145  days  BackportMore71Features  2025-01-10T10:42:00+01:00  by Lukas Hirt
  139  days  chore/update-importer  2025-01-16T11:17:20+01:00  by Dominik Schmidt
  128  days  chore/bump-web-to-1.11.2  2025-01-27T11:31:55+01:00  by Lukas Hirt
  121  days  ocm-docker  2025-02-03T14:38:48+01:00  by jkoberg
  120  days  setup-app-provider-for-test  2025-02-04T10:44:46+05:45  by Sabin
  118  days  chore/bump-web-11.1.3  2025-02-06T16:32:03+01:00  by Lukas Hirt
  113  days  share-expiry-notification-tests-of-project-resource  2025-02-11T10:52:43+05:45  by amrita-shrestha
  106  days  test/disable-ocm-email-notifications  2025-02-18T12:22:57+05:45  by prashant-gurung899
  100  days  chore/bump-web-to-11.2.0  2025-02-24T12:02:09+01:00  by Lukas Hirt

Deleting oldest branches (max 5):
  graph-select-expand (993 days old)  by Jörn Friedrich Dreyer
  FixDelayProcessingFunctionality (973 days old)  by jkoberg
  experimental (945 days old)  by Willy Kloucek
  fix-revision-download (926 days old)  by Jörn Friedrich Dreyer
  resource-info-owner-manager (881 days old)  by Phil Davis

Summary:
  DRY_RUN: No branches deleted$
  Branches before: 165$
  Branches after:  165$
  Deleted:        0$

@mklos-kw mklos-kw force-pushed the feat/delete-stale-branches branch 4 times, most recently from 4aeaf9c to 63b2f7d Compare June 4, 2025 19:15
"name": "delete stale branches",
"image": OC_CI_ALPINE,
"commands": [
"./scripts/delete-stale-branches.sh",
Copy link
Member Author
@mklos-kw mklos-kw Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal is to run this script in nighly pipeline.
With this command it will be run as DRY_RUN by default.

I suggest to merge as DRY_RUN and confirm the branch filtering before disabling DRY_RUN:

Branch Filtering:
  IGNORE_BRANCHES_REGEX: ^(main$|master$|stable-|release-|docs$|docs-stable-)$
  Ignored branches:$
docs
docs-stable-2.0
docs-stable-3.0
docs-stable-4.0
docs-stable-5.0
docs-stable-7.0
docs-stable-7.1
master
release-7.1.0
release-7.1.0-rc.1
release-7.1.1
stable-2.0
stable-3.0
stable-4.0
stable-5.0
stable-6.5
stable-7.0
stable-7.0-new
stable-7.1

@mklos-kw mklos-kw force-pushed the feat/delete-stale-branches branch from 63b2f7d to 48a769b Compare June 4, 2025 19:22
Copy link
sonarqubecloud bot commented Jun 4, 2025

@@ -427,7 +427,8 @@ def main(ctx):
build_release_helpers = \
changelog() + \
docs() + \
licenseCheck(ctx)
licenseCheck(ctx) + \
deleteStaleBranches(ctx)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct pipeline to add to?

],
"trigger": {
"ref": [
"refs/heads/master",
8000 Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like nighly trigger on master. Won't run on each PR commit

@mmattel
Copy link
Contributor
mmattel commented Jun 5, 2025

@mklos-kw this is a VERY COOL script!
@mzner @LukasHirt we should consider using this script also in the web repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0