Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codespell workflow #1002

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
skip = .git,*.pdf,*.svg,pnpm-lock.yaml,yarn.lock
# some modules, parts of regexes, and variable names to ignore, some
# misspellings in fixtures/external responses we do not own
ignore-words-list = caf,bu,nwo,nd,kernal,crate,unparseable,couldn,defintions
21 changes: 21 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Codespell
uses: codespell-project/actions-codespell@v2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public async Task StopAsync(CancellationToken cancellationToken)
// Using "CancellationToken.None" ensures that the application doesn't stop until the telemetry data is flushed.
//
// If you want to use the "cancellationToken" argument, make sure to configure "HostOptions.ShutdownTimeout" with a sufficiently large duration,
// and silence the eventual "OperationCanceledException" exception. Otherwise, you will still be at risk of loosing telemetry data.
// and silence the eventual "OperationCanceledException" exception. Otherwise, you will still be at risk of losing telemetry data.
var successfullyFlushed = await telemetryClient.FlushAsync(CancellationToken.None);
if (!successfullyFlushed)
{
Expand Down
2 changes: 1 addition & 1 deletion server/Tingle.Dependabot/Extensions/ILoggerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ internal static partial class ILoggerExtensions
[LoggerMessage(400, LogLevel.Debug, "Creating/Updating schedules for repository '{RepositoryId}' in project '{ProjectId}'")]
public static partial void SchedulesUpdating(this ILogger logger, string? repositoryId, string? projectId);

[LoggerMessage(401, LogLevel.Error, "Timer call back does not have correct argument. Exepected '{ExpectedType}' but got '{ActualType}'")]
[LoggerMessage(401, LogLevel.Error, "Timer call back does not have correct argument. Expected '{ExpectedType}' but got '{ActualType}'")]
public static partial void SchedulesTimerInvalidCallbackArgument(this ILogger logger, string? expectedType, string? actualType);

[LoggerMessage(402, LogLevel.Warning, "Schedule was missed for {RepositoryId}({UpdateId}) in project '{ProjectId}'. Triggering now ...")]
Expand Down
2 changes: 1 addition & 1 deletion server/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ param location string = resourceGroup().location
@description('Name of the resources. Make sure it is unique e.g. dependabotcontoso to avoid conflicts or failures')
param name string = 'dependabot'

@description('JSON array string fo projects to setup. E.g. [{"url":"https://dev.azure.com/tingle/dependabot","token":"dummy","AutoComplete":true}]')
@description('JSON array string for projects to setup. E.g. [{"url":"https://dev.azure.com/tingle/dependabot","token":"dummy","AutoComplete":true}]')
param projectSetups string = '[]'

@description('Access token for authenticating requests to GitHub.')
Expand Down
2 changes: 1 addition & 1 deletion server/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type": "string",
"defaultValue": "[[]",
"metadata": {
"description": "JSON array string fo projects to setup. E.g. [{\"url\":\"https://dev.azure.com/tingle/dependabot\",\"token\":\"dummy\",\"AutoComplete\":true}]"
"description": "JSON array string for projects to setup. E.g. [{\"url\":\"https://dev.azure.com/tingle/dependabot\",\"token\":\"dummy\",\"AutoComplete\":true}]"
}
},
"githubToken": {
Expand Down
Loading