<commit_before>---
next: docs/deployment.md
---

# Extensions

While Probot doesn't have an official extension API (yet), there are a handful of reusable utilities that have been extracted from existing apps.

## Config

[probot-config](https://github.com/getsentry/probot-config) is an extension for sharing configs between between repositories.


```js
const getConfig = require('probot-config')

module.exports = robot => {
  robot.on('push', context => {
    // Will look for 'test.yml' inside the '.github' folder
    const config = await getConfig(context, 'test.yml')

    context.log(config, 'Loaded config')
  })
}
```

Use the `_extends` option in your configuration file to extend settings from another repository.

For example, given `.github/test.yml`:

```yaml<commit_msg>Fix lint error introduced in #390<commit_after>---
next: docs/deployment.md
---

# Extensions

While Probot doesn't have an official extension API (yet), there are a handful of reusable utilities that have been extracted from existing apps.

## Config

[probot-config](https://github.com/getsentry/probot-config) is an extension for sharing configs between between repositories.


```js
const getConfig = require('probot-config')

module.exports = robot => {
  robot.on('push', async context => {
    // Will look for 'test.yml' inside the '.github' folder
    const config = await getConfig(context, 'test.yml')

    context.log(config, 'Loaded config')
  })
}
```

Use the `_extends` option in your configuration file to extend settings from another repository.

For example, given `.github/test.yml`:

```yaml
{'fraction_non_alphanumeric': 0.1195244055068836, 'fraction_numerical': 0.0018773466833541927, 'mean_word_length': 4.174757281553398, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2802892', 'n_tokens_mistral': 483, 'n_tokens_neox': 450, 'n_words': 167}