Property |
Default |
Supports |
Description |
---|---|---|---|
|
|
As described above, you can set almost all configuration values in a remote configuration file. The The URL used isn't exactly the HTTPS URL that you see in your browser. Instead, it's the content URL as seen in the GitHub API. If your organization is called "org," your repository "my-repo," and you store your configuration in a subdirectory called "conf" in that repository, the URL would look like this: ttps://api.github.com/repos/org/my-repo/contents/conf/{+path } Keep the strange-looking You can't simply remove a configuration from the remote configuration file to "unset" it. To remove a setting, set it to |
|
|
|
ENV and system property |
Automatically register repositories - If a |
Property |
Default |
Supports |
Description |
---|---|---|---|
|
|
Enable sending metrics to a StatsD service. See Logging and Monitoring. |
Property |
Default |
Supports |
Description |
---|---|---|---|
|
|
ENV and system properties for exactly one token. Vector format only in the configuration file. |
The GitHub user - Anonymous access to GitHub's APIs is limited. That's why you configure a token that the program uses to authenticate all calls to the GitHub API. The setting The default makes Acrolinx for GitHub an unregistered user at GitHub. That won't work. |
|
|
ENV and system property for single value |
Securing requests - GitHub can sign the payload of requests with a shared secret. If you don't define secrets, nothing will be validated. An attacker could make you call their service and present your OAuth token (gh-token) to them! You can define one shared secret as a string or many as a vector. One of the many must validate. Fingerprinting is expensive at runtime as it must hash the complete body. The secret may also have umlauts like ä, ö, or other non-ascii characters. Make sure to save your EDN or JSON file in UTF-8 without byte-order-mark for that to work. |
Property |
Default |
Supports |
Description |
---|---|---|---|
|
|
ENV and system property |
HTTP - Acrolinx for GitHub opens an HTTP port which GitHub connects to. |
|
undefined |
ENV and system property |
User database - To authenticate users in the built-in dashboard, the configuration needs to have a user-database file. See Logging and Monitoring. The default is undefined, in which case this program tries to load the following files:
If no files are found, the dashboard isn't available. |
|
|
ENV and system property |
Buffer events - Acrolinx for GitHub allows event buffering from GitHub before it passes the documents to Acrolinx to check. It uses an in-memory queue for this. The queue schedules the requests of different GitHub users fairly. The GitHub event is received immediately and put on a channel. The items stored in the queue are just the incoming events in JSON form. They don't consume much memory. So, it's safe to make this queue quite large, for example 1000. Larger values usually hint that Acrolinx can't handle the load. If the queue is full, Acrolinx for GitHub drops new incoming events. |
|
|
ENV and system property |
Waiting for GitHub to settle - Sometimes GitHub doesn't have our files ready for download even though we've received the webhook. According to their support, this is just how things are and we should wait a little. You can configure how long to delay each item. The delay takes the time already waited in the queue into account. |
|
(15 min) |
ENV and system property |
Limit processing time - When you submit a pull request, some files might bring unexpected complexity and take a long time for Acrolinx to process. Network connections could also be slow, and foreign APIs might show problems that consume too much time. To work around all of this and maintain service, you can configure a maximum processing time. You'll need to set this locally. You can also use this setting to stop processing pull request events that have reached the allowed time limit. |
Property |
Default |
Supports |
Description |
---|---|---|---|
|
|
ENV and system property |
Acrolinx URL - The host and port of Acrolinx. Required. See Connect to Acrolinx. |
|
|
ENV and system property |
Authenticating with a token - You can create one in the Users section when you sign in to Acrolinx. Copy that string and paste it into the configuration in this key. |
|
|
ENV and system property |
Authentication with username and password - For backwards compatibility, Acrolinx for GitHub also supports authentication against Acrolinx via username and password. We’ll remove this in the future as it can compromise your user credentials and doesn't support Acrolinx setups with SSO or federated authentication. |
|
|
ENV and system property |
Faster results with parallel checking - On systems with high load, you can configure Acrolinx for GitHub to submit several checks to Acrolinx in parallel. If the environment allows it, events with more relevant files than this threshold will split their workload on multiple threads. Larger numbers lead to more serial checking, smaller numbers to more parallel checking. Uses Java's ForkJoin framework under the hood. |
|
|
ENV and system property |
Limit parallel requests - Acrolinx for GitHub lets you limit the number of parallel requests to Acrolinx. When you do this, the maximum number of parallel requests made to Acrolinx is based on the smallest of the following values: |
|
ENV and system property |
Map metadata names to document custom field names (currently a private beta) - Acrolinx for Git Hosting lets you use metadata values from the YAML front matter of a Markdown file to populate the corresponding document custom fields with that information. When you do this, you can use Target Batch Mapping in Markdown files. This is available at all configuration levels of the Git Hosting integration. The configuration option takes an EDN map for configuring EDN files and a JSON object for configuring JSON files. If a metadata point named “foo” corresponds to a document custom field named “bar,” the EDN configuration files {:metadata {"foo" "bar"}} JSON configuration files {":metadata": {"foo": "bar"}} NoticeIf you want to enable Target Batch Mapping for Markdown files, you'll need to specify this configuration option. |
|
|
|
ENV and system property |
Limit file size - Limit the size of the files that get processed for pull requests and baseline checks. This helps prevent out of memory issues. You'll want to set this in cases where a repository has files that are more than 1 MB. Specify this as ImportantThis configuration option isn't available for push events. |
|
Map a particular file format to the file extensions pertaining to that file format - This semantic grouping of file extensions instructs the Git Hosting integration to process files that match the file extensions specified in the See Supported Input Types for more information on the supported file types. These are the base values for ImportantYou don’t need to specify these file types in your configuration files because Acrolinx for GitHub and ADO Git will support the processing of these by default. {"XML" #{"xml" "xhtm" "xhtml" "svg" "resx" "xlf" "xliff" "dita" "ditamap" "ditaval"} "HTML" #{"html" "htm"} "MARKDOWN" #{"markdown" "mdown" "mkdn" "mkd" "md"} "TEXT" #{"txt"} "JAVA" #{"java"} "CPP" #{"c" "h" "cc" "cpp" "cxx" "c++" "hh" "hpp" "hxx" "h++" "dic"} "YAML" #{"yaml" "yml"} "PROPERTIES" #{"properties"} "JSON" #{"json"} "PDF" #{"pdf"} "MS_OFFICE" #{"docx" "docm" "pptx" "pptm" "xlsx" "xlsm" "vsdx"} } If you would like Acrolinx to process a novel file format, you would need to specify it as follows: EDN {:filetypes {"NEW_FILE_FORMAT" #{"foo", "bar"}}} JSON { ":filetypes": { "NEW_FILE_FORMAT": [ "foo", "bar" ] } } |
||
|
Ignore the file extensions pertaining to a specific format - Instruct the Git Hosting integration to ignore files that match the file extensions specified. |
||
|
(5 min) |
ENV and system property |
Set a maximum wait time for a check - For each check, you can configure a limit. Set a maximum wait time, and define useful polling intervals. This is set to 300 seconds (5 minutes) by default. |
Currently, Acrolinx for GitHub supports pull request events and push events. You can further filter what Acrolinx for GitHub checks with the options described in Define What Acrolinx for Git Hosting Checks.
Property |
Default |
Supports |
Description |
---|---|---|---|
|
|
ENV, system properties, global remote configuration, and repository-specific configuration |
Acrolinx for GitHub can create comments on GitHub and set the status of a commit. Acrolinx for GitHub creates comments on GitHub to show the results of an Acrolinx check. With statuses, you can use Acrolinx for GitHub as a quality Gateway. For this, you use the setting For detailed information, see Check Results. |
|
|
ENV, system properties, global remote configuration, and repository-specific configuration |
When Acrolinx for GitHub and ADO Git doesn’t check any files in a pull request, it doesn’t automatically update the status of the pull request. You can adjust this if you prefer to receive pull request status updates regardless. When you set |