Skip to content

Commit 5f64d20

Browse files
authored
Merge pull request #657 from linear-b/add-languages
Update context-variables.md
2 parents 933cdfb + 9ab9afc commit 5f64d20

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/context-variables.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,17 @@ has:
268268
The `repo` context includes metadata related to the repo.
269269

270270
| Values | Type | Description |
271-
| ------------------- | --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
272-
| `repo` | Map | Includes the info related to the current repo |
273-
| `repo.age` | Integer | Number of days since first commit (of any user) |
274-
| `repo.author_age` | Integer | number of days since first commit to this repo |
275-
| `repo.blame` | [`GitBlame`](#gitblamep-structure) | The percentage each user's lines in a file, the list includes all changed files in the branch. The list is sorted by the `ratio` field |
276-
| `repo.contributors` | [`Contributor`](#contributor-structure) | List of contributors in the repo |
277-
| `repo.git_activity` | [`GitActivity`](#gitactivity-structure) | Per file and user, the number of lines changed every week for the last 52 weeks |
278-
| `repo.name` | String | Repository name |
279-
| `repo.owner` | String | Repository owner account name |
280-
| `repo.visibility` | String | The visibility of the source branch repo. Value is one of: `private`, `internal`, or `public` |
271+
| ------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
272+
| `repo` | Map | Includes the info related to the current repo |
273+
| `repo.age` | Integer | Number of days since first commit (of any user) |
274+
| `repo.author_age` | Integer | number of days since first commit to this repo |
275+
| `repo.blame` | [`GitBlame`](#gitblamep-structure) | The percentage of each user's lines in a file, the list includes all changed files in the branch. The `ratio` field sorts the list |
276+
| `repo.contributors` | [`Contributor`](#contributor-structure) | List of contributors in the repo |
277+
| `repo.git_activity` | [`GitActivity`](#gitactivity-structure) | Per file and user, the number of lines changed every week for the last 52 weeks |
278+
| `repo.languages` | Map | Lists the languages used in the specified repository. The returned object is a map of key-value pairs representing a language and the percentage of bytes in that language within the code. |
279+
| `repo.name` | String | Repository name |
280+
| `repo.owner` | String | Repository owner account name |
281+
| `repo.visibility` | String | The visibility of the source branch repo. Value is one of: `private`, `internal`, or `public` |
281282

282283
#### `source`
283284

0 commit comments

Comments
 (0)