Skip to main content

hash_algorithm

Creates, updates, deletes, gets or lists a hash_algorithm resource.

Overview

Namehash_algorithm
TypeResource
Idgithub.repos.hash_algorithm

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
hash_algorithmstringThe Git hash algorithm used by this repository. (sha1, sha256) (example: sha1)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_hash_algorithmselectowner, repoReturns the hash algorithm used to store repository objects.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

Returns the hash algorithm used to store repository objects.

SELECT
hash_algorithm
FROM github.repos.hash_algorithm
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;