diff --git a/.github/labeler.yml b/.github/labeler.yml index 62e1bfae..cc876daf 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -3,3 +3,7 @@ "package-args": - changed-files: - any-glob-to-any-file: 'pkgs/args/**' + +"package-convert": + - changed-files: + - any-glob-to-any-file: 'pkgs/convert/**' diff --git a/pkgs/convert/.github/workflows/test-package.yml b/.github/workflows/convert.yaml similarity index 85% rename from pkgs/convert/.github/workflows/test-package.yml rename to .github/workflows/convert.yaml index 24df98db..5ad0deb2 100644 --- a/pkgs/convert/.github/workflows/test-package.yml +++ b/.github/workflows/convert.yaml @@ -1,17 +1,26 @@ name: Dart CI on: - # Run on PRs and pushes to the default branch. + # Run CI on pushes to the main branch, and on PRs against main. push: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/convert.yaml' + - 'pkgs/convert/**' pull_request: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/convert.yaml' + - 'pkgs/convert/**' schedule: - cron: "0 0 * * 0" - env: PUB_ENVIRONMENT: bot.github +defaults: + run: + working-directory: pkgs/convert/ + jobs: # Check code formatting and static analysis on a single OS (linux) # against Dart dev. diff --git a/README.md b/README.md index 1205554f..5e76e7be 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ This repository is home to various Dart packages under the [dart.dev](https://pu | Package | Description | Version | |---|---|---| | [args](pkgs/args/) | Library for defining parsers for parsing raw command-line arguments into a set of options and values. | [![pub package](https://img.shields.io/pub/v/args.svg)](https://pub.dev/packages/args) | +| [convert](pkgs/convert/) | Utilities for converting between data representations. | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) | ## Publishing automation diff --git a/pkgs/convert/.github/dependabot.yaml b/pkgs/convert/.github/dependabot.yaml deleted file mode 100644 index bf6b38a4..00000000 --- a/pkgs/convert/.github/dependabot.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Dependabot configuration file. -version: 2 - -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: monthly - labels: - - autosubmit - groups: - github-actions: - patterns: - - "*" diff --git a/pkgs/convert/.github/workflows/no-response.yml b/pkgs/convert/.github/workflows/no-response.yml deleted file mode 100644 index ab1ac498..00000000 --- a/pkgs/convert/.github/workflows/no-response.yml +++ /dev/null @@ -1,37 +0,0 @@ -# A workflow to close issues where the author hasn't responded to a request for -# more information; see https://github.com/actions/stale. - -name: No Response - -# Run as a daily cron. -on: - schedule: - # Every day at 8am - - cron: '0 8 * * *' - -# All permissions not specified are set to 'none'. -permissions: - issues: write - pull-requests: write - -jobs: - no-response: - runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'dart-lang' }} - steps: - - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e - with: - # Don't automatically mark inactive issues+PRs as stale. - days-before-stale: -1 - # Close needs-info issues and PRs after 14 days of inactivity. - days-before-close: 14 - stale-issue-label: "needs-info" - close-issue-message: > - Without additional information we're not able to resolve this issue. - Feel free to add more info or respond to any questions above and we - can reopen the case. Thanks for your contribution! - stale-pr-label: "needs-info" - close-pr-message: > - Without additional information we're not able to resolve this PR. - Feel free to add more info or respond to any questions above. - Thanks for your contribution! diff --git a/pkgs/convert/.github/workflows/publish.yaml b/pkgs/convert/.github/workflows/publish.yaml deleted file mode 100644 index 27157a04..00000000 --- a/pkgs/convert/.github/workflows/publish.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# A CI configuration to auto-publish pub packages. - -name: Publish - -on: - pull_request: - branches: [ master ] - push: - tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] - -jobs: - publish: - if: ${{ github.repository_owner == 'dart-lang' }} - uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main - permissions: - id-token: write # Required for authentication using OIDC - pull-requests: write # Required for writing the pull request note diff --git a/pkgs/convert/CHANGELOG.md b/pkgs/convert/CHANGELOG.md index f7890683..8fc7ff5b 100644 --- a/pkgs/convert/CHANGELOG.md +++ b/pkgs/convert/CHANGELOG.md @@ -1,9 +1,10 @@ -## 3.1.2-wip +## 3.1.2 - Require Dart 3.4 - Add chunked decoding support (`startChunkedConversion`) for `CodePage` encodings. - Upper-cast the return type of the decoder from `List` to `Uint8List`. +- Move to `dart-lang/core` monorepo. ## 3.1.1 diff --git a/pkgs/convert/README.md b/pkgs/convert/README.md index 67e91aea..4efd4b0b 100644 --- a/pkgs/convert/README.md +++ b/pkgs/convert/README.md @@ -1,4 +1,4 @@ -[![Dart CI](https://github.com/dart-lang/convert/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/convert/actions/workflows/test-package.yml) +[![Dart CI](https://github.com/dart-lang/core/actions/workflows/convert.yaml/badge.svg)](https://github.com/dart-lang/core/actions/workflows/convert.yaml) [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) [![package publisher](https://img.shields.io/pub/publisher/convert.svg)](https://pub.dev/packages/convert/publisher) diff --git a/pkgs/convert/pubspec.yaml b/pkgs/convert/pubspec.yaml index 9f0b1099..9050f995 100644 --- a/pkgs/convert/pubspec.yaml +++ b/pkgs/convert/pubspec.yaml @@ -1,9 +1,9 @@ name: convert -version: 3.1.2-wip +version: 3.1.2 description: >- Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. -repository: https://github.com/dart-lang/convert +repository: https://github.com/dart-lang/core/main/pkgs/convert environment: sdk: ^3.4.0