-
Notifications
You must be signed in to change notification settings - Fork 0
Automation (remediation) documentation #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d885c62
docs: document remediation, automations, and automation credits
TheMythologist 3348b3b
docs: make Automations the overarching feature, remediation a sub-fea…
TheMythologist 3fb8473
feat: smooth scroll
TheMythologist 56ce566
docs: absent or ignored repo config still follows org automations
TheMythologist 282ac6c
Updated mintlify pages
mintlify[bot] 9e027b6
Updated mintlify pages
zeyu2001 8f36460
Updated mintlify pages
zeyu2001 8f6ba8b
Updated mintlify pages
mintlify[bot] 4fa3830
Updated mintlify pages
zeyu2001 f38857f
fix: image
zeyu2001 5cbdafe
Updated mintlify pages
mintlify[bot] effcee9
Updated mintlify pages
mintlify[bot] 70cdaf0
Updated mintlify pages
zeyu2001 6eeaedd
fix: image
zeyu2001 ba4f912
fix: image
zeyu2001 c50766a
docs: restore general automations framing and polish automation pages
zeyu2001 fa8f40c
Updated mintlify pages
zeyu2001 60fc525
Updated mintlify pages
zeyu2001 1d6898c
Updated mintlify pages
zeyu2001 e2a357e
fix: card
zeyu2001 405c7bf
Updated mintlify pages
zeyu2001 f3e3c05
docs: generalize automations intro and de-em-dash the Autofix tip
maekuss 3b4df08
Updated mintlify pages
mintlify[bot] 612f4f3
Updated mintlify pages
mintlify[bot] 04ac9fd
Updated mintlify pages
mintlify[bot] 2b5510f
Updated mintlify pages
mintlify[bot] 1d36cf8
Updated mintlify pages
mintlify[bot] 6add203
Updated mintlify pages
mintlify[bot] 31be006
fix: address automation docs review feedback
zeyu2001 e2996e2
Merge remote-tracking branch 'origin/main' into docs/remediation-auto…
zeyu2001 f801db2
chore: leave docs styles unchanged
zeyu2001 1dd9a6f
docs: name automation run history image
zeyu2001 b60202e
docs: restore remediation PR screenshot
zeyu2001 a816159
Updated mintlify pages
mintlify[bot] 8dd3f3e
docs: add automation credits top-up screenshot
zeyu2001 aabe052
fix: billing
zeyu2001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,78 +1,57 @@ | ||
| --- | ||
| title: "Trial and billing" | ||
| description: "Understand Code Review payment methods, trials, seats, and subscription lifecycle." | ||
| title: "Code Review Billing" | ||
| description: "Free trial, seats, spillover, and subscription lifecycle for Code Review." | ||
| --- | ||
|
|
||
| Code Review billing is based on Code Review seats. A seat covers one developer whose pull requests or merge requests can be reviewed by Hacktron. | ||
| Each developer with Code Review enabled counts as one seat. Seats can be assigned manually, or Hacktron can assign seats automatically when developers open pull requests in covered repositories. | ||
|
|
||
| Organization owners manage payment methods, invoices, billing details, subscription state, and promotion codes from **Billing**. | ||
| Code Review is billed as a monthly subscription. At the end of each billing period, your organization is charged for the number of seats that were active during that period. | ||
|
|
||
| ## Start a trial | ||
| <Info> | ||
| If a developer no longer needs Code Review, remove their seat from **People**. | ||
|
|
||
| The removed seat can be reassigned to someone else during the same billing period, but removing a seat in the middle of the billing period will not reduce the seat count for that period. | ||
| </Info> | ||
|
|
||
| Code Review has a free trial for new organizations. | ||
| ## Start your Free Trial | ||
|
|
||
| <Steps> | ||
| <Step title="Open Billing">Go to **Billing** as an organization owner.</Step> | ||
| <Step title="Start the trial"> | ||
| Review and accept the terms of service and start the trial. No payment method | ||
| is required during the free trial. | ||
| <Step title="Open Billing"> | ||
| Open Billing from the side bar. You must be an organization owner to see this. | ||
|
|
||
|  | ||
| </Step> | ||
| <Step title="Start the Code Review Trial"> | ||
| Review and accept the terms of service and start the trial. No payment method is required during the free trial. | ||
| </Step> | ||
| <Step title="Start the Code Review trial"> | ||
| Once the trial is active, Hacktron starts running code reviews on all | ||
| covered repositories. | ||
| <Step title="Done!"> | ||
| Once the trial is active, Hacktron starts running code reviews on all covered repositories. | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| ## How seats are billed | ||
|
|
||
| Each developer with Code Review enabled counts as one Code Review seat. | ||
| Seats can be assigned manually, or Hacktron can assign seats automatically | ||
| when developers open pull requests in covered repositories. | ||
|
|
||
| Code Review is billed as a monthly subscription. At the end of each billing period, | ||
| your organization is charged for the number of Code Review seats that were active | ||
| during that period. | ||
| ## End Trial Early | ||
|
|
||
| <Info> | ||
| If a developer no longer needs Code Review, remove their seat from **People**. | ||
|
|
||
| The removed seat can be reassigned to someone else during the same billing period, | ||
| but removing a seat in the middle of the billing period will not reduce the | ||
| seat count for the current billing period. | ||
|
|
||
| </Info> | ||
|
|
||
| ## End a trial early | ||
|
|
||
| Ending the trial early allows you to start the paid plan immediately and enable [spillover usage](/code-review/spillover-usage). | ||
| Ending the trial early allows you to start the paid plan immediately and enable [**spillover usage**](https://docs.hacktron.ai/code-review/spillover-usage). | ||
|
|
||
| <Steps> | ||
| <Step title="Open Billing">Go to **Billing** as an organization owner.</Step> | ||
| <Step title="End the trial early"> | ||
| Go to **Billing** and end the trial early to start the paid plan immediately. | ||
|
|
||
| <img src="/images/end_early.png" alt="End trial early" /> | ||
|
|
||
| <Frame> | ||
|  | ||
| </Frame> | ||
| </Step> | ||
| <Step title="Enable spillover"> | ||
| Go to **Usage** to enable spillover billing to continue reviewing pull requests or merge requests | ||
| after the pooled review limit is reached. | ||
| Go to **Usage** to enable spillover billing to continue reviewing pull requests or merge requests after the pooled review limit is reached. | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| ## Cancellations and resubscription | ||
| ## Cancellations and resubscriptions | ||
|
|
||
| If you cancel during a trial or paid subscription, Code Review remains available | ||
| until the end of the current trial or billing period. After cancellation takes effect, | ||
| new pull requests or merge requests are no longer reviewed. | ||
| If you cancel during a trial or paid subscription, Code Review remains available until the end of the current trial or billing period. After cancellation takes effect, new pull requests or merge requests are no longer reviewed. | ||
|
|
||
| If the organization resubscribes later, Code Review starts as a paid subscription. | ||
| The free trial does not restart. | ||
| If the organization resubscribes later, Code Review starts as a paid subscription. The free trial does not restart. | ||
|
|
||
| <Card | ||
| title="Spillover and usage" | ||
| icon="chart-line" | ||
| href="/code-review/spillover-usage" | ||
| > | ||
| <Card title="Spillover and usage" icon="chart-line" href="/code-review/spillover-usage"> | ||
| Understand pooled review limits and overage pricing. | ||
| </Card> | ||
| </Card> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| title: "Automation credits" | ||
| description: "Understand how you buy automation credit, how each run deducts them, and how auto top-up keeps your balance stocked." | ||
| --- | ||
|
|
||
| [Automations](/platform/automations/overview) run on shared organization automation credits. Every [remediation](/platform/automations/remediation) run, whether triggered manually from a finding or by an automation, deducts credits based on what the run costs when it completes. | ||
|
|
||
| Automation credits are organization-wide. They are separate from Code Review seats and your Whitebox Scan credits. | ||
|
|
||
| ## How credits work | ||
|
|
||
| <Steps> | ||
| <Step title="Keep a balance"> | ||
| <Tip> | ||
| All organizations with an active [Code Review](/code-review/overview) subscription start with \$50 in automation credits. | ||
| </Tip> | ||
|
|
||
| Buy credits from **Billing** (access only for Organization Owners), and / or turn on [auto top-up](#auto-top-up) to keep the balance above a threshold you set. | ||
|
|
||
|  | ||
|
|
||
| </Step> | ||
| <Step title="Checkout"> | ||
| Complete any required card authentication (such as 3D Secure). The purchased credits are added to the organization balance after the charge succeeds. | ||
| </Step> | ||
| <Step title="Runs check the balance"> | ||
| A remediation run only starts while the organization has credits. When the balance runs out, new runs don't start and the Billing page shows that automations are paused. | ||
| </Step> | ||
| <Step title="Runs deduct on completion"> | ||
| Each run's cost is deducted from the balance once, when the run completes. Costs vary with the size of the run. | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| ## Auto top-up | ||
|
|
||
| Auto top-up buys credits automatically when the balance drops below a threshold, so your automations keep running without manual purchases. | ||
|
|
||
| Set it up on the Billing page under your automation credit balance: | ||
|
|
||
| - **Trigger**: the balance that starts a top-up. | ||
| - **Target**: the balance the top-up buys back up to. Your target must be above the trigger. | ||
| - **Monthly limit**: an optional cap on how many credits auto top-up may buy per month. | ||
|
|
||
| Auto top-up requires a saved payment method and charges the card on file without an interactive checkout. If a top-up charge fails, your automations stay paused until the balance is topped up manually or the card issue is resolved. | ||
|
|
||
| ## Related docs | ||
|
|
||
| <Columns cols={2}> | ||
| <Card title="Remediation" icon="wrench" href="/platform/automations/remediation"> | ||
| Trigger an AI-generated fix for a finding. | ||
| </Card> | ||
|
|
||
| <Card title="Automations" icon="bolt" href="/platform/automations/overview"> | ||
| Auto-remediate qualifying findings and notify your team. | ||
| </Card> | ||
| </Columns> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| --- | ||
| title: "Automations" | ||
| description: "Configure actions that run on triggers. Automate routine work such as remediation." | ||
| --- | ||
|
|
||
| Automations act for you. Configure the rules that qualify a match, and when one comes in, Hacktron fires the automation: its **actions** run, and **notifiers** alert your team over Slack or email. | ||
|
|
||
| <Tip> | ||
| **Remediation** is the first available action. It starts a | ||
| [remediation](/platform/automations/remediation) run that fixes the finding, | ||
| and we'll expand automations with more actions over time. | ||
| </Tip> | ||
|
|
||
| Automations live under **Automations** in the dashboard sidebar. Organization **Admins** create and manage automations; other members can view them. | ||
|
|
||
| ## Create an automation | ||
|
|
||
| <Steps> | ||
| <Step title="Create"> | ||
| On the **Automations** page, select **New automation** and give it a name. | ||
|
|
||
|  | ||
|
|
||
| </Step> | ||
| <Step title="Pick environments"> | ||
| Choose the repositories and [applications](/platform/context/applications) the automation covers. You can limit each entry to specific branches (up to two) or leave the branch selection empty to cover all branches. | ||
|
|
||
|  | ||
|
|
||
| </Step> | ||
| <Step title="Configure settings"> | ||
| On the **Settings** tab, set: | ||
|
|
||
| - **Triggers**: when the automation runs, for example a PR scan finding, it's narrowed by the rules you set, the severity levels that qualify, and scope rules that limit it to specific repositories or applications. | ||
| - **Actions**: what the automation does. **Remediation** starts a [remediation](/platform/automations/remediation) run for the matching finding. | ||
| - **Notifiers**: who hears about a run, whether it's a Slack channel, email recipients from your organization's members, or both. | ||
|
|
||
|  | ||
|
|
||
| </Step> | ||
| <Step title="Save"> | ||
| Select **Save**. An automation needs at least one environment, one trigger, and one action to run. Incomplete automations show an **Incomplete** badge and cannot be enabled. A save that removes required configuration disables the automation until it is complete again. | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| ## When an automation fires | ||
|
|
||
| When a new finding matches an enabled automation's trigger, severity rules, scope rules, and environment (including any branch limits), the automation fires: a **Remediation** action starts a remediation run, which uses [automation credits](/platform/automations/credits). After taking action, we send you a notification. | ||
|
|
||
| Each finding is fixed at most once, a finding that already has a remediation run won't fire automations again. | ||
|
|
||
| ### Notifications | ||
|
|
||
| - **Slack**: Hacktron posts a message to your channel linking the finding. The Hacktron bot joins public channels automatically; for a private channel, invite the bot to the channel first. | ||
| - **Email**: Hacktron emails the recipients you choose from your organization's members. | ||
|
|
||
| Notifications are best-effort, if one fails to send, it never blocks the remediation run itself. | ||
|
|
||
| ## Run history | ||
|
|
||
| The **Run history** tab lists every run your automation has fired, with its status, the environment it matched, and the credits it used. Runs matched through an application are attributed to that application. | ||
|
|
||
| Run statuses mirror [remediation outcomes](/platform/automations/remediation#outcomes): **Running**, **Success**, **No fix needed**, **False positive**, and **Failed**. You can filter the history by status and search it. | ||
|
|
||
|  | ||
|
|
||
| ## Related docs | ||
|
|
||
| <Columns cols={2}> | ||
| <Card title="Remediation" icon="wrench" href="/platform/automations/remediation"> | ||
| How a remediation run works and where the fix lands. | ||
| </Card> | ||
|
|
||
| <Card title="Automation credits" icon="coins" href="/platform/automations/credits"> | ||
| How runs are billed and how to keep a balance with auto top-up. | ||
| </Card> | ||
| </Columns> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update screenshots once the new credits/billing page is pushed