diff --git a/.github/labeler.yml b/.github/labeler.yml index 1cc4b2058..e29f70e76 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -111,3 +111,7 @@ 'package:unified_analytics': - changed-files: - any-glob-to-any-file: 'pkgs/unified_analytics/**' + +'package:yaml_edit': + - changed-files: + - any-glob-to-any-file: 'pkgs/yaml_edit/**' diff --git a/pkgs/yaml_edit/.github/workflows/test-package.yml b/.github/workflows/yaml_edit.yaml similarity index 91% rename from pkgs/yaml_edit/.github/workflows/test-package.yml rename to .github/workflows/yaml_edit.yaml index 5e0ec597a..ffea62cb3 100644 --- a/pkgs/yaml_edit/.github/workflows/test-package.yml +++ b/.github/workflows/yaml_edit.yaml @@ -1,17 +1,28 @@ -name: Dart CI +name: package:yaml_edit on: # Run on PRs and pushes to the default branch. push: branches: [ main ] + paths: + - '.github/workflows/yaml_edit.yaml' + - 'pkgs/yaml_edit/**' pull_request: branches: [ main ] + paths: + - '.github/workflows/yaml_edit.yaml' + - 'pkgs/yaml_edit/**' schedule: - cron: "0 0 * * 0" env: PUB_ENVIRONMENT: bot.github + +defaults: + run: + working-directory: pkgs/yaml_edit/ + jobs: # Check code formatting and static analysis on a single OS (linux) # against Dart dev. diff --git a/README.md b/README.md index 79d1dde21..14e775cf5 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ don't naturally belong to other topic monorepos (like | [source_span](pkgs/source_span/) | Provides a standard representation for source code locations and spans. | [![package issues](https://img.shields.io/badge/package:source_span-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_span) | [![pub package](https://img.shields.io/pub/v/source_span.svg)](https://pub.dev/packages/source_span) | | [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) | +| [yaml_edit](pkgs/yaml_edit/) | A library for YAML manipulation with comment and whitespace preservation. | [![package issues](https://img.shields.io/badge/package:yaml_edit-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ayaml_edit) | [![pub package](https://img.shields.io/pub/v/yaml_edit.svg)](https://pub.dev/packages/yaml_edit) | ## Publishing automation diff --git a/pkgs/yaml_edit/.github/dependabot.yml b/pkgs/yaml_edit/.github/dependabot.yml deleted file mode 100644 index cde02ad6a..000000000 --- a/pkgs/yaml_edit/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Dependabot configuration file. -# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates -version: 2 - -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: monthly - labels: - - autosubmit - groups: - github-actions: - patterns: - - "*" diff --git a/pkgs/yaml_edit/.github/workflows/no-response.yml b/pkgs/yaml_edit/.github/workflows/no-response.yml deleted file mode 100644 index ab1ac4984..000000000 --- a/pkgs/yaml_edit/.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/yaml_edit/.github/workflows/post_summaries.yaml b/pkgs/yaml_edit/.github/workflows/post_summaries.yaml deleted file mode 100644 index 9b61da8e1..000000000 --- a/pkgs/yaml_edit/.github/workflows/post_summaries.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Comment on the pull request - -on: - # Trigger this workflow after the Publish 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: - - Publish - types: - - completed - -jobs: - upload: - uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main - permissions: - pull-requests: write diff --git a/pkgs/yaml_edit/.github/workflows/publish.yaml b/pkgs/yaml_edit/.github/workflows/publish.yaml deleted file mode 100644 index 7be78dd06..000000000 --- a/pkgs/yaml_edit/.github/workflows/publish.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# A CI configuration to auto-publish pub packages. - -name: Publish - -on: - pull_request: - branches: [ main ] - 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 - with: - write-comments: false diff --git a/pkgs/yaml_edit/CHANGELOG.md b/pkgs/yaml_edit/CHANGELOG.md index df7e3ef31..9342e9f0e 100644 --- a/pkgs/yaml_edit/CHANGELOG.md +++ b/pkgs/yaml_edit/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2.2.2-wip +## 2.2.2 - Suppress warnings previously printed to `stdout` when parsing YAML internally. - Fix error thrown when inserting duplicate keys to different maps in the same @@ -14,6 +14,8 @@ - Require Dart 3.1 +- Move to `dart-lang/tools` monorepo. + ## 2.2.1 - Require Dart 3.0 diff --git a/pkgs/yaml_edit/pubspec.yaml b/pkgs/yaml_edit/pubspec.yaml index dfbe62b1b..8127a1253 100644 --- a/pkgs/yaml_edit/pubspec.yaml +++ b/pkgs/yaml_edit/pubspec.yaml @@ -1,5 +1,5 @@ name: yaml_edit -version: 2.2.2-wip +version: 2.2.2 description: >- A library for YAML manipulation with comment and whitespace preservation. repository: https://github.com/dart-lang/tools/tree/main/pkgs/yaml_edit