<commit_before># cesium-concierge

__Hello! I'm <NAME>, a GitHub bot for [Cesium](https://github.com/AnalyticalGraphicsInc/cesium). I automate
common certain GitHub tasks, and can currently:__
- Post a reminder comment to closed issues that have Google Group links in them
- Post a suggestion to update `CHANGES.md` on newly-opened pull requests, and/or to update licenses if files in Third-party folders have changed.
## Building

Clone this repository:
```bash
$ git clone https://github.com/AnalyticalGraphicsInc/cesium-concierge
```
Install the dependencies:
```bash
$ cd cesium-concierge && npm install
```

And run:
```bash
$ npm start
```

## Setup
`cesium-concierge` requires a few settings before working. These can be set in three ways:
- As environment variables
- As keys in `./config.json`

> Note: These settings take effect hierarchically, with environment variables > arguments > `config.json`

The possible settings are:

| Name | Type | Description | Required? |
| --- | --- | --- | --- |
| `secret` | `string` | Repository secret to verify __incoming__ WebHook requests from GitHub | ✓
| `repositories:{full_name}` | `object` | Settings specific to the repository `{full_name}`. | ✓
| `repositories:{full_name}:gitHubToken` | `string` | Token used to verify __outgoing__ requests to GitHub repository | ✓
| `repositories:{full_name}:thirdPartyFolders` | `string` | Comma-separated list of folders in which to look for changed files in pull request to remind user to update License. | X
| `repositories:{full_name}:claUrl` | `string` | The GitHub API URL to the CLA file in JSON form. If undefined it disables CLA checking. See [here](https://developer.github.com/v3/repos/contents/#get-contents) for how the URL should look. _Example:_ https://api.github.com/repos/AnalyticalGraphicsInc/cesium-concierge/contents/specs/data/config/CLA.json | X
| `repositories:{full_name}:contributorsUrl` | `string` | URL` to `CONTRIBUTORS.md` relative to repository root. If `undefined`, checking for first time contributors will be disabled. | X
| `repositories:{full_name}:maxDaysSinceUpdate` | `number` | "Bump" pull requests older than this number of days ago | X
| `port` | `number: default 5000` | Port on which to listen to incoming requests | X
| `listenPath` | `string: default"/"` | Path on which to listen for incoming requests | X

> Note: `full_name` is the repository name in the form `{organization}/{repository}`. For example: `AnalyticalGraphicsInc/cesium`<commit_msg>Fix merge conflict<commit_after># cesium-concierge

__Hello! I'm Cesium Conierge, a GitHub bot for [Cesium](https://github.com/AnalyticalGraphicsInc/cesium). I automate
common certain GitHub tasks, and can currently:__
- Post a reminder comment to closed issues that have Google Group links in them
- Post a suggestion to update `CHANGES.md` on newly-opened pull requests, and/or to update licenses if files in Third-party folders have changed.
## Building

Clone this repository:
```bash
$ git clone https://github.com/AnalyticalGraphicsInc/cesium-concierge
```
Install the dependencies:
```bash
$ cd cesium-concierge && npm install
```

And run:
```bash
$ npm start
```

## Setup
`cesium-concierge` requires a few configuration settings before working. These are loaded, in the following order of priority, from:

* The repository's `.concierge/config.json` file.
* Environment variables.
* Built-in defaults.

The table below describes all the possible configuration variables, as well as their default values if any. 

| Name | Type | Description | Required? | Default
| --- | --- | --- | --- | --- |
| `secret` | `string` | Repository secret to verify __incoming__ WebHook requests from GitHub | ✓ | 
| `repositories:{full_name}` | `object` | Settings specific to the repository `{full_name}`. | ✓ | 
| `repositories:{full_name}:gitHubToken` | `string` | Token used to verify __outgoing__ requests to GitHub repository | ✓ | 
| `repositories:{full_name}:thirdPartyFolders` | `string` | Comma-separated list of folders in which to look for changed files in pull request to remind user to update License. | X | `[]`
| `repositories:{full_name}:claUrl` | `string` | The GitHub API URL to the CLA file in JSON form. See [here](https://developer.github.com/v3/repos/contents/#get-contents) for what the URL should look like. _Example:_ https://api.github.com/repos/AnalyticalGraphicsInc/cesium-concierge/contents/specs/data/config/CLA.json | X | _Disabled if not set._
| `repositories:{full_name}:contributorsUrl` | `string` | URL to `CONTRIBUTORS.md` relative to repository root. | X | _Disabled if not set._
| `repositories:{full_name}:maxDaysSinceUpdate` | `number` | "Bump" pull requests older than this number of days ago. | X | `30`
| `port` | `number` | Port on which to listen to incoming requests | X | `5000`
| `listenPath` | `string` | Path on which to listen for incoming requests | X | `"/"`

> Note: `full_name` is the repository name in the form `{organization}/{repository}`. For example: `AnalyticalGraphicsInc/cesium`
{'fraction_non_alphanumeric': 0.11723726114649681, 'fraction_numerical': 0.0023885350318471337, 'mean_word_length': 4.756013745704467, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 9, 'https://': 8, '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': '1102756', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1417, 'n_words': 548}