From dbb196a1e16f3af0c4345c88d5903b5b4a49d546 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Wed, 15 May 2024 20:31:17 -0700 Subject: [PATCH] Deprecate repository pt. 2 Signed-off-by: Patrick Linnane --- .editorconfig | 9 - .gitattributes | 1 - .github/ISSUE_TEMPLATE/01_bug_report.yml | 48 ---- .github/ISSUE_TEMPLATE/config.yml | 15 -- .github/PULL_REQUEST_TEMPLATE.md | 20 -- .github/autobump.txt | 24 -- .github/config.yml | 6 - .github/dependabot.yml | 10 - .github/workflows/autobump.yml | 45 ---- .github/workflows/automerge.yml | 35 --- .github/workflows/cache.yml | 48 ---- .github/workflows/ci.yml | 267 ----------------------- .github/workflows/dispatch-command.yml | 22 -- .github/workflows/google-fonts.yml | 64 ------ .github/workflows/lock-threads.yml | 36 --- .github/workflows/rebase.yml | 38 ---- .github/workflows/rerun-workflow.yml | 45 ---- .github/workflows/stale-issues.yml | 70 ------ .github/workflows/triage.yml | 81 ------- .gitignore | 13 -- 20 files changed, 897 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .gitattributes delete mode 100644 .github/ISSUE_TEMPLATE/01_bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/autobump.txt delete mode 100644 .github/config.yml delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/autobump.yml delete mode 100644 .github/workflows/automerge.yml delete mode 100644 .github/workflows/cache.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/dispatch-command.yml delete mode 100644 .github/workflows/google-fonts.yml delete mode 100644 .github/workflows/lock-threads.yml delete mode 100644 .github/workflows/rebase.yml delete mode 100644 .github/workflows/rerun-workflow.yml delete mode 100644 .github/workflows/stale-issues.yml delete mode 100644 .github/workflows/triage.yml delete mode 100644 .gitignore diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index c6c8b3621938..000000000000 --- a/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 2 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 176a458f94e0..000000000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/.github/ISSUE_TEMPLATE/01_bug_report.yml b/.github/ISSUE_TEMPLATE/01_bug_report.yml deleted file mode 100644 index 1a0ecc13d4b2..000000000000 --- a/.github/ISSUE_TEMPLATE/01_bug_report.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Reproducible Bug Report -description: If you’re sure it’s reproducible and not just your machine, submit an issue so we can investigate -body: - - type: checkboxes - attributes: - label: Verification - description: Please verify that you’ve followed these steps - options: - - label: I understand that [if I ignore these instructions, my issue may be closed without review](https://github.com/Homebrew/homebrew-cask/blob/master/doc/faq/closing_issues_without_review.md). - required: true - - label: I have retried my command with `--force`. - required: false - - label: I ran `brew update-reset && brew update` and retried my command. - required: false - - label: I ran `brew doctor`, fixed as many issues as possible and retried my command. - required: false - - label: I have checked the instructions for [reporting bugs](https://github.com/Homebrew/homebrew-cask#reporting-bugs). - required: true - - label: I made doubly sure this is not a [checksum does not match / SHA256 mismatch](https://docs.brew.sh/Common-Issues#cask---checksum-does-not-match) error (do not open an issue before trying to open a PR to fix first). - required: true - - type: textarea - attributes: - label: Description of issue - validations: - required: true - - type: input - attributes: - label: Command that failed - validations: - required: true - - type: textarea - attributes: - label: Output of command with `--verbose --debug` - render: shell - validations: - required: true - - type: textarea - attributes: - label: Output of `brew doctor` and `brew config` - render: shell - validations: - required: true - - type: textarea - attributes: - label: Output of `brew tap` - render: shell - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index e89a8ac4b995..000000000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,15 +0,0 @@ -blank_issues_enabled: false - -contact_links: - - name: Get help in GitHub Discussions - url: https://github.com/orgs/Homebrew/discussions - about: Have a question? Not sure if your issue affects everyone reproducibly? The quickest way to get help is on Homebrew's GitHub Discussions! - - name: New issue on Homebrew/brew - url: https://github.com/Homebrew/brew/issues/new/choose - about: Having a `brew` problem that's not from a `brew install` or `brew upgrade` of a single cask? Report it to Homebrew/brew (the Homebrew package manager) - - name: New issue on Homebrew/homebrew-core - url: https://github.com/Homebrew/homebrew-core/issues/new/choose - about: Having a Homebrew formula problem? Report it to Homebrew/homebrew-core (the formula tap/repository) - - name: Ideas for a new feature - url: https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request - about: If you have an idea for a new feature, here's how to add it to Homebrew diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index bfab29d92c3b..000000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,20 +0,0 @@ -**Important:** *Do not tick a checkbox if you haven’t performed its action.* Honesty is indispensable for a smooth review process. - -_In the following questions `` is the token of the cask you're submitting._ - -After making any changes to a cask, existing or new, verify: - -- [ ] The submission is for [a stable version](https://docs.brew.sh/Acceptable-Casks#stable-versions) or [documented exception](https://docs.brew.sh/Acceptable-Casks#but-there-is-no-stable-version). -- [ ] `brew audit --cask --online ` is error-free. -- [ ] `brew style --fix ` reports no offenses. - -Additionally, **if adding a new cask**: - -- [ ] Named the cask according to the [token reference](https://docs.brew.sh/Cask-Cookbook#token-reference). -- [ ] Checked the cask was not [already refused](https://github.com/Homebrew/homebrew-cask-fonts/search?q=is%3Aclosed&type=pullrequests). -- [ ] Checked the cask is submitted to [the correct repo](https://docs.brew.sh/Acceptable-Casks#finding-a-home-for-your-cask). -- [ ] `brew audit --cask --new ` worked successfully. -- [ ] `HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask ` worked successfully. -- [ ] `brew uninstall --cask ` worked successfully. - ---- diff --git a/.github/autobump.txt b/.github/autobump.txt deleted file mode 100644 index 5cce591a5bf5..000000000000 --- a/.github/autobump.txt +++ /dev/null @@ -1,24 +0,0 @@ -font-iosevka -font-iosevka-aile -font-iosevka-curly-slab -font-iosevka-curly -font-iosevka-etoile -font-iosevka-slab -font-iosevka-ss01 -font-iosevka-ss02 -font-iosevka-ss03 -font-iosevka-ss04 -font-iosevka-ss05 -font-iosevka-ss06 -font-iosevka-ss07 -font-iosevka-ss08 -font-iosevka-ss09 -font-iosevka-ss10 -font-iosevka-ss11 -font-iosevka-ss12 -font-iosevka-ss13 -font-iosevka-ss14 -font-iosevka-ss15 -font-iosevka-ss16 -font-iosevka-ss17 -font-iosevka-ss18 \ No newline at end of file diff --git a/.github/config.yml b/.github/config.yml deleted file mode 100644 index 9589d5005976..000000000000 --- a/.github/config.yml +++ /dev/null @@ -1,6 +0,0 @@ -requestInfoUserstoExclude: - - bevanjkay - - miccal - - ran-dall - - reitermarkus - - vitorgalvao diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 76008e1a56ee..000000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,10 +0,0 @@ -version: 2 -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: weekly - # The actions in triage-issues.yml are updated in the Homebrew/.github repo - ignore: - - dependency-name: actions/stale - - dependency-name: dessant/lock-threads diff --git a/.github/workflows/autobump.yml b/.github/workflows/autobump.yml deleted file mode 100644 index a32c9ac492fe..000000000000 --- a/.github/workflows/autobump.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Bump casks on schedule or request - -on: - workflow_dispatch: - inputs: - casks: - description: Custom list of casks to livecheck and bump if outdated - required: false - schedule: - # Every 6 hours 23 minutes past the hour - - cron: "23 */6 * * *" - -permissions: - contents: read - -jobs: - autobump: - if: github.repository == 'Homebrew/homebrew-cask-fonts' - runs-on: macos-latest - steps: - - name: Set up Homebrew - id: set-up-homebrew - uses: Homebrew/actions/setup-homebrew@master - with: - core: false - cask: true - test-bot: false - - - name: Configure Git user - uses: Homebrew/actions/git-user-config@master - with: - username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'BrewTestBot' }} - - - name: Get list of autobump casks - id: autobump - run: echo "autobump_list=$(xargs < "$(brew --repo homebrew/cask-fonts)"/.github/autobump.txt)" >> "$GITHUB_OUTPUT" - - - name: Bump casks - uses: Homebrew/actions/bump-packages@master - continue-on-error: true - with: - token: ${{ secrets.HOMEBREW_CASK_SYNC_TOKEN }} - casks: ${{ github.event.inputs.casks || steps.autobump.outputs.autobump_list }} - env: - HOMEBREW_TEST_BOT_AUTOBUMP: 1 diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml deleted file mode 100644 index 6658e3135a18..000000000000 --- a/.github/workflows/automerge.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Enable auto-merge - -on: - schedule: - - cron: 0 * * * * - pull_request_target: - types: - - opened - - synchronize - - reopened - - edited - - labeled - - unlabeled - - ready_for_review - -permissions: {} - -jobs: - automerge: - if: startsWith(github.repository, 'Homebrew/') - runs-on: ubuntu-latest - steps: - - name: Enable auto-merge - uses: reitermarkus/automerge@634d0a4b51134c163eee182ac9aa79133eb33e8d - with: - token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} - merge-method: merge - squash-commit-title: ${pull_request.title} (#${pull_request.number}) - squash-commit-message: '\n' - do-not-merge-labels: automerge-skip,do not merge - required-labels: bump-cask-pr - pull-request: ${{ github.event.inputs.pull-request }} - pull-request-author-associations: MEMBER,OWNER - review: ${{ github.event.inputs.review }} - review-author-associations: MEMBER,OWNER diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml deleted file mode 100644 index 680f9849abd9..000000000000 --- a/.github/workflows/cache.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Cache - -on: - push: - paths: - - .github/workflows/cache.yml - schedule: - - cron: "0 */6 * * *" # every 6 hours - -concurrency: - group: cache - cancel-in-progress: true - -permissions: - contents: read - -jobs: - update: - if: github.repository_owner == 'Homebrew' - strategy: - matrix: - runner: - - macos-11 - - macos-12 - - macos-13 - - macos-14 - - ubuntu-latest - runs-on: ${{ matrix.runner }} - steps: - - name: Set up Homebrew - id: set-up-homebrew - uses: Homebrew/actions/setup-homebrew@master - with: - core: false - cask: false - test-bot: false - - - name: Cache Homebrew Gems - id: cache - uses: actions/cache@v4 - with: - path: ${{ steps.set-up-homebrew.outputs.gems-path }} - key: ${{ matrix.runner }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} - restore-keys: ${{ matrix.runner }}-rubygems- - - - name: Install Homebrew Gems - id: gems - run: brew install-bundler-gems --groups=audit,bootsnap,style diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index c4b520aaee1f..000000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,267 +0,0 @@ -name: CI - -on: - pull_request: - workflow_dispatch: - inputs: - casks: - description: List of casks to audit (comma-separated) - required: true - skip_install: - description: Skip installation of casks - required: false - default: true - type: boolean - new_cask: - description: Apply new cask audit - required: false - default: false - type: boolean - -env: - HOMEBREW_DEVELOPER: 1 - HOMEBREW_NO_AUTO_UPDATE: 1 - HOMEBREW_NO_INSTALL_FROM_API: 1 - HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }} - -concurrency: - group: "${{ github.ref }}" - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -permissions: - contents: read - -jobs: - generate-matrix: - outputs: - matrix: ${{ steps.generate-matrix.outputs.matrix }} - runs-on: macos-latest - steps: - - name: Set up Homebrew - id: set-up-homebrew - uses: Homebrew/actions/setup-homebrew@master - with: - core: false - cask: true - test-bot: false - - - name: Check out Pull Request - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - - name: Generate CI matrix - id: generate-matrix - run: | - if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]] - then - brew ruby -- "$(brew --repository homebrew/cask)/cmd/lib/generate-matrix.rb" ${{ github.event.inputs.skip_install && '--skip-install' }} ${{ github.event.inputs.new_cask && '--new' }} --casks=${{ github.event.inputs.casks }} - else - brew ruby -- "$(brew --repository homebrew/cask)/cmd/lib/generate-matrix.rb" --url="${{ github.event.pull_request.url }}" - fi - - test: - name: ${{ matrix.name }} - needs: generate-matrix - runs-on: ${{ matrix.runner }} - strategy: - fail-fast: false - matrix: - include: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} - steps: - - name: Set up Homebrew - id: set-up-homebrew - uses: Homebrew/actions/setup-homebrew@master - with: - core: false - cask: true - test-bot: true - - - name: Enable debug mode - run: | - echo 'HOMEBREW_DEBUG=1' >> "${GITHUB_ENV}" - echo 'HOMEBREW_VERBOSE=1' >> "${GITHUB_ENV}" - if: runner.debug - - - name: Check out Pull Request - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - - name: Clean up CI machine - run: | - if [ "${{ matrix.runner }}" == 'macos-12' ] && ! brew uninstall --cask julia && ! rm -r /Applications/Julia-*.app; then - echo '::warning::Removing Julia is no longer necessary.' - fi - - if ! rm /usr/local/bin/dotnet; then - echo '::warning::Removing `dotnet` symlink is no longer necessary.' - fi - - if ! rm /usr/local/bin/pod; then - echo '::warning::Removing `cocoapods` symlink is no longer necessary.' - fi - - if ! rm /usr/local/bin/chromedriver; then - echo '::warning::Removing `chromedriver` symlink is no longer necessary.' - fi - - brew unlink python && brew link --overwrite python - if: runner.os == 'macOS' - - - name: Cache Homebrew Gems - id: cache - uses: actions/cache@v4 - with: - path: ${{ steps.set-up-homebrew.outputs.gems-path }} - key: ${{ matrix.runner }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} - restore-keys: ${{ matrix.runner }}-rubygems- - - - name: Run brew test-bot --only-tap-syntax - id: tap-syntax - run: brew test-bot --tap '${{ matrix.tap }}' --only-tap-syntax - if: always() && !matrix.cask - - - name: Run brew fetch --cask ${{ matrix.cask.token }} - id: fetch - run: | - brew fetch --cask --retry --force ${{ join(matrix.fetch_args, ' ') }} '${{ matrix.cask.path }}' - timeout-minutes: 30 - if: > - always() && - contains(fromJSON('["success", "skipped"]'), steps.tap-syntax.outcome) && - matrix.cask - - - name: Run brew audit --cask${{ (matrix.cask && ' ') || ' --tap ' }}${{ matrix.cask.token || matrix.tap }} - id: audit - run: | - brew audit --cask ${{ join(matrix.audit_args, ' ') }}${{ (matrix.cask && ' ') || ' --tap ' }}'${{ matrix.cask.token || matrix.tap }}' - timeout-minutes: 30 - if: > - always() && - contains(fromJSON('["success", "skipped"]'), steps.tap-syntax.outcome) && - (!matrix.cask || steps.fetch.outcome == 'success') && - !matrix.skip_audit - - - name: Gather cask information - id: info - run: | - brew ruby <<'EOF' - require 'cask/cask_loader' - require 'cask/installer' - - cask = Cask::CaskLoader.load('${{ matrix.cask.path }}') - - was_installed = cask.installed? - manual_installer = cask.artifacts.any? { |artifact| - artifact.is_a?(Cask::Artifact::Installer::ManualInstaller) - } - - macos_requirement_satisfied = if macos_requirement = cask.depends_on.macos - macos_requirement.satisfied? - else - true - end - - cask_conflicts = cask.conflicts_with&.dig(:cask).to_a.select { |c| Cask::CaskLoader.load(c).installed? } - formula_conflicts = cask.conflicts_with&.dig(:formula).to_a.select { |f| Formula[f].any_version_installed? } - - installer = Cask::Installer.new(cask) - cask_and_formula_dependencies = installer.missing_cask_and_formula_dependencies - - cask_dependencies = cask_and_formula_dependencies.select { |d| d.is_a?(Cask::Cask) }.map(&:full_name) - formula_dependencies = cask_and_formula_dependencies.select { |d| d.is_a?(Formula) }.map(&:full_name) - - File.open(ENV.fetch("GITHUB_OUTPUT"), "a") do |f| - f.puts "was_installed=#{JSON.generate(was_installed)}" - f.puts "manual_installer=#{JSON.generate(manual_installer)}" - f.puts "macos_requirement_satisfied=#{JSON.generate(macos_requirement_satisfied)}" - f.puts "cask_conflicts=#{JSON.generate(cask_conflicts)}" - f.puts "cask_dependencies=#{JSON.generate(cask_dependencies)}" - f.puts "formula_conflicts=#{JSON.generate(formula_conflicts)}" - f.puts "formula_dependencies=#{JSON.generate(formula_dependencies)}" - end - EOF - if: always() && steps.fetch.outcome == 'success' && matrix.cask - - - name: Uninstall conflicting formulae - run: | - brew uninstall --formula ${{ join(fromJSON(steps.info.outputs.formula_conflicts), ' ') }} - if: always() && steps.info.outcome == 'success' && join(fromJSON(steps.info.outputs.formula_conflicts)) != '' - timeout-minutes: 30 - - - name: Uninstall conflicting casks - run: | - brew uninstall --cask ${{ join(fromJSON(steps.info.outputs.cask_conflicts), ' ') }} - if: always() && steps.info.outcome == 'success' && join(fromJSON(steps.info.outputs.cask_conflicts)) != '' - timeout-minutes: 30 - - - name: Run brew uninstall --cask --zap ${{ matrix.cask.token }} - run: | - brew uninstall --cask --zap '${{ matrix.cask.path }}' - if: always() && steps.info.outcome == 'success' && fromJSON(steps.info.outputs.was_installed) - timeout-minutes: 30 - - - name: Take snapshot of installed and running apps and services - id: snapshot - run: | - brew ruby -r "$(brew --repository homebrew/cask)/cmd/lib/check.rb" <<'EOF' - File.open(ENV.fetch("GITHUB_OUTPUT"), "a") do |f| - f.puts "before=#{JSON.generate(Check.all)}" - end - EOF - if: always() && steps.info.outcome == 'success' - - - name: Run brew install --cask ${{ matrix.cask.token }} - id: install - run: brew install --cask '${{ matrix.cask.path }}' - if: > - always() && steps.info.outcome == 'success' && - fromJSON(steps.info.outputs.macos_requirement_satisfied) && - !matrix.skip_install - timeout-minutes: 30 - - - name: Run brew uninstall --cask ${{ matrix.cask.token }} - run: brew uninstall --cask '${{ matrix.cask.path }}' - if: always() && steps.install.outcome == 'success' && !fromJSON(steps.info.outputs.manual_installer) - timeout-minutes: 30 - - - name: Uninstall cask dependencies - run: | - brew uninstall --cask ${{ join(fromJSON(steps.info.outputs.cask_dependencies), ' ') }} - if: always() && steps.install.outcome == 'success' && join(fromJSON(steps.info.outputs.cask_dependencies)) != '' - timeout-minutes: 30 - - - name: Compare installed and running apps and services with snapshot - run: | - brew ruby -r "$(brew --repository homebrew/cask)/cmd/lib/check.rb" <<'EOF' - require "cask/cask_loader" - require "utils/github/actions" - - before = JSON.parse(<<~'EOS').transform_keys(&:to_sym) - ${{ steps.snapshot.outputs.before }} - EOS - after = Check.all - - cask = Cask::CaskLoader.load('${{ matrix.cask.path }}') - errors = Check.errors(before, after, cask: cask) - - errors.each do |error| - onoe error - puts GitHub::Actions::Annotation.new(:error, error, file: '${{ matrix.cask.path }}') - end - - exit 1 if errors.any? - EOF - if: always() && steps.snapshot.outcome == 'success' - - conclusion: - name: conclusion - needs: test - runs-on: ubuntu-latest - if: always() - steps: - - name: Result - run: ${{ needs.test.result == 'success' }} diff --git a/.github/workflows/dispatch-command.yml b/.github/workflows/dispatch-command.yml deleted file mode 100644 index 7b949e3ca2ef..000000000000 --- a/.github/workflows/dispatch-command.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Dispatch Command - -on: - issue_comment: - types: [created] - -permissions: - contents: read - -jobs: - dispatch-command: - if: startsWith(github.repository, 'Homebrew/') - runs-on: ubuntu-latest - steps: - - name: Dispatch /rebase Command - uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 - with: - token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} - reaction-token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} - commands: rebase - permission: triage - issue-type: pull-request diff --git a/.github/workflows/google-fonts.yml b/.github/workflows/google-fonts.yml deleted file mode 100644 index 2f0b795a2258..000000000000 --- a/.github/workflows/google-fonts.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Google Fonts - -on: - push: - branches: - - debug-google-fonts - schedule: - - cron: "0 0 * * 0" # weekly - workflow_dispatch: - -jobs: - google-fonts: - name: ${{ matrix.mode }} - if: github.repository == 'Homebrew/homebrew-cask-fonts' - runs-on: ubuntu-latest - strategy: - matrix: - include: - - noun: addition - mode: add - - noun: update - mode: update - - noun: deletion - mode: delete - steps: - - name: Checkout homebrew/cask-fonts - uses: actions/checkout@v4 - with: - persist-credentials: false - - name: Checkout google/fonts - uses: actions/checkout@v4 - with: - repository: google/fonts - path: vendor/google-fonts - persist-credentials: false - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - name: Install Python packages - run: pip3 install gftools html2text jinja2 protobuf - - - name: Import Google Fonts - run: ./developer/bin/import_google_fonts vendor/google-fonts ${{ matrix.mode }} - - - name: Create pull request with updated files - id: create-pull-request - uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e - with: - branch: auto-${{ matrix.mode }}-google-fonts - commit-message: Update Google Fonts - base: master - author: BrewTestBot - committer: BrewTestBot - title: Automatic ${{ matrix.noun }} of Google Fonts - body: | - This pull request was created automatically by the [`google-fonts`](https://github.com/Homebrew/homebrew-cask-fonts/blob/master/.github/workflows/google-fonts.yml) workflow. - token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} - - name: Print pull request URL - if: steps.create-pull-request.outputs.pull-request-number - run: | - echo "Created pull request:" - echo " https://github.com/${{ github.repository }}/pull/${{ steps.create-pull-request.outputs.pull-request-number }}" diff --git a/.github/workflows/lock-threads.yml b/.github/workflows/lock-threads.yml deleted file mode 100644 index 92383f835225..000000000000 --- a/.github/workflows/lock-threads.yml +++ /dev/null @@ -1,36 +0,0 @@ -# This file is synced from the `.github` repository, do not modify it directly. -name: Lock threads - -on: - push: - paths: - - .github/workflows/lock-threads.yml - branches-ignore: - - dependabot/** - schedule: - # Once every day at 1am UTC - - cron: "0 1 * * *" - issue_comment: - -permissions: - issues: write - pull-requests: write - -concurrency: - group: lock-threads - cancel-in-progress: ${{ github.event_name != 'issue_comment' }} - -jobs: - lock-threads: - if: github.repository_owner == 'Homebrew' && github.event_name != 'issue_comment' - runs-on: ubuntu-latest - steps: - - name: Lock Outdated Threads - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - process-only: 'issues, prs' - issue-inactive-days: 30 - add-issue-labels: outdated - pr-inactive-days: 30 - add-pr-labels: outdated diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml deleted file mode 100644 index b12f95d71ad6..000000000000 --- a/.github/workflows/rebase.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Rebase Pull Request - -on: - repository_dispatch: - types: [rebase-command] - -permissions: - contents: read - -jobs: - rebase_pull_request: - name: Rebase Pull Request - runs-on: ubuntu-latest - steps: - - name: Rebase Pull Request - uses: peter-evans/rebase@52289ddc070ea10c8e2530c0740972ff39ac8769 - id: rebase - with: - token: ${{ secrets.HOMEBREW_CASK_REBASE_TOKEN }} - head: ${{ github.event.client_payload.pull_request.head.label }} - - - name: Add 👍 Reaction - if: always() && steps.rebase.outputs.rebased-count == 1 - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 - with: - token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} - repository: ${{ github.event.client_payload.github.payload.repository.full_name }} - comment-id: ${{ github.event.client_payload.github.payload.comment.id }} - reactions: '+1' - - - name: Add 👎 Reaction - if: always() && steps.rebase.outputs.rebased-count != 1 - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 - with: - token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} - repository: ${{ github.event.client_payload.github.payload.repository.full_name }} - comment-id: ${{ github.event.client_payload.github.payload.comment.id }} - reactions: '-1' diff --git a/.github/workflows/rerun-workflow.yml b/.github/workflows/rerun-workflow.yml deleted file mode 100644 index 65eaf77fd033..000000000000 --- a/.github/workflows/rerun-workflow.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Re-run Workflow - -on: - workflow_run: - workflows: - - CI - types: - - completed - pull_request_target: - types: - - closed - - labeled - - unlabeled - schedule: - - cron: '30 */3 * * *' # every 3 hours (30 minutes past the hour) - -permissions: - contents: read - -jobs: - rerun-workflow: - if: > - startsWith(github.repository, 'Homebrew/') && - ( - github.event.label.name == 'ci-requeue' || - github.event.label.name == 'ci-retry' || - github.event.label.name == 'ci-skip-appcast' || - github.event.label.name == 'ci-skip-install' || - github.event.label.name == 'ci-skip-homepage' || - github.event.label.name == 'ci-skip-livecheck' || - github.event.label.name == 'ci-skip-livecheck-min-os' || - github.event.label.name == 'ci-skip-repository' || - github.event.label.name == 'ci-syntax-only' || - !github.event.label.name - ) - runs-on: ubuntu-latest - steps: - - name: Re-run CI workflow - uses: reitermarkus/rerun-workflow@89b6d612733e2116cf83085372ed69fc1e529630 - with: - token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} - once-label: ci-requeue - continuous-label: ci-retry - trigger-labels: ci-skip-appcast,ci-skip-install,ci-skip-homepage,ci-skip-livecheck,ci-syntax-only,ci-skip-repository,ci-skip-livecheck-min-os - workflow: ci.yml diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml deleted file mode 100644 index 5fd78c25c040..000000000000 --- a/.github/workflows/stale-issues.yml +++ /dev/null @@ -1,70 +0,0 @@ -# This file is synced from the `.github` repository, do not modify it directly. -name: Manage stale issues - -on: - push: - paths: - - .github/workflows/stale-issues.yml - branches-ignore: - - dependabot/** - schedule: - # Once every day at midnight UTC - - cron: "0 0 * * *" - issue_comment: - -permissions: - issues: write - pull-requests: write - -concurrency: - group: stale-issues - cancel-in-progress: ${{ github.event_name != 'issue_comment' }} - -jobs: - stale: - if: > - github.repository_owner == 'Homebrew' && ( - github.event_name != 'issue_comment' || ( - contains(github.event.issue.labels.*.name, 'stale') || - contains(github.event.pull_request.labels.*.name, 'stale') - ) - ) - runs-on: ubuntu-latest - steps: - - name: Mark/Close Stale Issues and Pull Requests - uses: actions/stale@v9 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 21 - days-before-close: 7 - stale-issue-message: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. - stale-pr-message: > - This pull request has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. - exempt-issue-labels: "gsoc-outreachy,help wanted,in progress" - exempt-pr-labels: "gsoc-outreachy,help wanted,in progress" - - bump-pr-stale: - if: > - github.repository_owner == 'Homebrew' && ( - github.event_name != 'issue_comment' || ( - contains(github.event.issue.labels.*.name, 'stale') || - contains(github.event.pull_request.labels.*.name, 'stale') - ) - ) - runs-on: ubuntu-latest - steps: - - name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests - uses: actions/stale@v9 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 2 - days-before-close: 1 - stale-pr-message: > - This pull request has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. To keep this - pull request open, add a `help wanted` or `in progress` label. - exempt-pr-labels: "help wanted,in progress" - any-of-labels: "bump-formula-pr,bump-cask-pr" diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml deleted file mode 100644 index a216f5f5a1ba..000000000000 --- a/.github/workflows/triage.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Triage tasks - -on: pull_request_target - -concurrency: - group: "triage-${{ github.event.number }}" - cancel-in-progress: true - -permissions: - contents: read - pull-requests: write - -jobs: - limit-pull-requests: - if: > - always() && github.repository_owner == 'Homebrew' && - (github.event_name == 'pull_request_target' && - github.event.action == 'opened') - runs-on: ubuntu-latest - steps: - - uses: Homebrew/actions/limit-pull-requests@master - with: - except-users: | - BrewTestBot - comment-limit: 15 - comment: | - Hi, thanks for your contribution to Homebrew! You already have >=15 open pull requests, so please get them ready to be merged or close them before you open more. If CI fails on any of them, please fix it or ask for help doing so. - If you are performing simple version bumps, @BrewTestBot automatically bumps [a list of casks](https://github.com/${{ github.repository }}/blob/HEAD/.github/autobump.txt) so you don't need to. Please take a look at issues and pull requests labelled https://github.com/${{ github.repository }}/labels/help%20wanted and see if you can help to fix any of them. Thanks! - close-limit: 30 - close: true - - triage: - runs-on: ubuntu-latest - steps: - - name: Check commit format - uses: Homebrew/actions/check-commit-format@master - with: - token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}} - - name: Label pull request - uses: Homebrew/actions/label-pull-requests@master - if: always() - with: - token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}} - def: | - - label: cask deprecated - path: Cask/.+ - content: \n deprecate!.*\n - - - label: cask disabled - path: Cask/.+ - content: \n disable!.*\n - - - label: new cask - status: added - path: Casks/.+ - - - label: marked for removal/rejection - status: removed - path: Casks/.+ - - - label: documentation - path: (.*\.md|\.github/ISSUE_TEMPLATE/.*\.yml) - - - label: bump-cask-pr - pr_body_content: Created with `brew bump-cask-pr` - - - label: missing description - path: Casks/.+ - missing_content: \n desc .+\n - - - label: extract_plist livecheck - path: Casks/.+ - content: \n strategy :extract_plist.*\n - - - label: missing zap - path: Casks/.+ - missing_content: zap .+\n - - - label: autobump - path: \.github/autobump\.txt - allow_any_match: true diff --git a/.gitignore b/.gitignore deleted file mode 100644 index fc19d45ef7b7..000000000000 --- a/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -# toplevel -/.bundle/ -/.idea/ -/bin/ -/vendor/ -/venv/ - -# anywhere in the tree -*~ -*.iml -.DS_Store -.ruby-version -coverage