-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from linear-b/github-server-fixes
GitHub server fixes
- Loading branch information
Showing
9 changed files
with
139 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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 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,67 @@ | ||
# -*- mode: yaml -*- | ||
# This example configuration for provides basic automations to get started with gitStream. | ||
# View the gitStream quickstart for more examples: https://docs.gitstream.cm/examples/ | ||
manifest: | ||
version: 1.0 | ||
|
||
triggers: | ||
exclude: | ||
branch: | ||
- r/(Dependabot|dependabot|renovate|Renovate)/ | ||
|
||
automations: | ||
# Add a label that indicates how many minutes it will take to review the PR. | ||
estimated_time_to_review: | ||
on: | ||
- pr_created | ||
- commit | ||
if: | ||
- true | ||
run: | ||
- action: add-label@v1 | ||
args: | ||
label: "{{ calc.etr }} min review" | ||
color: {{ colors.red if (calc.etr >= 20) else ( colors.yellow if (calc.etr >= 5) else colors.green ) }} | ||
# Inform PR authors when they fail to reference Jira tickets in the PR title or description. | ||
label_missing_jira_info: | ||
if: | ||
- {{ not (has.jira_ticket_in_title or has.jira_ticket_in_desc) }} | ||
run: | ||
- action: add-label@v1 | ||
args: | ||
label: "missing-jira" | ||
color: {{ colors.red }} | ||
- action: add-comment@v1 | ||
args: | ||
comment: | | ||
This PR is missing a Jira ticket reference in the title or description. | ||
Please add a Jira ticket reference to the title or description of this PR. | ||
# Post a comment that lists the best experts for the files that were modified. | ||
explain_code_experts: | ||
on: | ||
- pr_created | ||
- commit | ||
if: | ||
- true | ||
run: | ||
- action: explain-code-experts@v1 | ||
args: | ||
gt: 10 | ||
|
||
|
||
# +----------------------------------------------------------------------------+ | ||
# | Custom Expressions | | ||
# | https://docs.gitstream.cm/how-it-works/#custom-expressions | | ||
# +----------------------------------------------------------------------------+ | ||
|
||
calc: | ||
etr: {{ branch | estimatedReviewTime }} | ||
|
||
has: | ||
jira_ticket_in_title: {{ pr.title | includes(regex=r/\b[A-Za-z]+-\d+\b/) }} | ||
jira_ticket_in_desc: {{ pr.description | includes(regex=r/atlassian.net\/browse\/\w{1,}-\d{3,4}/) }} | ||
|
||
colors: | ||
red: 'b60205' | ||
yellow: 'fbca04' | ||
green: '0e8a16' |
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.
Binary file modified
BIN
-1.56 KB
(98%)
docs/screenshots/create-new-github-app-setup-post-installation.png
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.