Skip to content

Add documentation on how to use the identity hook #2180

@DanKaplanSES

Description

@DanKaplanSES

describe your issue

Based on the advice I received from #2179 I tried to add an identity hook to my script to troubleshoot why my configuration isn't working as expected.

This is the output of running pre-commit:

Firebase Identity....................................(no files to check)Skipped
- hook id: identity
Firebase Formatter...................................(no files to check)Skipped

I'm sure I'm not using this correctly, but there are no examples showing the right way to use this hook. I'd like the documentation to include an example.

pre-commit --version

pre-commit 2.16.0

.pre-commit-config.yaml

repos:
    - repo: meta
      hooks:
          - id: identity
            name: Firebase Identity
            language: system
            entry: bash -c 'cd firebase/functions && echo "$PWD"'
            pass_filenames: false
            types: [ts]
            files: ^firebase/functions/.*
    - repo: local
      hooks:
          - id: firebase-formatter
            name: Firebase Formatter
            language: system
            entry: bash -c 'cd firebase/functions && echo "$PWD"'
            pass_filenames: false
            types: [ts]
            files: ^firebase/functions/.*

~/.cache/pre-commit/pre-commit.log (if present)

This file didn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions