hash_algorithm
Creates, updates, deletes, gets or lists a hash_algorithm resource.
Overview
| Name | hash_algorithm |
| Type | Resource |
| Id | github.repos.hash_algorithm |
Fields
The following fields are returned by SELECT queries:
- get_hash_algorithm
Response
| Name | Datatype | Description |
|---|---|---|
hash_algorithm | string | The Git hash algorithm used by this repository. (sha1, sha256) (example: sha1) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_hash_algorithm | select | owner, repo | Returns 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.
| Name | Datatype | Description |
|---|---|---|
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
SELECT examples
- get_hash_algorithm
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
;