diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1bcf93a..a27da8b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,21 +1,20 @@ name: publish to pub.dev - on: push: branches: - main paths: - - 'pubspec.yaml' + - "pubspec.yaml" jobs: publishing: runs-on: ubuntu-latest steps: - - name: 'Checkout' + - name: "Checkout" uses: actions/checkout@v2 # required! - - - name: '>> Dart package <<' + + - name: ">> Dart package <<" uses: k-paxian/dart-package-publisher@master with: accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d682306..fcee45f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,10 +3,10 @@ on: branches: - main paths-ignore: - - '.github/**' - - '.vscode/**' - - 'test/**' - + - ".github/**" + - ".vscode/**" + - "test/**" + name: release-please jobs: release-please: @@ -17,8 +17,9 @@ jobs: release-type: simple package-name: release-please-action version-file: version.txt - extra-files: | + extra-files: | pubspec.yaml + dartdoc_options.yaml changelog-types: | [ { "type": "feat", "section": "Features", "hidden": false }, @@ -28,4 +29,3 @@ jobs: { "type": "ci","section": "Miscellaneous", "hidden": true }, { "type": "docs", "section": "Documentation", "hidden": false } ] - diff --git a/.github/workflows/score.yml b/.github/workflows/score.yml index f07cd2e..2c30ff2 100644 --- a/.github/workflows/score.yml +++ b/.github/workflows/score.yml @@ -4,8 +4,8 @@ on: branches: - main paths: - - '**.dart' - - 'pubspec.yaml' + - "**.dart" + - "pubspec.yaml" jobs: package-analysis: diff --git a/dartdoc_options.yaml b/dartdoc_options.yaml new file mode 100644 index 0000000..4febf49 --- /dev/null +++ b/dartdoc_options.yaml @@ -0,0 +1,4 @@ +dartdoc: + link-to-source: + root: "." + uriTemplate: "https://github.com/benthillerkus/betrayal/blob/1.0.0-dev.5/%f%#L%l%" # x-release-please-version diff --git a/lib/src/image.dart b/lib/src/image.dart index b2897cf..bbfb43d 100644 --- a/lib/src/image.dart +++ b/lib/src/image.dart @@ -75,7 +75,7 @@ Continuing under the assumption that only the file extension is wrong"""); setIcon = (id, plugin) => plugin.removeImage(id); } - /// The call into the plugin to set the image for a [TrayIcon] with the given [id]. + /// The call into the plugin to set the image for a [TrayIcon] with the given [Id]. @protected late final Future Function(Id id, BetrayalPlugin plugin) setIcon; }