From 2d5587c06d5606d9c06e68f8075d83484142f920 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 15 Oct 2024 12:26:04 +0200 Subject: [PATCH] Moving fixes --- .github/labeler.yml | 5 +++ .../workflows/crypto.yaml | 17 +++++++-- README.md | 1 + pkgs/crypto/.github/dependabot.yml | 15 -------- pkgs/crypto/.github/workflows/no-response.yml | 37 ------------------- pkgs/crypto/.github/workflows/publish.yaml | 17 --------- pkgs/crypto/CHANGELOG.md | 4 ++ pkgs/crypto/README.md | 2 +- pkgs/crypto/pubspec.yaml | 4 +- 9 files changed, 26 insertions(+), 76 deletions(-) rename pkgs/crypto/.github/workflows/test-package.yml => .github/workflows/crypto.yaml (86%) delete mode 100644 pkgs/crypto/.github/dependabot.yml delete mode 100644 pkgs/crypto/.github/workflows/no-response.yml delete mode 100644 pkgs/crypto/.github/workflows/publish.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml index 62e1bfae..2cd54fe0 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -3,3 +3,8 @@ "package-args": - changed-files: - any-glob-to-any-file: 'pkgs/args/**' + +"package-crypto": + - changed-files: + - any-glob-to-any-file: 'pkgs/crypto/**' + diff --git a/pkgs/crypto/.github/workflows/test-package.yml b/.github/workflows/crypto.yaml similarity index 86% rename from pkgs/crypto/.github/workflows/test-package.yml rename to .github/workflows/crypto.yaml index 1c06eeb8..e660ec36 100644 --- a/pkgs/crypto/.github/workflows/test-package.yml +++ b/.github/workflows/crypto.yaml @@ -1,17 +1,26 @@ name: Dart CI on: - # Run on PRs and pushes to the default branch. + # Run CI on pushes to the main branch, and on PRs against main. push: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/crypto.yaml' + - 'pkgs/crypto/**' pull_request: - branches: [ master ] + branches: [ main ] + paths: + - '.github/workflows/crypto.yaml' + - 'pkgs/crypto/**' schedule: - cron: "0 0 * * 0" - env: PUB_ENVIRONMENT: bot.github +defaults: + run: + working-directory: pkgs/crypto/ + jobs: # Check code formatting and static analysis on a single OS (linux) # against Dart dev. diff --git a/README.md b/README.md index 1205554f..e817891c 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ This repository is home to various Dart packages under the [dart.dev](https://pu | Package | Description | Version | |---|---|---| | [args](pkgs/args/) | Library for defining parsers for parsing raw command-line arguments into a set of options and values. | [![pub package](https://img.shields.io/pub/v/args.svg)](https://pub.dev/packages/args) | +| [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) | ## Publishing automation diff --git a/pkgs/crypto/.github/dependabot.yml b/pkgs/crypto/.github/dependabot.yml deleted file mode 100644 index cde02ad6..00000000 --- a/pkgs/crypto/.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/crypto/.github/workflows/no-response.yml b/pkgs/crypto/.github/workflows/no-response.yml deleted file mode 100644 index ab1ac498..00000000 --- a/pkgs/crypto/.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/crypto/.github/workflows/publish.yaml b/pkgs/crypto/.github/workflows/publish.yaml deleted file mode 100644 index 27157a04..00000000 --- a/pkgs/crypto/.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/crypto/CHANGELOG.md b/pkgs/crypto/CHANGELOG.md index 7e1739f3..f971b68e 100644 --- a/pkgs/crypto/CHANGELOG.md +++ b/pkgs/crypto/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.0.6 + +* Move to `dart-lang/core` monorepo. + ## 3.0.5 * Revert switch to enable fast "sinks" on Wasm because it breaks `dart2js` with diff --git a/pkgs/crypto/README.md b/pkgs/crypto/README.md index 0ab07be7..d2d0a02c 100644 --- a/pkgs/crypto/README.md +++ b/pkgs/crypto/README.md @@ -1,4 +1,4 @@ -[![Dart CI](https://github.com/dart-lang/crypto/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/crypto/actions/workflows/test-package.yml) +[![Dart CI](https://github.com/dart-lang/core/actions/workflows/crypto.yaml/badge.svg)](https://github.com/dart-lang/core/actions/workflows/crypto.yaml) [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) [![package publisher](https://img.shields.io/pub/publisher/crypto.svg)](https://pub.dev/packages/crypto/publisher) diff --git a/pkgs/crypto/pubspec.yaml b/pkgs/crypto/pubspec.yaml index 424bf1f9..8a632ea1 100644 --- a/pkgs/crypto/pubspec.yaml +++ b/pkgs/crypto/pubspec.yaml @@ -1,7 +1,7 @@ name: crypto -version: 3.0.5 +version: 3.0.6 description: Implementations of SHA, MD5, and HMAC cryptographic functions. -repository: https://github.com/dart-lang/crypto +repository: https://github.com/dart-lang/core/main/pkgs/crypto topics: - crypto - cryptography