Moving fixes (#736)
diff --git a/.github/ISSUE_TEMPLATE/lints.md b/.github/ISSUE_TEMPLATE/lints.md index df93601..7bf2378 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 14b3afe..2559ddc 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 bb82fbc..c64ab41 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 f75f81c..7c894ff 100644 --- a/README.md +++ b/README.md
@@ -15,6 +15,8 @@ | [convert](pkgs/convert/) | Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. | [](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aconvert) | [](https://pub.dev/packages/convert) | | [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acrypto) | [](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. | [](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Afixnum) | [](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. + | [](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Alints) | [](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. | [](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Alogging) | [](https://pub.dev/packages/logging) | | [os_detect](pkgs/os_detect/) | Platform independent OS detection. | [](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aos_detect) | [](https://pub.dev/packages/os_detect) | | [path](pkgs/path/) | A string-based path manipulation library. | [](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apath) | [](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 040ffa6..0000000 --- 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 25571ac..0000000 --- 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 439e796..0000000 --- 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 f416320..0000000 --- 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 be12b32..de9f93b 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 751a72b..a1d2ffb 100644 --- a/pkgs/lints/README.md +++ b/pkgs/lints/README.md
@@ -1,4 +1,4 @@ -[](https://github.com/dart-lang/lints/actions?query=branch%3Amain) +[](https://github.com/dart-lang/core/actions/workflows/lints.yaml) [](https://pub.dev/packages/lints) [](https://pub.dev/packages/lints/publisher)