From 9a9a7e510a01c0bd2c21493085773c86548df7c8 Mon Sep 17 00:00:00 2001 From: Moritz Date: Fri, 20 Dec 2024 14:02:11 +0100 Subject: [PATCH] Moving fixes --- .github/labeler.yml | 4 ++++ .../workflows/pubspec_parse.yaml | 17 ++++++++++++++--- README.md | 1 + pkgs/pubspec_parse/.github/dependabot.yml | 15 --------------- .../.github/workflows/publish.yaml | 17 ----------------- pkgs/pubspec_parse/CHANGELOG.md | 3 ++- pkgs/pubspec_parse/README.md | 2 +- pkgs/pubspec_parse/pubspec.yaml | 2 +- 8 files changed, 23 insertions(+), 38 deletions(-) rename pkgs/pubspec_parse/.github/workflows/test-package.yml => .github/workflows/pubspec_parse.yaml (83%) delete mode 100644 pkgs/pubspec_parse/.github/dependabot.yml delete mode 100644 pkgs/pubspec_parse/.github/workflows/publish.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml index bfef3164e..3ab79c051 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -92,6 +92,10 @@ - changed-files: - any-glob-to-any-file: 'pkgs/pub_semver/**' +'package:pubspec_parse': + - changed-files: + - any-glob-to-any-file: 'pkgs/pubspec_parse/**' + 'package:source_map_stack_trace': - changed-files: - any-glob-to-any-file: 'pkgs/source_map_stack_trace/**' diff --git a/pkgs/pubspec_parse/.github/workflows/test-package.yml b/.github/workflows/pubspec_parse.yaml similarity index 83% rename from pkgs/pubspec_parse/.github/workflows/test-package.yml rename to .github/workflows/pubspec_parse.yaml index 922d6c28e..ebe705912 100644 --- a/pkgs/pubspec_parse/.github/workflows/test-package.yml +++ b/.github/workflows/pubspec_parse.yaml @@ -1,17 +1,28 @@ -name: Dart CI +name: package:pubspec_parse on: # Run on PRs and pushes to the default branch. push: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/pubspec_parse.yaml' + - 'pkgs/pubspec_parse/**' pull_request: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/pubspec_parse.yaml' + - 'pkgs/pubspec_parse/**' schedule: - cron: "0 0 * * 0" env: PUB_ENVIRONMENT: bot.github + +defaults: + run: + working-directory: pkgs/pubspec_parse/ + jobs: # Check code formatting and static analysis on a single OS (linux) # against Dart dev. diff --git a/README.md b/README.md index d1a1d0416..0201aa284 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ don't naturally belong to other topic monorepos (like | [package_config](pkgs/package_config/) | Support for reading and writing Dart Package Configuration files. | [![package issues](https://img.shields.io/badge/package:package_config-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apackage_config) | [![pub package](https://img.shields.io/pub/v/package_config.svg)](https://pub.dev/packages/package_config) | | [pool](pkgs/pool/) | Manage a finite pool of resources. Useful for controlling concurrent file system or network requests. | [![package issues](https://img.shields.io/badge/package:pool-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apool) | [![pub package](https://img.shields.io/pub/v/pool.svg)](https://pub.dev/packages/pool) | | [pub_semver](pkgs/pub_semver/) | Versions and version constraints implementing pub's versioning policy. This is very similar to vanilla semver, with a few corner cases. | [![package issues](https://img.shields.io/badge/package:pub_semver-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apub_semver) | [![pub package](https://img.shields.io/pub/v/pub_semver.svg)](https://pub.dev/packages/pub_semver) | +| [pubspec_parse](pkgs/pubspec_parse/) | Simple package for parsing pubspec.yaml files with a type-safe API and rich error reporting. | [![package issues](https://img.shields.io/badge/package:pubspec_parse-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apubspec_parse) | [![pub package](https://img.shields.io/pub/v/pubspec_parse.svg)](https://pub.dev/packages/pubspec_parse) | | [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) | | [source_maps](pkgs/source_maps/) | A library to programmatically manipulate source map files. | [![package issues](https://img.shields.io/badge/package:source_maps-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_maps) | [![pub package](https://img.shields.io/pub/v/source_maps.svg)](https://pub.dev/packages/source_maps) | | [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) | diff --git a/pkgs/pubspec_parse/.github/dependabot.yml b/pkgs/pubspec_parse/.github/dependabot.yml deleted file mode 100644 index cde02ad6a..000000000 --- a/pkgs/pubspec_parse/.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/pubspec_parse/.github/workflows/publish.yaml b/pkgs/pubspec_parse/.github/workflows/publish.yaml deleted file mode 100644 index 27157a046..000000000 --- a/pkgs/pubspec_parse/.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/pubspec_parse/CHANGELOG.md b/pkgs/pubspec_parse/CHANGELOG.md index 251d4cc47..a5f0f1a30 100644 --- a/pkgs/pubspec_parse/CHANGELOG.md +++ b/pkgs/pubspec_parse/CHANGELOG.md @@ -1,9 +1,10 @@ -## 1.4.0-wip +## 1.4.0 - Require Dart 3.2 - Seal the `Dependency` class. - Set `Pubspec.environment` to non-nullable. - Remove deprecated package_api_docs rule +- Move to `dart-lang/tools` monorepo. ## 1.3.0 diff --git a/pkgs/pubspec_parse/README.md b/pkgs/pubspec_parse/README.md index 916742a63..1d04aa486 100644 --- a/pkgs/pubspec_parse/README.md +++ b/pkgs/pubspec_parse/README.md @@ -1,4 +1,4 @@ -[![Dart CI](https://github.com/dart-lang/pubspec_parse/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/pubspec_parse/actions/workflows/test-package.yml) +[![Build Status](https://github.com/dart-lang/tools/actions/workflows/pubspec_parse.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/pubspec_parse.yaml) [![pub package](https://img.shields.io/pub/v/pubspec_parse.svg)](https://pub.dev/packages/pubspec_parse) [![package publisher](https://img.shields.io/pub/publisher/pubspec_parse.svg)](https://pub.dev/packages/pubspec_parse/publisher) diff --git a/pkgs/pubspec_parse/pubspec.yaml b/pkgs/pubspec_parse/pubspec.yaml index cb29d02d5..9d1c8db76 100644 --- a/pkgs/pubspec_parse/pubspec.yaml +++ b/pkgs/pubspec_parse/pubspec.yaml @@ -1,5 +1,5 @@ name: pubspec_parse -version: 1.4.0-wip +version: 1.4.0 description: >- Simple package for parsing pubspec.yaml files with a type-safe API and rich error reporting.