content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\n# This is the list of required boxes for acceptance tests, and\n# their locations. The locations are used to download the boxes\n# on the fly, if necessary. Additionally, a SHA1 checksum is\n# given to determine if the box needs to be updated.\n- name: default\n url: http://files.vagrantup.com/test/boxes/default.box\n checksum: 1b0a7eb6e152c5b43f45485654ff4965a7f9f604\n | dataset_sample\yaml\hashicorp_vagrant\test\config\acceptance_boxes.yml | acceptance_boxes.yml | YAML | 436 | 0.95 | 0.3 | 0.666667 | awesome-app | 397 | 2025-04-11T18:32:09.900657 | MIT | true | 2c3af1f97dccc195961eb83ea87cf11e |
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: MPL-2.0\nlinters-settings:\n depguard:\n rules:\n main:\n list-mode: lax\n files:\n - "./sdk/**"\n allow:\n - "github.com/hashicorp/go-metrics/compat"\n deny:\n - pkg: "github.com/hashicorp/go-metrics"\n desc: not allowed, use github.com/hashicorp/go-metrics/compat instead\n - pkg: "github.com/armon/go-metrics"\n desc: not allowed, use github.com/hashicorp/go-metrics/compat instead\n\nlinters:\n enable:\n - depguard\n | dataset_sample\yaml\hashicorp_vault\.golangci.yml | .golangci.yml | YAML | 560 | 0.8 | 0 | 0.105263 | vue-tools | 125 | 2024-05-13T12:14:51.057532 | MIT | false | 2abc053b0b032ba744a1e2ecb8a44bca |
# Please see the documentation for all configuration options:\n# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\n\nversion: 2\nupdates:\n - package-ecosystem: "cargo"\n directory: "/"\n schedule:\n interval: "weekly"\n groups:\n rust-dependencies:\n update-types:\n - "minor"\n - "patch"\n\n - package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "weekly"\n | dataset_sample\yaml\helix-editor_helix\.github\dependabot.yml | dependabot.yml | YAML | 475 | 0.8 | 0.105263 | 0.117647 | python-kit | 970 | 2025-05-01T07:09:04.566723 | MIT | false | d4ab6f725ae323b303fb3d062c980363 |
name: Build\non:\n pull_request:\n push:\n branches:\n - master\n merge_group:\n schedule:\n - cron: "00 01 * * *"\n\nenv:\n MSRV: "1.76"\n # This key can be changed to bust the cache of tree-sitter grammars.\n GRAMMAR_CACHE_VERSION: ""\n\njobs:\n check:\n name: Check (msrv)\n runs-on: ubuntu-latest\n if: github.repository == 'helix-editor/helix' || github.event_name != 'schedule'\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - name: Install MSRV toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.MSRV }}\n\n - uses: Swatinem/rust-cache@v2\n with:\n shared-key: "build"\n\n - name: Cache tree-sitter grammars\n uses: actions/cache@v4\n with:\n path: runtime/grammars\n key: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }}\n restore-keys: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-\n\n - name: Run cargo check\n run: cargo check\n\n test:\n name: Test Suite\n runs-on: ${{ matrix.os }}\n if: github.repository == 'helix-editor/helix' || github.event_name != 'schedule'\n env:\n RUST_BACKTRACE: 1\n HELIX_LOG_LEVEL: info\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - name: Install MSRV toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.MSRV }}\n\n - uses: Swatinem/rust-cache@v2\n with:\n shared-key: "build"\n\n - name: Cache tree-sitter grammars\n uses: actions/cache@v4\n with:\n path: runtime/grammars\n key: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }}\n restore-keys: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-\n\n - name: Run cargo test\n run: cargo test --workspace\n\n - name: Run cargo integration-test\n run: cargo integration-test\n\n strategy:\n matrix:\n os: [ubuntu-latest, macos-latest, windows-latest, ubuntu-24.04-arm]\n\n lints:\n name: Lints\n runs-on: ubuntu-latest\n if: github.repository == 'helix-editor/helix' || github.event_name != 'schedule'\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - name: Install MSRV toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.MSRV }}\n components: rustfmt, clippy\n\n - uses: Swatinem/rust-cache@v2\n with:\n shared-key: "build"\n\n - name: Cache tree-sitter grammars\n uses: actions/cache@v4\n with:\n path: runtime/grammars\n key: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }}\n restore-keys: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-\n\n - name: Run cargo fmt\n run: cargo fmt --all --check\n\n - name: Run cargo clippy\n run: cargo clippy --workspace --all-targets -- -D warnings\n\n - name: Run cargo doc\n run: cargo doc --no-deps --workspace --document-private-items\n env:\n RUSTDOCFLAGS: -D warnings\n\n docs:\n name: Docs\n runs-on: ubuntu-latest\n if: github.repository == 'helix-editor/helix' || github.event_name != 'schedule'\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - name: Install MSRV toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.MSRV }}\n\n - uses: Swatinem/rust-cache@v2\n with:\n shared-key: "build"\n\n - name: Cache tree-sitter grammars\n uses: actions/cache@v4\n with:\n path: runtime/grammars\n key: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }}\n restore-keys: ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-\n\n - name: Validate queries\n run: cargo xtask query-check\n\n - name: Validate themes\n run: cargo xtask theme-check\n\n - name: Generate docs\n run: cargo xtask docgen\n\n - name: Check uncommitted documentation changes\n run: |\n git diff\n git diff-files --quiet \\n || (echo "Run 'cargo xtask docgen', commit the changes and push again" \\n && exit 1)\n | dataset_sample\yaml\helix-editor_helix\.github\workflows\build.yml | build.yml | YAML | 4,687 | 0.8 | 0.025806 | 0.007874 | awesome-app | 104 | 2025-04-29T20:41:15.398163 | Apache-2.0 | false | 39bdacfea0f0c8d30fb4c12d73b5d19b |
# Publish the Nix flake outputs to Cachix\nname: Cachix\non:\n push:\n branches:\n - master\n\njobs:\n publish:\n name: Publish Flake\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - name: Install nix\n uses: cachix/install-nix-action@v31\n\n - name: Authenticate with Cachix\n uses: cachix/cachix-action@v16\n with:\n name: helix\n authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}\n\n - name: Build nix flake\n run: nix build -L\n | dataset_sample\yaml\helix-editor_helix\.github\workflows\cachix.yml | cachix.yml | YAML | 516 | 0.8 | 0 | 0.045455 | python-kit | 794 | 2024-06-29T17:29:51.492166 | Apache-2.0 | false | 466a3b5d66d1dab51c4034d2a2a299b9 |
name: GitHub Pages\n\non:\n push:\n branches:\n - master\n tags:\n - '*'\n\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup mdBook\n uses: peaceiris/actions-mdbook@v2\n with:\n # mdbook-version: 'latest'\n mdbook-version: '0.4.43'\n\n - run: mdbook build book\n \n - name: Set output directory\n run: |\n OUTDIR=$(basename ${{ github.ref }})\n echo "OUTDIR=$OUTDIR" >> $GITHUB_ENV\n\n - name: Deploy stable\n uses: peaceiris/actions-gh-pages@v4\n if: startswith(github.ref, 'refs/tags/')\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n publish_dir: ./book/book\n\n - name: Deploy\n uses: peaceiris/actions-gh-pages@v4\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n publish_dir: ./book/book\n destination_dir: ./${{ env.OUTDIR }}\n | dataset_sample\yaml\helix-editor_helix\.github\workflows\gh-pages.yml | gh-pages.yml | YAML | 948 | 0.8 | 0.02439 | 0.029412 | awesome-app | 486 | 2024-12-05T06:43:10.414819 | MIT | false | 09b1b7cce8fa253741778ac9f619ff90 |
name: Release\non:\n push:\n tags:\n - '[0-9]+.[0-9]+'\n - '[0-9]+.[0-9]+.[0-9]+'\n branches:\n - 'patch/ci-release-*'\n pull_request:\n paths:\n - '.github/workflows/release.yml'\n\nenv:\n # Preview mode: Publishes the build output as a CI artifact instead of creating\n # a release, allowing for manual inspection of the output. This mode is\n # activated if the CI run was triggered by events other than pushed tags, or\n # if the repository is a fork.\n preview: ${{ !startsWith(github.ref, 'refs/tags/') || github.repository != 'helix-editor/helix' }}\n\njobs:\n fetch-grammars:\n name: Fetch Grammars\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - name: Install stable toolchain\n uses: dtolnay/rust-toolchain@stable\n\n - uses: Swatinem/rust-cache@v2\n\n - name: Fetch tree-sitter grammars\n run: cargo run --package=helix-loader --bin=hx-loader\n\n - name: Bundle grammars\n run: tar cJf grammars.tar.xz -C runtime/grammars/sources .\n\n - uses: actions/upload-artifact@v4\n with:\n name: grammars\n path: grammars.tar.xz\n\n dist:\n name: Dist\n needs: [fetch-grammars]\n env:\n # For some builds, we use cross to test on 32-bit and big-endian\n # systems.\n CARGO: cargo\n # When CARGO is set to CROSS, this is set to `--target matrix.target`.\n TARGET_FLAGS:\n # When CARGO is set to CROSS, TARGET_DIR includes matrix.target.\n TARGET_DIR: ./target\n # Emit backtraces on panics.\n RUST_BACKTRACE: 1\n runs-on: ${{ matrix.os }}\n strategy:\n fail-fast: false # don't fail other jobs if one fails\n matrix:\n build: [x86_64-linux, aarch64-linux, x86_64-macos, x86_64-windows] #, x86_64-win-gnu, win32-msvc\n include:\n - build: x86_64-linux\n os: ubuntu-24.04\n rust: stable\n target: x86_64-unknown-linux-gnu\n cross: false\n - build: aarch64-linux\n os: ubuntu-24.04-arm\n rust: stable\n target: aarch64-unknown-linux-gnu\n cross: false\n # - build: riscv64-linux\n # os: ubuntu-22.04\n # rust: stable\n # target: riscv64gc-unknown-linux-gnu\n # cross: true\n - build: x86_64-macos\n os: macos-latest\n rust: stable\n target: x86_64-apple-darwin\n cross: false\n - build: x86_64-windows\n os: windows-latest\n rust: stable\n target: x86_64-pc-windows-msvc\n cross: false\n # 23.03: build issues\n - build: aarch64-macos\n os: macos-latest\n rust: stable\n target: aarch64-apple-darwin\n cross: false\n skip_tests: true # x86_64 host can't run aarch64 code\n # - build: x86_64-win-gnu\n # os: windows-2019\n # rust: stable-x86_64-gnu\n # target: x86_64-pc-windows-gnu\n # - build: win32-msvc\n # os: windows-2019\n # rust: stable\n # target: i686-pc-windows-msvc\n\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - name: Download grammars\n uses: actions/download-artifact@v4\n\n - name: Move grammars under runtime\n if: "!startsWith(matrix.os, 'windows')"\n run: |\n mkdir -p runtime/grammars/sources\n tar xJf grammars/grammars.tar.xz -C runtime/grammars/sources\n\n # The rust-toolchain action ignores rust-toolchain.toml files.\n # Removing this before building with cargo ensures that the rust-toolchain\n # is considered the same between installation and usage.\n - name: Remove the rust-toolchain.toml file\n run: rm rust-toolchain.toml\n\n - name: Install ${{ matrix.rust }} toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ matrix.rust }}\n target: ${{ matrix.target }}\n\n # Install a pre-release version of Cross\n # TODO: We need to pre-install Cross because we need cross-rs/cross#591 to\n # get a newer C++ compiler toolchain. Remove this step when Cross\n # 0.3.0, which includes cross-rs/cross#591, is released.\n - name: Install Cross\n if: "matrix.cross"\n run: |\n cargo install cross --git https://github.com/cross-rs/cross.git --rev 47df5c76e7cba682823a0b6aa6d95c17b31ba63a\n echo "CARGO=cross" >> $GITHUB_ENV\n # echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV\n # echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV\n\n - name: Show command used for Cargo\n run: |\n echo "cargo command is: ${{ env.CARGO }}"\n echo "target flag is: ${{ env.TARGET_FLAGS }}"\n\n - name: Run cargo test\n if: "!matrix.skip_tests"\n run: ${{ env.CARGO }} test --release --locked --target ${{ matrix.target }} --workspace\n\n - name: Build release binary\n run: ${{ env.CARGO }} build --profile opt --locked --target ${{ matrix.target }}\n\n - name: Build AppImage\n shell: bash\n if: matrix.build == 'x86_64-linux'\n run: |\n # Required as of 22.x https://github.com/AppImage/AppImageKit/wiki/FUSE\n sudo add-apt-repository universe\n sudo apt install libfuse2\n\n mkdir dist\n\n name=dev\n if [[ $GITHUB_REF == refs/tags/* ]]; then\n name=${GITHUB_REF:10}\n fi\n\n build="${{ matrix.build }}"\n\n export VERSION="$name"\n export ARCH=${build%-linux}\n export APP=helix\n export OUTPUT="helix-$VERSION-$ARCH.AppImage"\n export UPDATE_INFORMATION="gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|helix|latest|$APP-*-$ARCH.AppImage.zsync"\n\n mkdir -p "$APP.AppDir"/usr/{bin,lib/helix}\n\n cp "target/${{ matrix.target }}/opt/hx" "$APP.AppDir/usr/bin/hx"\n rm -rf runtime/grammars/sources\n cp -r runtime "$APP.AppDir/usr/lib/helix/runtime"\n\n cat << 'EOF' > "$APP.AppDir/AppRun"\n #!/bin/sh\n\n APPDIR="$(dirname "$(readlink -f "${0}")")"\n HELIX_RUNTIME="$APPDIR/usr/lib/helix/runtime" exec "$APPDIR/usr/bin/hx" "$@"\n EOF\n chmod 755 "$APP.AppDir/AppRun"\n\n curl -Lo linuxdeploy-x86_64.AppImage \\n https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage\n chmod +x linuxdeploy-x86_64.AppImage\n\n ./linuxdeploy-x86_64.AppImage \\n --appdir "$APP.AppDir" -d contrib/Helix.desktop \\n -i contrib/helix.png --output appimage\n\n mv "$APP-$VERSION-$ARCH.AppImage" \\n "$APP-$VERSION-$ARCH.AppImage.zsync" dist\n\n - name: Build Deb\n shell: bash\n if: matrix.build == 'x86_64-linux'\n run: |\n cargo install cargo-deb\n mkdir -p target/release\n cp target/${{ matrix.target }}/opt/hx target/release/\n cargo deb --no-build\n mkdir -p dist\n mv target/debian/*.deb dist/\n\n - name: Build archive\n shell: bash\n run: |\n mkdir -p dist\n if [ "${{ matrix.os }}" = "windows-2019" ]; then\n cp "target/${{ matrix.target }}/opt/hx.exe" "dist/"\n else\n cp "target/${{ matrix.target }}/opt/hx" "dist/"\n fi\n if [ -d runtime/grammars/sources ]; then\n rm -rf runtime/grammars/sources\n fi\n cp -r runtime dist\n\n - uses: actions/upload-artifact@v4\n with:\n name: bins-${{ matrix.build }}\n path: dist\n\n publish:\n name: Publish\n needs: [dist]\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v4\n\n - uses: actions/download-artifact@v4\n\n - name: Build archive\n shell: bash\n run: |\n set -ex\n\n source="$(pwd)"\n tag=${GITHUB_REF_NAME//\//}\n mkdir -p runtime/grammars/sources\n tar xJf grammars/grammars.tar.xz -C runtime/grammars/sources\n rm -rf grammars\n\n cd "$(mktemp -d)"\n mv $source/bins-* .\n mkdir dist\n\n for dir in bins-* ; do\n platform=${dir#"bins-"}\n if [[ $platform =~ "windows" ]]; then\n exe=".exe"\n fi\n pkgname=helix-$tag-$platform\n mkdir -p $pkgname\n cp $source/LICENSE $source/README.md $pkgname\n mkdir $pkgname/contrib\n cp -r $source/contrib/completion $pkgname/contrib\n mv bins-$platform/runtime $pkgname/\n mv bins-$platform/hx$exe $pkgname\n chmod +x $pkgname/hx$exe\n\n if [[ "$platform" = "x86_64-linux" ]]; then\n mv bins-$platform/helix-*.AppImage* dist/\n mv bins-$platform/*.deb dist/\n fi\n\n if [ "$exe" = "" ]; then\n tar cJf dist/$pkgname.tar.xz $pkgname\n else\n 7z a -r dist/$pkgname.zip $pkgname\n fi\n done\n\n tar cJf dist/helix-$tag-source.tar.xz -C $source .\n mv dist $source/\n\n - name: Upload binaries to release\n uses: svenstaro/upload-release-action@v2\n if: env.preview == 'false'\n with:\n repo_token: ${{ secrets.GITHUB_TOKEN }}\n file: dist/*\n file_glob: true\n tag: ${{ github.ref_name }}\n overwrite: true\n \n - name: Upload binaries as artifact\n uses: actions/upload-artifact@v4\n if: env.preview == 'true'\n with:\n name: release\n path: dist/*\n | dataset_sample\yaml\helix-editor_helix\.github\workflows\release.yml | release.yml | YAML | 9,689 | 0.8 | 0.063333 | 0.132296 | awesome-app | 218 | 2024-12-15T01:48:53.971953 | MIT | false | 21a0a1be309b2cb65b3cb62d25e84ed6 |
coverage:\n round: nearest\n status:\n project:\n default:\n informational: true\n threshold: 0.05%\n patch:\n default:\n informational: true\n | dataset_sample\yaml\Homebrew_brew\.github\codecov.yml | codecov.yml | YAML | 172 | 0.7 | 0 | 0 | node-utils | 363 | 2024-09-26T07:38:51.367313 | MIT | false | ad7198d58598e3b5a589d54329f7d4de |
version: 2\n\nupdates:\n - package-ecosystem: github-actions\n directory: /\n schedule:\n interval: weekly\n allow:\n - dependency-type: all\n # The actions in triage-issues.yml are updated in the Homebrew/.github repo\n ignore:\n - dependency-name: actions/stale\n groups:\n artifacts:\n patterns:\n - actions/*-artifact\n open-pull-requests-limit: 10\n\n - package-ecosystem: bundler\n directory: /Library/Homebrew\n schedule:\n interval: daily\n allow:\n - dependency-type: all\n groups:\n sorbet:\n patterns:\n - "sorbet*"\n open-pull-requests-limit: 10\n\n - package-ecosystem: npm\n directory: /\n schedule:\n interval: daily\n allow:\n - dependency-type: all\n open-pull-requests-limit: 10\n\n - package-ecosystem: docker\n directory: /\n schedule:\n interval: daily\n allow:\n - dependency-type: all\n open-pull-requests-limit: 10\n\n - package-ecosystem: devcontainers\n directory: /\n schedule:\n interval: daily\n allow:\n - dependency-type: all\n open-pull-requests-limit: 10\n\n - package-ecosystem: pip\n directory: /\n schedule:\n interval: daily\n allow:\n - dependency-type: all\n open-pull-requests-limit: 10\n\n - package-ecosystem: pip\n directory: /Library/Homebrew/formula-analytics/\n schedule:\n interval: daily\n allow:\n - dependency-type: all\n open-pull-requests-limit: 10\n | dataset_sample\yaml\Homebrew_brew\.github\dependabot.yml | dependabot.yml | YAML | 1,453 | 0.8 | 0 | 0.016129 | awesome-app | 985 | 2025-06-05T14:19:18.175019 | BSD-3-Clause | false | 5139925e8d3ba0e84f5a18ede30e1ef5 |
name: New issue for Reproducible Bug\ndescription: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate."\ntype: "Bug"\nbody:\n - type: markdown\n attributes:\n value: Please note we will close your issue without comment if you do not correctly fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.\n - type: textarea\n attributes:\n render: shell\n label: "`brew doctor` output"\n validations:\n required: true\n - type: checkboxes\n attributes:\n label: Verification\n description: Please verify that you've followed these steps. If you cannot truthfully check these boxes, open a discussion at https://github.com/orgs/Homebrew/discussions instead.\n options:\n - label: My "`brew doctor` output" above says `Your system is ready to brew.` and am still able to reproduce my issue.\n required: true\n - label: I ran `brew update` twice and am still able to reproduce my issue.\n required: true\n - label: This issue's title and/or description do not reference a single formula e.g. `brew install wget`. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.\n required: true\n - type: textarea\n attributes:\n render: shell\n label: "`brew config` output"\n validations:\n required: true\n - type: textarea\n attributes:\n label: What were you trying to do (and why)?\n validations:\n required: true\n - type: textarea\n attributes:\n label: What happened (include all command output)?\n validations:\n required: true\n - type: textarea\n attributes:\n label: What did you expect to happen?\n validations:\n required: true\n - type: textarea\n attributes:\n render: shell\n label: Step-by-step reproduction instructions (by running `brew` commands)\n validations:\n required: true\n | dataset_sample\yaml\Homebrew_brew\.github\ISSUE_TEMPLATE\bug.yml | bug.yml | YAML | 2,053 | 0.95 | 0.039216 | 0 | vue-tools | 482 | 2024-01-23T07:21:40.053571 | MIT | false | 2579116cdfa9748401dc448f8171910c |
blank_issues_enabled: false\n\ncontact_links:\n - name: Get help in GitHub Discussions\n url: https://github.com/orgs/Homebrew/discussions\n about: Have a question? Not sure if your issue affects everyone reproducibly? The quickest way to get help is on Homebrew's GitHub Discussions!\n - name: New issue on Homebrew/homebrew-core\n url: https://github.com/Homebrew/homebrew-core/issues/new/choose\n about: Having a `brew` problem with a `brew install` or `brew upgrade` of a single formula/package? Report it to Homebrew/homebrew-core (the core tap/repository).\n - name: New issue on Homebrew/homebrew-cask\n url: https://github.com/Homebrew/homebrew-cask/issues/new/choose\n about: Having a `brew --cask` problem? Report it to Homebrew/homebrew-cask (the cask tap/repository).\n - name: New issue on Homebrew/install\n url: https://github.com/Homebrew/install/issues/new/choose\n about: Having a problem installing Homebrew? Report it to Homebrew/install (the installer repository).\n - name: Get help from Homebrew mirror maintainers\n url: https://github.com/orgs/Homebrew/discussions/1917\n about: Slow download speed? Homebrew mirror not working as expected? Please take a look at the mirror list and contact respective mirror maintainers.\n | dataset_sample\yaml\Homebrew_brew\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 1,265 | 0.8 | 0.055556 | 0 | vue-tools | 829 | 2023-08-02T22:36:46.374350 | BSD-3-Clause | false | 73b3550eb42c2c710340f1954662e06e |
name: New issue for Feature Suggestion\ndescription: Request our thoughts on your suggestion for a new feature for Homebrew.\ntype: "Feature"\nbody:\n - type: markdown\n attributes:\n value: Please note we will close your issue without comment if you do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.\n - type: checkboxes\n attributes:\n label: Verification\n description: Please verify that you've followed these steps.\n options:\n - label: This issue's title and/or description do not reference a single formula e.g. `brew install wget`. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.\n required: true\n - type: textarea\n attributes:\n label: Provide a detailed description of the proposed feature\n validations:\n required: true\n - type: textarea\n attributes:\n label: What is the motivation for the feature?\n validations:\n required: true\n - type: textarea\n attributes:\n label: How will the feature be relevant to at least 90% of Homebrew users?\n validations:\n required: true\n - type: textarea\n attributes:\n label: What alternatives to the feature have been considered?\n validations:\n required: true\n - type: markdown\n attributes:\n value: We will close this issue or ask you to create a pull-request if it's something the maintainers are not actively planning to work on.\n | dataset_sample\yaml\Homebrew_brew\.github\ISSUE_TEMPLATE\feature.yml | feature.yml | YAML | 1,580 | 0.95 | 0.162162 | 0 | vue-tools | 445 | 2024-09-12T18:55:56.715863 | Apache-2.0 | false | cea9779a7efd1ad89c78289a0f9c17f0 |
name: actionlint\n\non:\n push:\n branches:\n - master\n pull_request:\n paths:\n - '.github/workflows/*.ya?ml'\n - '.github/actionlint.yaml'\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n HOMEBREW_NO_ENV_HINTS: 1\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: "actionlint-${{ github.ref }}"\n cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\npermissions: {}\n\njobs:\n workflow_syntax:\n if: github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n steps:\n - name: Set up Homebrew\n id: setup-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Install tools\n run: brew install actionlint shellcheck zizmor\n\n - name: Set up GITHUB_WORKSPACE\n env:\n HOMEBREW_REPOSITORY: ${{ steps.setup-homebrew.outputs.repository-path }}\n run: |\n # Annotations work only relative to GITHUB_WORKSPACE\n (shopt -s dotglob; rm -rf "${GITHUB_WORKSPACE:?}"/*; mv "${HOMEBREW_REPOSITORY:?}"/* "$GITHUB_WORKSPACE")\n rmdir "$HOMEBREW_REPOSITORY"\n ln -vs "$GITHUB_WORKSPACE" "$HOMEBREW_REPOSITORY"\n\n echo "::add-matcher::.github/actionlint-matcher.json"\n\n - run: |\n # NOTE: exit code intentionally suppressed here\n zizmor --format sarif . > results.sarif || true\n\n - name: Upload SARIF file\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: results.sarif\n path: results.sarif\n\n - run: actionlint\n\n upload_sarif:\n needs: workflow_syntax\n runs-on: ubuntu-latest\n permissions:\n contents: read\n security-events: write\n steps:\n - name: Download SARIF file\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: results.sarif\n path: results.sarif\n\n - name: Upload SARIF file\n uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15\n with:\n sarif_file: results.sarif\n category: zizmor\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\actionlint.yml | actionlint.yml | YAML | 2,221 | 0.8 | 0.012048 | 0.028986 | react-lib | 790 | 2023-11-13T07:28:43.114391 | GPL-3.0 | false | f23340a0d532869f9c2edb814ff29311 |
name: Autogenerated files check\n\non:\n pull_request:\n paths:\n - .github/workflows/autogenerated-files.yml\n - README.md\n - completions/**\n - docs/Manpage.md\n - manpages/brew.1\n\npermissions:\n contents: read\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n autogenerated:\n runs-on: ubuntu-latest\n if: github.repository == 'Homebrew/brew'\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: true\n\n - name: Cache Bundler RubyGems\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ${{ steps.set-up-homebrew.outputs.gems-path }}\n key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}\n restore-keys: ${{ runner.os }}-rubygems-\n\n - name: Check for changes to autogenerated files\n id: check\n run: |\n if brew generate-man-completions\n then\n echo "This PR modifies autogenerated files!" >&2\n echo "Please ensure their source files are updated and then run the following:\n brew generate-man-completions" >&2\n exit 1\n else\n exit 0\n fi\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\autogenerated-files.yml | autogenerated-files.yml | YAML | 1,393 | 0.8 | 0.055556 | 0 | react-lib | 231 | 2024-10-19T04:25:05.640881 | BSD-3-Clause | false | d854e619856c592680a1a561bc696741 |
name: "CodeQL"\n\non:\n push:\n branches:\n - master\n pull_request:\n branches:\n - master\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n analyze:\n name: Analyze\n runs-on: ubuntu-latest\n permissions:\n actions: read\n contents: read\n security-events: write\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n persist-credentials: false\n\n - name: Initialize CodeQL\n uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15\n with:\n languages: ruby\n config: |\n paths-ignore:\n - Library/Homebrew/vendor\n\n - name: Perform CodeQL Analysis\n uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\codeql-analysis.yml | codeql-analysis.yml | YAML | 868 | 0.8 | 0 | 0 | awesome-app | 335 | 2023-10-05T12:42:30.791183 | MIT | false | 00bd61cf4b2df5ed4afee6349a522ba7 |
name: Docker\n\non:\n pull_request:\n push:\n branches:\n - master\n merge_group:\n release:\n types:\n - published\n\npermissions:\n contents: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nenv:\n # odeprecated: remove 20.04 image in Homebrew >=4.7\n VERSIONS: '["20.04", "22.04", "24.04"]'\n\njobs:\n generate-tags:\n if: github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n outputs:\n matrix: ${{ steps.attributes.outputs.matrix }}\n tags: ${{ steps.attributes.outputs.tags }}\n labels: ${{ steps.attributes.outputs.labels }}\n push: ${{ steps.attributes.outputs.push }}\n merge: ${{ steps.attributes.outputs.merge }}\n steps:\n - name: Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n fetch-depth: 0\n persist-credentials: false\n\n - name: Fetch origin/master from Git\n run: git fetch origin master\n\n - name: Determine build attributes\n id: attributes\n run: |\n date="$(date --rfc-3339=seconds --utc)"\n brew_version="$(git describe --tags --dirty --abbrev=7)"\n\n DELIMITER="END_LABELS_$(uuidgen)"\n cat <<EOS | tee -a "${GITHUB_OUTPUT}"\n labels<<${DELIMITER}\n org.opencontainers.image.created=${date}\n org.opencontainers.image.url=https://brew.sh\n org.opencontainers.image.documentation=https://docs.brew.sh\n org.opencontainers.image.source=https://github.com/${GITHUB_REPOSITORY}\n org.opencontainers.image.version=${brew_version}\n org.opencontainers.image.revision=${GITHUB_SHA}\n org.opencontainers.image.vendor=${GITHUB_REPOSITORY_OWNER}\n org.opencontainers.image.licenses=BSD-2-Clause\n ${DELIMITER}\n EOS\n\n typeset -A tag_hash\n typeset -A push_hash\n matrix=()\n merge=false\n while IFS=$'\n' read -r version; do\n tags=()\n if [[ "${GITHUB_EVENT_NAME}" == "release" ]]; then\n tags+=(\n "ghcr.io/homebrew/ubuntu${version}:${brew_version}"\n "ghcr.io/homebrew/ubuntu${version}:latest"\n "homebrew/ubuntu${version}:${brew_version}"\n "homebrew/ubuntu${version}:latest"\n )\n if [[ "${version}" == "22.04" ]]; then\n tags+=(\n "ghcr.io/homebrew/brew:${brew_version}"\n "ghcr.io/homebrew/brew:latest"\n "homebrew/brew:${brew_version}"\n "homebrew/brew:latest"\n )\n fi\n elif [[ "${GITHUB_EVENT_NAME}" == "push" &&\n "${GITHUB_REF}" == "refs/heads/master" &&\n "${version}" == "22.04" ]]; then\n tags+=(\n "ghcr.io/homebrew/brew:master"\n "ghcr.io/homebrew/ubuntu${version}:master"\n "homebrew/brew:master"\n "homebrew/ubuntu${version}:master"\n )\n fi\n\n if [[ "${#tags[@]}" -ne 0 ]]; then\n tags_as_json_array="$(\n jq --null-input --compact-output '$ARGS.positional' --args "${tags[@]}"\n )"\n tag_hash["${version}"]="${tags_as_json_array}"\n push_hash["${version}"]=true\n merge=true\n matrix+=("${version}")\n else\n push_hash["${version}"]=false\n fi\n done <<<"$(jq --raw-output '.[]' <<<"${VERSIONS}")"\n\n # Transform the `matrix` variable into a JSON array.\n echo "matrix=$(jq --null-input --compact-output '$ARGS.positional' --args "${matrix[@]}")" >>"${GITHUB_OUTPUT}"\n echo "merge=${merge}" >>"${GITHUB_OUTPUT}"\n\n {\n DELIMITER="END_TAGS_$(uuidgen)"\n has_previous=\n echo "tags<<${DELIMITER}"\n printf '{'\n for version in "${!tag_hash[@]}"; do\n [[ -n "${has_previous:-}" ]] && printf ','\n printf '"%s": %s' "${version}" "${tag_hash[$version]}"\n has_previous=1\n done\n echo '}'\n echo "${DELIMITER}"\n } | tee -a "${GITHUB_OUTPUT}"\n\n {\n DELIMITER="END_PUSH_$(uuidgen)"\n has_previous=\n echo "push<<${DELIMITER}"\n printf '{'\n for version in "${!push_hash[@]}"; do\n [[ -n "${has_previous:-}" ]] && printf ','\n printf '"%s": %s' "${version}" "${push_hash[$version]}"\n has_previous=1\n done\n echo '}'\n echo "${DELIMITER}"\n } | tee -a "${GITHUB_OUTPUT}"\n\n build:\n needs: generate-tags\n if: github.repository_owner == 'Homebrew'\n name: docker (${{ matrix.arch }} Ubuntu ${{ matrix.version }})\n runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}\n strategy:\n fail-fast: false\n matrix:\n # odeprecated: remove 20.04 image in Homebrew >=4.7\n version: ["20.04", "22.04", "24.04"]\n arch: ["x86_64", "arm64"]\n exclude:\n # odeprecated: remove 20.04 image in Homebrew >=4.7\n - version: "20.04"\n arch: "arm64"\n - arch: ${{ github.event_name == 'release' && 'arm64' }}\n steps:\n - name: Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n fetch-depth: 0\n persist-credentials: false\n\n - name: Fetch origin/master from Git\n run: git fetch origin master\n\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0\n with:\n cache-binary: false\n\n - name: Retrieve build attributes\n id: attributes\n env:\n VERSION: ${{ matrix.version }}\n PUSH: ${{ needs.generate-tags.outputs.push }}\n run: |\n # odeprecated: remove 20.04 image in Homebrew >=4.7\n if [[ "${VERSION}" == "20.04" ]]; then\n echo "The homebrew/ubuntu20.04 image is deprecated and will soon be retired. Use homebrew/ubuntu24.04 or homebrew/brew." > .docker-deprecate\n fi\n\n filter="$(printf '.["%s"]' "${VERSION}")"\n echo "push=$(jq --raw-output "${filter}" <<<"${PUSH}")" >>"${GITHUB_OUTPUT}"\n\n - name: Log in to GitHub Packages (github-actions[bot])\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0\n with:\n registry: ghcr.io\n username: github-actions[bot]\n password: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Build Docker image\n uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0\n with:\n context: .\n load: true\n tags: brew\n cache-from: type=registry,ref=ghcr.io/homebrew/ubuntu${{ matrix.version }}:cache\n build-args: version=${{ matrix.version }}\n labels: ${{ needs.generate-tags.outputs.labels }}\n\n - name: Set environment variables\n run: |\n if [[ "${ARCH}" == "arm64" ]]; then\n echo "HOMEBREW_ARM64_TESTING=1" >> "$GITHUB_ENV"\n fi\n\n # odeprecated: remove 20.04 in Homebrew >=4.7\n if [[ "${VERSION}" == "20.04" ]]; then\n echo "HOMEBREW_GLIBC_TESTING=1" >> "$GITHUB_ENV"\n fi\n env:\n VERSION: ${{ matrix.version }}\n ARCH: ${{ matrix.arch }}\n\n - name: Run brew test-bot --only-setup\n run: docker run --env HOMEBREW_ARM64_TESTING --env HOMEBREW_GLIBC_TESTING --rm brew brew test-bot --only-setup\n\n - name: Log in to GitHub Packages (BrewTestBot)\n if: fromJSON(steps.attributes.outputs.push)\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0\n with:\n registry: ghcr.io\n username: BrewTestBot\n password: ${{ secrets.HOMEBREW_BREW_GITHUB_PACKAGES_TOKEN }}\n\n - name: Deploy the Docker image by digest\n id: digest\n if: fromJSON(steps.attributes.outputs.push)\n uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0\n with:\n context: .\n cache-from: type=registry,ref=ghcr.io/homebrew/ubuntu${{ matrix.version }}:cache\n cache-to: type=registry,ref=ghcr.io/homebrew/ubuntu${{ matrix.version }}:cache,mode=max\n build-args: version=${{ matrix.version }}\n labels: ${{ needs.generate-tags.outputs.labels }}\n outputs: type=image,name=ghcr.io/homebrew/ubuntu${{ matrix.version }},name-canonical=true,push=true,push-by-digest=true\n\n - name: Export the Docker image digest\n if: fromJSON(steps.attributes.outputs.push)\n run: |\n mkdir -p "${RUNNER_TEMP}"/digests\n echo "${DIGEST#sha256:}" >"${RUNNER_TEMP}/digests/${VERSION}-${ARCH}"\n env:\n DIGEST: ${{ steps.digest.outputs.digest }}\n VERSION: ${{ matrix.version }}\n ARCH: ${{ matrix.arch }}\n\n - name: Upload the Docker image digest\n if: fromJSON(steps.attributes.outputs.push)\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: digest-${{ matrix.version }}-${{ matrix.arch }}\n path: ${{ runner.temp }}/digests/*\n\n merge:\n needs: [generate-tags, build]\n if: github.repository_owner == 'Homebrew' && fromJSON(needs.generate-tags.outputs.merge)\n runs-on: ubuntu-latest\n strategy:\n fail-fast: false\n matrix:\n version: ${{ fromJSON(needs.generate-tags.outputs.matrix) }}\n steps:\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0\n with:\n cache-binary: false\n\n - name: Download Docker image digests\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n path: ${{ runner.temp }}/digests\n pattern: digest-${{ matrix.version }}-*\n merge-multiple: true\n\n - name: Log in to Docker Hub\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0\n with:\n username: brewtestbot\n password: ${{ secrets.HOMEBREW_BREW_DOCKER_TOKEN }}\n\n - name: Log in to GitHub Packages (BrewTestBot)\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0\n with:\n registry: ghcr.io\n username: BrewTestBot\n password: ${{ secrets.HOMEBREW_BREW_GITHUB_PACKAGES_TOKEN }}\n\n - name: Merge and push Docker image\n env:\n TAGS: ${{ needs.generate-tags.outputs.tags }}\n VERSION: ${{ matrix.version }}\n run: |\n filter="$(printf '.["%s"].[]' "${VERSION}")"\n tag_args=()\n while IFS=$'\n' read -r tag; do\n [[ -n "${tag}" ]] || continue\n tag_args+=("--tag=${tag}")\n done <<<"$(jq --raw-output "${filter}" <<<"${TAGS}")"\n\n image_args=("ghcr.io/homebrew/ubuntu${VERSION}@sha256:$(<"${RUNNER_TEMP}/digests/${VERSION}-x86_64")")\n # odeprecated: remove 20.04 image in Homebrew >=4.7\n if [[ "${VERSION}" != 20.04 ]]; then\n image_args+=("ghcr.io/homebrew/ubuntu${VERSION}@sha256:$(<"${RUNNER_TEMP}/digests/${VERSION}-arm64")")\n fi\n\n attempts=0\n until docker buildx imagetools create "${tag_args[@]}" "${image_args[@]}"; do\n attempts=$((attempts + 1))\n if [[ $attempts -ge 3 ]]; then\n echo "[$(date -u)] ERROR: Failed after 3 attempts." >&2\n exit 1\n fi\n delay=$((2 ** attempts))\n if [[ $delay -gt 15 ]]; then delay=15; fi\n echo "Push failed (attempt $attempts). Retrying in ${delay} seconds..."\n sleep ${delay}\n done\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\docker.yml | docker.yml | YAML | 11,911 | 0.8 | 0.0625 | 0.024476 | python-kit | 241 | 2025-05-08T13:10:51.416483 | BSD-3-Clause | false | a093972badca3638ba29a9db1138ceae |
name: Documentation CI\n\non:\n pull_request:\n merge_group:\n\npermissions:\n contents: read\n pages: read\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n HOMEBREW_NO_ENV_HINTS: 1\n HOMEBREW_NO_INSTALL_CLEANUP: 1\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n docs:\n runs-on: ubuntu-latest\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n persist-credentials: false\n\n - name: Install vale\n run: brew install vale\n\n - name: Cleanup Homebrew/brew docs\n if: github.repository == 'Homebrew/brew'\n run: |\n # Avoid failing on broken symlinks.\n rm Library/Homebrew/os/mac/pkgconfig/fuse/fuse.pc\n rm Library/Homebrew/os/mac/pkgconfig/fuse/osxfuse.pc\n\n # No ignore support (https://github.com/errata-ai/vale/issues/131).\n rm -r Library/Homebrew/vendor\n\n - name: Run Vale\n run: vale docs/\n\n - name: Install Ruby\n uses: ruby/setup-ruby@ca041f971d66735f3e5ff1e21cc13e2d51e7e535 # v1.233.0\n with:\n bundler-cache: true\n working-directory: docs\n\n - name: Check Markdown syntax\n working-directory: docs\n run: bundle exec rake lint\n\n - name: Check code blocks conform to our Ruby style guide\n run: brew style docs\n\n - name: Generate formulae.brew.sh API samples\n if: github.repository == 'Homebrew/formulae.brew.sh'\n working-directory: docs\n run: ../script/generate-api-samples.rb\n\n - name: Build the site and check for broken links\n working-directory: docs\n run: bundle exec rake test\n env:\n JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\docs.yml | docs.yml | YAML | 1,967 | 0.8 | 0.039474 | 0.032787 | awesome-app | 671 | 2024-03-08T04:10:30.764254 | Apache-2.0 | false | 9aef29444253d13dfc6448c6d7cb78f3 |
name: brew doctor\non:\n pull_request:\n paths:\n - .github/workflows/doctor.yml\n - Library/Homebrew/cmd/doctor.rb\n - Library/Homebrew/diagnostic.rb\n - Library/Homebrew/extend/os/diagnostic.rb\n - Library/Homebrew/extend/os/mac/diagnostic.rb\n - Library/Homebrew/os/mac/xcode.rb\n\npermissions:\n contents: read\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n determine-runners:\n runs-on: ubuntu-latest\n outputs:\n runners: ${{ steps.determine-runners.outputs.runners }}\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Determine runners to use for this job\n id: determine-runners\n env:\n HOMEBREW_MACOS_TIMEOUT: 30\n run: brew determine-test-runners --all-supported\n\n tests:\n needs: determine-runners\n strategy:\n matrix:\n include: ${{ fromJson(needs.determine-runners.outputs.runners) }}\n fail-fast: false\n name: ${{ matrix.name }}\n runs-on: ${{ matrix.runner }}\n timeout-minutes: ${{ matrix.timeout }}\n defaults:\n run:\n working-directory: /tmp\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: true\n\n - run: brew test-bot --only-cleanup-before\n if: matrix.cleanup\n\n - run: brew doctor\n\n - run: brew test-bot --only-cleanup-after\n if: always() && matrix.cleanup\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\doctor.yml | doctor.yml | YAML | 1,699 | 0.7 | 0.042857 | 0 | awesome-app | 264 | 2025-05-11T02:51:26.594521 | Apache-2.0 | false | 72e398f9162372f8081d3e78229348ad |
name: Ruby Documentation CI\n\non:\n push:\n branches:\n - master\n pull_request:\n\npermissions:\n contents: read\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n HOMEBREW_NO_ENV_HINTS: 1\n HOMEBREW_NO_INSTALL_CLEANUP: 1\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n rubydoc:\n if: github.repository == 'Homebrew/brew'\n runs-on: ubuntu-latest\n env:\n BUNDLE_GEMFILE: ${{ github.workspace }}/rubydoc/Gemfile\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Checkout Homebrew/rubydoc.brew.sh\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n repository: Homebrew/rubydoc.brew.sh\n path: rubydoc\n persist-credentials: false\n\n - name: Install Ruby\n uses: ruby/setup-ruby@ca041f971d66735f3e5ff1e21cc13e2d51e7e535 # v1.233.0\n with:\n bundler-cache: true\n working-directory: rubydoc\n\n - name: Process rubydoc comments\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew\n run: bundle exec yard doc --no-output --fail-on-warning\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\rubydoc.yml | rubydoc.yml | YAML | 1,300 | 0.8 | 0.019231 | 0 | awesome-app | 697 | 2024-12-08T15:50:01.558674 | BSD-3-Clause | false | 6fc1d5a7dd6d4482479ba11f5b7d267c |
name: Update schema data\non:\n push:\n paths:\n - .github/workflows/schemas.yml\n branches-ignore:\n - master\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n\npermissions:\n contents: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n spdx:\n if: github.repository == 'Homebrew/brew'\n runs-on: ubuntu-latest\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Configure Git user\n uses: Homebrew/actions/git-user-config@master\n with:\n username: BrewTestBot\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Update schema data\n id: update\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n run: |\n git fetch origin\n\n BRANCH="schema-update"\n echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"\n\n if git ls-remote --exit-code --heads origin "${BRANCH}"\n then\n git checkout "${BRANCH}"\n git checkout "Library/Homebrew/data/schemas"\n else\n git checkout --no-track -B "${BRANCH}" origin/master\n fi\n\n # Intentionally tracking 2.3.x to match what we output in sbom.rb. 3.0 also doesn't have a JSON Schema.\n # Note: this is a 2.3.1 development branch - not a 2.3.1 tag. It contains bugfixes compared to 2.3.0.\n curl --location --output Library/Homebrew/data/schemas/sbom.json https://raw.githubusercontent.com/spdx/spdx-spec/support/v2.3.1/schemas/spdx-schema.json\n # https://github.com/spdx/spdx-spec/pull/1029\n sed -i -e 's|\(2019-09/schema\)#|\1|' Library/Homebrew/data/schemas/sbom.json\n\n if ! git diff --exit-code Library/Homebrew/data/schemas\n then\n git add "Library/Homebrew/data/schemas"\n git commit -m "data/schemas: update schema data." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/schemas.yml)."\n echo "committed=true" >> "$GITHUB_OUTPUT"\n PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"\n if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]\n then\n echo "pull_request=true" >> "$GITHUB_OUTPUT"\n fi\n fi\n\n - name: Push commits\n if: steps.update.outputs.committed == 'true'\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n branch: ${{ steps.update.outputs.branch }}\n force: true\n origin_branch: "master"\n\n - name: Open a pull request\n if: steps.update.outputs.pull_request == 'true'\n run: gh pr create --fill\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\schemas.yml | schemas.yml | YAML | 3,317 | 0.8 | 0.074468 | 0.036585 | react-lib | 213 | 2023-11-05T20:56:30.443824 | GPL-3.0 | false | a10feda4aecec47f5c1fe3b3f1cfd9c3 |
name: Update Sorbet files\n\non:\n pull_request:\n paths:\n - Library/Homebrew/dev-cmd/typecheck.rb\n - Library/Homebrew/sorbet/**\n - "!Library/Homebrew/sorbet/rbi/**"\n push:\n paths:\n - .github/workflows/sorbet.yml\n branches-ignore:\n - master\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n\npermissions:\n contents: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n tapioca:\n if: github.repository == 'Homebrew/brew'\n runs-on: macos-15\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Configure Git user\n if: github.event_name != 'pull_request'\n uses: Homebrew/actions/git-user-config@master\n with:\n username: BrewTestBot\n\n - name: Set up commit signing\n if: github.event_name != 'pull_request'\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Update RBI files\n id: update\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n run: |\n if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]\n then\n git fetch origin\n\n BRANCH="sorbet-files-update"\n echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"\n\n if git ls-remote --exit-code --heads origin "${BRANCH}"\n then\n git checkout "${BRANCH}"\n git checkout "Library/Homebrew/sorbet"\n else\n git checkout --no-track -B "${BRANCH}" origin/master\n fi\n fi\n\n brew typecheck --update --suggest-typed\n\n - name: Commit changes\n id: commit\n if: github.event_name != 'pull_request'\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n run: |\n if ! git diff --stat --exit-code "Library/Homebrew/sorbet"\n then\n git add "Library/Homebrew/sorbet"\n git commit -m "sorbet: Update RBI files." \\n -m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."\n\n if ! git diff --stat --exit-code "Library/Homebrew"\n then\n git add "Library/Homebrew/"\n git commit -m "sorbet: Autobump sigils via Spoom" \\n -m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."\n fi\n\n echo "committed=true" >> "$GITHUB_OUTPUT"\n PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"\n if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]\n then\n echo "pull_request=true" >> "$GITHUB_OUTPUT"\n fi\n fi\n\n - name: Push commits\n if: steps.commit.outputs.committed == 'true'\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n branch: ${{ steps.update.outputs.branch }}\n force: true\n origin_branch: "master"\n\n - name: Open a pull request\n if: steps.commit.outputs.pull_request == 'true'\n run: gh pr create --fill\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\sorbet.yml | sorbet.yml | YAML | 3,733 | 0.8 | 0.104348 | 0 | node-utils | 908 | 2023-12-26T03:49:25.119209 | GPL-3.0 | false | befbb0427047ec7c395691bbea60b3a5 |
name: Update SPDX license data\non:\n push:\n paths:\n - .github/workflows/spdx.yml\n branches-ignore:\n - master\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n\npermissions:\n contents: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n spdx:\n if: github.repository == 'Homebrew/brew'\n runs-on: ubuntu-latest\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Configure Git user\n uses: Homebrew/actions/git-user-config@master\n with:\n username: BrewTestBot\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Update SPDX license data\n id: update\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n run: |\n git fetch origin\n\n BRANCH="spdx-update"\n echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"\n\n if git ls-remote --exit-code --heads origin "${BRANCH}"\n then\n git checkout "${BRANCH}"\n git checkout "Library/Homebrew/data/spdx"\n else\n git checkout --no-track -B "${BRANCH}" origin/master\n fi\n\n if brew update-license-data\n then\n git add "Library/Homebrew/data/spdx"\n git commit -m "spdx: update license data." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/spdx.yml)."\n echo "committed=true" >> "$GITHUB_OUTPUT"\n PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"\n if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]\n then\n echo "pull_request=true" >> "$GITHUB_OUTPUT"\n fi\n fi\n\n - name: Push commits\n if: steps.update.outputs.committed == 'true'\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n branch: ${{ steps.update.outputs.branch }}\n force: true\n origin_branch: "master"\n\n - name: Open a pull request\n if: steps.update.outputs.pull_request == 'true'\n run: gh pr create --fill\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\spdx.yml | spdx.yml | YAML | 2,745 | 0.8 | 0.079545 | 0 | node-utils | 111 | 2024-11-27T22:37:38.211747 | Apache-2.0 | false | f1c899b0601a5694f93013d6421fbdd5 |
name: Update sponsors, maintainers, manpage and completions\n\non:\n push:\n branches:\n - master\n paths:\n - .github/workflows/sponsors-maintainers-man-completions.yml\n - README.md\n - Library/Homebrew/cmd/**\n - Library/Homebrew/dev-cmd/**\n - Library/Homebrew/completions/**\n - Library/Homebrew/manpages/**\n - Library/Homebrew/cli/parser.rb\n - Library/Homebrew/completions.rb\n - Library/Homebrew/env_config.rb\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n\npermissions:\n contents: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n updates:\n runs-on: ubuntu-latest\n if: github.repository == 'Homebrew/brew'\n steps:\n - name: Setup Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Configure Git user\n uses: Homebrew/actions/git-user-config@master\n with:\n username: BrewTestBot\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Cache Bundler RubyGems\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ${{ steps.set-up-homebrew.outputs.gems-path }}\n key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}\n restore-keys: ${{ runner.os }}-rubygems-\n\n - name: Update sponsors, maintainers, manpage and completions\n id: update\n run: |\n git fetch origin\n\n if [[ -n "$GITHUB_REF_NAME" && "$GITHUB_REF_NAME" != "master" ]]\n then\n BRANCH="$GITHUB_REF_NAME"\n else\n BRANCH=sponsors-maintainers-man-completions\n fi\n echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"\n\n if git ls-remote --exit-code --heads origin "${BRANCH}"\n then\n git checkout --force "${BRANCH}"\n git checkout "README.md" \\n "docs/Manpage.md" \\n "manpages/brew.1" \\n "completions"\n else\n git checkout --force --no-track -B "${BRANCH}" origin/master\n fi\n\n if brew update-sponsors\n then\n git add "README.md"\n git commit -m "Update sponsors." \\n -m "Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow."\n COMMITTED=true\n fi\n\n if brew update-maintainers\n then\n git add "README.md" \\n "docs/Manpage.md" \\n "manpages/brew.1"\n git commit -m "Update maintainers." \\n -m "Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow."\n COMMITTED=true\n fi\n\n if brew generate-man-completions\n then\n git add "README.md" \\n "docs/Manpage.md" \\n "manpages/brew.1" \\n "completions"\n git commit -m "Update manpage and completions." \\n -m "Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow."\n COMMITTED=true\n fi\n\n if [[ -n "${COMMITTED-}" ]]\n then\n echo "committed=true" >> "$GITHUB_OUTPUT"\n PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"\n if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]\n then\n echo "pull_request=true" >> "$GITHUB_OUTPUT"\n fi\n fi\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_BREW_UPDATE_SPONSORS_MAINTAINERS_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n\n - name: Push commits\n if: steps.update.outputs.committed == 'true'\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n branch: ${{ steps.update.outputs.branch }}\n force: true\n\n - name: Open a pull request\n if: steps.update.outputs.pull_request == 'true'\n run: gh pr create --fill\n env:\n GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\sponsors-maintainers-man-completions.yml | sponsors-maintainers-man-completions.yml | YAML | 4,929 | 0.8 | 0.079137 | 0 | python-kit | 291 | 2023-09-18T02:08:56.947057 | GPL-3.0 | false | 0ad470ec5f600521abc0d47ef3b3687e |
# This file is synced from the `.github` repository, do not modify it directly.\nname: Manage stale issues\n\non:\n push:\n paths:\n - .github/workflows/stale-issues.yml\n branches-ignore:\n - dependabot/**\n schedule:\n # Once every day at midnight UTC\n - cron: "0 0 * * *"\n issue_comment:\n\npermissions: {}\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: stale-issues\n cancel-in-progress: ${{ github.event_name != 'issue_comment' }}\n\njobs:\n stale:\n if: >\n github.repository_owner == 'Homebrew' && (\n github.event_name != 'issue_comment' || (\n contains(github.event.issue.labels.*.name, 'stale') ||\n contains(github.event.pull_request.labels.*.name, 'stale')\n )\n )\n runs-on: ubuntu-latest\n permissions:\n contents: write\n issues: write\n pull-requests: write\n steps:\n - name: Mark/Close Stale Issues and Pull Requests\n uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n days-before-stale: 21\n days-before-close: 7\n stale-issue-message: >\n This issue has been automatically marked as stale because it has not had\n recent activity. It will be closed if no further activity occurs.\n stale-pr-message: >\n This pull request has been automatically marked as stale because it has not had\n recent activity. It will be closed if no further activity occurs.\n exempt-issue-labels: "gsoc-outreachy,help wanted,in progress"\n exempt-pr-labels: "gsoc-outreachy,help wanted,in progress"\n delete-branch: true\n\n bump-pr-stale:\n if: >\n github.repository_owner == 'Homebrew' && (\n github.event_name != 'issue_comment' || (\n contains(github.event.issue.labels.*.name, 'stale') ||\n contains(github.event.pull_request.labels.*.name, 'stale')\n )\n )\n runs-on: ubuntu-latest\n permissions:\n contents: write\n issues: write\n pull-requests: write\n steps:\n - name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests\n uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n days-before-stale: 2\n days-before-close: 1\n stale-pr-message: >\n This pull request has been automatically marked as stale because it has not had\n recent activity. It will be closed if no further activity occurs. To keep this\n pull request open, add a `help wanted` or `in progress` label.\n exempt-pr-labels: "help wanted,in progress"\n any-of-labels: "bump-formula-pr,bump-cask-pr"\n delete-branch: true\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\stale-issues.yml | stale-issues.yml | YAML | 2,824 | 0.8 | 0.060976 | 0.026316 | awesome-app | 532 | 2024-05-10T22:15:47.302941 | BSD-3-Clause | false | fd48631afaa186a74e225f6e38e95dfb |
name: Vendor Gems\n\non:\n pull_request:\n paths:\n - Library/Homebrew/dev-cmd/vendor-gems.rb\n - Library/Homebrew/Gemfile*\n push:\n paths:\n - .github/workflows/vendor-gems.yml\n branches-ignore:\n - master\n workflow_dispatch:\n inputs:\n pull_request:\n description: Pull request number\n required: true\n\npermissions:\n contents: read\n pull-requests: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n vendor-gems:\n if: github.repository_owner == 'Homebrew'\n runs-on: macos-15\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Configure Git user\n if: github.event_name == 'workflow_dispatch'\n uses: Homebrew/actions/git-user-config@master\n with:\n username: BrewTestBot\n\n - name: Set up commit signing\n if: github.event_name == 'workflow_dispatch'\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Check out pull request\n id: checkout\n if: github.event_name == 'workflow_dispatch'\n run: |\n gh pr checkout "${PR}"\n\n branch="$(git branch --show-current)"\n echo "branch=${branch}" >> "$GITHUB_OUTPUT"\n\n gem_name="$(echo "${branch}" | sed -E 's|.*/||;s|(.*)-.*$|\1|')"\n echo "gem_name=${gem_name}" >> "$GITHUB_OUTPUT"\n env:\n PR: ${{ github.event.pull_request.number || github.event.inputs.pull_request }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n\n - name: Vendor Gems\n run: |\n if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]\n then\n brew vendor-gems --non-bundler-gems\n else\n brew vendor-gems --non-bundler-gems --no-commit\n fi\n\n - name: Update RBI files\n run: brew typecheck --update\n\n - name: Commit RBI changes\n if: github.event_name == 'workflow_dispatch'\n env:\n GEM_NAME: ${{ steps.checkout.outputs.gem_name }}\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n run: |\n if ! git diff --stat --exit-code "Library/Homebrew/sorbet"\n then\n git add "Library/Homebrew/sorbet"\n git commit -m "Update RBI files for ${GEM_NAME}." \\n -m "Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow."\n fi\n\n - name: Generate push token\n uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2\n id: app-token\n if: github.event_name == 'workflow_dispatch'\n with:\n app-id: ${{ vars.BREW_COMMIT_APP_ID }}\n private-key: ${{ secrets.BREW_COMMIT_APP_KEY }}\n\n - name: Push to pull request\n if: github.event_name == 'workflow_dispatch'\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{ steps.app-token.outputs.token }}\n directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n branch: ${{ steps.checkout.outputs.branch }}\n force: true\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\vendor-gems.yml | vendor-gems.yml | YAML | 3,421 | 0.95 | 0.101852 | 0 | react-lib | 289 | 2024-05-21T20:40:08.645815 | BSD-3-Clause | false | cf28533869cb160df10a6a213cf9f598 |
name: Check Vendor Version\n\non:\n pull_request:\n paths:\n - .github/workflows/vendor-version.yml\n - Library/Homebrew/vendor/bundle/ruby/**\n\npermissions:\n contents: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n check-vendor-version:\n runs-on: ubuntu-latest\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Install Bundler RubyGems\n run: brew install-bundler-gems --groups=all\n\n - name: Get Ruby ABI version\n id: ruby-abi\n run: echo "version=$(brew ruby -e "puts Gem.ruby_api_version")" >> "${GITHUB_OUTPUT}"\n\n - name: Get gem info\n id: gem-info\n working-directory: ${{ steps.set-up-homebrew.outputs.gems-path }}/${{ steps.ruby-abi.outputs.version }}/gems\n run: |\n {\n echo "vendor-version=$(<../.homebrew_vendor_version)"\n echo "ignored<<EOS"\n git check-ignore -- *\n echo "EOS"\n } >> "${GITHUB_OUTPUT}"\n\n - name: Compare to base ref\n working-directory: ${{ steps.set-up-homebrew.outputs.gems-path }}/${{ steps.ruby-abi.outputs.version }}\n env:\n ABI_VERSION: ${{ steps.ruby-abi.outputs.version }}\n VENDOR_VERSION: ${{ steps.gem-info.outputs.vendor-version }}\n IGNORED_GEMS: ${{ steps.gem-info.outputs.ignored }}\n run: |\n git checkout "origin/${GITHUB_BASE_REF}"\n rm .homebrew_vendor_version\n brew install-bundler-gems --groups=all\n if [[ "$(brew ruby -e "puts Gem.ruby_api_version")" == "${ABI_VERSION}" && \\n "$(<.homebrew_vendor_version)" == "${VENDOR_VERSION}" ]]\n then\n while IFS= read -r gem; do\n gem_dir="./gems/${gem}"\n [[ -d "${gem_dir}" ]] || continue\n exit_code=0\n git check-ignore --quiet "${gem_dir}" || exit_code=$?\n if (( exit_code != 0 )); then\n if (( exit_code == 1 )); then\n echo "::error::VENDOR_VERSION needs bumping in utils/gems.rb" >&2\n else\n echo "::error::git check-ignore failed" >&2\n fi\n exit "${exit_code}"\n fi\n done <<< "${IGNORED_GEMS}"\n fi\n | dataset_sample\yaml\Homebrew_brew\.github\workflows\vendor-version.yml | vendor-version.yml | YAML | 2,406 | 0.8 | 0.054795 | 0 | node-utils | 735 | 2023-12-12T20:03:53.924498 | Apache-2.0 | false | e5fe9e436759ff106164fce7ece0a4af |
inherit_from: ../Library/.rubocop.yml\n\nAllCops:\n Exclude:\n - "**/_site/**/*"\n - "**/Manpage.md"\n - "**/vendor/**/*"\n\n# These are included in docs deliberately to show what\n# `brew create` does and what the user should replace.\nFormulaAudit/Comments:\n Enabled: false\n\n# This forces us to use dummy descriptions/homepages in example formulae which we don't need to clutter the docs with.\nFormulaAudit/Desc:\n Enabled: false\nFormulaAudit/Homepage:\n Enabled: false\n\nLayout/LineLength:\n Exclude:\n - "**/Bottles.md" # The bottle block line length is long in its full form.\n\n# Apparently Casks are allowed to have constant definitions in blocks and we document this.\nLint/ConstantDefinitionInBlock:\n Enabled: false\n\n# A fake regexp is deliberately documented for `inreplace` in the Formula Cookbook.\nStyle/RedundantRegexpArgument:\n Enabled: false\n\n# Want to be able to display partial formulae in the docs.\nStyle/TopLevelMethodDefinition:\n Enabled: false\n\n# Formulae and Casks no longer use `rm_f`/`rm_rf`, so the docs need to match.\nLint/NonAtomicFileOperation:\n Enabled: false\n\n# The markdown linter config files don't need to be typed strict.\nSorbet/StrictSigil:\n Enabled: false\n | dataset_sample\yaml\Homebrew_brew\docs\.rubocop.yml | .rubocop.yml | YAML | 1,196 | 0.8 | 0.02381 | 0.242424 | react-lib | 659 | 2025-04-05T04:49:49.742165 | MIT | false | 3b43e5d0d48ceeb34bb70108cd9ed6b4 |
title: Homebrew Documentation\ndescription: Documentation for the missing package manager for macOS (or Linux).\n\nremote_theme: Homebrew/brew.sh\n\nexclude:\n - bin\n - CNAME\n - Gemfile*\n - vale-styles\n - vendor\n\nplugins:\n - jekyll-redirect-from\n - jekyll-remote-theme\n - jekyll-seo-tag\n - jekyll-sitemap\n\npermalink: :title\n\ndefaults:\n - scope:\n path: ""\n values:\n image: /assets/img/homebrew-256x256.png\n search_name: Documentation\n search_site: docs\n - scope:\n path: governance\n values:\n category: governance-archives\n\nkramdown:\n toc_levels: 2..3\n\nlogo: /assets/img/homebrew.svg\n\ntwitter:\n username: MacHomebrew\n\nfacebook:\n publisher: https://www.facebook.com/machomebrew/\n | dataset_sample\yaml\Homebrew_brew\docs\_config.yml | _config.yml | YAML | 719 | 0.8 | 0.047619 | 0 | vue-tools | 169 | 2024-04-07T11:07:52.075251 | MIT | false | 5cd262f94671c494983120231e2472db |
---\nextends: substitution\nmessage: Use '%s' instead of '%s'.\nignorecase: false\nlink: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#style-and-usage"\nlevel: error\nnonword: true\nswap:\n '\beg\b': e.g.\n '\bie\b': i.e.\n 'e\.g\.,': e.g.\n 'i\.e\.,': i.e.\n '(?<!^\{.*|\.|<)\borg\b': organisation\n '(?<!^\{.*)\borgs\b': organisations\n '(?<!^\{.*|<|\{#)\brepo\b': repository # FIXME: https://github.com/errata-ai/vale/issues/818\n '(?<!^\{.*)\brepos\b': repositories\n '\bivar\b': instance variable\n '\bivars\b': instance variables\n | dataset_sample\yaml\Homebrew_brew\docs\vale-styles\Homebrew\Abbreviations.yml | Abbreviations.yml | YAML | 558 | 0.8 | 0 | 0 | react-lib | 758 | 2024-02-09T06:42:46.664002 | BSD-3-Clause | false | 74f1c8532c85f00282e9059dd6fa5597 |
---\nextends: existence\nmessage: "No Oxford commas!"\nlink: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions"\nscope: sentence\nlevel: error\ntokens:\n - '(?:[^,]+,){1,}\s\w+,\sand'\n | dataset_sample\yaml\Homebrew_brew\docs\vale-styles\Homebrew\OxfordComma.yml | OxfordComma.yml | YAML | 229 | 0.8 | 0 | 0 | react-lib | 612 | 2025-05-20T09:45:40.386546 | MIT | false | fc570a70c6f79a292abeea25ab0fb816 |
---\nextends: existence\nmessage: Avoid gender-specific language when not necessary.\nlink: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#personal-pronouns"\nlevel: error\nignorecase: true\ntokens:\n - him\n - her\n - she\n - he\n - his\n - hers\n - himself\n - herself\n | dataset_sample\yaml\Homebrew_brew\docs\vale-styles\Homebrew\Pronouns.yml | Pronouns.yml | YAML | 293 | 0.8 | 0 | 0 | node-utils | 602 | 2023-09-19T18:56:23.343586 | MIT | false | 86df51687dd476feeb9fb26890d6edf7 |
---\nextends: existence\nmessage: "'%s' should have one space."\nlink: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions"\nlevel: error\nnonword: true\ntokens:\n - '(?<!^\{.*)[a-z][.?!][A-Z]' # FIXME: https://github.com/errata-ai/vale/issues/818\n - '[.?!] {2,}[A-Z]'\n | dataset_sample\yaml\Homebrew_brew\docs\vale-styles\Homebrew\Spacing.yml | Spacing.yml | YAML | 313 | 0.8 | 0 | 0 | awesome-app | 810 | 2023-11-30T22:04:26.938612 | MIT | false | 0bd7748296ebec3c73d53272b18e7df2 |
---\nextends: substitution\nmessage: Use '%s' instead of '%s'.\nlink: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#terminology-words-and-word-styling"\nlevel: error\nscope: paragraph\n\nswap:\n '(?<!How to Open a Homebrew )Pull Request': pull request\n Rubocop: RuboCop\n '(?<!^\{.*)MacOS': macOS # FIXME: https://github.com/errata-ai/vale/issues/818\n '(?<!^\{.*|^!/.*)ruby': Ruby # FIXME: https://github.com/errata-ai/vale/issues/818\n | dataset_sample\yaml\Homebrew_brew\docs\vale-styles\Homebrew\Terms.yml | Terms.yml | YAML | 459 | 0.8 | 0 | 0 | vue-tools | 221 | 2024-07-27T01:26:41.113696 | Apache-2.0 | false | b5ee1fd2a40e2d7ffd0c4ed87ba7dc53 |
extends: capitalization\nmessage: "'%s' should be in title case"\nlevel: error\nscope: heading.h1\nmatch: $title\nstyle: AP\nexceptions:\n - brew(1)\n - macOS\n - Homebrew/brew\n - Homebrew/homebrew-core\n - Homebrew/homebrew-cask\n - (or Linux)\n | dataset_sample\yaml\Homebrew_brew\docs\vale-styles\Homebrew\Titles.yml | Titles.yml | YAML | 240 | 0.7 | 0 | 0 | vue-tools | 887 | 2023-07-17T02:22:42.833266 | Apache-2.0 | false | 74ae3517cb696a8a70a85f0bafa46e13 |
---\nextends: existence\nmessage: 'No "TM", ™, SM, ©, ®, or other explicit indicators of rights ownership or trademarks'\nlink: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions"\nlevel: error\nnonword: true\ntokens:\n - \bTM\b\n - ™\n - \bSM\b\n - ©\n - ®\n | dataset_sample\yaml\Homebrew_brew\docs\vale-styles\Homebrew\Trademarks.yml | Trademarks.yml | YAML | 310 | 0.8 | 0 | 0 | react-lib | 481 | 2024-07-18T07:35:01.344723 | GPL-3.0 | false | ce041b0d5860f64b35b244aab58d68a2 |
---\nplugins:\n - rubocop-md:\n plugin_class_name: RuboCop::Markdown::Plugin\n - rubocop-performance:\n plugin_class_name: RuboCop::Performance::Plugin\n - rubocop-rspec:\n plugin_class_name: RuboCop::RSpec::Plugin\n - rubocop-sorbet:\n plugin_class_name: RuboCop::Sorbet::Plugin\n\nrequire:\n - ./Homebrew/rubocops.rb\n\ninherit_mode:\n merge:\n - Include\n - Exclude\n\nAllCops:\n # TODO: This is the default parser in Ruby >= 3.4\n # https://github.com/rubocop/rubocop-ast/blob/6b9136235219e9448ee4f369e17cf69bcd9db621/lib/rubocop/ast/processed_source.rb#L385\n ParserEngine: parser_prism\n TargetRubyVersion: 3.3\n NewCops: enable\n Include:\n - "**/*.rbi"\n Exclude:\n - "Homebrew/sorbet/rbi/{dsl,gems}/**/*.rbi"\n - "Homebrew/sorbet/rbi/parser*.rbi"\n - "Homebrew/bin/*"\n - "Homebrew/vendor/**/*"\n - "Taps/*/*/vendor/**/*"\n SuggestExtensions:\n rubocop-minitest: false\n\nCask/Desc:\n Description: "Ensure that the desc stanza conforms to various content and style checks."\n Enabled: true\n\nCask/HomepageUrlStyling:\n Description: "Ensure that the homepage url has the correct format and styling."\n Enabled: true\n\nCask/StanzaGrouping:\n Description: "Ensure that cask stanzas are grouped correctly. More info at https://docs.brew.sh/Cask-Cookbook#stanza-order"\n Enabled: true\n\nCask/StanzaOrder:\n Description: "Ensure that cask stanzas are sorted correctly. More info at https://docs.brew.sh/Cask-Cookbook#stanza-order"\n Enabled: true\n\nFormulaAudit:\n Enabled: true\n\nFormulaAuditStrict:\n Enabled: true\n\nHomebrew:\n Enabled: true\n\nHomebrew/Blank:\n Exclude:\n # Core extensions are not available here:\n - "Homebrew/startup/bootsnap.rb"\n\nHomebrew/CompactBlank:\n Exclude:\n # `blank?` is not necessarily available here:\n - "Homebrew/extend/enumerable.rb"\n\nHomebrew/NoFileutilsRmrf:\n Include:\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n\n# only used internally\nHomebrew/MoveToExtendOS:\n Enabled: false\n\nHomebrew/NegateInclude:\n Exclude:\n # `exclude?` is not available here:\n - "Homebrew/standalone/init.rb"\n - "Homebrew/rubocops/**/*"\n - "Homebrew/sorbet/tapioca/**/*"\n\n# `system` is a special case and aligns on second argument, so allow this for formulae.\nLayout/ArgumentAlignment:\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\n\n# this is a bit less "floaty"\nLayout/CaseIndentation:\n EnforcedStyle: end\n\n# significantly less indentation involved; more consistent\nLayout/FirstArrayElementIndentation:\n EnforcedStyle: consistent\nLayout/FirstHashElementIndentation:\n EnforcedStyle: consistent\n\n# this is a bit less "floaty"\nLayout/EndAlignment:\n EnforcedStyleAlignWith: start_of_line\n\n# make our hashes consistent\nLayout/HashAlignment:\n EnforcedHashRocketStyle: table\n EnforcedColonStyle: table\n\n# Need to allow #: for external commands.\nLayout/LeadingCommentSpace:\n Exclude:\n - "Taps/*/*/cmd/*.rb"\n\n# GitHub diff UI wraps beyond 118 characters\nLayout/LineLength:\n Max: 118\n # ignore manpage comments and long single-line strings\n AllowedPatterns:\n [\n "#: ",\n ' url "',\n ' mirror "',\n " plist_options ",\n ' executable: "',\n ' font "',\n ' homepage "',\n ' name "',\n ' pkg "',\n ' pkgutil: "',\n " sha256 cellar: ",\n " sha256 ",\n "#{language}",\n "#{version.",\n ' "/Library/Application Support/',\n '"/Library/Caches/',\n '"/Library/PreferencePanes/',\n ' "~/Library/Application Support/',\n '"~/Library/Caches/',\n '"~/Library/Containers',\n '"~/Application Support',\n " was verified as official when first introduced to the cask",\n ]\n\n# conflicts with DSL-style path concatenation with `/`\nLayout/SpaceAroundOperators:\n Enabled: false\n\n# makes DSL usage ugly.\nLayout/SpaceBeforeBrackets:\n Exclude:\n - "**/*_spec.rb"\n - "Taps/*/*/*.rb"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n\n# favour parens-less DSL-style arguments\nLint/AmbiguousBlockAssociation:\n Enabled: false\n\nLint/DuplicateBranch:\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n\n# so many of these in formulae and can't be autocorrected\nLint/ParenthesesAsGroupedExpression:\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\n\n# unused keyword arguments improve APIs\nLint/UnusedMethodArgument:\n AllowUnusedKeywordArguments: true\n\n# These metrics didn't end up helping.\nMetrics:\n Enabled: false\n\n# Disabled because it breaks Sorbet: "The declaration for `with` is missing parameter(s): & (RuntimeError)"\nNaming/BlockForwarding:\n Enabled: false\n\n# Allow dashes in filenames.\nNaming/FileName:\n Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/\n\n# Implicitly allow EOS as we use it everywhere.\nNaming/HeredocDelimiterNaming:\n ForbiddenDelimiters:\n - END, EOD, EOF\n\nNaming/InclusiveLanguage:\n CheckStrings: true\n FlaggedTerms:\n slave:\n AllowedRegex:\n - "gitslave" # Used in formula `gitslave`\n - "log_slave" # Used in formula `ssdb`\n - "ssdb_slave" # Used in formula `ssdb`\n - "var_slave" # Used in formula `ssdb`\n - "patches/13_fix_scope_for_show_slave_status_data.patch" # Used in formula `mytop`\n\nNaming/MethodName:\n AllowedPatterns:\n - '\A(fetch_)?HEAD\?\Z'\n\nNaming/MethodParameterName:\n inherit_mode:\n merge:\n - AllowedNames\n\n# Both styles are used depending on context,\n# e.g. `sha256` and `something_countable_1`.\nNaming/VariableNumber:\n Enabled: false\n\n# Makes code less readable for minor performance increases.\nPerformance/Caller:\n Enabled: false\n\n# Does not hinder readability, so might as well enable it.\nPerformance/CaseWhenSplat:\n Enabled: true\n\n# Makes code less readable for minor performance increases.\nPerformance/MethodObjectAsBlock:\n Enabled: false\n\nRSpec:\n Include:\n - "Homebrew/test/**/*"\n\n# Intentionally disabled as it doesn't fit with our code style.\nRSpec/AnyInstance:\n Enabled: false\nRSpec/IncludeExamples:\n Enabled: false\nRSpec/SpecFilePathFormat:\n Enabled: false\nRSpec/StubbedMock:\n Enabled: false\nRSpec/SubjectStub:\n Enabled: false\n# These were ever-growing numbers, not useful.\nRSpec/ExampleLength:\n Enabled: false\nRSpec/MultipleExpectations:\n Enabled: false\nRSpec/NestedGroups:\n Enabled: false\nRSpec/MultipleMemoizedHelpers:\n Enabled: false\n\nRSpec/DescribedClassModuleWrapping:\n Enabled: true\n# Annoying to have these autoremoved.\nRSpec/Focus:\n AutoCorrect: false\n# We use `allow(:foo).to receive(:bar)` everywhere.\nRSpec/MessageSpies:\n EnforcedStyle: receive\n\n# These are legacy violations that we should try to fix.\nSorbet/AllowIncompatibleOverride:\n Exclude:\n - "Homebrew/livecheck/strategy/*.rb"\n\n# Try getting rid of these.\nSorbet/ConstantsFromStrings:\n Enabled: false\n\n# This is already the default\nSorbet/FalseSigil:\n Enabled: false\n\n# We generally prefer to colo rbi files with the Ruby files they describe.\nSorbet/ForbidRBIOutsideOfAllowedPaths:\n Enabled: false\n\n# T::Sig is monkey-patched into Module\nSorbet/RedundantExtendTSig:\n Enabled: true\n\n# We make limited and intentional use of refinements.\n# It's posssible this may change in the future, though we probably still do not want to ban it in taps\n# and Sorbet typecheck will tell us what is and isn't a problem anyway.\n# Right now, our use of refinements isn't problematic (or at least not yet).\nSorbet/Refinement:\n Enabled: false\n\nSorbet/StrictSigil:\n Enabled: true\n Exclude:\n - "Taps/**/*"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - "Homebrew/utils/ruby_check_version_script.rb" # A standalone script.\n - "Homebrew/{standalone,startup}/*.rb" # These are loaded before sorbet-runtime\n - "Homebrew/test/**/*.rb"\n - "Homebrew/bundle/{brew_dumper,checker,commands/exec}.rb" # These aren't typed: true yet.\n\nSorbet/TrueSigil:\n Enabled: true\n Exclude:\n - "Taps/**/*"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - "Homebrew/test/**/*.rb"\n\n# Require &&/|| instead of and/or\nStyle/AndOr:\n EnforcedStyle: always\n\n# Disabled because it breaks Sorbet: "The declaration for `with` is missing parameter(s): & (RuntimeError)"\nStyle/ArgumentsForwarding:\n Enabled: false\n\n# Avoid leaking resources.\nStyle/AutoResourceCleanup:\n Enabled: true\n\n# This makes these a little more obvious.\nStyle/BarePercentLiterals:\n EnforcedStyle: percent_q\n\nStyle/BlockDelimiters:\n BracesRequiredMethods:\n - "sig"\n\nStyle/ClassAndModuleChildren:\n Exclude:\n - "**/*.rbi"\n\n# Use consistent style for better readability.\nStyle/CollectionMethods:\n Enabled: true\n\n# Don't allow cops to be disabled in casks and formulae.\nStyle/DisableCopsWithinSourceCodeDirective:\n Enabled: true\n Include:\n - "Taps/*/*/*.rb"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n\n# The files actually scanned in this cop are in `Library/Homebrew/.rubocop.yml`.\nStyle/Documentation:\n Exclude:\n - "Taps/**/*"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - "**/*.rbi"\n\n# This is impossible to fix if the line exceeds the maximum length.\nStyle/EmptyMethod:\n Exclude:\n - "**/*.rbi"\n\n# This is quite a large change, so don't enforce this yet for formulae.\n# We should consider doing so in the future, but be aware of the impact on third-party taps.\nStyle/FetchEnvVar:\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\n\n# Not used for casks and formulae.\nStyle/FrozenStringLiteralComment:\n EnforcedStyle: always\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - "Homebrew/test/**/Casks/**/*.rb"\n - "**/*.rbi"\n - "**/Brewfile"\n\n# potential for errors in formulae too high with this\nStyle/GuardClause:\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n\n# Allow for license expressions\nStyle/HashAsLastArrayItem:\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\n\nStyle/InverseMethods:\n InverseMethods:\n :blank?: :present?\n\nStyle/InvertibleUnlessCondition:\n Enabled: true\n InverseMethods:\n # Favor `if a != b` over `unless a == b`\n :==: :!=\n # Unset this (prefer `unless a.zero?` over `if a.nonzero?`)\n :zero?:\n :blank?: :present?\n\nStyle/MutableConstant:\n # would rather freeze too much than too little\n EnforcedStyle: strict\n\n# Zero-prefixed octal literals are widely used and understood.\nStyle/NumericLiteralPrefix:\n EnforcedOctalStyle: zero_only\n\n# Only use this for numbers >= `1_000_000`.\nStyle/NumericLiterals:\n MinDigits: 7\n Strict: true\n Exclude:\n - "**/Brewfile"\n\nStyle/OpenStructUse:\n Exclude:\n - "Taps/**/*"\n\nStyle/OptionalBooleanParameter:\n AllowedMethods:\n # These are overrides of core library methods\n # see https://ruby-doc.org/3.3.4/Object.html#method-i-respond_to-3F\n - respond_to?\n - respond_to_missing?\n\n# Broken in RuboCop 1.68.0 so tries to fix line continuations in inline patch blocks:\n# https://github.com/Homebrew/brew/actions/runs/11653110391/job/32460881827?pr=18682\nStyle/RedundantLineContinuation:\n Enabled: false\n\n# Rescuing `StandardError` is an understood default.\nStyle/RescueStandardError:\n EnforcedStyle: implicit\n\n# Returning `nil` is unnecessary.\nStyle/ReturnNil:\n Enabled: true\n\n# We have no use for using `warn` because we\n# are calling Ruby with warnings disabled.\nStyle/StderrPuts:\n Enabled: false\n\n# so many of these in formulae and can't be autocorrected\nStyle/StringConcatenation:\n Exclude:\n - "Taps/*/*/*.rb"\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n\n# ruby style guide favorite\nStyle/StringLiterals:\n EnforcedStyle: double_quotes\n\n# consistency with above\nStyle/StringLiteralsInInterpolation:\n EnforcedStyle: double_quotes\n\n# Use consistent method names.\nStyle/StringMethods:\n Enabled: true\n\n# Treating this the same as Style/MethodCallWithArgsParentheses\nStyle/SuperWithArgsParentheses:\n Enabled: false\n\n# An array of symbols is more readable than a symbol array\n# and also allows for easier grepping.\nStyle/SymbolArray:\n EnforcedStyle: brackets\n\n# make things a bit easier to read\nStyle/TernaryParentheses:\n EnforcedStyle: require_parentheses_when_complex\n\nStyle/TopLevelMethodDefinition:\n Enabled: true\n Exclude:\n - "Taps/**/*"\n\n# Trailing commas make diffs nicer.\nStyle/TrailingCommaInArguments:\n EnforcedStyleForMultiline: comma\nStyle/TrailingCommaInArrayLiteral:\n EnforcedStyleForMultiline: comma\nStyle/TrailingCommaInHashLiteral:\n EnforcedStyleForMultiline: comma\n\n# `unless ... ||` and `unless ... &&` are hard to mentally parse\nStyle/UnlessLogicalOperators:\n Enabled: true\n EnforcedStyle: forbid_logical_operators\n\n# a bit confusing to non-Rubyists but useful for longer arrays\nStyle/WordArray:\n MinSize: 4\n | dataset_sample\yaml\Homebrew_brew\Library\.rubocop.yml | .rubocop.yml | YAML | 12,878 | 0.95 | 0.037402 | 0.184834 | awesome-app | 571 | 2024-11-18T19:15:06.185462 | Apache-2.0 | false | 5ab04400229262a3c08360caf6c61acb |
inherit_from:\n - ../.rubocop.yml\n\nBundler/GemFilename:\n Enabled: false\n\nHomebrew/MoveToExtendOS:\n Enabled: true\n Exclude:\n - "{extend,test,requirements}/**/*"\n - "os.rb"\n\nNaming/PredicateName:\n inherit_mode:\n merge:\n - AllowedMethods\n AllowedMethods:\n - is_32_bit?\n - is_64_bit?\n\n# Only enforce documentation for public APIs.\n# Checked by the tests.yml syntax job\nStyle/Documentation:\n AllowedConstants:\n - Homebrew\n Include:\n - abstract_command.rb\n - cask/cask.rb\n - cask/dsl.rb\n - cask/dsl/version.rb\n - cask/url.rb\n - development_tools.rb\n - download_strategy.rb\n - extend/ENV/super.rb\n - extend/kernel.rb\n - extend/pathname.rb\n - formula.rb\n - formula_assertions.rb\n - formula_free_port.rb\n - language/java.rb\n - language/node.rb\n - language/perl.rb\n - language/php.rb\n - language/python.rb\n - livecheck/strategy/apache.rb\n - livecheck/strategy/bitbucket.rb\n - livecheck/strategy/cpan.rb\n - livecheck/strategy/crate.rb\n - livecheck/strategy/extract_plist.rb\n - livecheck/strategy/git.rb\n - livecheck/strategy/github_latest.rb\n - livecheck/strategy/github_releases.rb\n - livecheck/strategy/gnome.rb\n - livecheck/strategy/gnu.rb\n - livecheck/strategy/hackage.rb\n - livecheck/strategy/json.rb\n - livecheck/strategy/launchpad.rb\n - livecheck/strategy/npm.rb\n - livecheck/strategy/page_match.rb\n - livecheck/strategy/pypi.rb\n - livecheck/strategy/sourceforge.rb\n - livecheck/strategy/sparkle.rb\n - livecheck/strategy/xml.rb\n - livecheck/strategy/xorg.rb\n - livecheck/strategy/yaml.rb\n - os.rb\n - resource.rb\n - startup/config.rb\n - utils/inreplace.rb\n - utils/shebang.rb\n - utils/string_inreplace_extension.rb\n - version.rb\n - tap.rb\n\nHomebrew/NegateInclude:\n Exclude:\n # YARD runs stand-alone.\n - yard/docstring_parser.rb\n\nStyle/DocumentationMethod:\n Include:\n - "formula.rb"\n | dataset_sample\yaml\Homebrew_brew\Library\Homebrew\.rubocop.yml | .rubocop.yml | YAML | 1,959 | 0.95 | 0.012195 | 0.039474 | node-utils | 332 | 2024-03-06T07:40:15.582587 | GPL-3.0 | false | 01a2ddbc9218c29243aa8d6bcd625e5c |
---\n# see https://github.com/Shopify/tapioca?tab=readme-ov-file#configuration\ngem:\n exclude:\n # These conflict with the rbi files provided by sorbet:\n - base64\n - benchmark\n - bigdecimal\n - json\n - logger\n - racc\n - rexml\n # These aren't needed:\n - coderay\n - diff-lcs\n - docile\n - hana\n - language_server-protocol\n - netrc\n - parallel\n - public_suffix\n - redcarpet\n - rspec-github\n - rspec-mocks\n - rspec-retry\n - rspec\n - rspec_junit_formatter\n - rubocop-md\n - rubocop-performance\n - rubocop-sorbet\n - ruby-prof\n - simplecov_json_formatter\n - simpleidn\n - unicode-display_width\n - unicode-emoji\n - yard-sorbet\n # The tapioca generated gem is not correct or sufficient for pycall\n # so we need to generate our own:\n - pycall\n # Skipping rbi generation for parser results in a 7x performance\n # improvement in `brew typecheck --update--all`, so we just persist it\n # instead. (This gem is only needed by rubocop, which is in the process of\n # migrating to prism.)\n - parser\n prerequire: sorbet/tapioca/prerequire.rb\n | dataset_sample\yaml\Homebrew_brew\Library\Homebrew\sorbet\tapioca\config.yml | config.yml | YAML | 1,138 | 0.95 | 0.044444 | 0.2 | awesome-app | 216 | 2024-07-22T23:39:39.783026 | BSD-3-Clause | false | ea0df4e847c3f1f0879ccf76f8fa20aa |
inherit_from:\n - ../.rubocop.yml\n\nRSpec:\n Include:\n - ./*\n\nRSpec/ContextWording:\n Prefixes:\n - when\n - with\n - without\n - if\n - unless\n - for\n - which\n - to\n | dataset_sample\yaml\Homebrew_brew\Library\Homebrew\test\.rubocop.yml | .rubocop.yml | YAML | 187 | 0.8 | 0.117647 | 0 | awesome-app | 487 | 2023-10-15T07:57:49.035645 | Apache-2.0 | true | aedc4aa88b9259cd29f630912f47f2bc |
# This file is synced from `Homebrew/brew` by the `.github` repository, do not modify it directly.\n---\nAllCops:\n ParserEngine: parser_prism\n TargetRubyVersion: 3.3\n NewCops: enable\n Include:\n - "**/*.rbi"\n Exclude:\n - Homebrew/sorbet/rbi/{dsl,gems}/**/*.rbi\n - Homebrew/sorbet/rbi/parser*.rbi\n - Homebrew/bin/*\n - Homebrew/vendor/**/*\n - Taps/*/*/vendor/**/*\n - "**/vendor/**/*"\n SuggestExtensions:\n rubocop-minitest: false\nLayout/ArgumentAlignment:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nLayout/CaseIndentation:\n EnforcedStyle: end\nLayout/FirstArrayElementIndentation:\n EnforcedStyle: consistent\nLayout/FirstHashElementIndentation:\n EnforcedStyle: consistent\nLayout/EndAlignment:\n EnforcedStyleAlignWith: start_of_line\nLayout/HashAlignment:\n EnforcedHashRocketStyle: table\n EnforcedColonStyle: table\nLayout/LeadingCommentSpace:\n Exclude:\n - Taps/*/*/cmd/*.rb\nLayout/LineLength:\n Max: 118\n AllowedPatterns:\n - "#: "\n - ' url "'\n - ' mirror "'\n - " plist_options "\n - ' executable: "'\n - ' font "'\n - ' homepage "'\n - ' name "'\n - ' pkg "'\n - ' pkgutil: "'\n - " sha256 cellar: "\n - " sha256 "\n - "#{language}"\n - "#{version."\n - ' "/Library/Application Support/'\n - "\"/Library/Caches/"\n - "\"/Library/PreferencePanes/"\n - ' "~/Library/Application Support/'\n - "\"~/Library/Caches/"\n - "\"~/Library/Containers"\n - "\"~/Application Support"\n - " was verified as official when first introduced to the cask"\nLayout/SpaceAroundOperators:\n Enabled: false\nLayout/SpaceBeforeBrackets:\n Exclude:\n - "**/*_spec.rb"\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nLint/AmbiguousBlockAssociation:\n Enabled: false\nLint/DuplicateBranch:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nLint/ParenthesesAsGroupedExpression:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nLint/UnusedMethodArgument:\n AllowUnusedKeywordArguments: true\nMetrics:\n Enabled: false\nNaming/BlockForwarding:\n Enabled: false\nNaming/FileName:\n Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/\nNaming/HeredocDelimiterNaming:\n ForbiddenDelimiters:\n - END, EOD, EOF\nNaming/InclusiveLanguage:\n CheckStrings: true\n FlaggedTerms:\n slave:\n AllowedRegex:\n - gitslave\n - log_slave\n - ssdb_slave\n - var_slave\n - patches/13_fix_scope_for_show_slave_status_data.patch\nNaming/MethodName:\n AllowedPatterns:\n - "\\A(fetch_)?HEAD\\?\\Z"\nNaming/MethodParameterName:\n inherit_mode:\n merge:\n - AllowedNames\nNaming/VariableNumber:\n Enabled: false\nStyle/AndOr:\n EnforcedStyle: always\nStyle/ArgumentsForwarding:\n Enabled: false\nStyle/AutoResourceCleanup:\n Enabled: true\nStyle/BarePercentLiterals:\n EnforcedStyle: percent_q\nStyle/BlockDelimiters:\n BracesRequiredMethods:\n - sig\nStyle/ClassAndModuleChildren:\n Exclude:\n - "**/*.rbi"\nStyle/CollectionMethods:\n Enabled: true\nStyle/DisableCopsWithinSourceCodeDirective:\n Enabled: true\n Include:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nStyle/Documentation:\n Exclude:\n - Taps/**/*\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - "**/*.rbi"\nStyle/EmptyMethod:\n Exclude:\n - "**/*.rbi"\nStyle/FetchEnvVar:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nStyle/FrozenStringLiteralComment:\n EnforcedStyle: always\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - Homebrew/test/**/Casks/**/*.rb\n - "**/*.rbi"\n - "**/Brewfile"\nStyle/GuardClause:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nStyle/HashAsLastArrayItem:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nStyle/InverseMethods:\n InverseMethods:\n :blank?: :present?\nStyle/InvertibleUnlessCondition:\n Enabled: true\n InverseMethods:\n :==: :!=\n :zero?:\n :blank?: :present?\nStyle/MutableConstant:\n EnforcedStyle: strict\nStyle/NumericLiteralPrefix:\n EnforcedOctalStyle: zero_only\nStyle/NumericLiterals:\n MinDigits: 7\n Strict: true\n Exclude:\n - "**/Brewfile"\nStyle/OpenStructUse:\n Exclude:\n - Taps/**/*\nStyle/OptionalBooleanParameter:\n AllowedMethods:\n - respond_to?\n - respond_to_missing?\nStyle/RedundantLineContinuation:\n Enabled: false\nStyle/RescueStandardError:\n EnforcedStyle: implicit\nStyle/ReturnNil:\n Enabled: true\nStyle/StderrPuts:\n Enabled: false\nStyle/StringConcatenation:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nStyle/StringLiterals:\n EnforcedStyle: double_quotes\nStyle/StringLiteralsInInterpolation:\n EnforcedStyle: double_quotes\nStyle/StringMethods:\n Enabled: true\nStyle/SuperWithArgsParentheses:\n Enabled: false\nStyle/SymbolArray:\n EnforcedStyle: brackets\nStyle/TernaryParentheses:\n EnforcedStyle: require_parentheses_when_complex\nStyle/TopLevelMethodDefinition:\n Enabled: true\n Exclude:\n - Taps/**/*\nStyle/TrailingCommaInArguments:\n EnforcedStyleForMultiline: comma\nStyle/TrailingCommaInArrayLiteral:\n EnforcedStyleForMultiline: comma\nStyle/TrailingCommaInHashLiteral:\n EnforcedStyleForMultiline: comma\nStyle/UnlessLogicalOperators:\n Enabled: true\n EnforcedStyle: forbid_logical_operators\nStyle/WordArray:\n MinSize: 4\n\n | dataset_sample\yaml\Homebrew_homebrew-cask\.rubocop.yml | .rubocop.yml | YAML | 5,374 | 0.95 | 0 | 0.004329 | node-utils | 688 | 2024-01-15T11:35:29.187740 | BSD-3-Clause | false | 351f66fc67d3db048b4912f726a27b14 |
# This file is synced from `Homebrew/brew` by the `.github` repository, do not modify it directly.\n---\nAllCops:\n ParserEngine: parser_prism\n TargetRubyVersion: 3.3\n NewCops: enable\n Include:\n - "**/*.rbi"\n Exclude:\n - Homebrew/sorbet/rbi/{dsl,gems}/**/*.rbi\n - Homebrew/sorbet/rbi/parser*.rbi\n - Homebrew/bin/*\n - Homebrew/vendor/**/*\n - Taps/*/*/vendor/**/*\n - "**/vendor/**/*"\n SuggestExtensions:\n rubocop-minitest: false\nLayout/ArgumentAlignment:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nLayout/CaseIndentation:\n EnforcedStyle: end\nLayout/FirstArrayElementIndentation:\n EnforcedStyle: consistent\nLayout/FirstHashElementIndentation:\n EnforcedStyle: consistent\nLayout/EndAlignment:\n EnforcedStyleAlignWith: start_of_line\nLayout/HashAlignment:\n EnforcedHashRocketStyle: table\n EnforcedColonStyle: table\nLayout/LeadingCommentSpace:\n Exclude:\n - Taps/*/*/cmd/*.rb\nLayout/LineLength:\n Max: 118\n AllowedPatterns:\n - "#: "\n - ' url "'\n - ' mirror "'\n - " plist_options "\n - ' executable: "'\n - ' font "'\n - ' homepage "'\n - ' name "'\n - ' pkg "'\n - ' pkgutil: "'\n - " sha256 cellar: "\n - " sha256 "\n - "#{language}"\n - "#{version."\n - ' "/Library/Application Support/'\n - "\"/Library/Caches/"\n - "\"/Library/PreferencePanes/"\n - ' "~/Library/Application Support/'\n - "\"~/Library/Caches/"\n - "\"~/Library/Containers"\n - "\"~/Application Support"\n - " was verified as official when first introduced to the cask"\nLayout/SpaceAroundOperators:\n Enabled: false\nLayout/SpaceBeforeBrackets:\n Exclude:\n - "**/*_spec.rb"\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nLint/AmbiguousBlockAssociation:\n Enabled: false\nLint/DuplicateBranch:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nLint/ParenthesesAsGroupedExpression:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nLint/UnusedMethodArgument:\n AllowUnusedKeywordArguments: true\nMetrics:\n Enabled: false\nNaming/BlockForwarding:\n Enabled: false\nNaming/FileName:\n Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/\nNaming/HeredocDelimiterNaming:\n ForbiddenDelimiters:\n - END, EOD, EOF\nNaming/InclusiveLanguage:\n CheckStrings: true\n FlaggedTerms:\n slave:\n AllowedRegex:\n - gitslave\n - log_slave\n - ssdb_slave\n - var_slave\n - patches/13_fix_scope_for_show_slave_status_data.patch\nNaming/MethodName:\n AllowedPatterns:\n - "\\A(fetch_)?HEAD\\?\\Z"\nNaming/MethodParameterName:\n inherit_mode:\n merge:\n - AllowedNames\nNaming/VariableNumber:\n Enabled: false\nStyle/AndOr:\n EnforcedStyle: always\nStyle/ArgumentsForwarding:\n Enabled: false\nStyle/AutoResourceCleanup:\n Enabled: true\nStyle/BarePercentLiterals:\n EnforcedStyle: percent_q\nStyle/BlockDelimiters:\n BracesRequiredMethods:\n - sig\nStyle/ClassAndModuleChildren:\n Exclude:\n - "**/*.rbi"\nStyle/CollectionMethods:\n Enabled: true\nStyle/DisableCopsWithinSourceCodeDirective:\n Enabled: true\n Include:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nStyle/Documentation:\n Exclude:\n - Taps/**/*\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - "**/*.rbi"\nStyle/EmptyMethod:\n Exclude:\n - "**/*.rbi"\nStyle/FetchEnvVar:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nStyle/FrozenStringLiteralComment:\n EnforcedStyle: always\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\n - Homebrew/test/**/Casks/**/*.rb\n - "**/*.rbi"\n - "**/Brewfile"\nStyle/GuardClause:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nStyle/HashAsLastArrayItem:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/Formula/**/*.rb"\n - "**/Formula/**/*.rb"\nStyle/InverseMethods:\n InverseMethods:\n :blank?: :present?\nStyle/InvertibleUnlessCondition:\n Enabled: true\n InverseMethods:\n :==: :!=\n :zero?:\n :blank?: :present?\nStyle/MutableConstant:\n EnforcedStyle: strict\nStyle/NumericLiteralPrefix:\n EnforcedOctalStyle: zero_only\nStyle/NumericLiterals:\n MinDigits: 7\n Strict: true\n Exclude:\n - "**/Brewfile"\nStyle/OpenStructUse:\n Exclude:\n - Taps/**/*\nStyle/OptionalBooleanParameter:\n AllowedMethods:\n - respond_to?\n - respond_to_missing?\nStyle/RedundantLineContinuation:\n Enabled: false\nStyle/RescueStandardError:\n EnforcedStyle: implicit\nStyle/ReturnNil:\n Enabled: true\nStyle/StderrPuts:\n Enabled: false\nStyle/StringConcatenation:\n Exclude:\n - Taps/*/*/*.rb\n - "/**/{Formula,Casks}/**/*.rb"\n - "**/{Formula,Casks}/**/*.rb"\nStyle/StringLiterals:\n EnforcedStyle: double_quotes\nStyle/StringLiteralsInInterpolation:\n EnforcedStyle: double_quotes\nStyle/StringMethods:\n Enabled: true\nStyle/SuperWithArgsParentheses:\n Enabled: false\nStyle/SymbolArray:\n EnforcedStyle: brackets\nStyle/TernaryParentheses:\n EnforcedStyle: require_parentheses_when_complex\nStyle/TopLevelMethodDefinition:\n Enabled: true\n Exclude:\n - Taps/**/*\nStyle/TrailingCommaInArguments:\n EnforcedStyleForMultiline: comma\nStyle/TrailingCommaInArrayLiteral:\n EnforcedStyleForMultiline: comma\nStyle/TrailingCommaInHashLiteral:\n EnforcedStyleForMultiline: comma\nStyle/UnlessLogicalOperators:\n Enabled: true\n EnforcedStyle: forbid_logical_operators\nStyle/WordArray:\n MinSize: 4\n\n | dataset_sample\yaml\Homebrew_homebrew-core\.rubocop.yml | .rubocop.yml | YAML | 5,374 | 0.95 | 0 | 0.004329 | node-utils | 171 | 2024-06-01T15:42:52.976037 | BSD-3-Clause | false | 351f66fc67d3db048b4912f726a27b14 |
# This file is synced from the `.github` repository, do not modify it directly.\n---\nversion: 2\nupdates:\n- package-ecosystem: github-actions\n directory: "/"\n schedule:\n interval: weekly\n day: monday\n time: '08:00'\n allow:\n - dependency-type: all\n ignore:\n - dependency-name: actions/stale\n groups:\n artifacts:\n patterns:\n - actions/*-artifact\n\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\dependabot.yml | dependabot.yml | YAML | 372 | 0.8 | 0 | 0.055556 | vue-tools | 20 | 2023-11-19T06:42:06.066455 | BSD-3-Clause | false | 8d44490fa6622d29a8aa417e23267a4c |
name: New issue for Reproducible Bug\ndescription: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate."\ntype: "Bug"\nbody:\n - type: markdown\n attributes:\n value: Please note we will close your issue without comment if you do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.\n - type: textarea\n attributes:\n render: shell\n label: "`brew gist-logs <formula>` link OR `brew config` AND `brew doctor` output"\n validations:\n required: true\n - type: checkboxes\n attributes:\n label: Verification\n description: Please verify that you've followed these steps. If you cannot truthfully check these boxes, open a discussion at https://github.com/orgs/Homebrew/discussions instead.\n options:\n - label: My `brew doctor` output says `Your system is ready to brew.` and am still able to reproduce my issue.\n required: true\n - label: I ran `brew update` and am still able to reproduce my issue.\n required: true\n - label: I have resolved all warnings from `brew doctor` and that did not fix my problem.\n required: true\n - label: I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.\n required: true\n - type: textarea\n attributes:\n label: What were you trying to do (and why)?\n validations:\n required: true\n - type: textarea\n attributes:\n label: What happened (include all command output)?\n validations:\n required: true\n - type: textarea\n attributes:\n label: What did you expect to happen?\n validations:\n required: true\n - type: textarea\n attributes:\n render: shell\n label: Step-by-step reproduction instructions (by running `brew` commands)\n validations:\n required: true\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\ISSUE_TEMPLATE\bug.yml | bug.yml | YAML | 2,007 | 0.95 | 0.06383 | 0 | python-kit | 402 | 2025-03-20T06:32:43.795573 | GPL-3.0 | false | f9daceb4bfcb17adbe115cda60683168 |
blank_issues_enabled: false\n\ncontact_links:\n - name: Request a change to a formula\n url: https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request\n about: Is something missing in a formula? Follow this guide to request new features in formulae.\n - name: Get help in GitHub Discussions\n url: https://github.com/orgs/Homebrew/discussions\n about: Have a question? Not sure if your issue affects everyone reproducibly? The quickest way to get help is on Homebrew's GitHub Discussions!\n - name: New issue on Homebrew/brew\n url: https://github.com/Homebrew/brew/issues/new/choose\n about: Having a `brew` problem that's not from a `brew install` or `brew upgrade` of a single formula/package? Report it to Homebrew/brew (the Homebrew package manager).\n - name: New issue on Homebrew/homebrew-cask\n url: https://github.com/Homebrew/homebrew-cask/issues/new/choose\n about: Having a Homebrew Cask problem? Report it to Homebrew/homebrew-cask (the cask tap/repository)\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 985 | 0.8 | 0.066667 | 0 | node-utils | 65 | 2025-04-26T14:57:52.085000 | MIT | false | 93a8f441b266e0837bf06b7235aea5e3 |
name: actionlint\n\non:\n push:\n branches:\n - master\n paths:\n - '.github/workflows/*.ya?ml'\n - 'Formula/a/actionlint.rb'\n - 'Formula/s/shellcheck.rb'\n - 'Formula/z/zizmor.rb'\n pull_request:\n paths:\n - '.github/workflows/*.ya?ml'\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: "actionlint-${{ github.ref }}"\n cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n HOMEBREW_NO_ENV_HINTS: 1\n\npermissions: {}\n\n# FIXME: The `Install tools` step fails inside the Docker container for some reason.\njobs:\n workflow_syntax:\n if: github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n steps:\n - name: Set up Homebrew\n id: setup-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Install tools\n run: brew install actionlint shellcheck zizmor\n\n - name: Set up GITHUB_WORKSPACE\n env:\n HOMEBREW_TAP_REPOSITORY: ${{ steps.setup-homebrew.outputs.repository-path }}\n run: |\n # Annotations work only relative to GITHUB_WORKSPACE\n (shopt -s dotglob; rm -rf "${GITHUB_WORKSPACE:?}"/*; mv "${HOMEBREW_TAP_REPOSITORY:?}"/* "$GITHUB_WORKSPACE")\n rmdir "$HOMEBREW_TAP_REPOSITORY"\n ln -vs "$GITHUB_WORKSPACE" "$HOMEBREW_TAP_REPOSITORY"\n\n - run: zizmor --format sarif . > results.sarif\n\n - name: Upload SARIF file\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: results.sarif\n path: results.sarif\n\n - name: Set up actionlint\n run: |\n # Setting `shell: /bin/bash` prevents shellcheck from running on\n # those steps, so let's change them to `shell: bash` for linting.\n sed -i 's|shell: /bin/bash -x|shell: bash -x|' .github/workflows/*.y*ml\n # The JSON matcher needs to be accessible to the container host.\n cp "$(brew --repository)/.github/actionlint-matcher.json" "$HOME"\n echo "::add-matcher::$HOME/actionlint-matcher.json"\n\n - run: actionlint\n\n upload_sarif:\n needs: workflow_syntax\n runs-on: ubuntu-latest\n permissions:\n contents: read\n security-events: write\n steps:\n - name: Download SARIF file\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: results.sarif\n path: results.sarif\n\n - name: Upload SARIF file\n uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15\n with:\n sarif_file: results.sarif\n category: zizmor\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\actionlint.yml | actionlint.yml | YAML | 2,783 | 0.8 | 0.032258 | 0.063291 | vue-tools | 520 | 2024-07-06T08:45:56.233800 | Apache-2.0 | false | 31dac45faa68039add64eea79338dee1 |
name: Bump formulae on schedule or request\n\non:\n push:\n branches:\n - master\n paths:\n - .github/workflows/autobump.yml\n workflow_dispatch:\n inputs:\n formulae:\n description: Custom list of formulae to livecheck and bump if outdated\n required: false\n schedule:\n # Every 3 hours from 1 through 23 with an offset of 45 minutes\n - cron: "45 1-23/3 * * *"\n\npermissions:\n contents: read\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n autobump:\n if: github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n env:\n GNUPGHOME: /tmp/gnupghome\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Configure Git user\n uses: Homebrew/actions/git-user-config@master\n with:\n username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'BrewTestBot' }}\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Bump formulae\n env:\n HOMEBREW_TEST_BOT_AUTOBUMP: 1\n HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_CORE_REPO_WORKFLOW_TOKEN }}\n HOMEBREW_GIT_COMMITTER_NAME: BrewTestBot\n HOMEBREW_GIT_COMMITTER_EMAIL: 1589480+BrewTestBot@users.noreply.github.com\n FORMULAE: ${{ inputs.formulae }}\n run: |\n BREW_BUMP=(brew bump --no-fork --open-pr --formulae --bump-synced)\n if [[ -n "${FORMULAE-}" ]]; then\n xargs "${BREW_BUMP[@]}" <<<"${FORMULAE}"\n else\n "${BREW_BUMP[@]}" --auto --tap=Homebrew/core\n fi\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\autobump.yml | autobump.yml | YAML | 1,883 | 0.95 | 0.046154 | 0.017241 | awesome-app | 954 | 2023-07-24T03:17:40.866430 | MIT | false | 3a4490847fbd001576283e7f26b941b1 |
name: automerge from merge_queue\n\non:\n workflow_run:\n workflows:\n - CI\n types:\n - completed\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: automerge-merge_queue-${{ github.event.workflow_run.event }}-${{ github.event.workflow_run.id }}\n cancel-in-progress: true\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n GH_REPO: ${{ github.repository }}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n\njobs:\n status-check:\n runs-on: ubuntu-latest\n if: >\n github.repository_owner == 'Homebrew' &&\n github.event.workflow_run.conclusion != 'success' &&\n github.event.workflow_run.event == 'merge_group'\n outputs:\n pull-number: ${{ steps.pr.outputs.number }}\n publishable: ${{ steps.check-labels.outputs.publishable }}\n approved: ${{ steps.approval-status.outputs.approved }}\n complete: ${{ steps.approval-status.outputs.complete }}\n mergeable: ${{ steps.approval-status.outputs.mergeable }}\n permissions:\n contents: read\n pull-requests: read\n actions: read\n steps:\n - name: Upload metadata\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: event_payload\n path: ${{ github.event_path }}\n\n - name: Dump metadata\n run: jq . "$GITHUB_EVENT_PATH"\n\n - name: Get PR number\n id: pr\n env:\n GH_TOKEN: ${{ github.token }}\n WORKFLOW_RUN_NODE_ID: ${{ github.event.workflow_run.node_id }}\n QUERY: |-\n query($id: ID!) {\n node(id: $id) {\n ... on WorkflowRun {\n checkSuite {\n commit {\n parents(last: 2) {\n nodes {\n oid\n associatedPullRequests(last: 1) {\n nodes {\n number\n }\n }\n }\n }\n }\n }\n }\n }\n }\n run: |\n # Get the latest PR associated with the second parent of the merge commit created for the merge_group.\n head_commit_data="$(\n gh api graphql \\n --field id="$WORKFLOW_RUN_NODE_ID" \\n --raw-field query="$QUERY" \\n --jq '.data.node.checkSuite.commit.parents.nodes | last'\n )"\n number="$(jq --raw-output '.associatedPullRequests.nodes[].number' <<<"$head_commit_data")"\n\n # Fall back to using the commit SHA if the associated PR is not available from the GraphQL API.\n if [[ -z "$number" ]]\n then\n commit_sha="$(jq --raw-output '.oid' <<<"$head_commit_data")"\n number="$(gh pr list --search "$commit_sha" --state open --limit 1 --json number --jq '.[].number' --repo "$GITHUB_REPOSITORY")"\n fi\n\n if [[ -z "$number" ]]\n then\n echo "::error::Missing PR number!"\n exit 1\n fi\n\n echo "number=$number" >> "$GITHUB_OUTPUT"\n\n - name: Check PR labels and timeline for merge queue events\n id: check-labels\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ steps.pr.outputs.number }}\n QUERY: |-\n query ($owner: String!, $name: String!, $pr: Int!) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $pr) {\n timelineItems(itemTypes: [REMOVED_FROM_MERGE_QUEUE_EVENT], last: 5) {\n totalCount\n }\n }\n }\n }\n run: |\n publishable=true\n GITHUB_REPOSITORY_NAME="${GITHUB_REPOSITORY#"${GITHUB_REPOSITORY_OWNER}"/}"\n\n while IFS='' read -r label\n do\n if [[ "$label" = "pre-release" ]] ||\n [[ "$label" = "CI-published-bottle-commits" ]]\n then\n publishable=false\n break\n fi\n done < <(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR" \\n --jq '.labels[].name'\n )\n\n removed_from_merge_queue_count="$(\n gh api graphql \\n --field owner="$GITHUB_REPOSITORY_OWNER" \\n --field name="$GITHUB_REPOSITORY_NAME" \\n --field pr="$PR" \\n --raw-field query="$QUERY" \\n --jq '.data.repository.pullRequest.timelineItems.totalCount'\n )"\n\n if [[ "$removed_from_merge_queue_count" -gt 3 ]]\n then\n # We've already tried to merge this PR multiple times.\n publishable=false\n fi\n\n echo "publishable=$publishable" >> "$GITHUB_OUTPUT"\n\n - name: Get approval and CI status\n if: fromJson(steps.check-labels.outputs.publishable)\n id: approval-status\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ steps.pr.outputs.number }}\n QUERY: |-\n query ($owner: String!, $name: String!, $pr: Int!) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $pr) {\n reviewDecision\n commits(last: 1) {\n nodes {\n commit {\n checkSuites(last: 100) {\n nodes {\n conclusion\n workflowRun {\n workflow {\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n run: |\n attempt=0\n max_attempts=5\n timeout=5\n GITHUB_REPOSITORY_NAME="${GITHUB_REPOSITORY#"${GITHUB_REPOSITORY_OWNER}"/}"\n\n while [[ "$attempt" -lt "$max_attempts" ]]\n do\n attempt=$(( attempt + 1 ))\n\n query_response="$(\n gh api graphql \\n --field owner="$GITHUB_REPOSITORY_OWNER" \\n --field name="$GITHUB_REPOSITORY_NAME" \\n --field pr="$PR" \\n --raw-field query="$QUERY" \\n --jq '.data.repository.pullRequest'\n )"\n\n approved="$(\n jq --raw-output '.reviewDecision == "APPROVED"' <<< "$query_response"\n )"\n complete="$(\n jq --raw-output \\n '.commits.nodes[].commit.checkSuites.nodes |\n map(select(.workflowRun.workflow.name == "CI")) |\n last | .conclusion == "SUCCESS"' <<< "$query_response"\n )"\n # See https://github.com/octokit/octokit.net/issues/1763 for possible `mergeable_state` values.\n mergeable="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR" \\n --jq '(.mergeable_state == "clean") and (.draft | not)'\n )"\n\n if [[ "$approved" = "true" ]] &&\n [[ "$complete" = "true" ]] &&\n [[ "$mergeable" = "true" ]] ||\n [[ "$attempt" -eq "$max_attempts" ]]\n then\n break\n fi\n\n echo "::notice ::PR #$PR status:"\n echo "::notice ::Approved? $approved"\n echo "::notice ::CI Complete? $complete"\n echo "::notice ::Mergeable? $mergeable"\n echo "::notice ::Checking again in ${timeout}s..."\n sleep "$timeout"\n timeout=$(( timeout * 2 ))\n done\n\n {\n echo "approved=$approved"\n echo "complete=$complete"\n echo "mergeable=$mergeable"\n } >> "$GITHUB_OUTPUT"\n\n merge:\n runs-on: ubuntu-latest\n needs: status-check\n if: >\n fromJson(needs.status-check.outputs.publishable) &&\n fromJson(needs.status-check.outputs.approved) &&\n fromJson(needs.status-check.outputs.complete) &&\n fromJson(needs.status-check.outputs.mergeable)\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n permissions:\n contents: read\n pull-requests: read\n actions: write # to dispatch publish workflow\n steps:\n - name: Set up Homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - run: brew pr-publish "$PR"\n env:\n HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ needs.status-check.outputs.pull-number }}\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\automerge-from-merge-queue.yml | automerge-from-merge-queue.yml | YAML | 9,002 | 0.8 | 0.051852 | 0.01626 | vue-tools | 741 | 2025-04-01T08:59:10.181273 | MIT | false | 052046ebc57586fbe9e026f3ed5f309b |
name: Trigger automerge\n\non:\n pull_request_review:\n types:\n - submitted\n pull_request_target:\n types:\n - unlabeled\n - ready_for_review\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\njobs:\n check:\n if: >\n github.repository_owner == 'Homebrew' &&\n ((github.event_name == 'pull_request_review' && github.event.review.state == 'approved') ||\n (github.event_name == 'pull_request_target' &&\n (github.event.action == 'ready_for_review' || github.event.label.name == 'automerge-skip')))\n runs-on: ubuntu-latest\n steps:\n - run: true # This suffices to trigger `automerge.yml`.\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\automerge-triggers.yml | automerge-triggers.yml | YAML | 636 | 0.8 | 0.04 | 0 | node-utils | 46 | 2023-11-27T16:42:04.288401 | Apache-2.0 | false | ca58189dde53e5dbfeffc0e948c2de70 |
name: automerge\n\non:\n workflow_run:\n workflows:\n - CI\n - Trigger automerge\n types:\n - completed\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: automerge-${{ github.event.workflow_run.event }}-${{ github.event.workflow_run.id }}\n cancel-in-progress: true\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n GH_REPO: ${{ github.repository }}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n\njobs:\n status-check:\n runs-on: ubuntu-latest\n if: >\n github.repository_owner == 'Homebrew' &&\n github.event.workflow_run.conclusion == 'success' &&\n startsWith(github.event.workflow_run.event, 'pull_request')\n outputs:\n pull-number: ${{ steps.pr.outputs.number }}\n publishable: ${{ steps.check-labels.outputs.publishable }}\n approved: ${{ steps.approval-status.outputs.approved }}\n complete: ${{ steps.approval-status.outputs.complete }}\n mergeable: ${{ steps.approval-status.outputs.mergeable }}\n permissions:\n contents: read\n pull-requests: read\n actions: read\n steps:\n - uses: Homebrew/actions/find-related-workflow-run-id@master\n with:\n run-id: ${{ github.event.workflow_run.id }}\n workflow-name: Triage tasks\n\n - name: Download `event_payload` artifact\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: event_payload\n github-token: ${{ github.token }}\n run-id: ${{ env.workflow_run_id }}\n\n - run: echo "number=$(jq --raw-output .number event.json)" >> "$GITHUB_OUTPUT"\n id: pr\n\n - name: Check PR labels\n id: check-labels\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ steps.pr.outputs.number }}\n run: |\n publishable=true\n while IFS='' read -r label\n do\n if [[ "$label" = "automerge-skip" ]] ||\n [[ "$label" = "pre-release" ]] ||\n [[ "$label" = "CI-published-bottle-commits" ]]\n then\n publishable=false\n break\n fi\n done < <(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR" \\n --jq '.labels[].name'\n )\n echo "publishable=$publishable" >> "$GITHUB_OUTPUT"\n\n - name: Get approval and CI status\n if: fromJson(steps.check-labels.outputs.publishable)\n id: approval-status\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ steps.pr.outputs.number }}\n QUERY: |-\n query ($owner: String!, $name: String!, $pr: Int!) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $pr) {\n reviewDecision\n commits(last: 1) {\n nodes {\n commit {\n checkSuites(last: 100) {\n nodes {\n conclusion\n workflowRun {\n workflow {\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n run: |\n attempt=0\n max_attempts=5\n timeout=5\n GITHUB_REPOSITORY_NAME="${GITHUB_REPOSITORY#"${GITHUB_REPOSITORY_OWNER}"/}"\n\n while [[ "$attempt" -lt "$max_attempts" ]]\n do\n attempt=$(( attempt + 1 ))\n\n query_response="$(\n gh api graphql \\n --field owner="$GITHUB_REPOSITORY_OWNER" \\n --field name="$GITHUB_REPOSITORY_NAME" \\n --field pr="$PR" \\n --raw-field query="$QUERY" \\n --jq '.data.repository.pullRequest'\n )"\n\n approved="$(\n jq --raw-output '.reviewDecision == "APPROVED"' <<< "$query_response"\n )"\n complete="$(\n jq --raw-output \\n '.commits.nodes[].commit.checkSuites.nodes |\n map(select(.workflowRun.workflow.name == "CI")) |\n last | .conclusion == "SUCCESS"' <<< "$query_response"\n )"\n # See https://github.com/octokit/octokit.net/issues/1763 for possible `mergeable_state` values.\n mergeable="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR" \\n --jq '(.mergeable_state == "clean") and (.draft | not)'\n )"\n\n if [[ "$approved" = "true" ]] &&\n [[ "$complete" = "true" ]] &&\n [[ "$mergeable" = "true" ]] ||\n [[ "$attempt" -eq "$max_attempts" ]]\n then\n break\n fi\n\n echo "::notice ::PR #$PR status:"\n echo "::notice ::Approved? $approved"\n echo "::notice ::CI Complete? $complete"\n echo "::notice ::Mergeable? $mergeable"\n echo "::notice ::Checking again in ${timeout}s..."\n sleep "$timeout"\n timeout=$(( timeout * 2 ))\n done\n\n {\n echo "approved=$approved"\n echo "complete=$complete"\n echo "mergeable=$mergeable"\n } >> "$GITHUB_OUTPUT"\n\n merge:\n runs-on: ubuntu-latest\n needs: status-check\n if: >\n fromJson(needs.status-check.outputs.publishable) &&\n fromJson(needs.status-check.outputs.approved) &&\n fromJson(needs.status-check.outputs.complete) &&\n fromJson(needs.status-check.outputs.mergeable)\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n permissions:\n contents: read\n pull-requests: read\n actions: write # to dispatch publish workflow\n steps:\n - name: Set up Homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - run: brew pr-publish "$PR"\n env:\n HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ needs.status-check.outputs.pull-number }}\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\automerge.yml | automerge.yml | YAML | 6,496 | 0.8 | 0.040201 | 0.005495 | react-lib | 356 | 2024-02-22T23:37:50.722683 | BSD-3-Clause | false | 0ec01b9cd91f0c4f1f37db30b0772155 |
name: Populate gem cache\n\non:\n pull_request:\n paths:\n - .github/workflows/cache.yml\n push:\n paths:\n - .github/workflows/cache.yml\n branches:\n - master\n schedule:\n - cron: '30 19/6 * * *'\n workflow_dispatch:\n\npermissions:\n contents: read\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: cache-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n determine-runners:\n if: github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n outputs:\n runners: ${{ steps.determine-runners.outputs.runners }}\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Determine runners to use for this job\n id: determine-runners\n env:\n HOMEBREW_MACOS_TIMEOUT: 30\n run: brew determine-test-runners --all-supported\n\n cache:\n needs: determine-runners\n strategy:\n matrix:\n include: ${{ fromJson(needs.determine-runners.outputs.runners) }}\n fail-fast: false\n name: ${{ matrix.name }}\n runs-on: ${{ matrix.runner }}\n timeout-minutes: ${{ matrix.timeout }}\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: true\n\n - name: Cleanup runner\n if: matrix.cleanup\n working-directory: ${{ runner.temp }}\n run: brew test-bot --only-cleanup-before\n\n - name: Get cache key\n id: cache-key\n run: |\n cache_key_prefix="${RUNNER_OS}"\n if [ "${RUNNER_OS}" = macOS ]\n then\n macos_version="$(sw_vers -productVersion)"\n cache_key_prefix="${macos_version%%.*}-$(uname -m)"\n fi\n echo "prefix=${cache_key_prefix}" >> "${GITHUB_OUTPUT}"\n\n - name: Cache Homebrew Bundler gems\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ${{ steps.set-up-homebrew.outputs.gems-path }}\n key: ${{ steps.cache-key.outputs.prefix }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}\n restore-keys: ${{ steps.cache-key.outputs.prefix }}-rubygems-\n\n - name: Setup Homebrew test environment\n working-directory: ${{ runner.temp }}\n run: brew test-bot --only-setup\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\cache.yml | cache.yml | YAML | 2,613 | 0.8 | 0.041237 | 0 | awesome-app | 4 | 2024-07-28T18:09:45.581566 | Apache-2.0 | false | 38318983d1ad628ee6f2fd7f4b53bf0b |
name: Clean up closed PRs\n\non:\n pull_request_target:\n types:\n - closed\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.number }}\n cancel-in-progress: true\n\nenv:\n GH_REPO: ${{ github.repository }}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n PR: ${{ github.event.number }}\n\njobs:\n cancel-tests:\n if: >\n github.repository_owner == 'Homebrew' &&\n !github.event.pull_request.merged\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n permissions:\n contents: read\n actions: write # for `gh run cancel`\n checks: read # for `GitHub.get_workflow_run`\n steps:\n - name: Set up Homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: false\n cask: false\n test-bot: false\n\n - name: Check CI status\n id: check\n env:\n HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n brew check-ci-status --cancel "$PR"\n\n - name: Cancel tests\n if: fromJson(steps.check.outputs.cancellable-run-id) != null\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n RUN_ID: ${{ fromJson(steps.check.outputs.cancellable-run-id) }}\n run: |\n echo "::notice ::Cancelling tests on closed PR #$PR"\n gh run cancel "$RUN_ID"\n\n delete-branch:\n if: >\n github.repository_owner == 'Homebrew' &&\n github.event.pull_request.head.repo.full_name == github.repository &&\n !github.event.pull_request.merged\n runs-on: ubuntu-latest\n # Ignore errors as branch may already be deleted\n continue-on-error: true\n permissions:\n contents: write\n steps:\n - name: Delete branch\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n BRANCH: ${{ github.event.pull_request.head.ref }}\n run: |\n gh api \\n -X DELETE \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/git/refs/heads/$BRANCH"\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\clean-up-closed-prs.yml | clean-up-closed-prs.yml | YAML | 2,149 | 0.8 | 0.064103 | 0.014286 | vue-tools | 805 | 2024-10-05T19:23:20.607583 | Apache-2.0 | false | ae823e5b09afe363616123855b17a226 |
name: Create replacement pull request\nrun-name: "Replace PR #${{ inputs.pull_request }}"\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.inputs.pull_request }}-${{ github.event.inputs.upload }}\n cancel-in-progress: ${{ !fromJson(github.event.inputs.upload) }}\n\non:\n workflow_dispatch:\n inputs:\n pull_request:\n description: Pull request number\n type: number\n required: true\n autosquash:\n description: "Squash pull request commits according to Homebrew style? (default: true)"\n type: boolean\n required: false\n default: true\n upload:\n description: >\n Upload bottles built from original pull request? (default: false)\n Warning: This destroys status check information when used with autosquash!\n type: boolean\n required: false\n default: false\n warn_on_upload_failure:\n description: "Pass `--warn-on-upload-failure` to `brew pr-pull`? (default: false)"\n type: boolean\n required: false\n default: false\n message:\n description: "Message to include when autosquashing revision bumps, deletions, and rebuilds (requires autosquash)"\n required: false\n\nenv:\n PR: ${{ inputs.pull_request }}\n GNUPGHOME: /tmp/gnupghome\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n HOMEBREW_NO_INSTALL_FROM_API: 1\n GH_REPO: ${{ github.repository }}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n RUN_URL: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}\n REPLACEMENT_BRANCH: PR/${{ inputs.pull_request }}\n\njobs:\n create:\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n permissions:\n contents: read\n pull-requests: write # for `post-comment`, `gh api`, `gh pr edit`\n repository-projects: write # for `gh pr edit`\n attestations: write # for actions/attest-build-provenance\n id-token: write # for actions/attest-build-provenance\n steps:\n - name: Post comment once started\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n issue: ${{ env.PR }}\n body: ":shipit: @${{ github.actor }} has [requested creation of a replacement PR](${{ env.RUN_URL }})."\n bot_body: ":robot: An automated task has [requested creation of a replacement PR](${{ env.RUN_URL }})."\n bot: github-actions[bot]\n\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Get reviewers\n id: reviewers\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n review_data="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR/reviews"\n )"\n\n reviewers="$(jq --compact-output '[.[].user.login]' <<< "$review_data")"\n approved="$(jq --raw-output 'any(.[].state; .== "APPROVED")' <<< "$review_data")"\n\n # See https://github.com/octokit/octokit.net/issues/1763 for possible `mergeable_state` values.\n mergeable="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR" \\n --jq '(.mergeable_state == "clean") and (.draft | not)'\n )"\n\n {\n echo "reviewers=$reviewers"\n echo "approved=$approved"\n echo "mergeable=$mergeable"\n } >> "$GITHUB_OUTPUT"\n\n - name: Check approval if needed\n if: >\n inputs.upload &&\n !(fromJson(steps.reviewers.outputs.approved) && fromJson(steps.reviewers.outputs.mergeable))\n run: |\n echo "::error ::Refusing to upload bottles because PR #$PR is not mergeable!"\n exit 1\n\n - name: Configure Git user\n id: git-user-config\n uses: Homebrew/actions/git-user-config@master\n with:\n username: BrewTestBot\n\n - name: Checkout PR branch\n if: ${{ !inputs.autosquash }}\n working-directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n env:\n GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\n run: gh pr checkout "$PR" --repo "$GITHUB_REPOSITORY"\n\n - name: Checkout replacement PR branch\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n env:\n START_POINT: ${{ inputs.autosquash && 'origin/master' || 'HEAD' }}\n run: |\n if git ls-remote --exit-code --heads origin "$REPLACEMENT_BRANCH"\n then\n echo "::error ::Branch $REPLACEMENT_BRANCH already exists!"\n exit 1\n fi\n git checkout -b "$REPLACEMENT_BRANCH" "$START_POINT"\n\n - name: Dismiss approvals\n if: fromJson(steps.reviewers.outputs.approved)\n uses: Homebrew/actions/dismiss-approvals@master\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n pr: ${{ env.PR }}\n message: Replacement PR dispatched\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Pull PR\n id: pr-pull\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n env:\n BREWTESTBOT_NAME_EMAIL: "BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>"\n HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_CORE_PUBLIC_REPO_EMAIL_TOKEN }}\n MESSAGE: ${{ inputs.message }}\n AUTOSQUASH_FLAG: ${{ inputs.autosquash && '--autosquash' || '' }}\n CLEAN_FLAG: ${{ inputs.autosquash && '' || '--clean' }}\n NO_CHERRY_PICK_FLAG: ${{ inputs.autosquash && '' || '--no-cherry-pick' }}\n run: |\n # Don't quote arguments that might be empty; this causes errors.\n brew pr-pull \\n --no-upload \\n --debug \\n --branch-okay \\n --workflows=tests.yml \\n --committer="$BREWTESTBOT_NAME_EMAIL" \\n --root-url="https://ghcr.io/v2/homebrew/core" \\n --retain-bottle-dir \\n ${AUTOSQUASH_FLAG:+"${AUTOSQUASH_FLAG}"} \\n ${CLEAN_FLAG:+"--clean"} \\n ${NO_CHERRY_PICK_FLAG:+"--no-cherry-pick"} \\n ${MESSAGE:+"--message=${MESSAGE}"} \\n "$PR"\n\n - name: Generate build provenance\n uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3\n with:\n subject-path: '${{steps.pr-pull.outputs.bottle_path}}/*.tar.gz'\n if: inputs.upload\n\n - name: Upload bottles to GitHub Packages\n id: pr-upload\n if: inputs.upload\n working-directory: ${{steps.pr-pull.outputs.bottle_path}}\n env:\n BREWTESTBOT_NAME_EMAIL: "BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>"\n HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot\n HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}}\n WARN_ON_UPLOAD_FAILURE_FLAG: ${{inputs.warn_on_upload_failure && '--warn-on-upload-failure' || ''}}\n run: |\n # Don't quote arguments that might be empty; this causes errors when `brew`\n # interprets them as empty arguments when we want `brew` to ignore them instead.\n brew pr-upload \\n --debug \\n --committer="$BREWTESTBOT_NAME_EMAIL" \\n --root-url="https://ghcr.io/v2/homebrew/core" \\n ${WARN_ON_UPLOAD_FAILURE_FLAG:+"${WARN_ON_UPLOAD_FAILURE_FLAG}"}\n\n\n - name: Push commits\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n branch: ${{ env.REPLACEMENT_BRANCH }}\n env:\n GIT_COMMITTER_NAME: ${{ steps.git-user-config.outputs.name }}\n GIT_COMMITTER_EMAIL: ${{ steps.git-user-config.outputs.email }}\n\n - name: Open replacement pull request\n id: create-pr\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n env:\n GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n REVIEWERS: ${{ join(fromJson(steps.reviewers.outputs.reviewers)) }}\n LABELS: ${{ inputs.upload && 'CI-published-bottle-commits' || '' }}\n run: |\n cat <<MESSAGE > body.txt\n Created by [\`create-replacement-pr.yml\`]($RUN_URL)\n\n -----\n\n Closes #$PR\n MESSAGE\n\n original_title="$(gh pr view "$PR" --json title --jq '.title' --repo "$GITHUB_REPOSITORY")"\n gh pr create \\n --base "$GITHUB_REF" \\n --title "$original_title (replacement for #$PR)" \\n --body-file body.txt \\n --head "$REPLACEMENT_BRANCH" \\n --reviewer "$REVIEWERS" \\n --label "$LABELS" \\n --repo "$GITHUB_REPOSITORY"\n\n pull_number="$(gh pr list --head "$REPLACEMENT_BRANCH" --limit 1 --json number --jq '.[].number' --repo "$GITHUB_REPOSITORY")"\n echo "pull_number=$pull_number" >> "$GITHUB_OUTPUT"\n\n - name: Approve replacement PR if applicable\n if: >\n fromJson(steps.reviewers.outputs.approved) &&\n fromJson(steps.reviewers.outputs.mergeable)\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n REPLACEMENT_PR: ${{ steps.create-pr.outputs.pull_number }}\n run: gh pr review --approve "$REPLACEMENT_PR" --repo "$GITHUB_REPOSITORY"\n\n - name: Enable automerge for replacement PR if applicable\n if: inputs.upload\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n env:\n GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n REPLACEMENT_PR: ${{ steps.create-pr.outputs.pull_number }}\n run: |\n gh pr merge "$REPLACEMENT_PR" \\n --auto \\n --merge \\n --match-head-commit "$(git rev-parse HEAD)" \\n --repo "$GITHUB_REPOSITORY"\n\n - name: Label replaced PR\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: gh pr edit --add-label automerge-skip --add-label superseded "$PR" --repo "$GITHUB_REPOSITORY"\n\n - name: Mark replaced PR as draft\n env: # We need a PAT here. https://github.com/github/docs/issues/8925#issuecomment-970255180\n GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n run: gh pr ready --undo "$PR" --repo "$GITHUB_REPOSITORY"\n\n - name: Post comment on success\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n issue: ${{ env.PR }}\n body: ":white_check_mark: @${{ github.actor }} replacement PR created at #${{ steps.create-pr.outputs.pull_number }}."\n bot_body: ":white_check_mark: Replacement PR created at #${{ steps.create-pr.outputs.pull_number }}."\n bot: github-actions[bot]\n\n - name: Post comment on failure\n if: ${{ !success() }}\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n issue: ${{ env.PR }}\n body: ":warning: @${{ github.actor }} replacement PR creation [failed](${{ env.RUN_URL }})."\n bot_body: ":warning: Replacement PR creation [failed](${{ env.RUN_URL }})."\n bot: github-actions[bot]\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\create-replacement-pr.yml | create-replacement-pr.yml | YAML | 11,846 | 0.95 | 0.06734 | 0.015094 | python-kit | 891 | 2024-08-12T04:16:43.634919 | GPL-3.0 | false | 2afc230445f905d50739ea0466620614 |
name: Dispatch rebottle (for all currently bottled OS versions)\n\nrun-name: Rebuild bottles of ${{ inputs.formula }}\n\non:\n workflow_dispatch:\n inputs:\n formula:\n description: Formula name\n required: true\n reason:\n description: Reason for rebottling\n required: true\n timeout:\n description: "Build timeout (in minutes, default: 60 minutes)"\n type: number\n default: 60\n required: false\n issue:\n description: Issue number, where comment on failure would be posted\n type: number\n required: false\n upload:\n description: "Upload built bottles? (default: false)"\n type: boolean\n default: false\n required: false\n fail-fast:\n description: "Fail immediately on a single OS version failure? (default: true)"\n type: boolean\n default: true\n required: false\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\n# Intentionally the same as dispatch-build-bottle\nconcurrency: bottle-${{ github.event.inputs.formula }}\n\npermissions:\n contents: read\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_GITHUB_ACTIONS: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n HOMEBREW_NO_INSTALL_FROM_API: 1\n HOMEBREW_NO_BUILD_ERROR_ISSUES: 1\n HOMEBREW_ARM64_TESTING: 1\n RUN_URL: ${{github.event.repository.html_url}}/actions/runs/${{github.run_id}}\n DISPATCH_REBOTTLE_SENDER: ${{ github.event.sender.login }}\n DISPATCH_REBOTTLE_FORMULA: ${{ inputs.formula }}\n DISPATCH_REBOTTLE_TIMEOUT: ${{ inputs.timeout }}\n DISPATCH_REBOTTLE_ISSUE: ${{ inputs.issue }}\n DISPATCH_REBOTTLE_UPLOAD: ${{ inputs.upload }}\n DISPATCH_REBOTTLE_REASON: ${{ inputs.reason }}\n\njobs:\n setup:\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n outputs:\n runners: ${{steps.determine-runners.outputs.runners}}\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Determine runners\n id: determine-runners\n run: brew determine-rebottle-runners "${DISPATCH_REBOTTLE_FORMULA}" "${DISPATCH_REBOTTLE_TIMEOUT}"\n\n bottle:\n permissions:\n contents: read\n needs: setup\n strategy:\n matrix:\n include: ${{fromJson(needs.setup.outputs.runners)}}\n fail-fast: ${{inputs.fail-fast}}\n runs-on: ${{matrix.runner}}\n container: ${{matrix.container}}\n timeout-minutes: ${{fromJson(inputs.timeout)}}\n defaults:\n run:\n shell: /bin/bash -xeuo pipefail {0}\n working-directory: ${{matrix.workdir || github.workspace}}\n env:\n GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}\n BOTTLES_DIR: ${{ matrix.workdir || github.workspace }}/bottles\n steps:\n - name: ${{inputs.formula}}\n id: print_details\n run: |\n echo sender="${DISPATCH_REBOTTLE_SENDER}"\n echo formula="${DISPATCH_REBOTTLE_FORMULA}"\n echo timeout="${DISPATCH_REBOTTLE_TIMEOUT}"\n echo issue="${DISPATCH_REBOTTLE_ISSUE}"\n echo upload="${DISPATCH_REBOTTLE_UPLOAD}"\n echo reason="${DISPATCH_REBOTTLE_REASON}"\n\n - name: Pre-test steps\n uses: Homebrew/actions/pre-build@master\n with:\n bottles-directory: ${{ env.BOTTLES_DIR }}\n\n - run: |\n brew test-bot --only-formulae --only-json-tab --skip-online-checks \\n --skip-dependents \\n "${DISPATCH_REBOTTLE_FORMULA}"\n working-directory: ${{ env.BOTTLES_DIR }}\n env:\n HOMEBREW_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}}\n\n - name: Post-build steps\n if: always()\n uses: Homebrew/actions/post-build@master\n with:\n runner: ${{ matrix.runner }}\n bottles-directory: ${{ env.BOTTLES_DIR }}\n logs-directory: ${{ env.BOTTLES_DIR }}/logs\n\n upload:\n permissions:\n issues: write # for Homebrew/actions/post-comment\n contents: write # for Homebrew/actions/git-try-push\n packages: write # for brew pr-upload\n pull-requests: write # for gh pr\n attestations: write # for actions/attest-build-provenance\n id-token: write # for actions/attest-build-provenance\n runs-on: ubuntu-latest\n needs: bottle\n if: inputs.upload\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n env:\n HOMEBREW_SIMULATE_MACOS_ON_LINUX: 1\n GH_REPO: ${{github.repository}}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n BOTTLE_BRANCH: ${{github.actor}}/dispatch/${{inputs.formula}}/${{github.run_id}}\n BOTTLES_DIR: ${{ github.workspace }}/bottles\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Download bottles from GitHub Actions\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: bottles_*\n path: ${{ env.BOTTLES_DIR }}\n merge-multiple: true\n\n - name: Setup git\n id: git-user-config\n uses: Homebrew/actions/git-user-config@master\n with:\n username: ${{ (github.actor != 'github-actions[bot]' && github.actor) || 'BrewTestBot' }}\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Generate build provenance\n uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3\n with:\n subject-path: ${{ env.BOTTLES_DIR }}/*.tar.gz\n\n - name: Checkout branch for bottle commit\n working-directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n run: git checkout -b "$BOTTLE_BRANCH" origin/master\n\n - name: Upload bottles to GitHub Packages\n id: upload\n env:\n HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot\n HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}}\n BREWTESTBOT_NAME_EMAIL: "BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>"\n HOMEBREW_CORE_PATH: ${{steps.set-up-homebrew.outputs.repository-path}}\n working-directory: ${{ env.BOTTLES_DIR }}\n run: |\n brew pr-upload --verbose --committer="$BREWTESTBOT_NAME_EMAIL" --root-url="https://ghcr.io/v2/homebrew/core" --debug\n echo "title=$(git -C "$HOMEBREW_CORE_PATH" log -1 --format='%s' "$BOTTLE_BRANCH")" >> "$GITHUB_OUTPUT"\n echo "head_sha=$(git -C "$HOMEBREW_CORE_PATH" rev-parse HEAD)" >> "$GITHUB_OUTPUT"\n\n - name: Push commits\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n branch: ${{env.BOTTLE_BRANCH}}\n env:\n GIT_COMMITTER_NAME: BrewTestBot\n GIT_COMMITTER_EMAIL: 1589480+BrewTestBot@users.noreply.github.com\n\n - name: Open PR with bottle commit\n id: create-pr\n uses: Homebrew/actions/create-pull-request@master\n with:\n token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}\n base: ${{github.ref}}\n head: ${{env.BOTTLE_BRANCH}}\n title: ${{steps.upload.outputs.title}}\n body: |\n Created by [`dispatch-rebottle.yml`](${{env.RUN_URL}})\n\n -----\n\n ${{env.DISPATCH_REBOTTLE_REASON}}\n labels: CI-published-bottle-commits\n reviewers: ${{github.actor}}\n\n - name: Enable automerge\n env:\n GH_TOKEN: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}\n NODE_ID: ${{steps.create-pr.outputs.node_id}}\n SHA: ${{steps.upload.outputs.head_sha}}\n MUTATION: |-\n mutation ($input: EnablePullRequestAutoMergeInput!) {\n enablePullRequestAutoMerge(input: $input) {\n clientMutationId\n }\n }\n run: |\n gh api graphql \\n --field "input[pullRequestId]=$NODE_ID" \\n --field "input[expectedHeadOid]=$SHA" \\n --raw-field query="$MUTATION"\n\n - name: Approve PR\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{steps.create-pr.outputs.number}}\n run: |\n gh api \\n --method POST \\n --header "Accept: application/vnd.github+json" \\n --header "X-GitHub-Api-Version: 2022-11-28" \\n "/repos/$GITHUB_REPOSITORY/pulls/$PR/reviews" \\n --field "event=APPROVE"\n\n - name: Wait until PR is merged\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ steps.create-pr.outputs.number }}\n run: |\n # Hold the `concurrency` lock for up to another 10 minutes while the PR has not yet been merged.\n sleep 300\n\n attempt=0\n max_attempts=5\n sleep_time=10\n\n while (( attempt < max_attempts ))\n do\n if jq --exit-status .merged_at\n then\n break\n fi < <( # We could use `gh pr view`, but that uses 2 API calls.\n gh api \\n --header "Accept: application/vnd.github+json" \\n --header "X-GitHub-Api-Version: 2022-11-28" \\n "/repos/$GITHUB_REPOSITORY/pulls/$PR"\n )\n\n sleep "$sleep_time"\n\n sleep_time=$(( sleep_time * 2 ))\n attempt=$(( attempt + 1 ))\n done\n\n comment:\n permissions:\n issues: write # for Homebrew/actions/post-comment\n pull-requests: write # for Homebrew/actions/post-comment\n needs: [bottle, upload]\n if: failure() && inputs.issue > 0\n runs-on: ubuntu-latest\n steps:\n - name: Post comment on failure\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n issue: ${{inputs.issue}}\n body: ":x: @${{github.actor}} bottle request for ${{inputs.formula}} [failed](${{env.RUN_URL}})."\n bot_body: ":x: Bottle request for ${{inputs.formula}} [failed](${{env.RUN_URL}})."\n bot: BrewTestBot\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\dispatch-rebottle.yml | dispatch-rebottle.yml | YAML | 10,301 | 0.95 | 0.073579 | 0.007463 | node-utils | 841 | 2023-08-29T02:44:49.220541 | Apache-2.0 | false | f2b14e0fd4bef9205c28a00687b1aa87 |
name: Manage pull request labels\n\non:\n pull_request_target:\n types:\n - unlabeled\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.label.name }}\n cancel-in-progress: true\n\nenv:\n GH_REPO: ${{ github.repository }}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n PR: ${{ github.event.number }}\n\njobs:\n label:\n permissions:\n pull-requests: write # for `gh pr edit`\n runs-on: ubuntu-latest\n if: >\n github.repository_owner == 'Homebrew' &&\n contains(fromJson('["workflows"]'), github.event.label.name)\n steps:\n - name: Re-label PR\n run: gh pr edit "$PR" --add-label "$LABEL" --repo "$GITHUB_REPOSITORY"\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n LABEL: ${{ github.event.label.name }}\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\manage-pull-request-labels.yml | manage-pull-request-labels.yml | YAML | 855 | 0.8 | 0.057143 | 0 | python-kit | 810 | 2025-03-31T06:26:03.341077 | BSD-3-Clause | false | 73b1395e59c4264cab65be8329cf399b |
name: Publish and commit bottles\n\nrun-name: "Publish PR #${{ inputs.pull_request }}"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.inputs.pull_request }}\n cancel-in-progress: false\n\non:\n workflow_dispatch:\n inputs:\n pull_request:\n description: Pull request number\n type: number\n required: true\n large_runner:\n description: "Run the upload job on a large runner? (default: false)"\n type: boolean\n required: false\n default: false\n autosquash:\n description: "Squash pull request commits according to Homebrew style? (default: false)"\n type: boolean\n required: false\n default: false\n warn_on_upload_failure:\n description: "Pass `--warn-on-upload-failure` to `brew pr-pull`? (default: false)"\n type: boolean\n required: false\n default: false\n message:\n description: "Message to include when autosquashing revision bumps, deletions, and rebuilds (requires autosquash)"\n required: false\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nenv:\n PR: ${{inputs.pull_request}}\n INPUT_MESSAGE: ${{ inputs.message }}\n GNUPGHOME: /tmp/gnupghome\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n HOMEBREW_NO_INSTALL_FROM_API: 1\n GH_REPO: ${{github.repository}}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n RUN_URL: ${{github.event.repository.html_url}}/actions/runs/${{github.run_id}}\n NON_PUSHABLE_MESSAGE: >-\n :no_entry: It looks like @BrewTestBot cannot push to your PR branch. For future pull requests, please\n [allow maintainers to edit your PR](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to simplify the merge process.\n ORG_FORK_MESSAGE: >-\n :no_entry: It looks like @BrewTestBot cannot push to your PR branch. Please open\n future pull requests from a non-organization fork to simplify the merge process.\n BOTTLE_COMMIT_PUSH_MESSAGE: >-\n Please **do not** push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from.\n If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.\n\njobs:\n check:\n runs-on: ubuntu-latest\n outputs:\n bottles: ${{steps.pr-branch-check.outputs.bottles}}\n head_sha: ${{steps.pr-branch-check.outputs.head_sha}}\n branch: ${{steps.pr-branch-check.outputs.branch}}\n remote_branch: ${{steps.pr-branch-check.outputs.remote_branch}}\n remote: ${{steps.pr-branch-check.outputs.remote}}\n replace: ${{steps.pr-branch-check.outputs.replace}}\n requires_merge: ${{steps.pr-branch-check.outputs.requires_merge}}\n permissions:\n contents: read\n actions: write # for `gh workflow run`\n pull-requests: write # for `gh pr edit|comment|review`\n repository-projects: write # for `gh pr edit`\n steps:\n - name: Check PR approval\n env:\n GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\n run: |\n if jq --exit-status 'all(.[].state; .!= "APPROVED")'\n then\n echo "::error ::PR #$PR is not approved!"\n exit 1\n fi < <(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n --paginate \\n "repos/$GITHUB_REPOSITORY/pulls/$PR/reviews"\n )\n\n - name: Check PR branch for mergeability\n id: pr-branch-check\n env:\n GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\n AUTOSQUASH: ${{inputs.autosquash}}\n run: |\n pr_data="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GH_REPO/pulls/$PR"\n )"\n\n pushable="$(jq .maintainer_can_modify <<< "$pr_data")"\n branch="$(jq --raw-output .head.ref <<< "$pr_data")"\n remote="$(jq --raw-output .head.repo.clone_url <<< "$pr_data")"\n head_repo="$(jq --raw-output .head.repo.full_name <<< "$pr_data")"\n head_repo_owner="$(jq --raw-output .head.repo.owner.login <<< "$pr_data")"\n head_sha="$(jq --raw-output .head.sha <<< "$pr_data")"\n fork_type="$(jq --raw-output .head.repo.owner.type <<< "$pr_data")"\n state="$(jq --raw-output .state <<< "$pr_data")"\n node_id="$(jq --raw-output .node_id <<< "$pr_data")"\n merged="$(jq --raw-output .merged <<< "$pr_data")"\n automerge_enabled="$(jq --raw-output '.auto_merge != null' <<< "$pr_data")"\n\n if [[ -z "$pushable" ]] ||\n [[ -z "$branch" ]] ||\n [[ -z "$remote" ]] ||\n [[ -z "$head_repo" ]] ||\n [[ -z "$head_repo_owner" ]] ||\n [[ -z "$head_sha" ]] ||\n [[ -z "$fork_type" ]] ||\n [[ -z "$state" ]] ||\n [[ -z "$merged" ]] ||\n [[ -z "$node_id" ]] ||\n [[ -z "$automerge_enabled" ]]\n then\n echo "::error ::Failed to get PR data!"\n exit 1\n fi\n\n if [[ "$state" = "closed" ]]\n then\n echo "::error ::PR #$PR is closed!"\n exit 1\n fi\n\n bottles=true\n while IFS='' read -r label\n do\n if [[ "$label" = "CI-syntax-only" ]] ||\n [[ "$label" = "CI-no-bottles" ]] ||\n [[ "$label" = "CI-published-bottle-commits" ]]\n then\n echo '::notice ::No bottles to publish according to PR labels.'\n bottles=false\n break\n fi\n done < <(jq --raw-output '.labels[].name' <<< "$pr_data")\n\n if [[ "$bottles" = "true" ]]\n then\n array_has_unremoved_formulae_filter='any((.filename | startswith("Formula/")) and (.status != "removed"))'\n if jq --exit-status ". | $array_has_unremoved_formulae_filter | not"\n then\n echo '::notice ::PR does not add or modify formulae; no bottles to publish.'\n bottles=false\n fi < <(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GH_REPO/pulls/$PR/files"\n )\n fi\n\n requires_merge=true\n if [[ "$merged" = "true" || "$automerge_enabled" = "true" ]]\n then\n echo '::notice ::Pull request is either already merged or queued to merge.'\n requires_merge=false\n fi\n\n if [[ "$branch" = "master" ]]\n then\n branch="$head_repo_owner/master"\n remote_branch="master"\n else\n remote_branch="$branch"\n fi\n\n {\n echo "bottles=$bottles"\n echo "head_sha=$head_sha"\n echo "branch=$branch"\n echo "remote_branch=$remote_branch"\n echo "remote=$remote"\n echo "node_id=$node_id"\n echo "requires_merge=$requires_merge"\n echo "replace=${AUTOSQUASH}"\n } >> "$GITHUB_OUTPUT"\n\n if "$pushable" && [[ "$fork_type" != "Organization" ]] ||\n [[ "$head_repo" = "$GH_REPO" ]] ||\n [[ "$bottles" = "false" ]]\n then\n exit 0\n elif "$pushable" || [[ "$fork_type" = "Organization" ]]\n then\n MESSAGE="$ORG_FORK_MESSAGE"\n else\n MESSAGE="$NON_PUSHABLE_MESSAGE"\n fi\n\n echo "replace=true" >> "$GITHUB_OUTPUT"\n gh pr comment "$PR" --body "$MESSAGE" --repo "$GITHUB_REPOSITORY"\n gh pr edit --add-label 'no push access' "$PR" --repo "$GITHUB_REPOSITORY"\n\n - name: Dispatch replacement pull request\n if: >\n fromJson(steps.pr-branch-check.outputs.replace) &&\n fromJson(steps.pr-branch-check.outputs.bottles) &&\n fromJson(steps.pr-branch-check.outputs.requires_merge)\n env:\n GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\n AUTOSQUASH: ${{inputs.autosquash}}\n UPLOAD: ${{!inputs.autosquash}}\n run: |\n gh workflow run create-replacement-pr.yml \\n --ref "$GITHUB_REF_NAME" \\n --field pull_request="$PR" \\n --field autosquash="${AUTOSQUASH}" \\n --field upload="${UPLOAD}" \\n --field warn_on_upload_failure=false \\n --field message="$INPUT_MESSAGE" \\n --repo "$GITHUB_REPOSITORY"\n\n - name: Post comment on failure\n if: ${{!success()}}\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n issue: ${{inputs.pull_request}}\n body: ":warning: @${{github.actor}} pre-merge checks [failed](${{env.RUN_URL}})."\n bot_body: ":warning: Pre-merge checks [failed](${{env.RUN_URL}})."\n bot: github-actions[bot]\n\n - name: Enqueue PR for merge\n if: >\n fromJson(steps.pr-branch-check.outputs.requires_merge) &&\n !fromJson(steps.pr-branch-check.outputs.bottles) &&\n !inputs.autosquash\n env:\n GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n ID: ${{ steps.pr-branch-check.outputs.node_id }}\n EXPECTED_SHA: ${{ steps.pr-branch-check.outputs.head_sha }}\n MUTATION: |-\n mutation ($input: EnqueuePullRequestInput!) {\n enqueuePullRequest(input: $input) {\n clientMutationId\n }\n }\n run: |\n # TODO Try using `gh pr merge` when the following is resolved:\n # https://github.com/cli/cli/issues/7213\n gh api graphql \\n --field "input[pullRequestId]=$ID" \\n --field "input[expectedHeadOid]=$EXPECTED_SHA" \\n --raw-field query="$MUTATION"\n\n upload:\n needs: check\n if: >\n fromJson(needs.check.outputs.requires_merge) &&\n fromJson(needs.check.outputs.bottles) &&\n !fromJson(needs.check.outputs.replace)\n runs-on: ${{inputs.large_runner && 'homebrew-large-bottle-upload' || 'ubuntu-latest'}}\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n volumes:\n - /mnt:/mnt\n permissions:\n attestations: write # for `generate build provenance`\n id-token: write # for `generate build provenance`\n actions: read # for `brew pr-pull`\n pull-requests: write # for `gh pr edit|review`\n repository-projects: write # for `gh pr edit`\n steps:\n - name: Post comment once started\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n issue: ${{inputs.pull_request}}\n body: |\n :shipit: @${{github.actor}} has [requested bottles to be published to this PR](${{env.RUN_URL}}).\n\n ${{env.BOTTLE_COMMIT_PUSH_MESSAGE}}\n bot_body: |\n :robot: An automated task has [requested bottles to be published to this PR](${{env.RUN_URL}}).\n\n ${{env.BOTTLE_COMMIT_PUSH_MESSAGE}}\n bot: github-actions[bot]\n\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Configure Git user\n id: git-user-config\n uses: Homebrew/actions/git-user-config@master\n with:\n username: ${{ (github.actor != 'github-actions[bot]' && github.actor) || 'BrewTestBot' }}\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Checkout PR branch\n working-directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n env:\n GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\n run: gh pr checkout "$PR" --repo "$GITHUB_REPOSITORY"\n\n - name: Pull PR bottles\n id: pr-pull\n working-directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n env:\n BREWTESTBOT_NAME_EMAIL: "BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>"\n HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_CORE_PUBLIC_REPO_EMAIL_TOKEN}}\n EXPECTED_SHA: ${{needs.check.outputs.head_sha}}\n LARGE_RUNNER: ${{inputs.large_runner}}\n WARN_ON_UPLOAD_FAILURE_FLAG: ${{inputs.warn_on_upload_failure && '--warn-on-upload-failure' || ''}}\n MESSAGE: ${{inputs.message}}\n run: |\n local_git_head="$(git rev-parse HEAD)"\n remote_git_head="$(git ls-remote origin "pull/$PR/head" | cut -f1)"\n\n if [ "$local_git_head" != "$EXPECTED_SHA" ] ||\n [ "$remote_git_head" != "$EXPECTED_SHA" ]\n then\n echo "::error ::Unexpected change in target branch."\n echo "::error ::Expected SHA1 $EXPECTED_SHA"\n echo "::error ::Checked out SHA1 $local_git_head"\n echo "::error ::PR branch SHA1 $remote_git_head"\n exit 1\n fi\n\n if [ -z "${LARGE_RUNNER}" ] || [ "${LARGE_RUNNER}" == "false" ]\n then\n sudo install -o "$(id -u)" -d "$(id -g)" /mnt/homebrew\n export HOMEBREW_CACHE=/mnt/homebrew/cache\n export HOMEBREW_TEMP=/mnt/homebrew/temp\n fi\n\n # Don't quote arguments that might be empty; this causes errors.\n brew pr-pull \\n --no-upload \\n --debug \\n --clean \\n --no-cherry-pick \\n --workflows=tests.yml \\n --committer="$BREWTESTBOT_NAME_EMAIL" \\n --root-url="https://ghcr.io/v2/homebrew/core" \\n --retain-bottle-dir \\n ${WARN_ON_UPLOAD_FAILURE_FLAG:+"${WARN_ON_UPLOAD_FAILURE_FLAG}"} \\n ${MESSAGE:+"--message=${MESSAGE}"} \\n "$PR"\n\n - name: Generate build provenance\n uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3\n with:\n subject-path: '${{steps.pr-pull.outputs.bottle_path}}/*.tar.gz'\n\n - name: Upload bottles to GitHub Packages\n id: pr-upload\n working-directory: ${{steps.pr-pull.outputs.bottle_path}}\n env:\n BREWTESTBOT_NAME_EMAIL: "BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>"\n HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot\n HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}}\n REPO_PATH: ${{steps.set-up-homebrew.outputs.repository-path}}\n WARN_ON_UPLOAD_FAILURE_FLAG: ${{inputs.warn_on_upload_failure && '--warn-on-upload-failure' || ''}}\n run: |\n # Don't quote arguments that might be empty; this causes errors when `brew`\n # interprets them as empty arguments when we want `brew` to ignore them instead.\n brew pr-upload \\n --debug \\n --committer="$BREWTESTBOT_NAME_EMAIL" \\n --root-url="https://ghcr.io/v2/homebrew/core" \\n ${WARN_ON_UPLOAD_FAILURE_FLAG:+"${WARN_ON_UPLOAD_FAILURE_FLAG}"}\n\n\n echo "head_sha=$(git -C "$REPO_PATH" rev-parse HEAD)" >> "$GITHUB_OUTPUT"\n\n - name: Push commits\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}\n directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n remote: ${{needs.check.outputs.remote}}\n branch: ${{needs.check.outputs.branch}}\n remote_branch: ${{needs.check.outputs.remote_branch}}\n env:\n GIT_COMMITTER_NAME: BrewTestBot\n GIT_COMMITTER_EMAIL: 1589480+BrewTestBot@users.noreply.github.com\n\n - name: Add CI-published-bottle-commits label\n run: gh pr edit --add-label CI-published-bottle-commits "$PR" --repo "$GITHUB_REPOSITORY"\n env:\n GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\n working-directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n\n - name: Post comment on failure\n if: failure()\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n issue: ${{inputs.pull_request}}\n body: ":warning: @${{github.actor}} bottle publish [failed](${{env.RUN_URL}})."\n bot_body: ":warning: Bottle publish [failed](${{env.RUN_URL}})."\n bot: github-actions[bot]\n\n - name: Wait until pull request branch is in sync with local repository\n id: wait-until-in-sync\n working-directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n env:\n EXPECTED_SHA: ${{steps.pr-upload.outputs.head_sha}}\n run: |\n echo "::notice ::Local repository HEAD: $EXPECTED_SHA"\n\n attempt=0\n max_attempts=10\n timeout=1\n\n # Wait (with exponential backoff) until the PR branch is in sync\n while [[ "$attempt" -lt "$max_attempts" ]]\n do\n remote_head="$(git ls-remote origin "pull/$PR/head" | cut -f1)"\n echo "::notice ::Pull request HEAD: $remote_head"\n if [[ "$EXPECTED_SHA" = "$remote_head" ]]\n then\n success=1\n break\n fi\n echo "::notice ::Remote repository not in sync. Checking again in ${timeout}s..."\n sleep "$timeout"\n attempt=$(( attempt + 1 ))\n timeout=$(( timeout * 2 ))\n done\n\n # One last check...\n if [[ -z "${success:-}" ]] && [[ "$EXPECTED_SHA" != "$(git ls-remote origin "pull/$PR/head" | cut -f1)" ]]\n then\n echo "::error ::No attempts remaining. Giving up."\n exit 1\n fi\n\n - run: gh pr review --approve "$PR" --repo "$GITHUB_REPOSITORY"\n id: approve\n env:\n GH_TOKEN: ${{secrets.GITHUB_TOKEN}}\n\n - name: Enable automerge\n id: automerge\n env:\n GH_TOKEN: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}\n EXPECTED_SHA: ${{steps.pr-upload.outputs.head_sha}}\n working-directory: ${{steps.set-up-homebrew.outputs.repository-path}}\n run: |\n local_git_head="$(git rev-parse HEAD)"\n remote_git_head="$(git ls-remote origin "pull/$PR/head" | cut -f1)"\n\n if [[ "$local_git_head" != "$EXPECTED_SHA" ]] ||\n [[ "$remote_git_head" != "$EXPECTED_SHA" ]]\n then\n echo "::error ::Unexpected change in target branch."\n echo "::error ::Expected SHA1 $EXPECTED_SHA"\n echo "::error ::Checked out SHA1 $local_git_head"\n echo "::error ::PR branch SHA1 $remote_git_head"\n exit 1\n fi\n\n gh pr merge "$PR" \\n --auto \\n --merge \\n --match-head-commit "$EXPECTED_SHA" \\n --repo "$GITHUB_REPOSITORY"\n\n - name: Post comment on failure\n if: >\n failure() &&\n (steps.approve.conclusion == 'failure' ||\n steps.wait-until-in-sync.conclusion == 'failure' ||\n steps.automerge.conclusion == 'failure')\n uses: Homebrew/actions/post-comment@master\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n issue: ${{inputs.pull_request}}\n body: ":warning: @${{github.actor}} [Failed to enable automerge](${{env.RUN_URL}})."\n bot_body: ":warning: [Failed to enable automerge](${{env.RUN_URL}})."\n bot: github-actions[bot]\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\publish-commit-bottles.yml | publish-commit-bottles.yml | YAML | 19,582 | 0.95 | 0.066398 | 0.015556 | python-kit | 879 | 2025-03-09T22:28:16.438342 | BSD-3-Clause | false | 212079085db891c69064538d0c1a0df8 |
name: Recreate Linux self-hosted runners\n\non:\n workflow_dispatch:\n schedule:\n # Once each 24 hours, at 1 during the night\n - cron: "0 1 * * *"\n workflow_run:\n workflows:\n - CI\n types:\n - completed\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: recreate-linux-runners-${{ github.event.workflow_run.id || github.ref }}\n cancel-in-progress: true\n\npermissions:\n contents: read\n\nenv:\n GH_REPO: ${{github.repository}}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n\njobs:\n check:\n if: >\n github.repository_owner == 'Homebrew' &&\n (github.event_name != 'workflow_run' || github.event.workflow_run.event == 'pull_request')\n runs-on: ubuntu-latest\n outputs:\n recreate: ${{ steps.check.outputs.recreate }}\n permissions:\n actions: read # for `gh run download`\n pull-requests: read # for `gh api`\n steps:\n - uses: Homebrew/actions/find-related-workflow-run-id@master\n if: github.event_name == 'workflow_run'\n with:\n run-id: ${{ github.event.workflow_run.id }}\n workflow-name: Triage tasks\n\n - name: Download `event_payload` artifact\n if: github.event_name == 'workflow_run'\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: event_payload\n github-token: ${{ github.token }}\n run-id: ${{ env.workflow_run_id }}\n\n - name: Check if runner needs to be recreated\n id: check\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n recreate=true\n\n if [[ "$GITHUB_EVENT_NAME" = "workflow_run" ]]\n then\n PR="$(jq --raw-output .number event.json)"\n\n recreate="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR" \\n --jq 'any(.labels[].name; .== "CI-linux-self-hosted")'\n )"\n fi\n\n echo "recreate=$recreate" >> "$GITHUB_OUTPUT"\n\n recreate:\n needs: check\n if: >\n github.repository_owner == 'Homebrew' &&\n (github.event_name != 'workflow_run' || github.event.workflow_run.event == 'pull_request') &&\n fromJson(needs.check.outputs.recreate)\n runs-on: ubuntu-latest\n env:\n # TODO agree on one label for all runners\n RUNNER_LABEL: TODO\n strategy:\n matrix:\n runner_name:\n - linux-self-hosted-1\n steps:\n - name: Set up Cloud SDK\n uses: google-github-actions/setup-gcloud@daadedc81d5f9d3c06d2c92f49202a3cc2b919ba # v0.2.1\n with:\n project_id: ${{ secrets.GCP_PROJECT_ID }}\n service_account_key: ${{ secrets.GCP_SA_KEY }}\n export_default_credentials: true\n\n - name: Wait for idle runner\n id: killable\n uses: Homebrew/actions/wait-for-idle-runner@master\n with:\n runner_name: ${{ matrix.runner_name }}\n github_token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n\n - name: Kill runner and create a new one\n if: ${{ steps.killable.outputs.runner-found == 'true' && steps.killable.outputs.runner-idle == 'true' }}\n uses: Homebrew/actions/create-gcloud-instance@master\n with:\n runner_name: ${{ matrix.runner_name }}\n gcp_project_id: ${{ secrets.GCP_PROJECT_ID }}\n gcp_service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}\n gcp_sa_key: ${{ secrets.GCP_SA_KEY }}\n github_token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\recreate-linux-runners.yml | recreate-linux-runners.yml | YAML | 3,631 | 0.8 | 0.104348 | 0.019802 | vue-tools | 246 | 2024-06-08T15:53:53.087010 | GPL-3.0 | false | 2ba5fbaf093707edf40f416f2aa2b869 |
name: Remove disabled packages\n\non:\n push:\n branches:\n - master\n paths:\n - .github/workflows/remove-disabled-packages.yml\n schedule:\n # Once every day at midnight UTC\n - cron: "0 0 * * *"\n\nenv:\n RUN_URL: ${{github.event.repository.html_url}}/actions/runs/${{github.run_id}}\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: remove-disabled-packages\n cancel-in-progress: true\n\npermissions:\n contents: read\n\njobs:\n remove-disabled-packages:\n if: github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n env:\n REMOVAL_BRANCH: remove-disabled-packages\n permissions:\n contents: write # for Homebrew/actions/git-try-push\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Configure Git user\n id: git-user-config\n uses: Homebrew/actions/git-user-config@master\n with:\n username: BrewTestBot\n\n - name: Set up commit signing\n uses: Homebrew/actions/setup-commit-signing@master\n with:\n signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}\n\n - name: Checkout removal branch\n run: git checkout -b "$REMOVAL_BRANCH" origin/master\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n\n - name: Remove disabled packages\n id: remove_disabled\n uses: Homebrew/actions/remove-disabled-packages@master\n env:\n HOMEBREW_EVAL_ALL: 1\n\n - name: Push commits\n if: fromJson(steps.remove_disabled.outputs.packages-removed)\n uses: Homebrew/actions/git-try-push@master\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n branch: ${{ env.REMOVAL_BRANCH }}\n env:\n GIT_COMMITTER_NAME: ${{ steps.git-user-config.outputs.name }}\n GIT_COMMITTER_EMAIL: ${{ steps.git-user-config.outputs.email }}\n\n - name: Create pull request\n if: fromJson(steps.remove_disabled.outputs.packages-removed)\n uses: Homebrew/actions/create-pull-request@master\n with:\n token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}\n base: master\n head: ${{env.REMOVAL_BRANCH}}\n title: Remove disabled packages\n labels: CI-no-bottles\n body: This pull request was created automatically by the [`remove-disabled-packages`](${{env.RUN_URL}}) workflow.\n\n create-issue:\n permissions:\n issues: write # for Homebrew/actions/create-or-update-issue\n needs: remove-disabled-packages\n if: always() && github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n steps:\n - name: Create issue on failure\n uses: Homebrew/actions/create-or-update-issue@master\n with:\n title: Disabled package removal failed\n body: Run failed at ${{ env.RUN_URL }}\n labels: bug,help wanted\n update-existing: ${{ needs.remove-disabled-packages.result == 'failure' }}\n close-existing: ${{ needs.remove-disabled-packages.result == 'success' }}\n close-from-author: github-actions[bot]\n close-comment: Run succeeded at ${{ env.RUN_URL }}, closing issue.\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\remove-disabled-packages.yml | remove-disabled-packages.yml | YAML | 3,416 | 0.8 | 0.07619 | 0.01087 | react-lib | 163 | 2024-07-16T05:14:32.715124 | BSD-3-Clause | false | 1c7271d6ab5d67d00f4f83a1390d9acd |
name: Scheduled online check\n\non:\n push:\n branches:\n - master\n paths:\n - .github/workflows/scheduled.yml\n schedule:\n # Once every day at 1AM\n - cron: "0 1 * * *"\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: scheduled\n cancel-in-progress: true\n\npermissions: {}\n\nenv:\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n GH_REPO: ${{ github.repository }}\n REPORTING_ISSUE: 139929\n RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n\njobs:\n create_matrix:\n if: startsWith( github.repository, 'Homebrew/' )\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n outputs:\n json: ${{ steps.matrix.outputs.json }}\n env:\n TEST_COUNT: 50\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Generate matrix\n id: matrix\n working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}\n run: |\n # Index all formulae so that we test (n ranges from 0 to TEST_COUNT - 1):\n # - formulae 0, 365, 630,..., 0 + 365 * n,... on the first day of the year\n # - formulae 1, 366, 631,..., 1 + 365 * n,... on the second day of the year\n # - formulae 2, 367, 632,..., 2 + 365 * n,... on the third day of the year\n # - ...\n # This works fine as long as we have fewer than 365 * TEST_COUNT formulae.\n mapfile -t formulae < <(find Formula -type f -execdir basename -s '.rb' {} + | sort)\n formulae_count="${#formulae[@]}"\n\n DAYS_PER_YEAR=365\n if (( formulae_count > DAYS_PER_YEAR * TEST_COUNT )); then\n required_test_count="$(( formulae_count / DAYS_PER_YEAR + 1 ))"\n echo "::error ::Too many formulae (${formulae_count})! Adjust TEST_COUNT to a number greater than ${required_test_count}."\n exit 1\n fi\n\n day="$(date +%j)"\n testing_formulae=()\n for (( i=0; i < TEST_COUNT; i++ )); do\n index="$(( (day + i * DAYS_PER_YEAR - 1) % formulae_count ))"\n testing_formulae+=("${formulae[${index}]}")\n done\n\n jq_filter='[.formulae[] | select(.deprecated or .disabled | not) | { name, curl: (.urls.stable.using == "homebrew_curl")}]'\n json="$(brew info --json=v2 "${testing_formulae[@]}" | jq --compact-output "${jq_filter}")"\n echo "json=${json}" >> "$GITHUB_OUTPUT"\n\n comment_on_failure:\n needs: create_matrix\n if: needs.create_matrix.result == 'failure'\n runs-on: ubuntu-latest\n permissions:\n issues: write\n env:\n GH_TOKEN: ${{ github.token }}\n steps:\n - name: Post comment on failure\n run: |\n gh issue comment "$REPORTING_ISSUE" \\n --body "\`create_matrix\` job failed. Check $RUN_URL" \\n --repo "$GITHUB_REPOSITORY"\n\n audit_online:\n if: startsWith( github.repository, 'Homebrew/' )\n runs-on: ubuntu-latest\n container:\n image: ghcr.io/homebrew/ubuntu22.04:master\n permissions:\n issues: write\n needs: create_matrix\n name: "Online check: ${{ matrix.name }}"\n env:\n HOMEBREW_GITHUB_API_TOKEN: "${{ github.token }}"\n GH_TOKEN: "${{ github.token }}"\n FORMULA: ${{ matrix.name }}\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJson(needs.create_matrix.outputs.json) }}\n steps:\n - name: Set up Homebrew\n id: set-up-homebrew\n uses: Homebrew/actions/setup-homebrew@master\n with:\n core: true\n cask: false\n test-bot: false\n\n - name: Install and use Homebrew curl if needed\n if: matrix.curl\n run: |\n brew install curl\n echo "HOMEBREW_FORCE_BREWED_CURL=1" >>"${GITHUB_ENV}"\n\n - name: Install Homebrew subversion if needed for downloading sources\n run: |\n if comm -23 <(brew deps --include-implicit --direct "$FORMULA" | sort) <(brew deps --direct "$FORMULA" | sort) | grep -Fqx subversion; then\n brew install subversion\n fi\n\n - name: Check formula source is not archived.\n id: archived\n run: brew audit --online --skip-style --only github_repository_archived,gitlab_repository_archived "$FORMULA"\n\n - name: Report online issues\n if: failure() && steps.archived.conclusion == 'failure'\n run: |\n gh issue comment "$REPORTING_ISSUE" \\n --body "$FORMULA should be archived. Check $RUN_URL" \\n --repo "$GITHUB_REPOSITORY"\n\n - name: Check formula for unavailable homepage.\n id: homepage\n run: brew audit --online --skip-style --only homepage "$FORMULA"\n\n - name: Report homepage issues\n if: failure() && steps.homepage.conclusion == 'failure'\n run: |\n gh issue comment "$REPORTING_ISSUE" \\n --body "$FORMULA has homepage issues. Check $RUN_URL" \\n --repo "$GITHUB_REPOSITORY"\n\n - name: Check formula for missing sources.\n id: fetch\n if: always() && steps.archived.conclusion != 'failure'\n run: brew fetch --build-from-source "$FORMULA"\n\n - name: Report fetch issues\n if: failure() && steps.fetch.conclusion == 'failure'\n run: |\n gh issue comment "$REPORTING_ISSUE" \\n --body "$FORMULA source has problems. Check $RUN_URL" \\n --repo "$GITHUB_REPOSITORY"\n\n - name: Check bottle attestation\n id: attestation\n if: always()\n run: brew verify --os=all --arch=all "$FORMULA"\n\n - name: Report attestation issues\n if: failure() && steps.attestation.conclusion == 'failure'\n run: |\n gh issue comment "$REPORTING_ISSUE" \\n --body "$FORMULA attestation has problems. Check $RUN_URL" \\n --repo "$GITHUB_REPOSITORY"\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\scheduled.yml | scheduled.yml | YAML | 6,150 | 0.95 | 0.101695 | 0.045161 | awesome-app | 684 | 2024-01-06T11:45:02.568875 | GPL-3.0 | false | 81306b5d37fe61f726f138958f40f533 |
# This file is synced from the `.github` repository, do not modify it directly.\nname: Manage stale issues\n\non:\n push:\n paths:\n - .github/workflows/stale-issues.yml\n branches-ignore:\n - dependabot/**\n schedule:\n # Once every day at midnight UTC\n - cron: "0 0 * * *"\n issue_comment:\n\npermissions: {}\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: stale-issues\n cancel-in-progress: ${{ github.event_name != 'issue_comment' }}\n\njobs:\n stale:\n if: >\n github.repository_owner == 'Homebrew' && (\n github.event_name != 'issue_comment' || (\n contains(github.event.issue.labels.*.name, 'stale') ||\n contains(github.event.pull_request.labels.*.name, 'stale')\n )\n )\n runs-on: ubuntu-latest\n permissions:\n contents: write\n issues: write\n pull-requests: write\n steps:\n - name: Mark/Close Stale Issues and Pull Requests\n uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n days-before-stale: 21\n days-before-close: 7\n stale-issue-message: >\n This issue has been automatically marked as stale because it has not had\n recent activity. It will be closed if no further activity occurs.\n stale-pr-message: >\n This pull request has been automatically marked as stale because it has not had\n recent activity. It will be closed if no further activity occurs.\n exempt-issue-labels: "gsoc-outreachy,help wanted,in progress"\n exempt-pr-labels: "gsoc-outreachy,help wanted,in progress"\n delete-branch: true\n\n bump-pr-stale:\n if: >\n github.repository_owner == 'Homebrew' && (\n github.event_name != 'issue_comment' || (\n contains(github.event.issue.labels.*.name, 'stale') ||\n contains(github.event.pull_request.labels.*.name, 'stale')\n )\n )\n runs-on: ubuntu-latest\n permissions:\n contents: write\n issues: write\n pull-requests: write\n steps:\n - name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests\n uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n days-before-stale: 2\n days-before-close: 1\n stale-pr-message: >\n This pull request has been automatically marked as stale because it has not had\n recent activity. It will be closed if no further activity occurs. To keep this\n pull request open, add a `help wanted` or `in progress` label.\n exempt-pr-labels: "help wanted,in progress"\n any-of-labels: "bump-formula-pr,bump-cask-pr"\n delete-branch: true\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\stale-issues.yml | stale-issues.yml | YAML | 2,824 | 0.8 | 0.060976 | 0.026316 | vue-tools | 721 | 2025-05-31T09:58:09.801629 | GPL-3.0 | false | fd48631afaa186a74e225f6e38e95dfb |
name: Triage CI failure\n\non:\n workflow_run:\n workflows:\n - CI\n types:\n - completed\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: triage-ci-${{ github.event.workflow_run.event }}-${{ github.event.workflow_run.id }}\n cancel-in-progress: true\n\nenv:\n HOMEBREW_DEVELOPER: 1\n HOMEBREW_NO_AUTO_UPDATE: 1\n GH_REPO: ${{ github.repository }}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n\njobs:\n comment:\n runs-on: ubuntu-latest\n if: >\n github.repository_owner == 'Homebrew' &&\n github.event.workflow_run.conclusion == 'failure' &&\n github.event.workflow_run.event == 'pull_request'\n permissions:\n contents: read\n pull-requests: write\n env:\n COMMENT_BODY_FILE: comment.txt\n steps:\n - uses: Homebrew/actions/find-related-workflow-run-id@master\n with:\n run-id: ${{ github.event.workflow_run.id }}\n workflow-name: Triage tasks\n\n - name: Download `event_payload` artifact\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: event_payload\n github-token: ${{ github.token }}\n run-id: ${{ env.workflow_run_id }}\n\n - run: echo "number=$(jq --raw-output .number event.json)" >> "$GITHUB_OUTPUT"\n id: pr\n\n - name: Check PR\n id: check\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ steps.pr.outputs.number }}\n NEW_CONTRIBUTOR_MESSAGE: >\n Thanks for contributing to Homebrew! :tada: It looks like you're having trouble\n with a CI failure. See our [contribution guide](${{ github.event.repository.html_url }}/blob/HEAD/CONTRIBUTING.md)\n for help. You may be most interested in the section on\n [dealing with CI failures](${{ github.event.repository.html_url }}/blob/HEAD/CONTRIBUTING.md#dealing-with-ci-failures).\n You can find the CI logs in the\n [Checks tab](${{ github.event.repository.html_url }}/pull/${{ steps.pr.outputs.number }}/checks)\n of your pull request.\n run: |\n rm -f "$COMMENT_BODY_FILE"\n comment=false\n response="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR"\n )"\n comments_api_url="$(jq --raw-output '.comments_url' <<< "$response")"\n\n post_comment_if_not_posted() {\n comment_condition_filter="$1"\n message="$2"\n\n if jq --exit-status "$comment_condition_filter"\n then\n # Check that we haven't posted the message yet.\n if jq --exit-status \\n --arg message "$message" \\n 'any(.[].body; contains($message)) | not'\n then\n echo "$message" >> "$COMMENT_BODY_FILE"\n fi < <(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "$comments_api_url"\n )\n fi <<< "$response"\n }\n\n post_comment_if_not_posted \\n '.author_association == "FIRST_TIME_CONTRIBUTOR" or .author_association == "NONE"' \\n "$NEW_CONTRIBUTOR_MESSAGE"\n\n if [[ -s "$COMMENT_BODY_FILE" ]]\n then\n comment=true\n fi\n\n echo "comment=$comment" >> "$GITHUB_OUTPUT"\n\n - name: Post comment\n if: fromJson(steps.check.outputs.comment)\n run: gh pr comment "$PR" --body-file "$COMMENT_BODY_FILE" --repo "$GITHUB_REPOSITORY"\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ steps.pr.outputs.number }}\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\triage-ci.yml | triage-ci.yml | YAML | 3,838 | 0.8 | 0.061404 | 0.01 | react-lib | 291 | 2024-06-21T03:49:02.774694 | MIT | false | 4cf80f8d07cda2cc3563a6905bcd1df4 |
name: Triage tasks\n\non: pull_request_target\n\nenv:\n GH_REPO: ${{ github.repository }}\n GH_NO_UPDATE_NOTIFIER: 1\n GH_PROMPT_DISABLED: 1\n\ndefaults:\n run:\n shell: bash -xeuo pipefail {0}\n\nconcurrency:\n group: "triage-${{ github.event.number }}"\n cancel-in-progress: true\n\npermissions: {}\n\njobs:\n upload-metadata:\n permissions:\n contents: read\n if: always() && github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n steps:\n - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: event_payload\n path: ${{ github.event_path }}\n\n workflows-label:\n permissions:\n contents: read\n issues: write\n pull-requests: write\n if: always() && github.repository_owner == 'Homebrew'\n runs-on: ubuntu-latest\n steps:\n - name: Check pull request changed files\n id: files\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ github.event.number }}\n run: |\n workflow_modified="$(\n gh api \\n --header 'Accept: application/vnd.github+json' \\n --header 'X-GitHub-Api-Version: 2022-11-28' \\n "repos/$GITHUB_REPOSITORY/pulls/$PR/files" \\n --jq 'any(.[].filename; startswith(".github/workflows"))'\n )"\n # Fail closed.\n echo "workflow_modified=${workflow_modified:-true}" >> "${GITHUB_OUTPUT}"\n\n # Wait briefly in case of failure to make sure we don't end up\n # hitting the same API error when trying `gh pr edit`.\n - if: failure()\n run: sleep 30\n\n - name: Label PR\n if: always() && fromJson(steps.files.outputs.workflow_modified)\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n PR: ${{ github.event.number }}\n run: gh pr edit --add-label workflows "$PR" --repo "$GITHUB_REPOSITORY"\n\n triage:\n runs-on: ubuntu-latest\n permissions:\n contents: read\n issues: write\n pull-requests: write\n statuses: write\n steps:\n - name: Check commit format\n if: >\n github.actor != 'BrewTestBot' &&\n !contains(github.event.pull_request.labels.*.name, 'CI-published-bottle-commits')\n uses: Homebrew/actions/check-commit-format@master\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n\n - name: Label pull request\n uses: Homebrew/actions/label-pull-requests@master\n if: always()\n with:\n token: ${{secrets.GITHUB_TOKEN}}\n def: |\n - label: new formula\n status: added\n path: Formula/.+\n allow_any_match: true\n\n - label: marked for removal/rejection\n status: removed\n path: Formula/.+\n\n - label: no ARM bottle\n path: Formula/.+\n content: '\n sha256.* (?!.*(?:arm64_|_linux)).+: +"[a-fA-F0-9]+"\n'\n missing_content: '\n sha256.* (arm64_.+|all): +"[a-fA-F0-9]+"\n'\n\n - label: no Linux bottle\n path: Formula/.+\n content: \n bottle do\n\n missing_content:\n - '\n sha256.* (x86_64|arm64)_linux: +"[a-fA-F0-9]+"\n'\n - '\n sha256.* all: +"[a-fA-F0-9]+"\n'\n - depends_on :macos\n\n - label: formula deprecated\n path: Formula/.+\n content: \n deprecate!.*\n\n\n - label: formula disabled\n path: Formula/.+\n content: \n disable!.*\n\n\n - label: legacy\n path: Formula/.+@.+\n except:\n - Formula/b/bash-completion@2.rb\n - Formula/i/icu4c@77.rb\n - Formula/lib/libxml++@5.rb\n - Formula/o/openssl@3.rb\n - Formula/p/postgresql@17.rb\n - Formula/p/python@3.13.rb\n - Formula/p/python-gdbm@3.13.rb\n - Formula/p/python-tk@3.13.rb\n\n - label: missing license\n path: Formula/.+\n missing_content: \n license .+\n\n\n - label: deprecated license\n path: Formula/.+\n content: license .*"(GPL|LGPL|AGPL|GFDL)-[0-9].[0-9][+]?".*\n\n - label: boost\n path: Formula/.+\n content: depends_on "boost(@[0-9.]+)?"\n\n - label: ffmpeg\n path: Formula/.+\n content: depends_on "ffmpeg(@[0-9.]+)?"\n\n - label: erlang\n path: Formula/.+\n content: depends_on "erlang(@[0-9.]+)?"\n\n - label: go\n path: Formula/.+\n content: depends_on "go(@[0-9.]+)?"\n\n - label: haskell\n path: Formula/.+\n content: depends_on "(ghc|haskell-stack)(@[0-9.]+)?"\n\n - label: icu4c\n path: Formula/.+\n content: depends_on "icu4c(@[0-9.]+)?"\n\n - label: java\n path: Formula/.+\n content: depends_on "openjdk(@[0-9.]+)?"\n\n - label: linux-only\n path: Formula/.+\n content: depends_on :linux\n\n - label: macos-only\n path: Formula/.+\n content: depends_on :macos\n\n - label: meson\n path: Formula/.+\n content: depends_on "meson"\n\n - label: lua\n path: Formula/.+\n content: depends_on "(lua|luajit|luajit-openresty)(@[0-9.]+)?"\n\n - label: nodejs\n path: Formula/.+\n content: depends_on "node(@[0-9.]+)?"\n\n - label: ocaml\n path: Formula/.+\n content: depends_on "ocaml(@[0-9.]+)?"\n\n - label: perl\n path: Formula/.+\n content: (depends_on|uses_from_macos) "perl(@[0-9.]+)?"\n\n - label: php\n path: Formula/.+\n content: (depends_on|uses_from_macos) "php(@[0-9.]+)?"\n\n - label: python\n path: Formula/.+\n content: (depends_on|uses_from_macos) "python(@[0-9.]+)?"\n missing_content: (depends_on|uses_from_macos) "python(@[0-9.]+)?" => \[?:(build|test)\n\n - label: ruby\n path: Formula/.+\n content: (depends_on|uses_from_macos) "ruby(@[0-9.]+)?"\n\n - label: rust\n path: Formula/.+\n content: depends_on "rust(@[0-9.]+)?"\n\n - label: zig\n path: Formula/.+\n content: depends_on "zig(@[0-9.]+)?"\n\n - label: dotnet\n path: Formula/.+\n content: depends_on "dotnet(@[0-9.]+)?"\n\n - label: swift\n path: Formula/.+\n content: system "swift", "build"\n\n - label: long build\n path: "Formula/.+/(\\n agda|\\n apache-pulsar|\\n arangodb|\\n aws-sdk-cpp|\\n cbmc|\\n cp2k|\\n deno|\\n dotnet|\\n emscripten|\\n envoy|\\n gcc|\\n gdb|\\n ghc|\\n graph-tool|\\n gstreamer|\\n haskell-language-server|\\n libtensorflow|\\n mame|\\n metashell|\\n mlkit|\\n mpich|\\n node|\\n octave|\\n opencascade|\\n openfast|\\n openvino|\\n pcl|\\n ponyc|\\n pytorch|\\n qt|\\n root|\\n rtabmap|\\n rust|\\n souffle|\\n swift|\\n texlive|\\n v8|\\n vtk\\n )(@[0-9.]+)?.rb"\n keep_if_no_match: true\n allow_any_match: true\n\n - label: long dependent tests\n path: "Formula/.+/(\\n aom|\\n at-spi2-core|\\n boost|\\n brotli|\\n c-ares|\\n cabal-install|\\n dav1d|\\n freetype|\\n gcc|\\n ghc|\\n glib|\\n gsettings-desktop-schemas|\\n gtk\\+3|\\n harfbuzz|\\n highway|\\n hwloc|\\n icu4c|\\n imath|\\n jasper|\\n jpeg-turbo|\\n jpeg-xl|\\n libcap|\\n libgcrypt|\\n libgpg-error|\\n libidn2|\\n libmicrohttpd|\\n librist|\\n libnghttp2|\\n libomp|\\n libpng|\\n libtool|\\n libunistring|\\n mpfr|\\n mpg123|\\n node|\\n numpy|\\n openblas|\\n openjpeg|\\n p11-kit|\\n pango|\\n pcre2|\\n python@3.13|\\n rav1e|\\n rust|\\n shared-mime-info|\\n suite-sparse|\\n qt|\\n readline|\\n unbound|\\n xz|\\n zstd\\n ).rb"\n keep_if_no_match: true\n allow_any_match: true\n\n - label: CI-build-dependents-from-source\n path:\n - 'Formula/.+/(cabal-install|docbook-xsl|emscripten|erlang|ocaml|ocaml-findlib|ocaml-num|openjdk|rust)\.rb'\n - 'Aliases/(ghc|go)(@[0-9.]+)?$'\n missing_content: '\n revision [0-9]+\n'\n keep_if_no_match: true\n allow_any_match: true\n\n - label: CI-skip-recursive-dependents\n path: Formula/.+/(ca-certificates|curl|gettext|openssl@3|sqlite|systemd).rb\n keep_if_no_match: true\n\n - label: CI-linux-self-hosted\n path: "Formula/.+/(\\n dart-sdk|\\n envoy|\\n qt(@5)?|\\n teleport|\\n texlive\\n ).rb"\n keep_if_no_match: true\n allow_any_match: true\n\n - label: CI-linux-self-hosted-deps\n path: "Formula/.+/(\\n alsa-lib|\\n glib|\\n libcap|\\n libva|\\n libxml2|\\n python@3.13|\\n wayland-protocols|\\n zlib|\\n ).rb"\n keep_if_no_match: true\n allow_any_match: true\n\n - label: bump-formula-pr\n pr_body_content: Created with `brew bump-formula-pr`\n\n - label: pip-audit\n pr_body_content: Created by `brew-pip-audit`\n\n - label: autobump\n path: \.github/autobump\.txt\n allow_any_match: true\n\n - label: alias\n path: Aliases/.+\n allow_any_match: true\n | dataset_sample\yaml\Homebrew_homebrew-core\.github\workflows\triage.yml | triage.yml | YAML | 11,066 | 0.8 | 0.021333 | 0.009231 | python-kit | 51 | 2024-05-25T23:36:52.358312 | MIT | false | 41454c589f6afb7af63b94794b60d9cf |
name: CI\n\non:\n push:\n branches: [ "master" ]\n pull_request: {}\n merge_group:\n branches: [ "master" ]\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\nenv:\n RUSTFLAGS: "-D warnings"\n\njobs:\n\n rustfmt:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n with:\n components: rustfmt\n - run: cargo fmt --all --check\n\n clippy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n with:\n components: clippy\n - uses: taiki-e/install-action@protoc\n - uses: Swatinem/rust-cache@v2\n - run: cargo clippy --workspace --all-features --all-targets\n\n codegen:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n - uses: Swatinem/rust-cache@v2\n - run: cargo run --package codegen\n - run: git diff --exit-code\n\n udeps:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: nightly-2025-03-27\n - uses: taiki-e/install-action@cargo-hack\n - uses: taiki-e/install-action@cargo-udeps\n - uses: taiki-e/install-action@protoc\n - uses: Swatinem/rust-cache@v2\n - run: cargo hack udeps --workspace --exclude-features=_tls-any,tls,tls-aws-lc,tls-ring --each-feature\n - run: cargo udeps --package tonic --features tls-ring,transport\n - run: cargo udeps --package tonic --features tls-ring,server\n - run: cargo udeps --package tonic --features tls-ring,channel\n - run: cargo udeps --package tonic --features tls-aws-lc,transport\n - run: cargo udeps --package tonic --features tls-aws-lc,server\n - run: cargo udeps --package tonic --features tls-aws-lc,channel\n\n check:\n runs-on: ${{ matrix.os }}\n strategy:\n matrix:\n os: [ubuntu-latest, macOS-latest, windows-latest]\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n - uses: taiki-e/install-action@cargo-hack\n - uses: taiki-e/install-action@protoc\n - uses: Swatinem/rust-cache@v2\n - name: Check features\n run: cargo hack check --workspace --no-private --each-feature --no-dev-deps\n - name: Check tonic feature powerset\n run: cargo hack check --package tonic --feature-powerset --depth 2\n - name: Check all targets\n run: cargo check --workspace --all-targets --all-features\n\n msrv:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n - name: Resolve MSRV aware dependencies\n run: cargo update\n env:\n CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback\n - name: Get MSRV from manifest file\n id: msrv\n run: echo "version=$(yq '.workspace.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT\n - uses: hecrj/setup-rust-action@v2\n with:\n rust-version: ${{ steps.msrv.outputs.version }}\n - uses: taiki-e/install-action@cargo-no-dev-deps\n - uses: Swatinem/rust-cache@v2\n - run: cargo no-dev-deps --no-private check --all-features\n - run: cargo no-dev-deps --no-private doc --no-deps --all-features\n env:\n RUSTDOCFLAGS: "-D warnings"\n\n test:\n runs-on: ${{ matrix.os }}\n strategy:\n matrix:\n os: [ubuntu-latest, macOS-latest, windows-latest]\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n - uses: taiki-e/install-action@protoc\n - uses: taiki-e/install-action@cargo-hack\n - uses: taiki-e/install-action@cargo-nextest\n - uses: Swatinem/rust-cache@v2\n - run: cargo nextest run --workspace --all-features\n env:\n QUICKCHECK_TESTS: 1000 # run a lot of quickcheck iterations\n\n doc-test:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n - uses: taiki-e/install-action@cargo-hack\n - uses: Swatinem/rust-cache@v2\n - run: cargo hack --no-private test --doc --all-features\n\n interop:\n name: Interop Tests\n runs-on: ${{ matrix.os }}\n strategy:\n matrix:\n os: [ubuntu-latest, macOS-latest, windows-latest]\n steps:\n - uses: actions/checkout@v4\n - uses: hecrj/setup-rust-action@v2\n - uses: taiki-e/install-action@protoc\n - uses: Swatinem/rust-cache@v2\n - name: Run interop tests\n run: ./interop/test.sh\n shell: bash\n - name: Run interop tests with Rustls\n run: ./interop/test.sh --use_tls tls_rustls\n shell: bash\n\n semver:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: obi1kenobi/cargo-semver-checks-action@v2\n with:\n feature-group: all-features\n\n external-types:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: nightly-2024-06-30\n - name: Install cargo-check-external-types\n uses: taiki-e/cache-cargo-install-action@v2\n with:\n tool: cargo-check-external-types@0.1.13\n - uses: taiki-e/install-action@cargo-hack\n - uses: Swatinem/rust-cache@v2\n - run: cargo hack --no-private check-external-types\n | dataset_sample\yaml\hyperium_tonic\.github\workflows\CI.yml | CI.yml | YAML | 5,189 | 0.8 | 0 | 0 | awesome-app | 533 | 2024-07-10T17:18:42.416362 | GPL-3.0 | false | 1ff75d8b38987714aacdc27f1a300a3f |
# SPDX-License-Identifier: Apache-2.0\n\npull_request_rules:\n - name: Auto-Merge on Approving Label and Changes Limited to docs/ Folder\n conditions:\n - files~=^docs/\n - -files~=^(?!^docs).*\n - label=doc-merge\n actions:\n merge:\n method: rebase\n | dataset_sample\yaml\hyperledger_fabric\.mergify.yml | .mergify.yml | YAML | 275 | 0.8 | 0 | 0.1 | react-lib | 334 | 2024-01-08T17:02:41.882349 | Apache-2.0 | false | 11056a4c54c81dd55bf37c2aa80f56d7 |
self-hosted-runner:\n # Labels of self-hosted runner in array of string\n labels:\n - warp-ubuntu-latest-x64-4x\n - warp-ubuntu-latest-arm64-4x\n - warp-ubuntu-latest-x64-16x\n | dataset_sample\yaml\hypermodeinc_badger\.github\actionlint.yml | actionlint.yml | YAML | 181 | 0.8 | 0 | 0.166667 | python-kit | 971 | 2023-07-22T06:05:57.687718 | BSD-3-Clause | false | 92e11571828211289fbca4a1dfda2b04 |
blank_issues_enabled: false\ncontact_links:\n - name: Badger Community Support\n url: https://discord.hypermode.com\n about: Please ask and answer questions here\n | dataset_sample\yaml\hypermodeinc_badger\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 165 | 0.8 | 0 | 0 | node-utils | 573 | 2023-08-06T11:31:15.974714 | BSD-3-Clause | false | ae8f08881b0f84a20d24dd668dadfedf |
name: cd-badger\n\non:\n workflow_dispatch:\n inputs:\n releasetag:\n description: releasetag\n required: true\n type: string\n\npermissions:\n contents: read\n\njobs:\n badger-build-amd64:\n runs-on: warp-ubuntu-latest-x64-4x\n steps:\n - uses: actions/checkout@v4\n with:\n ref: "${{ github.event.inputs.releasetag }}"\n - name: Set up Go\n uses: actions/setup-go@v5\n with:\n go-version-file: go.mod\n - name: Set Badger Release Version\n run: |\n #!/bin/bash\n GIT_TAG_NAME='${{ github.event.inputs.releasetag }}'\n if [[ "$GIT_TAG_NAME" == "v"* ]];\n then\n echo "this is a release tag"\n else\n echo "this is NOT a release tag"\n exit 1\n fi\n BADGER_RELEASE_VERSION='${{ github.event.inputs.releasetag }}'\n echo "making a new release for "$BADGER_RELEASE_VERSION\n echo "BADGER_RELEASE_VERSION=$BADGER_RELEASE_VERSION" >> $GITHUB_ENV\n - name: Fetch dependencies\n run: sudo apt-get update && sudo apt-get -y install build-essential\n - name: Build badger linux/amd64\n run: make badger\n - name: Generate SHA for Linux Build\n run:\n cd badger && sha256sum badger-linux-amd64 | cut -c-64 > badger-checksum-linux-amd64.sha256\n - name: Tar Archive for Linux Build\n run: cd badger && tar -zcvf badger-linux-amd64.tar.gz badger-linux-amd64\n - name: Upload Badger Binary Build Artifacts\n uses: actions/upload-artifact@v4\n with:\n name: badger-linux-amd64-${{ github.run_id }}-${{ github.job }}\n path: |\n badger/badger-checksum-linux-amd64.sha256\n badger/badger-linux-amd64.tar.gz\n\n badger-build-arm64:\n runs-on: warp-ubuntu-latest-arm64-4x\n steps:\n - uses: actions/checkout@v4\n with:\n ref: "${{ github.event.inputs.releasetag }}"\n - name: Set up Go\n uses: actions/setup-go@v5\n with:\n go-version-file: go.mod\n - name: Set Badger Release Version\n run: |\n #!/bin/bash\n GIT_TAG_NAME='${{ github.event.inputs.releasetag }}'\n if [[ "$GIT_TAG_NAME" == "v"* ]];\n then\n echo "this is a release tag"\n else\n echo "this is NOT a release tag"\n exit 1\n fi\n BADGER_RELEASE_VERSION='${{ github.event.inputs.releasetag }}'\n echo "making a new release for "$BADGER_RELEASE_VERSION\n echo "BADGER_RELEASE_VERSION=$BADGER_RELEASE_VERSION" >> $GITHUB_ENV\n - name: Fetch dependencies\n run: sudo apt-get -y install build-essential\n - name: Build badger linux/arm64\n run: make badger\n - name: Generate SHA for Linux Build\n run:\n cd badger && sha256sum badger-linux-arm64 | cut -c-64 > badger-checksum-linux-arm64.sha256\n - name: Tar Archive for Linux Build\n run: cd badger && tar -zcvf badger-linux-arm64.tar.gz badger-linux-arm64\n - name: List Artifacts\n run: ls -al badger/\n - name: Upload Badger Binary Build Artifacts\n uses: actions/upload-artifact@v4\n with:\n name: badger-linux-arm64-${{ github.run_id }}-${{ github.job }}\n path: |\n badger/badger-checksum-linux-arm64.sha256\n badger/badger-linux-arm64.tar.gz\n | dataset_sample\yaml\hypermodeinc_badger\.github\workflows\cd-badger.yml | cd-badger.yml | YAML | 3,387 | 0.95 | 0.082474 | 0.021505 | react-lib | 753 | 2025-01-08T01:49:32.304526 | MIT | false | a30dbc01d23ea6891f89b967dea7f4ce |
---\n# CI Overview\n# -----------\n#\n# Every commit:\n#\n# The CI for every PR and merge to main runs tests, fmt, lints and compiles debug binaries\n#\n# On main if all these checks pass it will then additionally compile in "release" mode and\n# publish a docker image to quay.io/influxdb/influxdb3:$COMMIT_SHA\n#\n# Manually trigger build and push of container image for a branch:\n#\n# Navigate to https://app.circleci.com/pipelines/github/influxdata/influxdb?branch=<branch-name> (<- change this!)\n# Then:\n#\n# - Click "Run Pipeline" in the top-right\n# - Expand "Add Parameters"\n# - Add a "boolean" parameter called "release_branch" with the value true\n# - Click "Run Pipeline"\n#\n# You can also do this using the CircleCI API:\n#\n# Using `xh`:\n#\n# # e.g. using 'xh' (https://github.com/ducaale/xh)\n# $ xh -a '<your personal circleCI token>:' POST \\n# https://circleci.com/api/v2/project/github/influxdata/influxdb/pipeline \\n# parameters:='{"release_branch": true}' branch=chore/ci-tidy-up\n#\n# ...or equivalent with `curl`:\n# $ curl -XPOST -H "Content-Type: application/json" -H "Circle-Token: <your personal circleCI token>" \\n# -d '{"parameters": {"release_branch": true}, "branch": "chore/ci-tidy-up"}' \\n# https://circleci.com/api/v2/project/github/influxdata/influxdb/pipeline\nversion: 2.1\n\norbs:\n aws-s3: circleci/aws-s3@2.0.0\n terraform: circleci/terraform@2.1.0\n rust: circleci/rust@1.6.1\n\n# Unlike when a commit is pushed to a branch, CircleCI does not automatically\n# execute a workflow when a tag is pushed to a repository. These filters\n# allow the corresponding workflow to execute on any branch or tag.\nany_filter: &any_filter\n filters:\n tags:\n only: /.*/\n branches:\n only: /.*/\n\n# This regex is used to trigger 'release builds' based on tags. For semver,\n# package upgrades, etc, the tags must conform to specific schema. Eg:\n#\n# - v3.0.0-0.alpha.1 (1st alpha release)\n# - v3.0.0-0.alpha.1.1 (2nd build of 1st alpha release; ie, no code changes)\n# - v3.0.0-0.alpha.2 (2nd alpha release)\n# - v3.0.0-0.beta.1 (1st beta release)\n# - v3.0.0-0.rc.1 (1st rc release)\n# - v3.0.0 (3.0.0 official release)\n# - v3.0.0-2 (2nd build of 3.0.0 official release; ie, no code changes)\n# - v3.0.1 (3.0.1 official release)\n# - v3.1.0 (3.1.0 official release)\n#\n# If the tag does not conform to the above, then ci-support/ci-packager-next,\n# will generate snapshat versions. For easier maintenance, this regex is more\n# open than ci-support/ci-packager-next (which enforces a number of\n# constraints). See .circleci/packages/config.yaml for details.\nrelease_filter: &release_filter\n filters:\n tags:\n only: /^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+(\.(alpha|beta|rc)\.[0-9]+(\.[0-9]+)?)?)?$/\n branches:\n ignore: /.*/\n\nmain_filter: &main_filter\n filters:\n branches:\n only: main\n\nnofork_filter: &nofork_filter\n filters:\n branches:\n ignore: /pull\/[0-9]+/\n\ndocker_filter: &docker_filter\n filters:\n branches:\n only:\n - main\n - /.*docker.*/\n\n# You can conditionally persist debug binaries for the build-dev job (so they\n# show up in the 'Artifacts' tab of the job) by:\n# 1. Go to https://app.circleci.com/pipelines/github/influxdata/influxdb?branch=<branch-name> (<- change this!)\n# 2. Click "Trigger Pipeline" in the top-right\n# 3. Adjust the "persist_debug" boolean parameter to true\n# 4. Click "Run Pipeline"\nparameters:\n persist_debug:\n type: boolean\n default: false\n\n# Consistent environment setup for Python Build Standalone\npbs_config: &pbs_config\n PBS_DATE: "20250212"\n PBS_VERSION: "3.13.2"\n\n# Consistent Cargo environment configuration\ncargo_env: &cargo_env\n # Disable incremental compilation to avoid overhead. We are not preserving these files anyway.\n CARGO_INCREMENTAL: "0"\n # Disable full debug symbol generation to speed up CI build\n # "1" means line tables only, which is useful for panic tracebacks.\n CARGO_PROFILE_DEV_DEBUG: "1"\n # https://github.com/rust-lang/cargo/issues/10280\n CARGO_NET_GIT_FETCH_WITH_CLI: "true"\n # The `2xlarge` resource class that we use has 32GB RAM but also 16 CPUs. This means we have 2GB RAM per core on\n # average. At peak this is a bit tight, so lower the CPU count for cargo a bit.\n CARGO_BUILD_JOBS: "12"\n\ncommands:\n rust_components:\n description: Verify installed components\n steps:\n - run:\n name: Activate toolchain\n command: |\n rustup toolchain install\n rustup component add clippy\n rustup component add rustfmt\n\n - run:\n name: Verify installed components\n command: |\n rustup --version\n rustup show\n cargo fmt --version\n cargo clippy --version\n\n gcloud-docker-login:\n steps:\n - run:\n name: configure-gar\n command: |\n gcloud auth activate-service-account "${GCLOUD_SERVICE_ACCOUNT_EMAIL}" --key-file <(echo "${GCLOUD_SERVICE_ACCOUNT_KEY}")\n gcloud auth configure-docker us-docker.pkg.dev\n\n quay-docker-login:\n steps:\n - run:\n name: Login to Quay.io\n command: echo "${QUAY_INFLUXDB3_PASSWORD}" |docker login --username="${QUAY_INFLUXDB3_USERNAME}" --password-stdin quay.io\n\n setup_pyo3_env:\n description: Setup Python PYO3 environment for the specified target\n parameters:\n target:\n type: string\n steps:\n - run:\n name: Extract python for this target\n command: |\n tar -C /tmp/workspace/python-artifacts -zxvf /tmp/workspace/python-artifacts/all.tar.gz ./<< parameters.target >>\n - run:\n name: Show PYO3_CONFIG_FILE\n command: cat /tmp/workspace/python-artifacts/<< parameters.target >>/pyo3_config_file.txt\n - run:\n name: Install Target\n command: rustup target add << parameters.target >>\n - run:\n name: Set PYO3 environment variables\n command: |\n echo "export PYO3_CONFIG_FILE=/tmp/workspace/python-artifacts/<< parameters.target >>/pyo3_config_file.txt" >> $BASH_ENV\n echo "export PYO3_CROSS_PYTHON_VERSION=3.13" >> $BASH_ENV\n\njobs:\n fmt:\n docker:\n - image: quay.io/influxdb/rust:ci\n environment:\n <<: *cargo_env\n steps:\n - checkout\n - rust_components\n - run:\n name: Rust fmt\n command: cargo fmt --all -- --check\n\n lint:\n docker:\n - image: quay.io/influxdb/rust:ci\n environment:\n <<: *cargo_env\n steps:\n - checkout\n - rust_components\n - run:\n name: Clippy\n command: cargo clippy --all-targets --all-features --workspace -- -D warnings\n - run:\n name: Yamllint\n command: yamllint --config-file .circleci/yamllint.yml --strict .\n\n inclusivity:\n docker:\n - image: cimg/go:1.23\n steps:\n - checkout\n - run:\n name: Build and run inclusivity checker\n command: |\n go install github.com/jdstrand/language-checker@latest\n language-checker --exit-1-on-failure .\n\n cargo-audit:\n docker:\n - image: quay.io/influxdb/rust:ci\n environment:\n <<: *cargo_env\n steps:\n - checkout\n - rust_components\n - run:\n name: Install cargo-deny\n command: cargo install cargo-deny --locked\n - run:\n name: cargo-deny Checks\n command: cargo deny check -s\n\n doc:\n docker:\n - image: quay.io/influxdb/rust:ci\n resource_class: large # use of a smaller executor runs out of memory\n environment:\n <<: *cargo_env\n # Turn warnings into errors\n RUSTDOCFLAGS: "-D warnings -A rustdoc::private-intra-doc-links"\n steps:\n - checkout\n - rust_components\n - run:\n name: Cargo doc\n command: cargo doc --document-private-items --no-deps --workspace\n - run:\n name: Compress Docs\n command: tar -cvzf rustdoc.tar.gz target/doc/\n - store_artifacts:\n path: rustdoc.tar.gz\n\n # Run all tests\n test:\n docker:\n - image: quay.io/influxdb/rust:ci\n resource_class: 2xlarge+ # use of a smaller executor tends crashes on link\n environment:\n <<: *cargo_env\n RUST_BACKTRACE: "1"\n TARGET: "x86_64-unknown-linux-gnu" # Define target for PYO3 setup\n steps:\n - checkout\n - attach_workspace:\n at: /tmp/workspace\n - rust_components\n - setup_pyo3_env:\n target: "x86_64-unknown-linux-gnu"\n - run:\n name: Setup LD_LIBRARY_PATH for Python\n command: |\n # Add Python lib directory to LD_LIBRARY_PATH\n echo "export LD_LIBRARY_PATH=/tmp/workspace/python-artifacts/x86_64-unknown-linux-gnu/python/lib:$LD_LIBRARY_PATH" >> $BASH_ENV\n source $BASH_ENV\n # Verify the Python shared library is accessible\n ls -la /tmp/workspace/python-artifacts/x86_64-unknown-linux-gnu/python/lib/\n - run:\n name: cargo nextest\n command: |\n TEST_LOG= RUST_LOG=info RUST_LOG_SPAN_EVENTS=full RUST_BACKTRACE=1 cargo nextest run --workspace --failure-output immediate-final --no-fail-fast\n\n # Fetch python-build-standalone for official builds\n fetch-python:\n machine:\n image: ubuntu-2204:current\n resource_class: medium\n environment:\n <<: *pbs_config\n steps:\n - checkout\n - run:\n name: pull Python Build Standalone\n command: |\n echo "PBS_DATE=$PBS_DATE"\n .circleci/scripts/fetch-python-standalone.bash \\n "python-artifacts" \\n "$PBS_DATE" \\n "$PBS_VERSION"\n - store_artifacts:\n path: python-artifacts\n - persist_to_workspace:\n root: .\n paths:\n - python-artifacts\n\n # Build a dev binary with the default cargo profile\n build-dev:\n docker:\n - image: us-east1-docker.pkg.dev/influxdata-team-edge/ci-support/ci-cross-influxdb3@sha256:98b05538182a2e4eac5ce96150a1f5c552de48a7d3ea8d312d38e45f0dd42611\n auth:\n username: _json_key\n password: $CISUPPORT_GCS_AUTHORIZATION\n resource_class: 2xlarge+ # use of a smaller executor tends crashes on link\n environment:\n <<: *cargo_env\n TARGET: << parameters.target >>\n parameters:\n target:\n type: string\n steps:\n - checkout\n - attach_workspace:\n at: /tmp/workspace\n - setup_pyo3_env:\n target: << parameters.target >>\n - run:\n name: Cargo build\n command: |\n target-env cargo build --target=<< parameters.target >> --workspace\n - run:\n # this runs diff twice, once to report the changes so that it's easier to see the changed file in circleci\n # if it is dirty build should fail with exit 1\n name: check build is dirty\n command: |\n git diff --exit-code\n git diff --exit-code --quiet || exit 1\n - when:\n # this defaults to false, but can set it by triggering a pipeline (see above)\n condition: << pipeline.parameters.persist_debug >>\n steps:\n - run:\n name: tar and gzip debug build artifacts\n command: |\n mkdir -p artifacts\n tar --ignore-failed-read -cvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "${PWD}/target/<< parameters.target >>/debug" influxdb3{,.exe}\n tar --ignore-failed-read -rvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "/tmp/workspace/python-artifacts/<< parameters.target >>" python\n gzip "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar"\n - store_artifacts:\n path: artifacts\n - persist_to_workspace:\n root: .\n paths:\n - artifacts\n - when:\n condition:\n not:\n equal: [ << parameters.target >>, x86_64-pc-windows-gnu ]\n steps:\n - run:\n name: Check benches compile\n command: |\n target-env cargo check --target=<< parameters.target >> --workspace --benches\n - run:\n name: Check extra features (like prod image)\n command: |\n target-env cargo check --target=<< parameters.target >> --no-default-features --features="aws,gcp,azure,jemalloc_replacing_malloc,tokio_console"\n - when:\n condition:\n equal: [ << parameters.target >>, x86_64-pc-windows-gnu ]\n steps:\n - run:\n name: Check extra features (like prod image)\n command: |\n target-env cargo check --target=<< parameters.target >> --no-default-features --features="aws,gcp,azure,jemalloc_replacing_malloc,tokio_console"\n\n # Compile cargo "release" profile binaries for influxdb3 edge releases\n build-release:\n docker:\n - image: us-east1-docker.pkg.dev/influxdata-team-edge/ci-support/ci-cross-influxdb3@sha256:98b05538182a2e4eac5ce96150a1f5c552de48a7d3ea8d312d38e45f0dd42611\n auth:\n username: _json_key\n password: $CISUPPORT_GCS_AUTHORIZATION\n resource_class: 2xlarge+\n environment:\n <<: *cargo_env\n TARGET: << parameters.target >>\n parameters:\n target:\n type: string\n profile:\n type: string\n default: release\n steps:\n - checkout\n - attach_workspace:\n at: /tmp/workspace\n - setup_pyo3_env:\n target: << parameters.target >>\n - run:\n name: Cargo release build\n command: |\n target-env cargo build --target=<< parameters.target >> --profile=<< parameters.profile >> --workspace\n # linking might take a while and doesn't produce CLI output\n no_output_timeout: 30m\n - when:\n condition:\n or:\n - equal: [ << parameters.target >>, aarch64-unknown-linux-gnu ]\n - equal: [ << parameters.target >>, x86_64-unknown-linux-gnu ]\n steps:\n - run:\n # XXX: better to use 'cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN/python/lib'\n name: adjust RPATH for linux\n command: |\n # tarballs need $ORIGIN/python/lib, deb/rpm need $ORIGIN/../lib/influxdb3/python/lib\n echo "Running: patchelf --set-rpath '$ORIGIN/python/lib:$ORIGIN/../lib/influxdb3/python/lib' '${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3'"\n patchelf --set-rpath '$ORIGIN/python/lib:$ORIGIN/../lib/influxdb3/python/lib' "${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3"\n - when:\n condition:\n equal: [ << parameters.target >>, aarch64-apple-darwin ]\n steps:\n - run:\n # XXX: better to use 'cargo:rustc-link-arg=-Wl,-rpath,@executable_path/python/lib'\n name: adjust LC_LOAD_DYLIB path for darwin\n command: |\n export PBS_LIBPYTHON=$(grep '^lib_name=' /tmp/workspace/python-artifacts/<< parameters.target >>/pyo3_config_file.txt | cut -d = -f 2)\n echo "Running: /osxcross/bin/aarch64-apple-darwin22.2-install_name_tool -change '/install/lib/lib${PBS_LIBPYTHON}.dylib' '@executable_path/python/lib/lib${PBS_LIBPYTHON}.dylib' '${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3'"\n /osxcross/bin/aarch64-apple-darwin22.2-install_name_tool -change "/install/lib/lib${PBS_LIBPYTHON}.dylib" "@executable_path/python/lib/lib${PBS_LIBPYTHON}.dylib" "${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3"\n # re-sign after install_name_tool since osxcross won't do it\n echo "Running: /usr/local/bin/rcodesign sign '${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3'"\n /usr/local/bin/rcodesign sign "${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3"\n - run:\n # this runs diff twice, once to report the changes so that it's easier to see the changed file in circleci\n # if it is dirty build should fail with exit 1\n name: check build is dirty\n command: |\n git diff --exit-code\n git diff --exit-code --quiet || exit 1\n - run:\n name: tar build artifacts\n command: |\n mkdir -p artifacts\n tar --ignore-failed-read -cvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "${PWD}/target/<< parameters.target >>/<< parameters.profile >>" influxdb3{,.exe}\n tar --ignore-failed-read -rvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "/tmp/workspace/python-artifacts/<< parameters.target >>" python\n - when:\n condition:\n equal: [ << parameters.target >>, x86_64-pc-windows-gnu ]\n steps:\n - run:\n # Windows doesn't have a concept of RPATH; instead either PATH\n # needs to be set ahead of time (by the user; in a .bat script)\n # or the required DLLs need to be in the same directory as the\n # executable. For now, copy the *.dll files from the\n # python directory up next to the executable (we copy so that\n # the python executable in the python directory can still find\n # them). influxdb#26113\n name: tar Windows DLLs next to influxdb3.exe\n command: |\n tar --ignore-failed-read -rvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "/tmp/workspace/python-artifacts/<< parameters.target >>/python" $(find "/tmp/workspace/python-artifacts/<< parameters.target >>/python" -maxdepth 1 -name *.dll -printf '%f\n')\n - run:\n name: gzip build artifacts\n command: |\n gzip "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar"\n - store_artifacts:\n path: artifacts\n - persist_to_workspace:\n root: .\n paths:\n - artifacts\n\n build-packages:\n docker:\n - image: us-east1-docker.pkg.dev/influxdata-team-edge/ci-support/ci-packager-next@sha256:8223348466129205be30413c597e573114949be4190e66e45eb3e2ff8af4cc25\n auth:\n username: _json_key\n password: $CISUPPORT_GCS_AUTHORIZATION\n steps:\n - checkout\n - attach_workspace:\n at: /tmp/workspace\n - run: packager .circleci/packages/config.yaml\n - persist_to_workspace:\n root: .\n paths:\n - artifacts\n - store_artifacts:\n path: artifacts/\n\n check_package_deb_amd64:\n machine:\n image: ubuntu-2204:current\n resource_class: medium\n steps:\n - attach_workspace:\n at: /tmp/workspace\n - checkout\n - run:\n name: Validate Debian Package (AMD64)\n command: |\n sudo .circleci/scripts/package-validation/debian \\n /tmp/workspace/artifacts/influxdb3*amd64.deb\n\n check_package_deb_arm64:\n machine:\n image: ubuntu-2204:current\n resource_class: arm.medium\n steps:\n - attach_workspace:\n at: /tmp/workspace\n - checkout\n - run:\n name: Validate Debian Package (ARM64)\n command: |\n sudo .circleci/scripts/package-validation/debian \\n /tmp/workspace/artifacts/influxdb3*arm64.deb\n\n check_package_rpm:\n machine:\n image: ubuntu-2204:current\n resource_class: arm.medium\n parameters:\n arch:\n type: string\n steps:\n - attach_workspace:\n at: /tmp/workspace\n - add_ssh_keys:\n fingerprints:\n - 3a:d1:7a:b7:57:d7:85:0b:76:79:85:51:38:f3:e4:67\n - checkout\n - run: |\n AWS_ACCESS_KEY_ID=$TEST_AWS_ACCESS_KEY_ID \\n AWS_SECRET_ACCESS_KEY=$TEST_AWS_SECRET_ACCESS_KEY \\n .circleci/scripts/package-validation/redhat << parameters.arch >> /tmp/workspace/artifacts/influxdb3*.<< parameters.arch >>.rpm\n\n sign-packages:\n circleci_ip_ranges: true\n docker:\n - image: quay.io/influxdb/rsign:latest\n auth:\n username: $QUAY_RSIGN_USERNAME\n password: $QUAY_RSIGN_PASSWORD\n steps:\n - add_ssh_keys:\n fingerprints:\n - fc:7b:6e:a6:38:7c:63:5a:13:be:cb:bb:fa:33:b3:3c\n - attach_workspace:\n at: /tmp/workspace\n - run: |\n # We need this base so that we can filter it out of our checksums\n # output and if that changes at all we only need to update it here\n WORK_DIR="/tmp/workspace/artifacts/"\n for target in ${WORK_DIR}*\n do\n case "${target}"\n in\n # rsign is shipped on Alpine Linux which uses "busybox ash" instead\n # of bash. ash is somewhat more posix compliant and is missing some\n # extensions and niceties from bash.\n *.deb|*.rpm|*.tar.gz|*.zip)\n rsign "${target}"\n ;;\n esac\n\n if [ -f "${target}" ]\n then\n # Since all artifacts are present, sign them here. This saves Circle\n # credits over spinning up another instance just to separate out the\n # checksum job.\n sha256sum "${target}" | sed "s#$WORK_DIR##" >> "/tmp/workspace/artifacts/influxdb3-core.${CIRCLE_TAG}.digests"\n\n # write individual checksums\n md5sum "${target}" | sed "s#$WORK_DIR##" >> "${target}.md5"\n sha256sum "${target}" | sed "s#$WORK_DIR##" >> "${target}.sha256"\n fi\n done\n - persist_to_workspace:\n root: /tmp/workspace\n paths:\n - artifacts\n - store_artifacts:\n path: /tmp/workspace/artifacts\n\n publish-packages:\n docker:\n - image: cimg/python:3.12.2\n parameters:\n # "destination" should be one of:\n # - releases\n # - nightlies\n # - snapshots\n destination:\n type: string\n steps:\n - attach_workspace:\n at: /tmp/workspace\n - aws-s3/sync:\n arguments: --acl public-read\n aws-region: RELEASE_AWS_REGION\n aws-access-key-id: RELEASE_AWS_ACCESS_KEY_ID\n aws-secret-access-key: RELEASE_AWS_SECRET_ACCESS_KEY\n from: /tmp/workspace/artifacts\n to: s3://dl.influxdata.com/influxdb/<< parameters.destination >>\n - run:\n command: |\n export AWS_REGION="${RELEASE_AWS_REGION}"\n export AWS_ACCESS_KEY_ID="${RELEASE_AWS_ACCESS_KEY_ID}"\n export AWS_SECRET_ACCESS_KEY="${RELEASE_AWS_SECRET_ACCESS_KEY}"\n aws cloudfront create-invalidation --distribution-id "${RELEASE_ARTIFACTS_CLOUDFRONT}" --paths '/influxdb/<< parameters.destination >>/*'\n\n build-docker:\n parameters:\n platform:\n type: string\n resource_class:\n type: string\n image_name:\n type: string\n default: influxdb3-core\n environment:\n <<: *pbs_config\n machine:\n image: default\n resource_class: << parameters.resource_class >>\n steps:\n - checkout\n - run:\n name: "Set Cargo profile based on branch"\n command: |\n if [ "$CIRCLE_BRANCH" = "main" ]; then\n echo "export DOCKER_PROFILE=release" >> "$BASH_ENV"\n else\n echo "export DOCKER_PROFILE=quick-release" >> "$BASH_ENV"\n fi\n - run:\n name: Build the docker image\n command: |\n .circleci/scripts/docker_build_release.bash \\n "influxdb3" \\n "aws,gcp,azure,jemalloc_replacing_malloc,tokio_console" \\n "<< parameters.image_name >>:latest-<< parameters.platform >>" \\n "$PBS_DATE" \\n "$PBS_VERSION" \\n "<< parameters.platform >>" \\n "$DOCKER_PROFILE"\n # linking might take a while and doesn't produce CLI output\n no_output_timeout: 60m\n - run: |\n docker save << parameters.image_name >>:latest-<< parameters.platform >> > << parameters.image_name >>-<< parameters.platform >>.tar\n - persist_to_workspace:\n root: .\n paths:\n - << parameters.image_name >>-<< parameters.platform >>.tar\n\n publish-docker:\n docker:\n - image: cimg/gcp:2023.02\n parameters:\n image_name:\n type: string\n default: influxdb3-core\n resource_class: medium\n steps:\n - checkout\n - setup_remote_docker\n - quay-docker-login\n - attach_workspace:\n at: .\n - run: |\n docker load < << parameters.image_name >>-arm64.tar\n docker load < << parameters.image_name >>-amd64.tar\n .circleci/scripts/publish.bash << parameters.image_name >> ${CIRCLE_SHA1}\n\n wait-for-docker:\n resource_class: small\n docker:\n - image: busybox\n steps:\n - run: |\n echo build executed successfully\n\nworkflows:\n version: 2\n snapshot:\n jobs:\n - fetch-python:\n <<: *main_filter\n - build-release:\n <<: *main_filter\n name: build-snapshot-<< matrix.target >>\n matrix:\n parameters:\n profile:\n - release\n target:\n - aarch64-apple-darwin\n - aarch64-unknown-linux-gnu\n - x86_64-pc-windows-gnu\n - x86_64-unknown-linux-gnu\n requires:\n - fetch-python\n - build-packages:\n <<: *main_filter\n requires:\n - build-release\n - sign-packages:\n <<: *main_filter\n requires:\n - build-packages\n - publish-packages:\n <<: *main_filter\n matrix:\n parameters:\n destination: [ snapshots ]\n requires:\n - build-release\n - sign-packages\n ci:\n jobs:\n - fmt:\n <<: *any_filter\n - lint:\n <<: *any_filter\n - inclusivity:\n <<: *any_filter\n - cargo-audit:\n <<: *any_filter\n - fetch-python:\n <<: *any_filter\n - test:\n <<: *any_filter\n requires:\n - fetch-python\n - build-dev:\n # This workflow requires secrets stored in the environment.\n # These are not passed to workflows executed on forked\n # repositories. In this case, skip the workflow, as it\n # will be executed on merge to main anyways.\n <<: *nofork_filter\n name: build-dev-<< matrix.target >>\n matrix:\n parameters:\n target:\n - aarch64-apple-darwin\n - aarch64-unknown-linux-gnu\n - x86_64-pc-windows-gnu\n - x86_64-unknown-linux-gnu\n requires:\n - fetch-python\n - doc:\n <<: *any_filter\n - build-release:\n <<: *release_filter\n name: build-release-<< matrix.target >>\n matrix:\n parameters:\n target:\n - aarch64-apple-darwin\n - aarch64-unknown-linux-gnu\n - x86_64-pc-windows-gnu\n - x86_64-unknown-linux-gnu\n requires:\n - fetch-python\n - build-packages:\n <<: *release_filter\n requires:\n - build-release\n - check_package_deb_arm64:\n <<: *release_filter\n requires:\n - build-packages\n - check_package_deb_amd64:\n <<: *release_filter\n requires:\n - build-packages\n - check_package_rpm:\n <<: *nofork_filter\n name:\n check_package_rpm-<< matrix.arch >>\n matrix:\n parameters:\n arch: [ x86_64, aarch64 ]\n requires:\n - build-packages\n - sign-packages:\n <<: *release_filter\n requires:\n - build-packages\n - check_package_rpm\n - check_package_deb_arm64\n - check_package_deb_amd64\n - test\n - publish-packages:\n <<: *release_filter\n matrix:\n parameters:\n destination: [ releases ]\n requires:\n - build-release\n - sign-packages\n - test\n - doc\n - lint\n - fmt\n - cargo-audit\n - build-docker:\n <<: *docker_filter\n name: build-docker-amd64\n platform: amd64\n resource_class: 2xlarge+\n - build-docker:\n <<: *docker_filter\n name: build-docker-arm64\n platform: arm64\n resource_class: arm.2xlarge\n - publish-docker:\n <<: *docker_filter\n requires:\n - build-docker-amd64\n - build-docker-arm64\n | dataset_sample\yaml\influxdata_influxdb\.circleci\config.yml | config.yml | YAML | 29,016 | 0.95 | 0.031785 | 0.140485 | python-kit | 890 | 2023-10-30T18:11:32.641851 | MIT | false | 514d6ae978598c75e81ac7352bafc6c2 |
# Configuration for https://probot.github.io/apps/stale/\n#\n# Number of days of inactivity before an issue becomes stale\ndaysUntilStale: 90\n# Number of days of inactivity before a stale issue is closed\ndaysUntilClose: 7\n# Issues with these labels will never be considered stale\nexemptLabels:\n - security\n - stale-exempt\n# Label to use when marking an issue as stale\nstaleLabel: wontfix\n# Comment to post when marking an issue as stale. Set to `false` to disable\nmarkComment: >\n This issue has been automatically marked as stale because it has not had\n recent activity. It will be closed if no further activity occurs. Thank you\n for your contributions.\n# Comment to post when closing a stale issue. Set to `false` to disable\ncloseComment: >\n This issue has been automatically closed because it has not had\n recent activity. Please reopen if this issue is still\n important to you. Thank you for your contributions.\n | dataset_sample\yaml\influxdata_influxdb\.github\stale.yml | stale.yml | YAML | 921 | 0.95 | 0.227273 | 0.363636 | node-utils | 496 | 2024-04-07T07:41:42.910362 | GPL-3.0 | false | 536bd87cb584a91c651eeac7bdc2f4ae |
---\nname: "Semantic PR and Commit Messages"\n\non:\n pull_request:\n types: [opened, reopened, synchronize, edited]\n\njobs:\n semantic:\n uses: influxdata/validate-semantic-github-messages/.github/workflows/semantic.yml@main\n | dataset_sample\yaml\influxdata_influxdb\.github\workflows\semantic.yml | semantic.yml | YAML | 226 | 0.7 | 0 | 0 | node-utils | 450 | 2024-02-19T14:21:02.797713 | GPL-3.0 | false | 1b79982da6843083a40da48d1bf5b02d |
version: "2"\n\nlinters:\n # Default set of linters.\n # The value can be: `standard`, `all`, `none`, or `fast`.\n # Default: standard\n default: none\n\n # Enable specific linter.\n # https://golangci-lint.run/usage/linters/#enabled-by-default\n enable:\n - asasalint\n - asciicheck\n - bidichk\n - bodyclose\n - copyloopvar\n - depguard\n - dogsled\n - errcheck\n - errname\n - errorlint\n - gocheckcompilerdirectives\n - gocritic\n - goprintffuncname\n - gosec\n - govet\n - ineffassign\n - interfacebloat\n - lll\n - makezero\n - mirror\n - nakedret\n - nilerr\n - nolintlint\n - perfsprint\n - prealloc\n - predeclared\n - revive\n - sqlclosecheck\n - staticcheck\n - testifylint\n - tparallel\n - unconvert\n - unparam\n - unused\n - usetesting\n\n settings:\n depguard:\n # Rules to apply.\n #\n # Variables:\n # - File Variables\n # Use an exclamation mark `!` to negate a variable.\n # Example: `!$test` matches any file that is not a go test file.\n #\n # `$all` - matches all go files\n # `$test` - matches all go test files\n #\n # - Package Variables\n #\n # `$gostd` - matches all of go's standard library (Pulled from `GOROOT`)\n #\n # Default (applies if no custom rules are defined): Only allow $gostd in all files.\n rules:\n # Name of a rule.\n main:\n # List of file globs that will match this list of settings to compare against.\n # By default, if a path is relative, it is relative to the directory where the golangci-lint command is executed.\n # The placeholder '${base-path}' is substituted with a path relative to the mode defined with `run.relative-path-mode`.\n # The placeholder '${config-path}' is substituted with a path relative to the configuration file.\n # Default: $all\n files:\n - '!**/agent/**'\n - '!**/cmd/**'\n - '!**/config/**'\n - '!**/filter/**'\n - '!**/internal/**'\n - '!**/logger/**'\n - '!**/metric/**'\n - '!**/models/**'\n - '!**/plugins/serializers/**'\n - '!**/scripts/**'\n - '!**/selfstat/**'\n - '!**/testutil/**'\n - '!**/tools/**'\n - '!**/*_test.go'\n # List of packages that are not allowed.\n # Entries can be a variable (starting with $), a string prefix, or an exact match (if ending with $).\n # Default: []\n deny:\n - pkg: log\n desc: 'Use injected telegraf.Logger instead'\n\n errcheck:\n # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`.\n # Such cases aren't reported by default.\n # Default: false\n check-blank: true\n\n # List of functions to exclude from checking, where each entry is a single function to exclude.\n # See https://github.com/kisielk/errcheck#excluding-functions for details.\n exclude-functions:\n - '(*hash/maphash.Hash).Write'\n - '(*hash/maphash.Hash).WriteByte'\n - '(*hash/maphash.Hash).WriteString'\n - '(*github.com/influxdata/telegraf/plugins/outputs/postgresql/sqltemplate.Template).UnmarshalText'\n\n gocritic:\n # Disable all checks.\n # Default: false\n disable-all: true\n # Which checks should be enabled in addition to default checks; can't be combined with 'disabled-checks'.\n # By default, list of stable checks is used (https://go-critic.com/overview#checks-overview).\n # To see which checks are enabled run `GL_DEBUG=gocritic golangci-lint run --enable=gocritic`.\n enabled-checks:\n # diagnostic\n - argOrder\n - badCall\n - badCond\n - badLock\n - badRegexp\n - badSorting\n - badSyncOnceFunc\n - builtinShadowDecl\n - caseOrder\n - codegenComment\n - commentedOutCode\n - deferInLoop\n - deprecatedComment\n - dupArg\n - dupBranchBody\n - dupCase\n - dupSubExpr\n - dynamicFmtString\n - emptyDecl\n - evalOrder\n - exitAfterDefer\n - externalErrorReassign\n - filepathJoin\n - flagName\n - mapKey\n - nilValReturn\n - offBy1\n - regexpPattern\n - sloppyLen\n - sloppyReassign\n - sloppyTypeAssert\n - sortSlice\n - sprintfQuotedString\n - sqlQuery\n - syncMapLoadAndDelete\n - truncateCmp\n - uncheckedInlineErr\n - unnecessaryDefer\n - weakCond\n # performance\n - appendCombine\n - equalFold\n - hugeParam\n - indexAlloc\n - preferDecodeRune\n - preferFprint\n - preferStringWriter\n - preferWriteByte\n - rangeExprCopy\n - rangeValCopy\n - sliceClear\n - stringXbytes\n\n # Settings passed to gocritic.\n # The settings key is the name of a supported gocritic checker.\n # The list of supported checkers can be found at https://go-critic.com/overview.\n settings:\n hugeParam:\n # Size in bytes that makes the warning trigger.\n # Default: 80\n sizeThreshold: 512\n rangeValCopy:\n # Size in bytes that makes the warning trigger.\n # Default: 128\n sizeThreshold: 512\n\n gosec:\n # To select a subset of rules to run.\n # Available rules: https://github.com/securego/gosec#available-rules\n # Default: [] - means include all rules\n includes:\n - G101 # Look for hard coded credentials\n - G102 # Bind to all interfaces\n - G103 # Audit the use of unsafe block\n - G106 # Audit the use of ssh.InsecureIgnoreHostKey\n - G107 # Url provided to HTTP request as taint input\n - G108 # Profiling endpoint automatically exposed on /debug/pprof\n - G109 # Potential Integer overflow made by strconv.Atoi result conversion to int16/32\n - G110 # Potential DoS vulnerability via decompression bomb\n - G111 # Potential directory traversal\n - G112 # Potential slowloris attack\n - G114 # Use of net/http serve function that has no support for setting timeouts\n - G201 # SQL query construction using format string\n - G202 # SQL query construction using string concatenation\n - G203 # Use of unescaped data in HTML templates\n - G301 # Poor file permissions used when creating a directory\n - G302 # Poor file permissions used with chmod\n - G303 # Creating tempfile using a predictable path\n - G305 # File traversal when extracting zip/tar archive\n - G306 # Poor file permissions used when writing to a new file\n - G401 # Detect the usage of MD5 or SHA1\n - G403 # Ensure minimum RSA key length of 2048 bits\n - G404 # Insecure random number source (rand)\n - G405 # Detect the usage of DES or RC4\n - G406 # Detect the usage of MD4 or RIPEMD160\n - G501 # Import blocklist: crypto/md5\n - G502 # Import blocklist: crypto/des\n - G503 # Import blocklist: crypto/rc4\n - G505 # Import blocklist: crypto/sha1\n - G506 # Import blocklist: golang.org/x/crypto/md4\n - G507 # Import blocklist: golang.org/x/crypto/ripemd160\n - G601 # Implicit memory aliasing of items from a range statement\n - G602 # Slice access out of bounds\n # G104, G105, G113, G204, G304, G307, G402, G504 were not enabled intentionally\n # TODO: review G115 when reporting false positives is fixed (https://github.com/securego/gosec/issues/1212)\n\n # To specify the configuration of rules.\n config:\n # Maximum allowed permissions mode for os.OpenFile and os.Chmod\n # Default: "0600"\n G302: "0640"\n # Maximum allowed permissions mode for os.WriteFile and ioutil.WriteFile\n # Default: "0600"\n G306: "0640"\n\n govet:\n # Settings per analyzer.\n settings:\n # Analyzer name, run `go tool vet help` to see all analyzers.\n printf:\n # Comma-separated list of print function names to check (in addition to default, see `go tool vet help printf`).\n # Default: []\n funcs:\n - (github.com/influxdata/telegraf.Logger).Tracef\n - (github.com/influxdata/telegraf.Logger).Debugf\n - (github.com/influxdata/telegraf.Logger).Infof\n - (github.com/influxdata/telegraf.Logger).Warnf\n - (github.com/influxdata/telegraf.Logger).Errorf\n - (github.com/influxdata/telegraf.Logger).Trace\n - (github.com/influxdata/telegraf.Logger).Debug\n - (github.com/influxdata/telegraf.Logger).Info\n - (github.com/influxdata/telegraf.Logger).Warn\n - (github.com/influxdata/telegraf.Logger).Error\n\n lll:\n # Max line length, lines longer will be reported.\n # '\t' is counted as 1 character by default, and can be changed with the tab-width option.\n # Default: 120.\n line-length: 160\n # Tab width in spaces.\n # Default: 1\n tab-width: 4\n\n nakedret:\n # Make an issue if func has more lines of code than this setting, and it has naked returns.\n # Default: 30\n max-func-lines: 1\n\n nolintlint:\n # Enable to require an explanation of nonzero length after each nolint directive.\n # Default: false\n require-explanation: true\n # Enable to require nolint directives to mention the specific linter being suppressed.\n # Default: false\n require-specific: true\n\n prealloc:\n # Report pre-allocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.\n # Default: true\n simple: false\n\n revive:\n # Sets the default severity.\n # See https://github.com/mgechev/revive#configuration\n # Default: warning\n severity: error\n\n # Run `GL_DEBUG=revive golangci-lint run --enable-only=revive` to see default, all available rules, and enabled rules.\n rules:\n - name: argument-limit\n arguments: [ 6 ]\n - name: atomic\n - name: bare-return\n - name: blank-imports\n - name: bool-literal-in-expr\n - name: call-to-gc\n - name: comment-spacings\n - name: confusing-naming\n - name: confusing-results\n - name: constant-logical-expr\n - name: context-as-argument\n - name: context-keys-type\n - name: datarace\n - name: deep-exit\n - name: defer\n - name: dot-imports\n - name: duplicated-imports\n - name: early-return\n - name: empty-block\n - name: empty-lines\n - name: enforce-map-style\n exclude: [ "TEST" ]\n arguments:\n - "make"\n - name: enforce-repeated-arg-type-style\n arguments:\n - "short"\n - name: enforce-slice-style\n arguments:\n - "make"\n - name: error-naming\n - name: error-return\n - name: error-strings\n - name: errorf\n - name: function-result-limit\n arguments: [ 3 ]\n - name: get-return\n - name: identical-branches\n - name: if-return\n - name: import-alias-naming\n arguments:\n - "^[a-z][a-z0-9_]*[a-z0-9]+$"\n - name: import-shadowing\n - name: increment-decrement\n - name: indent-error-flow\n - name: max-public-structs\n arguments: [ 5 ]\n exclude: [ "TEST" ]\n - name: modifies-parameter\n - name: modifies-value-receiver\n - name: optimize-operands-order\n - name: package-comments\n - name: range\n - name: range-val-address\n - name: range-val-in-closure\n - name: receiver-naming\n - name: redefines-builtin-id\n - name: redundant-import-alias\n - name: string-format\n arguments:\n - - 'fmt.Errorf[0],errors.New[0]'\n - '/^([^A-Z]|$)/'\n - 'Error string must not start with a capital letter.'\n - - 'fmt.Errorf[0],errors.New[0]'\n - '/(^|[^\.!?])$/'\n - 'Error string must not end in punctuation.'\n - - 'panic'\n - '/^[^\n]*$/'\n - 'Must not contain line breaks.'\n - name: string-of-int\n - name: struct-tag\n - name: superfluous-else\n - name: time-equal\n - name: time-naming\n - name: unconditional-recursion\n - name: unexported-naming\n - name: unnecessary-stmt\n - name: unreachable-code\n - name: unused-parameter\n - name: unused-receiver\n - name: var-declaration\n - name: var-naming\n - name: waitgroup-by-value\n\n staticcheck:\n # SAxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks\n # Example (to disable some checks): [ "all", "-SA1000", "-SA1001"]\n # Default: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022"]\n checks:\n - all\n # Poorly chosen identifier.\n # https://staticcheck.dev/docs/checks/#ST1003\n - -ST1003\n # Incorrectly formatted error string.\n # https://staticcheck.dev/docs/checks/#ST1005\n - -ST1005\n # Should use constants for HTTP error codes, not magic numbers.\n # https://staticcheck.dev/docs/checks/#ST1013\n - -ST1013\n # Use consistent method receiver names.\n # https://staticcheck.dev/docs/checks/#ST1016\n - -ST1016\n # Don't use Yoda conditions.\n # https://staticcheck.dev/docs/checks/#ST1017\n - -ST1017\n # The documentation of an exported function should start with the function's name.\n # https://staticcheck.dev/docs/checks/#ST1020\n - -ST1020\n # The documentation of an exported type should start with type's name.\n # https://staticcheck.dev/docs/checks/#ST1021\n - -ST1021\n # The documentation of an exported variable or constant should start with variable's name.\n # https://staticcheck.dev/docs/checks/#ST1022\n - -ST1022\n # Apply De Morgan's law.\n # https://staticcheck.dev/docs/checks/#QF1001\n - -QF1001\n # Convert untagged switch to tagged switch.\n # https://staticcheck.dev/docs/checks/#QF1002\n - -QF1002\n # Convert if/else-if chain to tagged switch.\n # https://staticcheck.dev/docs/checks/#QF1003\n - -QF1003\n # Use 'strings.ReplaceAll' instead of 'strings.Replace' with 'n == -1'.\n # https://staticcheck.dev/docs/checks/#QF1004\n - -QF1004\n # Lift 'if'+'break' into loop condition.\n # https://staticcheck.dev/docs/checks/#QF1006\n - -QF1006\n # Merge conditional assignment into variable declaration.\n # https://staticcheck.dev/docs/checks/#QF1007\n - -QF1007\n # Omit embedded fields from selector expression.\n # https://staticcheck.dev/docs/checks/#QF1008\n - -QF1008\n # Use 'time.Time.Equal' instead of '==' operator.\n # https://staticcheck.dev/docs/checks/#QF1009\n - -QF1009\n\n testifylint:\n # Disable all checkers (https://github.com/Antonboom/testifylint#checkers).\n # Default: false\n disable-all: true\n # Enable checkers by name\n enable:\n - blank-import\n - bool-compare\n - compares\n - contains\n - empty\n - encoded-compare\n - error-is-as\n - error-nil\n - expected-actual\n - float-compare\n - formatter\n - go-require\n - len\n - negative-positive\n - nil-compare\n - regexp\n - require-error\n - suite-broken-parallel\n - suite-dont-use-pkg\n - suite-extra-assert-call\n - suite-subtest-run\n - suite-thelper\n - useless-assert\n\n usetesting:\n # Enable/disable `os.TempDir()` detections.\n # Default: false\n os-temp-dir: true\n\n # Defines a set of rules to ignore issues.\n # It does not skip the analysis, and so does not ignore "typecheck" errors.\n exclusions:\n # Mode of the generated files analysis.\n #\n # - `strict`: sources are excluded by strictly following the Go generated file convention.\n # Source files that have lines matching only the following regular expression will be excluded: `^// Code generated .* DO NOT EDIT\.$`\n # This line must appear before the first non-comment, non-blank text in the file.\n # https://go.dev/s/generatedcode\n # - `lax`: sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`, etc.\n # - `disable`: disable the generated files exclusion.\n #\n # Default: strict\n generated: lax\n\n # Excluding configuration per-path, per-linter, per-text and per-source.\n rules:\n # errcheck\n - path: cmd/telegraf/(main|printer|cmd_plugins).go\n text: "Error return value of `outputBuffer.Write` is not checked"\n\n - path: plugins/inputs/win_perf_counters/pdh.go\n linters:\n - errcheck\n\n # gosec:G101\n - path: _test\.go\n text: "Potential hardcoded credentials"\n\n # gosec:G404\n - path: _test\.go\n text: "Use of weak random number generator"\n\n # revive:max-public-structs\n - path-except: ^plugins/(aggregators|inputs|outputs|parsers|processors|serializers)/...\n text: "max-public-structs: you have exceeded the maximum number"\n\n # revive:var-naming\n - path: (.+)\.go$\n text: don't use an underscore in package name\n\n # EXC0001 errcheck: Almost all programs ignore errors on these functions, and in most cases it's ok\n - path: (.+)\.go$\n text: Error return value of .((os\.)?std(out|err)\..*|.*Close.*|.*close.*|.*Flush|.*Disconnect|.*disconnect|.*Clear|os\.Remove(All)?|.*print(f|ln)?|os\.Setenv|os\.Unsetenv). is not checked\n\n # EXC0013 revive: Annoying issue about not having a comment. The rare codebase has such comments\n - path: (.+)\.go$\n text: package comment should be of the form "(.+)...\n\n # EXC0015 revive: Annoying issue about not having a comment. The rare codebase has such comments\n - path: (.+)\.go$\n text: should have a package comment\n\n # Which file paths to exclude: they will be analyzed, but issues from them won't be reported.\n # "/" will be replaced by the current OS file path separator to properly work on Windows.\n # Default: []\n paths:\n - plugins/parsers/influx/machine.go*\n\nformatters:\n # Enable specific formatter.\n # Default: [] (uses standard Go formatting)\n enable:\n - gci\n\n # Formatters settings.\n settings:\n gci:\n # Section configuration to compare against.\n # Section names are case-insensitive and may contain parameters in ().\n # The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`.\n # If `custom-order` is `true`, it follows the order of `sections` option.\n # Default: ["standard", "default"]\n sections:\n - standard # Standard section: captures all standard packages.\n - default # Default section: contains all imports that could not be matched to another section type.\n - localmodule # Local module section: contains all local packages. This section is not present unless explicitly enabled.\n\n exclusions:\n # Mode of the generated files analysis.\n #\n # - `strict`: sources are excluded by strictly following the Go generated file convention.\n # Source files that have lines matching only the following regular expression will be excluded: `^// Code generated .* DO NOT EDIT\.$`\n # This line must appear before the first non-comment, non-blank text in the file.\n # https://go.dev/s/generatedcode\n # - `lax`: sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`, etc.\n # - `disable`: disable the generated files exclusion.\n #\n # Default: lax\n generated: lax\n\nissues:\n # Maximum issues count per one linter.\n # Set to 0 to disable.\n # Default: 50\n max-issues-per-linter: 0\n\n # Maximum count of issues with the same text.\n # Set to 0 to disable.\n # Default: 3\n max-same-issues: 0\n\n # Make issues output unique by line.\n # Default: true\n uniq-by-line: false\n\n# Output configuration options.\noutput:\n # The formats used to render issues.\n formats:\n # Prints issues in columns representation separated by tabulations.\n tab:\n # Output path can be either `stdout`, `stderr` or path to the file to write to.\n # Default: stdout\n path: stdout\n\n # Order to use when sorting results.\n # Possible values: `file`, `linter`, and `severity`.\n #\n # If the severity values are inside the following list, they are ordered in this order:\n # 1. error\n # 2. warning\n # 3. high\n # 4. medium\n # 5. low\n # Either they are sorted alphabetically.\n #\n # Default: ["linter", "file"]\n sort-order:\n - file # filepath, line, and column.\n - linter\n\n # Show statistics per linter.\n # Default: true\n show-stats: true\n\nseverity:\n # Set the default severity for issues.\n #\n # If severity rules are defined and the issues do not match or no severity is provided to the rule\n # this will be the default severity applied.\n # Severities should match the supported severity names of the selected out format.\n # - Code climate: https://docs.codeclimate.com/docs/issues#issue-severity\n # - Checkstyle: https://checkstyle.sourceforge.io/property_types.html#SeverityLevel\n # - GitHub: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message\n # - TeamCity: https://www.jetbrains.com/help/teamcity/service-messages.html#Inspection+Instance\n #\n # `@linter` can be used as severity value to keep the severity from linters (e.g. revive, gosec, ...)\n #\n # Default: ""\n default: error\n | dataset_sample\yaml\influxdata_telegraf\.golangci.yml | .golangci.yml | YAML | 22,051 | 0.95 | 0.044118 | 0.351399 | node-utils | 280 | 2025-04-16T21:03:03.729702 | Apache-2.0 | false | 4e2eda40f3b80951680448fe92bbeb5d |
version: 2.1\norbs:\n win: circleci/windows@5.0.0\n aws-cli: circleci/aws-cli@3.1.1\n\nexecutors:\n telegraf-ci:\n working_directory: '/go/src/github.com/influxdata/telegraf'\n resource_class: large\n docker:\n - image: 'quay.io/influxdb/telegraf-ci:1.24.1'\n environment:\n GOFLAGS: -p=4\n mac:\n working_directory: '~/go/src/github.com/influxdata/telegraf'\n resource_class: macos.m1.medium.gen1\n macos:\n xcode: 15.4.0\n environment:\n HOMEBREW_NO_AUTO_UPDATE: 1\n GOFLAGS: -p=4\n\ncommands:\n check-changed-files-or-halt:\n steps:\n - run: ./scripts/check-file-changes.sh\n test-go:\n parameters:\n os:\n type: string\n default: "linux"\n arch:\n type: string\n default: "amd64"\n gotestsum:\n type: string\n default: "gotestsum"\n steps:\n - run: ./scripts/install_gotestsum.sh << parameters.os >> << parameters.gotestsum >>\n - unless:\n condition:\n equal: [ "386", << parameters.arch >> ]\n steps:\n - run: echo 'export RACE="-race"' >> $BASH_ENV\n - when:\n condition:\n equal: [ windows, << parameters.os >> ]\n steps:\n - run: echo 'export CGO_ENABLED=1' >> $BASH_ENV\n - when:\n condition:\n equal: [ darwin, << parameters.os >> ]\n steps:\n - run: echo 'export RACE="$RACE -ldflags=-extldflags=-Wl,-ld_classic"' >> $BASH_ENV\n - run: |\n GOARCH=<< parameters.arch >> ./<< parameters.gotestsum >> -- ${RACE} -short ./...\n package-build:\n parameters:\n type:\n type: string\n default: ""\n nightly:\n type: boolean\n default: false\n steps:\n - checkout\n - check-changed-files-or-halt\n - attach_workspace:\n at: '/go'\n - when:\n condition:\n equal: [ windows, << parameters.type >> ]\n steps:\n - run: go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v1.4.0\n - when:\n condition: << parameters.nightly >>\n steps:\n - run:\n command: 'NIGHTLY=1 make package include_packages="$(make << parameters.type >>)"'\n no_output_timeout: 30m\n - unless:\n condition:\n or:\n - << parameters.nightly >>\n steps:\n - run:\n command: 'make package include_packages="$(make << parameters.type >>)"'\n no_output_timeout: 30m\n - store_artifacts:\n path: './build/dist'\n destination: 'build/dist'\n - persist_to_workspace:\n root: './build'\n paths:\n - 'dist'\njobs:\n lint-linux:\n executor: telegraf-ci\n steps:\n - checkout\n - run: ./scripts/make_docs.sh\n - check-changed-files-or-halt\n - run: 'make deps'\n - run: 'make tidy'\n - run: 'make check'\n - run: 'make check-deps'\n - run:\n name: "Install golangci-lint"\n command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2\n - run:\n name: "golangci-lint/Linux"\n # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number\n # (the OS may report the number of CPUs on the host instead of the number of CPUs available to the guest).\n command: GOGC=80 GOMEMLIMIT=6144MiB /go/bin/golangci-lint run --verbose --timeout=30m --concurrency 4\n no_output_timeout: 30m\n lint-macos:\n executor: telegraf-ci\n steps:\n - checkout\n - check-changed-files-or-halt\n - run:\n name: "Install golangci-lint"\n command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2\n - run:\n name: "golangci-lint/macOS"\n # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number\n # (the OS may report the number of CPUs on the host instead of the number of CPUs available to the guest).\n command: GOGC=80 GOMEMLIMIT=6144MiB GOOS=darwin /go/bin/golangci-lint run --verbose --timeout=30m --concurrency 4\n no_output_timeout: 30m\n lint-windows:\n executor: telegraf-ci\n steps:\n - checkout\n - check-changed-files-or-halt\n - run:\n name: "Install golangci-lint"\n command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2\n - run:\n name: "golangci-lint/Windows"\n # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number\n # (the OS may report the number of CPUs on the host instead of the number of CPUs available to the guest).\n command: GOGC=80 GOMEMLIMIT=6144MiB GOOS=windows /go/bin/golangci-lint run --verbose --timeout=30m --concurrency 4\n no_output_timeout: 30m\n test-go-linux:\n executor: telegraf-ci\n steps:\n - checkout\n - check-changed-files-or-halt\n - test-go\n test-go-linux-386:\n executor: telegraf-ci\n steps:\n - checkout\n - check-changed-files-or-halt\n - run: 'GOARCH=386 make deps'\n - run: 'GOARCH=386 make tidy'\n - run: 'GOARCH=386 make check'\n - test-go:\n arch: "386"\n test-integration:\n machine:\n image: ubuntu-2204:current\n resource_class: large\n steps:\n - checkout\n - check-changed-files-or-halt\n - run: 'sh ./scripts/installgo_linux.sh'\n - run: 'make deps'\n - run:\n name: "Run integration tests"\n command: make test-integration\n environment:\n AZURE_EVENT_HUBS_EMULATOR_ACCEPT_EULA: yes\n test-go-mac:\n executor: mac\n steps:\n - checkout\n - check-changed-files-or-halt\n - run: 'sh ./scripts/installgo_mac.sh'\n - test-go:\n os: darwin\n arch: arm64\n test-go-windows:\n executor:\n name: win/default\n shell: bash.exe\n size: large\n steps:\n - checkout\n - check-changed-files-or-halt\n - run: git config --system core.longpaths true\n - run: choco feature enable -n allowGlobalConfirmation\n - run: 'sh ./scripts/installgo_windows.sh'\n - run: choco install mingw\n - run: echo 'export PATH="$PATH:/c/ProgramData/mingw64/mingw64/bin"' >> $BASH_ENV\n - test-go:\n os: windows\n gotestsum: "gotestsum.exe"\n test-licenses:\n executor: telegraf-ci\n steps:\n - checkout\n - check-changed-files-or-halt\n - run: 'make build_tools'\n - run: './tools/license_checker/license_checker -whitelist ./tools/license_checker/data/whitelist'\n windows-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: windows\n nightly: << parameters.nightly >>\n darwin-amd64-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: darwin-amd64\n nightly: << parameters.nightly >>\n darwin-arm64-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: darwin-arm64\n nightly: << parameters.nightly >>\n i386-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: i386\n nightly: << parameters.nightly >>\n ppc64le-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: ppc64le\n nightly: << parameters.nightly >>\n riscv64-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: riscv64\n nightly: << parameters.nightly >>\n loong64-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: loong64\n nightly: << parameters.nightly >>\n s390x-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: s390x\n nightly: << parameters.nightly >>\n armel-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: armel\n nightly: << parameters.nightly >>\n amd64-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: amd64\n nightly: << parameters.nightly >>\n arm64-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: arm64\n nightly: << parameters.nightly >>\n mipsel-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: mipsel\n nightly: << parameters.nightly >>\n mips-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: mips\n nightly: << parameters.nightly >>\n armhf-package:\n parameters:\n nightly:\n type: boolean\n default: false\n executor: telegraf-ci\n steps:\n - package-build:\n type: armhf\n nightly: << parameters.nightly >>\n nightly:\n executor: telegraf-ci\n steps:\n - attach_workspace:\n at: '/build'\n - run:\n command: |\n aws s3 sync /build/dist s3://dl.influxdata.com/telegraf/nightlies/ \\n --exclude "*" \\n --include "*.tar.gz" \\n --include "*.deb" \\n --include "*.rpm" \\n --include "*.zip" \\n --acl public-read\n release:\n executor: telegraf-ci\n steps:\n - attach_workspace:\n at: '/build'\n - run:\n command: |\n aws s3 sync /build/dist s3://dl.influxdata.com/telegraf/releases/ \\n --exclude "*" \\n --include "telegraf*.DIGESTS" \\n --include "telegraf*.digests" \\n --include "telegraf*.asc" \\n --include "telegraf*.deb" \\n --include "telegraf*.dmg" \\n --include "telegraf*.rpm" \\n --include "telegraf*.tar.gz" \\n --include "telegraf*.zip" \\n --acl public-read\n docker-nightly:\n machine:\n image: ubuntu-2204:current\n steps:\n - run:\n name: login to quay.io\n command: docker login --username="${QUAY_USER}" --password="${QUAY_PASS}" quay.io\n - run:\n name: clone influxdata/influxdata-docker\n command: git clone https://github.com/influxdata/influxdata-docker\n - run:\n name: build and push telegraf:nightly\n command: |\n cd influxdata-docker/telegraf/nightly\n docker build -t telegraf .\n docker tag telegraf quay.io/influxdb/telegraf-nightly:latest\n docker image ls\n docker push quay.io/influxdb/telegraf-nightly:latest\n - run:\n name: build and push telegraf:nightly-alpine\n command: |\n cd influxdata-docker/telegraf/nightly/alpine\n docker build -t telegraf-alpine .\n docker tag telegraf-alpine quay.io/influxdb/telegraf-nightly:alpine\n docker image ls\n docker push quay.io/influxdb/telegraf-nightly:alpine\n amd64-package-test-nightly:\n machine:\n image: ubuntu-2204:current\n steps:\n - checkout\n - attach_workspace:\n at: '.'\n - run: sh ./scripts/installgo_linux.sh\n - run: ./scripts/install_incus.sh\n - run: cd tools/package_incus_test && go build\n - run: sudo ./tools/package_incus_test/package_incus_test --package $(find ./dist -name "*_amd64.deb")\n - run: sudo ./tools/package_incus_test/package_incus_test --package $(find ./dist -name "*.x86_64.rpm")\n package-sign-windows:\n machine:\n image: ubuntu-2204:current\n resource_class: medium\n steps:\n - checkout\n - check-changed-files-or-halt\n - attach_workspace:\n at: '.'\n - run:\n name: "Sign Windows Executables"\n command: ./scripts/sign-windows.sh\n - persist_to_workspace:\n root: '.'\n paths:\n - 'dist'\n package-sign-mac:\n executor: mac\n working_directory: /Users/distiller/project\n environment:\n FL_OUTPUT_DIR: output\n FASTLANE_LANE: test\n shell: /bin/bash --login -o pipefail\n steps:\n - checkout\n - check-changed-files-or-halt\n - attach_workspace:\n at: '.'\n - run:\n command: |\n sh ./scripts/mac-signing.sh\n - persist_to_workspace:\n root: './build'\n paths:\n - 'dist'\n package-consolidate:\n docker:\n - image: alpine\n steps:\n - attach_workspace:\n at: '.'\n - run:\n command: |\n cd dist && find . -type f -name '._*' -delete\n - store_artifacts:\n path: './dist'\n destination: 'build/dist'\n - run:\n command: |\n echo "This job contains all the final artifacts."\n share-artifacts:\n executor: aws-cli/default\n steps:\n - checkout\n - check-changed-files-or-halt\n - run:\n command: |\n PR=${CIRCLE_PULL_REQUEST##*/}\n printf -v payload '{ "pullRequestNumber": "%s" }' "$PR"\n curl -X POST "https://182c7jdgog.execute-api.us-east-1.amazonaws.com/prod/shareArtifacts" --data "$payload"\n package-sign:\n circleci_ip_ranges: true\n docker:\n - image: quay.io/influxdb/rsign:latest\n auth:\n username: $QUAY_RSIGN_USERNAME\n password: $QUAY_RSIGN_PASSWORD\n steps:\n - add_ssh_keys:\n fingerprints:\n - 3b:c0:fe:a0:8a:93:33:69:de:22:ac:20:a6:ed:6b:e5\n - attach_workspace:\n at: .\n - run: |\n cd dist\n\n # Generate the *.DIGESTS files. This must be done before the signing\n # step so that the *.DIGEST files are also signed.\n for target in *\n do\n sha256sum "${target}" > "${target}.DIGESTS"\n done\n\n for target in *\n do\n case "${target}"\n in\n # rsign is shipped on Alpine Linux which uses "busybox ash" instead\n # of bash. ash is somewhat more posix compliant and is missing some\n # extensions and niceties from bash.\n *.deb|*.dmg|*.rpm|*.tar.gz|*.zip|*.DIGESTS)\n rsign "${target}"\n ;;\n esac\n done\n\n for target in *\n do\n case "${target}"\n in\n *.deb|*.dmg|*.rpm|*.tar.gz|*.zip)\n # Print sha256 hash and target for artifacts all in one file\n # for use later during the release.\n cat "${target}.DIGESTS" >> "telegraf-${CIRCLE_TAG}.DIGESTS"\n ;;\n esac\n done\n - persist_to_workspace:\n root: ./\n paths:\n - dist\n - store_artifacts:\n path: ./dist\n\nworkflows:\n version: 2\n check:\n when:\n not:\n equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]\n jobs:\n - 'lint-linux':\n filters:\n tags:\n only: /.*/\n - 'lint-macos':\n filters:\n tags:\n only: /.*/\n - 'lint-windows':\n filters:\n tags:\n only: /.*/\n - 'test-go-linux':\n filters:\n tags:\n only: /.*/\n - 'test-go-linux-386':\n filters:\n tags:\n only: /.*/\n - 'test-go-mac':\n filters:\n tags: # only runs on tags if you specify this filter\n only: /.*/\n - 'test-go-windows':\n filters:\n tags:\n only: /.*/\n - 'test-integration':\n filters:\n tags:\n only: /.*/\n - 'windows-package':\n requires:\n - 'test-go-linux'\n filters:\n tags:\n only: /.*/\n - 'darwin-amd64-package':\n requires:\n - 'test-go-mac'\n filters:\n tags:\n only: /.*/\n - 'darwin-arm64-package':\n requires:\n - 'test-go-mac'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'i386-package':\n requires:\n - 'test-go-linux-386'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'ppc64le-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'riscv64-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'loong64-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - /.*/\n tags:\n only: /.*/\n - 's390x-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'armel-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'amd64-package':\n requires:\n - 'test-go-linux'\n filters:\n tags:\n only: /.*/\n - 'arm64-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'armhf-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'mipsel-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'mips-package':\n requires:\n - 'test-go-linux'\n filters:\n branches:\n ignore:\n - master\n tags:\n only: /.*/\n - 'share-artifacts':\n requires:\n - 'i386-package'\n - 'ppc64le-package'\n - 'riscv64-package'\n - 's390x-package'\n - 'armel-package'\n - 'amd64-package'\n - 'mipsel-package'\n - 'mips-package'\n - 'loong64-package'\n - 'darwin-amd64-package'\n - 'darwin-arm64-package'\n - 'windows-package'\n - 'arm64-package'\n - 'armhf-package'\n filters:\n branches:\n ignore:\n - master\n - release.*\n tags:\n ignore: /.*/\n - 'package-sign-windows':\n requires:\n - 'windows-package'\n filters:\n tags:\n only: /.*/\n branches:\n ignore: /.*/\n - 'package-sign-mac':\n requires:\n - 'darwin-amd64-package'\n - 'darwin-arm64-package'\n filters:\n tags:\n only: /.*/\n branches:\n ignore: /.*/\n - 'package-sign':\n requires:\n - 'i386-package'\n - 'ppc64le-package'\n - 'riscv64-package'\n - 's390x-package'\n - 'armel-package'\n - 'amd64-package'\n - 'mipsel-package'\n - 'mips-package'\n - 'loong64-package'\n - 'arm64-package'\n - 'armhf-package'\n - 'package-sign-mac'\n - 'package-sign-windows'\n filters:\n tags:\n only: /.*/\n branches:\n ignore: /.*/\n - 'package-consolidate':\n requires:\n - 'i386-package'\n - 'ppc64le-package'\n - 's390x-package'\n - 'armel-package'\n - 'amd64-package'\n - 'mipsel-package'\n - 'mips-package'\n - 'arm64-package'\n - 'armhf-package'\n - 'riscv64-package'\n - 'loong64-package'\n - 'package-sign-mac'\n - 'package-sign-windows'\n - 'package-sign'\n filters:\n tags:\n only: /.*/\n branches:\n ignore: /.*/\n - 'release':\n requires:\n - 'package-consolidate'\n filters:\n tags:\n only: /.*/\n branches:\n ignore: /.*/\n nightly:\n when:\n equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]\n jobs:\n - 'lint-linux'\n - 'lint-macos'\n - 'lint-windows'\n - 'test-go-linux'\n - 'test-go-linux-386'\n - 'test-go-mac'\n - 'test-go-windows'\n - 'test-licenses'\n - 'windows-package':\n name: 'windows-package-nightly'\n nightly: true\n requires:\n - 'test-go-windows'\n - 'darwin-amd64-package':\n name: 'darwin-amd64-package-nightly'\n nightly: true\n requires:\n - 'test-go-mac'\n - 'darwin-arm64-package':\n name: 'darwin-arm64-package-nightly'\n nightly: true\n requires:\n - 'test-go-mac'\n - 'i386-package':\n name: 'i386-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux-386'\n - 'ppc64le-package':\n name: 'ppc64le-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'riscv64-package':\n name: 'riscv64-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'loong64-package':\n name: 'loong64-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 's390x-package':\n name: 's390x-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'armel-package':\n name: 'armel-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'amd64-package':\n name: 'amd64-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'arm64-package':\n name: 'arm64-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'armhf-package':\n name: 'armhf-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'mipsel-package':\n name: 'mipsel-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'mips-package':\n name: 'mips-package-nightly'\n nightly: true\n requires:\n - 'test-go-linux'\n - 'package-sign-windows':\n requires:\n - 'windows-package-nightly'\n - 'package-sign-mac':\n requires:\n - 'darwin-amd64-package-nightly'\n - 'darwin-arm64-package-nightly'\n - nightly:\n requires:\n - 'amd64-package-test-nightly'\n - 'arm64-package-nightly'\n - 'armel-package-nightly'\n - 'armhf-package-nightly'\n - 'darwin-amd64-package-nightly'\n - 'darwin-arm64-package-nightly'\n - 'i386-package-nightly'\n - 'mips-package-nightly'\n - 'mipsel-package-nightly'\n - 'loong64-package-nightly'\n - 'ppc64le-package-nightly'\n - 'riscv64-package-nightly'\n - 's390x-package-nightly'\n - 'windows-package-nightly'\n - docker-nightly:\n requires:\n - 'nightly'\n - amd64-package-test-nightly:\n requires:\n - 'amd64-package-nightly'\n | dataset_sample\yaml\influxdata_telegraf\.circleci\config.yml | config.yml | YAML | 24,848 | 0.95 | 0.010169 | 0.017065 | python-kit | 530 | 2024-02-01T00:03:46.572845 | BSD-3-Clause | false | f70bfa4c177332ed09f2d6aafb20a73e |
version: 2\nupdates:\n - package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "weekly"\n open-pull-requests-limit: 25\n labels:\n - "dependencies"\n - package-ecosystem: "gomod"\n directory: "/"\n schedule:\n interval: "weekly"\n open-pull-requests-limit: 25\n ignore:\n # Dependabot isn't able to update this packages that do not match the\n # source, so anything with a version\n - dependency-name: "*.v*"\n labels:\n - "dependencies"\n | dataset_sample\yaml\influxdata_telegraf\.github\dependabot.yml | dependabot.yml | YAML | 506 | 0.8 | 0 | 0.1 | react-lib | 201 | 2024-05-13T15:59:38.696670 | GPL-3.0 | false | ec76f6c829e065e760fdbffdef280f7f |
name: Bug Report\ndescription: Create a bug report to help us improve\nlabels: ["bug"]\nbody:\n - type: markdown\n attributes:\n value: |\n Thanks for taking time to fill out this bug report! We reserve Telegraf issues for bugs for reproducible problems.\n Please redirect any questions about Telegraf usage to our [Community Slack](https://influxdata.com/slack) or [Community Page](https://community.influxdata.com/) we have a lot of talented community members there who could help answer your question more quickly.\n - type: textarea\n id: config\n attributes:\n label: Relevant telegraf.conf\n description: Place config in the toml code section. This will be automatically formatted into toml, so no need for backticks.\n render: toml\n validations:\n required: true\n - type: textarea\n id: logs\n attributes:\n label: Logs from Telegraf\n description: Please include the Telegraf logs, ideally with `--debug` used.\n render: text\n validations:\n required: true\n - type: input\n id: system-info\n attributes:\n label: System info\n description: Include Telegraf version, operating system, and other relevant details\n placeholder: ex. Telegraf 1.20.0, Ubuntu 20.04, Docker 20.10.8\n validations:\n required: true\n - type: textarea\n id: docker\n attributes:\n label: Docker\n description: If your bug involves third party dependencies or services, it can be very helpful to provide a Dockerfile or docker-compose.yml that reproduces the environment you're testing against.\n validations:\n required: false\n - type: textarea\n id: reproduce\n attributes:\n label: Steps to reproduce\n description: Describe the steps to reproduce the bug.\n value: |\n 1.\n 2.\n 3.\n ...\n validations:\n required: true\n - type: textarea\n id: expected-behavior\n attributes:\n label: Expected behavior\n description: Describe what you expected to happen when you performed the above steps.\n validations:\n required: true\n - type: textarea\n id: actual-behavior\n attributes:\n label: Actual behavior\n description: Describe what actually happened when you performed the above steps.\n validations:\n required: true\n - type: textarea\n id: additional-info\n attributes:\n label: Additional info\n description: Include gist of relevant config, logs, etc.\n validations:\n required: false\n\n | dataset_sample\yaml\influxdata_telegraf\.github\ISSUE_TEMPLATE\BUG_REPORT.yml | BUG_REPORT.yml | YAML | 2,482 | 0.95 | 0.054054 | 0 | python-kit | 911 | 2024-08-18T18:30:03.135390 | Apache-2.0 | false | 31cc918a19301c4088a7d7208ca063f8 |
name: Feature request\ndescription: Create a feature request to make Telegraf more awesome\nlabels: ["feature request"]\nbody:\n - type: markdown\n attributes:\n value: |\n Thanks for taking time to share with us this feature request! Please describe why you would like this feature to be added to Telegraf and how you plan to use it to make your life better.\n - type: textarea\n id: use-case\n attributes:\n label: Use Case\n description: Describe how you plan to use this feature. \n validations:\n required: true\n - type: textarea\n id: expected-behavior\n attributes:\n label: Expected behavior\n description: Describe what you expected to happen when you performed the above steps.\n validations:\n required: true\n - type: textarea\n id: actual-behavior\n attributes:\n label: Actual behavior\n description: Describe what actually happened when you performed the above steps.\n validations:\n required: true\n - type: textarea\n id: additional-info\n attributes:\n label: Additional info\n description: Include gist of relevant config, logs, etc.\n validations:\n required: false\n\n | dataset_sample\yaml\influxdata_telegraf\.github\ISSUE_TEMPLATE\FEATURE_REQUEST.yml | FEATURE_REQUEST.yml | YAML | 1,170 | 0.85 | 0.027027 | 0 | python-kit | 115 | 2023-10-31T12:31:28.662398 | GPL-3.0 | false | a6208d8e47cef477268179e458cf399d |
name: Support request\ndescription: Open a support request\nlabels: ["support"]\nbody:\n - type: markdown\n attributes:\n value: |\n WOAH, hold up. This isn't the best place for support questions. \n You can get a faster response on slack or forums:\n\n Please redirect any QUESTIONS about Telegraf usage to \n - InfluxData Slack Channel: https://www.influxdata.com/slack \n - InfluxData Community Site: https://community.influxdata.com\n\n Check the documentation for the related plugin including the troubleshooting\n section if available.\n\n https://docs.influxdata.com/telegraf\n https://github.com/influxdata/telegraf/tree/master/docs\n - type: textarea\n attributes:\n label: "Please direct all support questions to Slack or the forums. Thank you."\n | dataset_sample\yaml\influxdata_telegraf\.github\ISSUE_TEMPLATE\SUPPORT.yml | SUPPORT.yml | YAML | 816 | 0.8 | 0.136364 | 0 | vue-tools | 794 | 2024-02-13T09:32:00.617782 | Apache-2.0 | false | 1e88d287cde5572939916752e13962d5 |
---\n#################################\n#################################\n## Super Linter GitHub Actions ##\n#################################\n#################################\nname: Lint Code Base\n\n#\n# Documentation:\n# https://help.github.com/en/articles/workflow-syntax-for-github-actions\n#\n\n#############################\n# Start the job on all push #\n#############################\non:\n push:\n branches-ignore: [master, main]\n # Remove the line above to run when pushing to master\n pull_request:\n branches: [master, main]\n\n###############\n# Set the Job #\n###############\npermissions: {}\n\njobs:\n build:\n # Name the Job\n permissions:\n contents: read # to fetch code (actions/checkout)\n statuses: write # to mark status of each linter run (github/super-linter)\n\n name: Lint Code Base\n # Set the agent to run on\n runs-on: ubuntu-latest\n\n ##################\n # Load all steps #\n ##################\n steps:\n ##########################\n # Checkout the code base #\n ##########################\n - name: Checkout Code\n uses: actions/checkout@v4\n with:\n # Full git history is needed to get a proper list of changed files within `super-linter`\n fetch-depth: 0\n\n ################################\n # Run Linter against code base #\n ################################\n - name: Lint Code Base\n uses: super-linter/super-linter@v7.3.0\n env:\n VALIDATE_ALL_CODEBASE: false\n DEFAULT_BRANCH: master\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n LINTER_RULES_PATH: '.'\n MARKDOWN_CONFIG_FILE: .markdownlint.yml\n VALIDATE_MARKDOWN: true\n VALIDATE_BASH: true\n | dataset_sample\yaml\influxdata_telegraf\.github\workflows\linter.yml | linter.yml | YAML | 1,726 | 0.8 | 0.015385 | 0.482759 | vue-tools | 519 | 2025-06-13T05:38:52.016732 | BSD-3-Clause | false | d107fc9fbd8649e7135f31430da5a082 |
name: Milestones\non:\n pull_request_target:\n types:\n - closed\n\npermissions:\n issues: write\n pull-requests: write\n\njobs:\n milestone_job:\n if: github.event.pull_request.merged == true\n runs-on: ubuntu-latest\n name: Assign milestones to PRs\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n - name: Assign milestone to PR\n uses: srebhan/label-milestone-action@v1.0.1\n id: assign-milestone\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n bugfix-labels: 'fix,chore,docs,test'\n minor-labels: 'feat'\n major-labels: 'breaking change'\n fallback: 'minor'\n - name: Show milestone\n run: echo "Assigned milestone is ${{ steps.assign-milestone.outputs.milestone }}"\n | dataset_sample\yaml\influxdata_telegraf\.github\workflows\milestones.yml | milestones.yml | YAML | 780 | 0.7 | 0.034483 | 0 | vue-tools | 600 | 2024-10-07T17:29:19.908155 | GPL-3.0 | false | 077d241a29e9cf2bd469e39c70bd8ce6 |
name: Target Branch\non:\n pull_request:\n types:\n - opened\n - reopened\n - synchronize\n - edited\n\njobs:\n check-target-master:\n name: master\n runs-on: ubuntu-latest\n steps:\n - name: debug\n run: echo Target is ${{ github.event.pull_request.base.ref }}\n - name: success\n if: github.event.pull_request.base.ref == 'master'\n run: exit 0\n - name: error\n if: github.event.pull_request.base.ref != 'master'\n run: |\n echo "Pull-request is not based on master, please rebase"\n exit 1\n | dataset_sample\yaml\influxdata_telegraf\.github\workflows\pr-target-branch.yml | pr-target-branch.yml | YAML | 573 | 0.7 | 0.083333 | 0 | awesome-app | 43 | 2024-12-09T08:32:36.022672 | MIT | false | 9ce0fc11252ec53a8a54dd5952191dc5 |
name: Lint plugin readmes\non:\n# push:\n# branches-ignore: master\n pull_request:\n branches: # Names of target branches, not source branches\n - master\njobs:\n run-readme-linter:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/setup-go@v5\n with:\n go-version: '1.24.1'\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0\n - name: Get changed files\n id: changed-files\n uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5\n with:\n base_sha: ${{ github.event.pull_request.base.sha }}\n files: ./plugins/**/README.md\n - name: Run readme linter on changed files\n if: steps.changed-files.outputs.any_changed == 'true'\n run: go run ./tools/readme_linter ${{ steps.changed-files.outputs.all_changed_files }}\n | dataset_sample\yaml\influxdata_telegraf\.github\workflows\readme-linter.yml | readme-linter.yml | YAML | 848 | 0.8 | 0.038462 | 0.076923 | vue-tools | 894 | 2025-01-11T10:16:26.292331 | MIT | false | b49b54c6ebb357b502b3cf281d1bbb09 |
---\nname: "Semantic PR and Commit Messages"\n\non:\n pull_request:\n types: [opened, reopened, synchronize, edited]\n branches:\n - master\n\njobs:\n semantic:\n uses: influxdata/validate-semantic-github-messages/.github/workflows/semantic.yml@main\n with:\n COMMITS_HISTORY: 0\n\n | dataset_sample\yaml\influxdata_telegraf\.github\workflows\semantic.yml | semantic.yml | YAML | 291 | 0.7 | 0 | 0 | vue-tools | 834 | 2024-03-15T19:57:43.267444 | Apache-2.0 | false | ad7ada2672c2dbbcc59c73e2f353c6c6 |
version: '3'\n\nservices:\n clickhouse:\n# choose `:latest` after resolve https://github.com/ClickHouse/ClickHouse/issues/13057\n image: docker.io/yandex/clickhouse-server:${CLICKHOUSE_VERSION:-latest}\n volumes:\n - ./init_schema.sql:/docker-entrypoint-initdb.d/init_schema.sql\n - ./test_dictionary.xml:/etc/clickhouse-server/01-test_dictionary.xml\n - ./zookeeper.xml:/etc/clickhouse-server/config.d/00-zookeeper.xml\n - ./tls_settings.xml:/etc/clickhouse-server/config.d/01-tls_settings.xml\n # please comment text_log.xml when CLICKHOUSE_VERSION = 19.16\n - ./text_log.xml:/etc/clickhouse-server/config.d/02-text_log.xml\n - ./part_log.xml:/etc/clickhouse-server/config.d/03-part_log.xml\n - ./mysql_port.xml:/etc/clickhouse-server/config.d/04-mysql_port.xml\n - ./dhparam.pem:/etc/clickhouse-server/dhparam.pem\n - ../../../../testutil/pki/serverkey.pem:/etc/clickhouse-server/server.key\n - ../../../../testutil/pki/servercert.pem:/etc/clickhouse-server/server.crt\n ports:\n - 3306:3306\n - 8123:8123\n - 8443:8443\n - 9000:9000\n - 9009:9009\n zookeeper:\n image: docker.io/zookeeper:3.5.6\n volumes:\n - /var/lib/zookeeper\n ports:\n - 2181:2181\n | dataset_sample\yaml\influxdata_telegraf\plugins\inputs\clickhouse\dev\docker-compose.yml | docker-compose.yml | YAML | 1,235 | 0.8 | 0 | 0.068966 | node-utils | 400 | 2024-08-06T10:49:40.954071 | MIT | false | 0753e086767ff19ea7b6d1f8fbe1c843 |
version: '3'\n\nservices:\n telegraf:\n image: glinton/scratch\n volumes:\n - ./telegraf.conf:/telegraf.conf\n - ../../../../telegraf:/telegraf\n - ./dev/json_a.log:/var/log/test.log\n entrypoint:\n - /telegraf\n - --config\n - /telegraf.conf\n | dataset_sample\yaml\influxdata_telegraf\plugins\inputs\file\dev\docker-compose.yml | docker-compose.yml | YAML | 289 | 0.7 | 0 | 0 | awesome-app | 906 | 2023-07-24T06:37:23.509209 | GPL-3.0 | false | e78a9f02db6543fbeb149f0c32983d08 |
## Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-dev-mode\nversion: '2.2'\nservices:\n es01:\n image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1\n container_name: es01\n environment:\n - node.name=es01\n - cluster.name=es-docker-cluster\n - cluster.initial_master_nodes=es01\n - bootstrap.memory_lock=true\n - "ES_JAVA_OPTS=-Xms512m -Xmx512m"\n ulimits:\n memlock:\n soft: -1\n hard: -1\n volumes:\n - data01:/usr/share/elasticsearch/data\n ports:\n - 9200:9200\n networks:\n - elastic\n\n kib01:\n image: docker.elastic.co/kibana/kibana:7.10.1\n container_name: kib01\n ports:\n - 5601:5601\n environment:\n ELASTICSEARCH_URL: http://es01:9200\n ELASTICSEARCH_HOSTS: http://es01:9200\n networks:\n - elastic\n\n telegraf:\n image: local_telegraf\n volumes:\n - ./basic_kibana_telegraf.conf:/etc/telegraf/telegraf.conf:ro\n networks:\n - elastic\n\nvolumes:\n data01:\n driver: local\n\nnetworks:\n elastic:\n driver: bridge\n | dataset_sample\yaml\influxdata_telegraf\plugins\inputs\kibana\test_environment\docker-compose.yml | docker-compose.yml | YAML | 1,089 | 0.8 | 0 | 0.022727 | node-utils | 924 | 2024-10-05T04:40:20.457045 | GPL-3.0 | true | 2e81690477947832f1e8532b81855089 |
version: '3'\n\nservices:\n telegraf:\n image: glinton/scratch\n volumes:\n - ./telegraf.conf:/telegraf.conf\n - ../../../../telegraf:/telegraf\n - ./test.log:/var/log/test.log\n entrypoint:\n - /telegraf\n - --config\n - /telegraf.conf\n | dataset_sample\yaml\influxdata_telegraf\plugins\inputs\logparser\dev\docker-compose.yml | docker-compose.yml | YAML | 303 | 0.7 | 0 | 0 | node-utils | 186 | 2024-07-27T11:09:43.707878 | GPL-3.0 | false | ce349ca4ba7ec9ea50255914e3b2fcd0 |
version: '3'\nservices:\n mongodb:\n image: mongo\n\n telegraf:\n image: glinton/scratch\n volumes:\n - ./telegraf.conf:/telegraf.conf\n - ../../../../telegraf:/telegraf\n depends_on:\n - mongodb\n entrypoint:\n - /telegraf\n - --config\n - /telegraf.conf\n | dataset_sample\yaml\influxdata_telegraf\plugins\inputs\mongodb\dev\docker-compose.yml | docker-compose.yml | YAML | 336 | 0.7 | 0 | 0 | react-lib | 629 | 2023-12-09T14:04:07.855174 | GPL-3.0 | false | a25cfc6f0c6264a86afad904921dfb7e |
version: '3'\n\nservices:\n mysql:\n image: mysql:5.7\n restart: always\n environment:\n MYSQL_ROOT_PASSWORD: telegraf\n MYSQL_DATABASE: telegraf\n MYSQL_USER: telegraf\n MYSQL_PASSWORD: telegraf\n maria:\n image: mariadb\n restart: always\n environment:\n MYSQL_ROOT_PASSWORD: telegraf\n MYSQL_DATABASE: telegraf\n MYSQL_USER: telegraf\n MYSQL_PASSWORD: telegraf\n command: mysqld --userstat=1\n percona:\n image: percona\n restart: always\n environment:\n MYSQL_ROOT_PASSWORD: telegraf\n MYSQL_DATABASE: telegraf\n MYSQL_USER: telegraf\n MYSQL_PASSWORD: telegraf\n\n telegraf:\n image: glinton/scratch\n depends_on:\n - mysql\n - maria\n - percona\n volumes:\n - ./telegraf.conf:/telegraf.conf\n - ../../../../telegraf:/telegraf\n entrypoint:\n - /telegraf\n - --config\n - /telegraf.conf\n | dataset_sample\yaml\influxdata_telegraf\plugins\inputs\mysql\dev\docker-compose.yml | docker-compose.yml | YAML | 896 | 0.7 | 0 | 0 | node-utils | 599 | 2024-12-30T01:37:39.163273 | BSD-3-Clause | false | 4902f3ac73b80df032e31f4eb0b49b08 |
version: '3'\nservices:\n zoo:\n image: zookeeper\n\n telegraf:\n image: glinton/scratch\n volumes:\n - ./telegraf.conf:/telegraf.conf\n - ../../../../telegraf:/telegraf\n depends_on:\n - zoo\n entrypoint:\n - /telegraf\n - --config\n - /telegraf.conf\n network_mode: service:zoo\n | dataset_sample\yaml\influxdata_telegraf\plugins\inputs\zookeeper\dev\docker-compose.yml | docker-compose.yml | YAML | 314 | 0.7 | 0 | 0 | python-kit | 876 | 2024-10-21T00:17:06.167216 | GPL-3.0 | false | bd7dbd4d87b8f6f268af0574a71951ef |
# Codacy configuration file for Invoice Ninja\n\nexclude_paths:\n - 'public/css/*'\n - 'public/js/*'\n | dataset_sample\yaml\invoiceninja_invoiceninja\.codacy.yml | .codacy.yml | YAML | 99 | 0.6 | 0.2 | 0.25 | python-kit | 292 | 2023-08-10T17:14:15.311049 | GPL-3.0 | false | 1bcd781c4a069fbaf24f3e05a44fe84d |
ratings:\n paths: \n - "**/*.go"\n\nexclude_paths:\n- test/\n- Godeps/\n- thirdparty/\n- "**/*.pb.go"\n\nengines:\n fixme:\n enabled: true\n config:\n strings:\n - FIXME\n - HACK\n - XXX\n - BUG\n golint:\n enabled: true\n govet:\n enabled: true\n gofmt:\n enabled: true\n\nversion: "2"\nchecks:\n argument-count:\n enabled: false\n complex-logic:\n enabled: false\n file-lines:\n enabled: false\n method-complexity:\n enabled: false\n method-count:\n enabled: false\n method-lines:\n enabled: false\n nested-control-flow:\n enabled: false\n return-statements:\n enabled: false\n similar-code:\n enabled: false\n | dataset_sample\yaml\ipfs_kubo\.codeclimate.yml | .codeclimate.yml | YAML | 648 | 0.8 | 0 | 0 | react-lib | 346 | 2024-04-12T23:07:58.506569 | Apache-2.0 | false | 13f2acec1deeb1a991f96c342d5b1854 |
linters:\n enable:\n - stylecheck\n\nlinters-settings:\n stylecheck:\n checks:\n - all\n - '-ST1003'\n dot-import-whitelist:\n - github.com/ipfs/kubo/test/cli/testutils\n | dataset_sample\yaml\ipfs_kubo\.golangci.yml | .golangci.yml | YAML | 181 | 0.85 | 0 | 0 | node-utils | 712 | 2023-12-01T08:08:49.412162 | GPL-3.0 | false | dc12e32c6c2e4b012bbd7657557112b1 |
# Notes:\n# - Minimal appveyor.yml file is an empty file. All sections are optional.\n# - Indent each level of configuration with 2 spaces. Do not use tabs!\n# - All section names are case-sensitive.\n# - Section names should be unique on each level.\n\nversion: "{build}"\n\nos: Windows Server 2012 R2\n\nclone_folder: c:\gopath\src\github.com\ipfs\go-ipfs\n\nenvironment:\n GOPATH: c:\gopath\n TEST_VERBOSE: 1\n #TEST_NO_FUSE: 1\n #TEST_SUITE: test_sharness\n #GOFLAGS: -tags nofuse\n global:\n BASH: C:\cygwin\bin\bash\n matrix:\n - GOARCH: amd64\n GOVERSION: 1.5.1\n GOROOT: c:\go\n DOWNLOADPLATFORM: "x64"\n\ninstall:\n # Enable make\n #- SET PATH=c:\MinGW\bin;%PATH%\n #- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe\n - go version\n - go env\n\n# Cygwin build script\n#\n# NOTES:\n#\n# The stdin/stdout file descriptor appears not to be valid for the Appveyor\n# build which causes failures as certain functions attempt to redirect\n# default file handles. Ensure a dummy file descriptor is opened with 'exec'.\n#\nbuild_script:\n - '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; export PATH=$GOPATH/bin:$PATH; make nofuse"'\n\ntest_script:\n - '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; export PATH=$GOPATH/bin:$PATH; export GOFLAGS=''-tags nofuse''; export TEST_NO_FUSE=1; export TEST_VERBOSE=1; export TEST_EXPENSIVE=1; export TEST_SUITE=test_sharness; make $TEST_SUITE"'\n\n#build:\n# parallel: true\n | dataset_sample\yaml\ipfs_kubo\appveyor.yml | appveyor.yml | YAML | 1,437 | 0.95 | 0.020408 | 0.512195 | vue-tools | 699 | 2024-11-20T00:10:52.857147 | MIT | false | e565db3a2942ef4dc040e81b4a87aa25 |
codecov:\n ci:\n - "!travis-ci.org"\n - "!ci.ipfs.team:8111"\n - "!ci.ipfs.team"\n - "github.com"\n notify:\n require_ci_to_pass: no\n after_n_builds: 2\n\ncoverage:\n range: "50...100"\n\n status:\n project:\n default:\n threshold: 0.2%\n\n patch:\n default:\n threshold: 2%\n\ncomment: off\n | dataset_sample\yaml\ipfs_kubo\codecov.yml | codecov.yml | YAML | 322 | 0.85 | 0 | 0 | awesome-app | 883 | 2024-02-12T16:15:33.645639 | MIT | false | 06e4222f3ff7e7c8369c622b95d054c5 |
version: 2\nupdates:\n - package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "weekly"\n | dataset_sample\yaml\ipfs_kubo\.github\dependabot.yml | dependabot.yml | YAML | 118 | 0.7 | 0 | 0 | awesome-app | 291 | 2025-02-03T11:03:41.414150 | BSD-3-Clause | false | 4334132ba6bcd78670bf574b6b4236f4 |
name: Bug Report\ndescription: Report a bug in Kubo.\nlabels:\n - kind/bug\n - need/triage\nbody:\n - type: markdown\n attributes:\n value: |\n - Make sure you are running the [latest version of Kubo][releases] before reporting an issue.\n - If you have an enhancement or feature request for Kubo, please select [a different option][issues].\n - Please report possible security issues by email to security@ipfs.io\n\n [issues]: https://github.com/ipfs/kubo/issues/new/choose\n [releases]: https://github.com/ipfs/kubo/releases\n - type: checkboxes\n attributes:\n label: Checklist\n description: Please verify that you've followed these steps\n options:\n - label: This is a bug report, not a question. Ask questions on [discuss.ipfs.tech](https://discuss.ipfs.tech/c/help/13).\n required: true\n - label: I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) for my bug.\n required: true\n - label: I am running the latest [kubo version](https://dist.ipfs.tech/#kubo) or have an issue updating.\n required: true\n - type: dropdown\n id: install\n validations:\n required: true\n attributes:\n label: Installation method\n description: Please select your installation method\n options:\n - dist.ipfs.tech or ipfs-update\n - docker image\n - ipfs-desktop\n - third-party binary\n - built from source\n - type: textarea\n id: version\n attributes:\n label: Version\n render: Text\n description: |\n Enter the output of `ipfs version --all`. If you can't run that command, please include a copy of your [gateway's version page](http://localhost:8080/api/v0/version?enc=text&all=true).\n - type: textarea\n id: config\n attributes:\n label: Config\n render: json\n description: |\n Enter the output of `ipfs config show`.\n - type: textarea\n attributes:\n label: Description\n description: |\n This is where you get to tell us what went wrong. When doing so, please make sure to include *all* relevant information.\n\n Please try to include:\n * What you were doing when you experienced the bug.\n * Any error messages you saw, *where* you saw them, and what you believe may have caused them (if you have any ideas).\n * When possible, steps to reliably produce the bug.\n | dataset_sample\yaml\ipfs_kubo\.github\ISSUE_TEMPLATE\bug-report.yml | bug-report.yml | YAML | 2,426 | 0.95 | 0.063492 | 0.04918 | python-kit | 111 | 2024-12-01T01:50:18.213924 | GPL-3.0 | false | 5db99a4642deadc90f735514cef8a887 |
blank_issues_enabled: false\ncontact_links:\n - name: Getting Help on IPFS\n url: https://ipfs.tech/help\n about: All information about how and where to get help on IPFS.\n - name: Kubo configuration reference\n url: https://github.com/ipfs/kubo/blob/master/docs/config.md#readme\n about: Documentation on the different configuration settings\n - name: Kubo experimental features docs\n url: https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#readme\n about: Documentation on Private Networks, Filestore and other experimental features.\n - name: Kubo RPC API Reference\n url: https://docs.ipfs.tech/reference/kubo/rpc/\n about: Documentation of all Kubo RPC API endpoints.\n - name: IPFS Official Discussion Forum\n url: https://discuss.ipfs.tech\n about: Please post general questions, support requests, and discussions here.\n | dataset_sample\yaml\ipfs_kubo\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 852 | 0.8 | 0 | 0 | awesome-app | 852 | 2025-02-16T01:35:28.778244 | GPL-3.0 | false | 4b7a472edac0223ce18ba4dd2fddf444 |
name: Documentation Issue\ndescription: Report missing, erroneous docs, broken links or propose new Kubo docs.\nlabels:\n - topic/docs-ipfs\n - need/triage\nbody:\n - type: markdown\n attributes:\n value: |\n Problems with documentation on https://docs.ipfs.tech should be reported to https://github.com/ipfs/ipfs-docs\n - type: checkboxes\n attributes:\n label: Checklist\n description: Please verify the following.\n options:\n - label: I am reporting a documentation issue in this repo, not https://docs.ipfs.tech.\n required: true\n - label: I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) for my issue.\n required: true\n - type: input\n attributes:\n label: Location\n description: |\n If possible, please provide a link to the documentation issue.\n - type: textarea\n attributes:\n label: Description\n description: |\n Please describe your issue.\n | dataset_sample\yaml\ipfs_kubo\.github\ISSUE_TEMPLATE\doc.yml | doc.yml | YAML | 980 | 0.95 | 0.034483 | 0 | react-lib | 824 | 2024-12-17T10:34:26.965690 | GPL-3.0 | false | 1c9b5b6ac99529dea27ef27d83585044 |
name: Enhancement\ndescription: Suggest an improvement to an existing kubo feature.\nlabels:\n - kind/enhancement\nbody:\n - type: markdown\n attributes:\n value: |\n Suggest an enhancement to Kubo (the program). If you'd like to suggest an improvement to the IPFS protocol, please discuss it on [the forum](https://discuss.ipfs.tech).\n\n Issues in this repo must be specific, actionable, and well motivated. They should be starting points for _building_ new features, not brainstorming ideas.\n\n If you have an idea you'd like to discuss, please open a new thread on [the forum](https://discuss.ipfs.tech).\n\n **Example:**\n\n > Reduce memory usage of `ipfs cat` (specific) by buffering less in ... (actionable). This would let me run Kubo on my Raspberry Pi (motivated).\n - type: checkboxes\n attributes:\n label: Checklist\n description: Please verify the following.\n options:\n - label: My issue is specific & actionable.\n required: true\n - label: I am not suggesting a protocol enhancement.\n required: true\n - label: I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) for my issue.\n required: true\n - type: textarea\n attributes:\n label: Description\n description: |\n Please describe your idea. When requesting an enhancement, please be sure to include your motivation and try to be as specific as possible.\n | dataset_sample\yaml\ipfs_kubo\.github\ISSUE_TEMPLATE\enhancement.yml | enhancement.yml | YAML | 1,465 | 0.95 | 0.090909 | 0.034483 | vue-tools | 455 | 2023-10-21T21:10:17.462024 | BSD-3-Clause | false | b1798e937d289c748f31b4eb996aa169 |
name: Feature\ndescription: Suggest a new feature in Kubo.\nlabels:\n - kind/feature\nbody:\n - type: markdown\n attributes:\n value: |\n Suggest a new feature in Kubo (the program). If you'd like to suggest an improvement to the IPFS protocol, please discuss it on [the forum](https://discuss.ipfs.tech).\n\n Issues in this repo must be specific, actionable, and well motivated. They should be starting points for _building_ new features, not brainstorming ideas.\n\n If you have an idea you'd like to discuss, please open a new thread on [the forum](https://discuss.ipfs.tech).\n\n **Example:**\n\n > Add deduplication-optimized chunking of tar files in `ipfs add` (specific) by examining tar headers ... (actionable). This would let me efficiently store and update many versions of code archives (motivated).\n\n - type: checkboxes\n attributes:\n label: Checklist\n description: Please verify the following.\n options:\n - label: My issue is specific & actionable.\n required: true\n - label: I am not suggesting a protocol enhancement.\n required: true\n - label: I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) for my issue.\n required: true\n - type: textarea\n attributes:\n label: Description\n description: |\n Please describe your idea. When requesting a feature, please be sure to include your motivation and and a concrete description of how the feature should work.\n | dataset_sample\yaml\ipfs_kubo\.github\ISSUE_TEMPLATE\feature.yml | feature.yml | YAML | 1,521 | 0.95 | 0.058824 | 0.034483 | awesome-app | 649 | 2024-08-05T00:32:27.336606 | MIT | false | 4403bd226db092cd85e93d93377488a4 |
name: Changelog\n\non:\n pull_request:\n types:\n - opened\n - edited\n - synchronize\n - reopened\n - labeled\n - unlabeled\n paths:\n - '**.go'\n - '**/go.mod'\n - '**/go.sum'\n\njobs:\n changelog:\n if: contains(github.event.pull_request.title, '[skip changelog]') == false &&\n contains(github.event.pull_request.labels.*.name, 'skip/changelog') == false\n runs-on: ubuntu-latest\n name: Changelog\n steps:\n - id: changelog\n env:\n GITHUB_TOKEN: ${{ github.token }}\n ENDPOINT: repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files\n SELECTOR: 'map(select(.filename | startswith("docs/changelogs/"))) | length'\n run: gh api "$ENDPOINT" --jq "$SELECTOR" | xargs -I{} echo "modified={}" | tee -a $GITHUB_OUTPUT\n - if: steps.changelog.outputs.modified == '0'\n env:\n MESSAGE: |\n docs/changelogs/ was not modified in this PR. Please do one of the following:\n - add a changelog entry\n - add `[skip changelog]` to the PR title\n - label the PR with `skip/changelog`\n run: |\n echo "::error::${MESSAGE//$'\n'/%0A}"\n exit 1\n | dataset_sample\yaml\ipfs_kubo\.github\workflows\changelog.yml | changelog.yml | YAML | 1,229 | 0.8 | 0.051282 | 0 | node-utils | 732 | 2024-12-22T15:19:39.704576 | Apache-2.0 | false | 319543e4fa7120771cb39965fa4b8041 |
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed\nname: CodeQL\n\non:\n workflow_dispatch:\n push:\n branches: [ master ]\n pull_request:\n # The branches below must be a subset of the branches above\n branches: [ master ]\n paths-ignore:\n - '**/*.md'\n schedule:\n - cron: '30 12 * * 2'\n\npermissions:\n contents: read # to fetch code (actions/checkout)\n security-events: write # (github/codeql-action/autobuild)\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}\n cancel-in-progress: true\n\njobs:\n codeql:\n if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'\n runs-on: ubuntu-latest\n timeout-minutes: 20\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Setup Go\n uses: actions/setup-go@v5\n with:\n go-version: 1.24.x\n\n # Initializes the CodeQL tools for scanning.\n - name: Initialize CodeQL\n uses: github/codeql-action/init@v3\n with:\n languages: go\n\n - name: Autobuild\n uses: github/codeql-action/autobuild@v3\n\n - name: Perform CodeQL Analysis\n uses: github/codeql-action/analyze@v3\n | dataset_sample\yaml\ipfs_kubo\.github\workflows\codeql-analysis.yml | codeql-analysis.yml | YAML | 1,351 | 0.8 | 0.040816 | 0.075 | python-kit | 33 | 2025-06-25T22:31:34.161786 | BSD-3-Clause | false | 4a1abd479b29bf85158c4eef08c3f38a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.