diff --git a/.github/labeler.yml b/.github/labeler.yml index 6d477b3173..1fc30162b4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -16,6 +16,10 @@ - changed-files: - any-glob-to-any-file: 'pkgs/http/**' +'package:http2': + - changed-files: + - any-glob-to-any-file: 'pkgs/http2/**' + 'package:http_client_conformance_tests': - changed-files: - - any-glob-to-any-file: 'pkgs/http_client_conformance_tests/**' \ No newline at end of file + - any-glob-to-any-file: 'pkgs/http_client_conformance_tests/**' diff --git a/pkgs/http2/.github/workflows/test-package.yml b/.github/workflows/http2.yaml similarity index 89% rename from pkgs/http2/.github/workflows/test-package.yml rename to .github/workflows/http2.yaml index 9fd5c8a050..0d698dba2f 100644 --- a/pkgs/http2/.github/workflows/test-package.yml +++ b/.github/workflows/http2.yaml @@ -1,11 +1,17 @@ name: Dart CI on: - # Run on PRs and pushes to the default branch. push: - branches: [ master ] + branches: + - main + - master + paths: + - '.github/workflows/http2.yaml' + - 'pkgs/http2/**' pull_request: - branches: [ master ] + paths: + - '.github/workflows/http2.yaml' + - 'pkgs/http2/**' schedule: - cron: "0 0 * * 0" diff --git a/README.md b/README.md index 14e6a7d6b0..0c39b58811 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ and the browser. | [cupertino_http](pkgs/cupertino_http/) | A macOS/iOS Flutter plugin that provides access to the [Foundation URL Loading System](https://developer.apple.com/documentation/foundation/url_loading_system). | [![pub package](https://img.shields.io/pub/v/cupertino_http.svg)](https://pub.dev/packages/cupertino_http) | | [flutter_http_example](pkgs/flutter_http_example/) | An Flutter app that demonstrates how to configure and use `package:http`. | — | | [http](pkgs/http/) | A composable, multi-platform, Future-based API for HTTP requests. | [![pub package](https://img.shields.io/pub/v/http.svg)](https://pub.dev/packages/http) | +| [http2](pkgs/http2/) | A HTTP/2 implementation in Dart. | [![pub package](https://img.shields.io/pub/v/http2.svg)](https://pub.dev/packages/http2) | | [http_client_conformance_tests](pkgs/http_client_conformance_tests/) | A library that tests whether implementations of package:http's `Client` class behave as expected. | | | [http_profile](pkgs/http_profile/) | A library used by HTTP client authors to integrate with the DevTools Network View. | [![pub package](https://img.shields.io/pub/v/http_profile.svg)](https://pub.dev/packages/http_profile) | | [ok_http](pkgs/ok_http/) | An Android Flutter plugin that provides access to the [OkHttp](https://square.github.io/okhttp/) HTTP client and the OkHttp [WebSocket](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-web-socket/index.html) API. | [![pub package](https://img.shields.io/pub/v/ok_http.svg)](https://pub.dev/packages/ok_http) | diff --git a/pkgs/http2/.github/dependabot.yaml b/pkgs/http2/.github/dependabot.yaml deleted file mode 100644 index bf6b38a4d8..0000000000 --- a/pkgs/http2/.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/http2/.github/workflows/health.yaml b/pkgs/http2/.github/workflows/health.yaml deleted file mode 100644 index 9f47a032f7..0000000000 --- a/pkgs/http2/.github/workflows/health.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: Health - -on: - pull_request: - branches: [ master ] - types: [opened, synchronize, reopened, labeled, unlabeled] - -jobs: - health: - uses: dart-lang/ecosystem/.github/workflows/health.yaml@main - with: - coverage_web: false - sdk: dev - permissions: - pull-requests: write diff --git a/pkgs/http2/.github/workflows/no-response.yml b/pkgs/http2/.github/workflows/no-response.yml deleted file mode 100644 index ab1ac49842..0000000000 --- a/pkgs/http2/.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/http2/.github/workflows/post_summaries.yaml b/pkgs/http2/.github/workflows/post_summaries.yaml deleted file mode 100644 index e082efe95a..0000000000 --- a/pkgs/http2/.github/workflows/post_summaries.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Comment on the pull request - -on: - # Trigger this workflow after the Health workflow completes. This workflow will have permissions to - # do things like create comments on the PR, even if the original workflow couldn't. - workflow_run: - workflows: - - Health - - Publish - types: - - completed - -jobs: - upload: - uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main - permissions: - pull-requests: write diff --git a/pkgs/http2/.github/workflows/publish.yaml b/pkgs/http2/.github/workflows/publish.yaml deleted file mode 100644 index 27157a046a..0000000000 --- a/pkgs/http2/.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/http2/CHANGELOG.md b/pkgs/http2/CHANGELOG.md index 8248505f2b..6e482a92b3 100644 --- a/pkgs/http2/CHANGELOG.md +++ b/pkgs/http2/CHANGELOG.md @@ -1,7 +1,8 @@ -## 2.3.1-wip +## 2.3.1 - Require Dart 3.2 - Add topics to `pubspec.yaml` +- Move to `dart-lang/http` monorepo. ## 2.3.0 diff --git a/pkgs/http2/README.md b/pkgs/http2/README.md index 36a8aaa042..edb75c99d6 100644 --- a/pkgs/http2/README.md +++ b/pkgs/http2/README.md @@ -1,4 +1,3 @@ -[![Dart CI](https://github.com/dart-lang/http2/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/http2/actions/workflows/test-package.yml) [![pub package](https://img.shields.io/pub/v/http2.svg)](https://pub.dev/packages/http2) [![package publisher](https://img.shields.io/pub/publisher/http2.svg)](https://pub.dev/packages/http2/publisher) @@ -54,11 +53,3 @@ Future main() async { An example with better error handling is available [here][example]. See the [API docs][api] for more details. - -## Features and bugs - -Please file feature requests and bugs at the [issue tracker][tracker]. - -[tracker]: https://github.com/dart-lang/http2/issues -[api]: https://pub.dev/documentation/http2/latest/ -[example]: https://github.com/dart-lang/http2/blob/master/example/display_headers.dart diff --git a/pkgs/http2/pubspec.yaml b/pkgs/http2/pubspec.yaml index a28d1b1934..7d9e6b851b 100644 --- a/pkgs/http2/pubspec.yaml +++ b/pkgs/http2/pubspec.yaml @@ -1,5 +1,5 @@ name: http2 -version: 2.3.1-wip +version: 2.3.1 description: A HTTP/2 implementation in Dart. repository: https://github.com/dart-lang/http/tree/master/pkgs/http2