From 597d290cfb820b825c51c415fd4fac78012db002 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 10 Dec 2024 16:37:37 +0100 Subject: [PATCH] merge fixes --- .github/labeler.yml | 4 ++ .../workflows/sse.yaml | 17 +++++++-- README.md | 1 + pkgs/sse/.github/dependabot.yaml | 14 ------- pkgs/sse/.github/workflows/no-response.yml | 37 ------------------- pkgs/sse/.github/workflows/publish.yaml | 17 --------- pkgs/sse/CHANGELOG.md | 4 +- pkgs/sse/README.md | 2 +- pkgs/sse/pubspec.yaml | 2 +- 9 files changed, 24 insertions(+), 74 deletions(-) rename pkgs/sse/.github/workflows/test-package.yml => .github/workflows/sse.yaml (87%) delete mode 100644 pkgs/sse/.github/dependabot.yaml delete mode 100644 pkgs/sse/.github/workflows/no-response.yml delete mode 100644 pkgs/sse/.github/workflows/publish.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml index eca80bbc2..858a9e756 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -84,6 +84,10 @@ - changed-files: - any-glob-to-any-file: 'pkgs/source_map_stack_trace/**' +'package:sse': + - changed-files: + - any-glob-to-any-file: 'pkgs/sse/**' + 'package:unified_analytics': - changed-files: - any-glob-to-any-file: 'pkgs/unified_analytics/**' diff --git a/pkgs/sse/.github/workflows/test-package.yml b/.github/workflows/sse.yaml similarity index 87% rename from pkgs/sse/.github/workflows/test-package.yml rename to .github/workflows/sse.yaml index 47eeddef8..9e2f21260 100644 --- a/pkgs/sse/.github/workflows/test-package.yml +++ b/.github/workflows/sse.yaml @@ -1,17 +1,28 @@ -name: Dart CI +name: package:sse on: # Run on PRs and pushes to the default branch. push: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/sse.yaml' + - 'pkgs/sse/**' pull_request: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/sse.yaml' + - 'pkgs/sse/**' schedule: - cron: "0 0 * * 0" env: PUB_ENVIRONMENT: bot.github + +defaults: + run: + working-directory: pkgs/sse/ + jobs: # Check code formatting and static analysis on a single OS (linux) # against Dart dev. diff --git a/README.md b/README.md index 50517c36e..a941decc3 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ don't naturally belong to other topic monorepos (like | [mime](pkgs/mime/) | Utilities for handling media (MIME) types, including determining a type from a file extension and file contents. | [![package issues](https://img.shields.io/badge/package:mime-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Amime) | [![pub package](https://img.shields.io/pub/v/mime.svg)](https://pub.dev/packages/mime) | | [oauth2](pkgs/oauth2/) | A client library for authenticating with a remote service via OAuth2 on behalf of a user, and making authorized HTTP requests with the user's OAuth2 credentials. | [![package issues](https://img.shields.io/badge/package:oauth2-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aoauth2) | [![pub package](https://img.shields.io/pub/v/oauth2.svg)](https://pub.dev/packages/oauth2) | | [source_map_stack_trace](pkgs/source_map_stack_trace/) | A package for applying source maps to stack traces. | [![package issues](https://img.shields.io/badge/package:source_map_stack_trace-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_map_stack_trace) | [![pub package](https://img.shields.io/pub/v/source_map_stack_trace.svg)](https://pub.dev/packages/source_map_stack_trace) | +| [sse](pkgs/sse/) | Provides client and server functionality for setting up bi-directional communication through Server Sent Events (SSE) and corresponding POST requests. | [![package issues](https://img.shields.io/badge/package:sse-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asse) | [![pub package](https://img.shields.io/pub/v/sse.svg)](https://pub.dev/packages/sse) | | [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![package issues](https://img.shields.io/badge/package:unified_analytics-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics) | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) | ## Publishing automation diff --git a/pkgs/sse/.github/dependabot.yaml b/pkgs/sse/.github/dependabot.yaml deleted file mode 100644 index bf6b38a4d..000000000 --- a/pkgs/sse/.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/sse/.github/workflows/no-response.yml b/pkgs/sse/.github/workflows/no-response.yml deleted file mode 100644 index ab1ac4984..000000000 --- a/pkgs/sse/.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/sse/.github/workflows/publish.yaml b/pkgs/sse/.github/workflows/publish.yaml deleted file mode 100644 index 27157a046..000000000 --- a/pkgs/sse/.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/sse/CHANGELOG.md b/pkgs/sse/CHANGELOG.md index 63fe5f6c0..0387ba98f 100644 --- a/pkgs/sse/CHANGELOG.md +++ b/pkgs/sse/CHANGELOG.md @@ -1,4 +1,6 @@ -## 4.1.7-wip +## 4.1.7 + +- Move to `dart-lang/tools` monorepo. ## 4.1.6 diff --git a/pkgs/sse/README.md b/pkgs/sse/README.md index 367219cbe..ef514155e 100644 --- a/pkgs/sse/README.md +++ b/pkgs/sse/README.md @@ -1,4 +1,4 @@ -[![Dart CI](https://github.com/dart-lang/sse/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/sse/actions/workflows/test-package.yml) +[![Build Status](https://github.com/dart-lang/tools/actions/workflows/sse.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/sse.yaml) [![pub package](https://img.shields.io/pub/v/sse.svg)](https://pub.dev/packages/sse) [![package publisher](https://img.shields.io/pub/publisher/sse.svg)](https://pub.dev/packages/sse/publisher) diff --git a/pkgs/sse/pubspec.yaml b/pkgs/sse/pubspec.yaml index 407f65417..bd70f7452 100644 --- a/pkgs/sse/pubspec.yaml +++ b/pkgs/sse/pubspec.yaml @@ -1,5 +1,5 @@ name: sse -version: 4.1.7-wip +version: 4.1.7 description: >- Provides client and server functionality for setting up bi-directional communication through Server Sent Events (SSE) and corresponding POST