Skip to content

Commit

Permalink
Merge pull request #247 from yarikoptic/enh-codespell
Browse files Browse the repository at this point in the history
Add codespell: config, workflow (to alert when new typos added) and get typos fixed
  • Loading branch information
estesp committed Dec 13, 2023
2 parents a1208f0 + 06d3e14 commit 29c4cb6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = .git,*.pdf,*.svg,go.sum,.codespellrc,vendor
check-hidden = true
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
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@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion v2/pkg/registry/pusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Push(m types.ManifestList, addedTags []string, ms *store.MemoryStore) (stri
// until containerd/containerd issue #5978 (https://github.com/containerd/containerd/issues/5978) is
// fixed, we can work around this by attempting the push again now that the auth 401 is handled for
// registries like GCR and Quay.io
logrus.Debugf("body re-use error; will retry: %+v", err)
logrus.Debugf("body reuse error; will retry: %+v", err)
err := push(m.Reference, desc, m.Resolver, ms)
if err != nil {
return "", 0, errors.Wrapf(err, "Error pushing manifest list/index to registry: %s", desc.Digest.String())
Expand Down

0 comments on commit 29c4cb6

Please sign in to comment.