diff --git a/.github/ISSUE_TEMPLATE/lints.md b/.github/ISSUE_TEMPLATE/lints.md index df93601f..7bf23780 100644 --- a/.github/ISSUE_TEMPLATE/lints.md +++ b/.github/ISSUE_TEMPLATE/lints.md @@ -2,4 +2,4 @@ name: "package:lints" about: "Create a bug or file a feature request against package:lints." labels: "package:lints" ---- \ No newline at end of file +--- diff --git a/.github/labeler.yml b/.github/labeler.yml index 14b3afee..2559ddc2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,4 +1,4 @@ -# Configuration for .github/workflows/pull_request_label.yml. +# Configuration for .github/workflows/pull_request_label.yaml. 'type-infra': - changed-files: @@ -32,6 +32,10 @@ - changed-files: - any-glob-to-any-file: 'pkgs/fixnum/**' +'package:lints': + - changed-files: + - any-glob-to-any-file: 'pkgs/lints/**' + 'package:logging': - changed-files: - any-glob-to-any-file: 'pkgs/logging/**' diff --git a/pkgs/lints/.github/workflows/validate.yml b/.github/workflows/lints.yaml similarity index 67% rename from pkgs/lints/.github/workflows/validate.yml rename to .github/workflows/lints.yaml index bb82fbc4..c64ab413 100644 --- a/pkgs/lints/.github/workflows/validate.yml +++ b/.github/workflows/lints.yaml @@ -1,15 +1,25 @@ -name: validate +name: package:lints -# Controls when the action will run. on: - # Triggers the workflow on push or pull request events but only for the main branch + # Run CI on pushes to the main branch, and on PRs against main. push: branches: [ main ] + paths: + - '.github/workflows/lints.yaml' + - 'pkgs/lints/**' pull_request: branches: [ main ] - # Run weekly + paths: + - '.github/workflows/lints.yaml' + - 'pkgs/lints/**' schedule: - cron: "0 0 * * 0" +env: + PUB_ENVIRONMENT: bot.github + +defaults: + run: + working-directory: pkgs/lints/ jobs: build: diff --git a/README.md b/README.md index f75f81c9..7c894ff0 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ This repository is home to various Dart packages under the [dart.dev](https://pu | [convert](pkgs/convert/) | Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. | [![package issues](https://img.shields.io/badge/package:convert-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aconvert) | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) | | [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [![package issues](https://img.shields.io/badge/package:crypto-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acrypto) | [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) | | [fixnum](pkgs/fixnum/) | Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. | [![package issues](https://img.shields.io/badge/package:fixnum-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Afixnum) | [![pub package](https://img.shields.io/pub/v/fixnum.svg)](https://pub.dev/packages/fixnum) | +| [lints](pkgs/lints/) | Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. + | [![package issues](https://img.shields.io/badge/issues-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Alints) | [![pub package](https://img.shields.io/pub/v/lints.svg)](https://pub.dev/packages/lints) | | [logging](pkgs/logging/) | Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. | [![package issues](https://img.shields.io/badge/package:logging-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Alogging) | [![pub package](https://img.shields.io/pub/v/logging.svg)](https://pub.dev/packages/logging) | | [os_detect](pkgs/os_detect/) | Platform independent OS detection. | [![package issues](https://img.shields.io/badge/package:os_detect-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aos_detect) | [![pub package](https://img.shields.io/pub/v/os_detect.svg)](https://pub.dev/packages/os_detect) | | [path](pkgs/path/) | A string-based path manipulation library. | [![package issues](https://img.shields.io/badge/package:path-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apath) | [![pub package](https://img.shields.io/pub/v/path.svg)](https://pub.dev/packages/path) | diff --git a/pkgs/lints/.github/ISSUE_TEMPLATE/config.yml b/pkgs/lints/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 040ffa6b..00000000 --- a/pkgs/lints/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,9 +0,0 @@ -blank_issues_enabled: true -contact_links: - - name: Propose a new lint - url: https://github.com/dart-lang/linter/issues/new?assignees=&labels=enhancement%2C+lint+request&template=lint-request.md&title= - about: Request a new lint rule. - - name: Report an issue with a lint - url: https://github.com/dart-lang/linter/issues/new?assignees=&labels=&template=issue-report.md&title= - about: Create an issue report for an existing lint. - diff --git a/pkgs/lints/.github/ISSUE_TEMPLATE/lint-propoposal.md b/pkgs/lints/.github/ISSUE_TEMPLATE/lint-propoposal.md deleted file mode 100644 index 25571ac0..00000000 --- a/pkgs/lints/.github/ISSUE_TEMPLATE/lint-propoposal.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Add an existing lint to the `core` or `recommended` rule set -about: Propose adding an existing lint rule to the `core` or `recommended` rule set. -title: '' -labels: type-lint -assignees: '' - ---- - -**Describe the rule you'd like to see added and to what rule set** -Include as much detail as you can. - -**Additional context** -Add any other considerations or context here. diff --git a/pkgs/lints/.github/dependabot.yaml b/pkgs/lints/.github/dependabot.yaml deleted file mode 100644 index 439e796b..00000000 --- a/pkgs/lints/.github/dependabot.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Dependabot configuration file. -version: 2 - -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: monthly - labels: - - autosubmit diff --git a/pkgs/lints/.github/workflows/publish.yaml b/pkgs/lints/.github/workflows/publish.yaml deleted file mode 100644 index f4163209..00000000 --- a/pkgs/lints/.github/workflows/publish.yaml +++ /dev/null @@ -1,14 +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 diff --git a/pkgs/lints/CHANGELOG.md b/pkgs/lints/CHANGELOG.md index be12b329..de9f93b6 100644 --- a/pkgs/lints/CHANGELOG.md +++ b/pkgs/lints/CHANGELOG.md @@ -1,6 +1,7 @@ ## 5.1.1 - Updated the SDK lower bound to 3.6. +- Move to `dart-lang/core` monorepo. ## 5.1.0 diff --git a/pkgs/lints/README.md b/pkgs/lints/README.md index 751a72b5..a1d2ffb9 100644 --- a/pkgs/lints/README.md +++ b/pkgs/lints/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://github.com/dart-lang/lints/workflows/validate/badge.svg)](https://github.com/dart-lang/lints/actions?query=branch%3Amain) +[![Dart CI](https://github.com/dart-lang/core/actions/workflows/lints.yaml/badge.svg)](https://github.com/dart-lang/core/actions/workflows/lints.yaml) [![pub package](https://img.shields.io/pub/v/lints.svg)](https://pub.dev/packages/lints) [![package publisher](https://img.shields.io/pub/publisher/lints.svg)](https://pub.dev/packages/lints/publisher)