Skip to content

Commit

Permalink
Merge branch 'master' into configure-zappr
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRogalskiy authored Nov 13, 2021
2 parents d860b39 + 7c04fec commit c15a962
Show file tree
Hide file tree
Showing 13 changed files with 84 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"packages": ["packages/docsearch-*"],
"node": "16"
}
82 changes: 62 additions & 20 deletions .zappr.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,66 @@
# this is how you configure zappr
# a more exhaustive description is at
# https://zappr.readthedocs.io/en/latest/setup
autobranch:
pattern: '{number}-{title}'
length: 60
approvals:
minimum: 1 # PR needs at least 1 approval for compliant reasons
pattern: "^(:\\+1:|👍|approved)$" # write a comment to the PR with "approved" or ":+1"
ignore: pr_opener
veto:
pattern: "^(:\\-1:|👎|rejected)$" # write a comment to the PR with "rejected" or ":-1"
from:
orgs:
- AlexRogalskiy
collaborators: true
specification:
title:
minimum-length:
enabled: true
length: 8
body:
minimum-length:
enabled: true
length: 8
contains-url: true
contains-issue-number: true
template:
differs-from-body: true
commit:
message:
patterns:
# see CONTRIBUTING.md
- "^(feat|fix|docs|style|refactor|perf|test|chore)\\([a-zA-Z0-9-._]+\\):.{3,}"
pull-request:
labels:
additional: true

# uncomment this if you want to change anything
# autobranch:
# pattern: '{number}-{title}'
# length: 60
# commit:
# message:
# patterns:
# - '#[0-9]+'
# approvals:
# by default, an approval is the thumbs up emoji only: ^:\\+1:$
# uncomment this line to change the approval pattern to "lgtm" at the beginning of the comment
# pattern: "^lgtm"
# minimum: 2
# ignore: none
# pattern: "^(:\\+1:|F44D)$"
# veto:
# pattern: "^(:\\-1:|F44E)$"
# specification:
# title:
# minimum-length:
# enabled: true
# length: 8
# body:
# minimum-length:
# enabled: true
# length: 8
# contains-url: true
# contains-issue-number: true
# template:
# differs-from-body: true
# pull-request:
# labels:
# additional: true

# by default, every pull request requires two approvals
# uncomment this line to change it to three
# minimum: 3

# by default, the pull request opener can approve its own pull request
# uncomment this line to ignore approvals from the pull request opener
# (there is also `last_committer` and `both`)
# ignore: pr_opener

# by default, zappr counts everyone as a valid approver
# uncomment these lines to change it to only collaborators
# (you can also specify `orgs` and `users` and define `groups`)
# from:
# collaborators: true
Empty file modified gh-md-toc
100755 → 100644
Empty file.
5 changes: 5 additions & 0 deletions sandbox.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser"
}
Empty file modified scripts/docker-build.sh
100755 → 100644
Empty file.
Empty file modified scripts/docker-compose-start.sh
100755 → 100644
Empty file.
Empty file modified scripts/docker-compose-stop.sh
100755 → 100644
Empty file.
13 changes: 13 additions & 0 deletions scripts/getBundleBanner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {execSync} from 'child_process';

export function getBundleBanner(pkg) {
const lastCommitHash = execSync('git rev-parse --short HEAD')
.toString()
.trim();
const version = process.env.SHIPJS
? pkg.version
: `${pkg.version} (UNRELEASED ${lastCommitHash})`;
const authors = '© Algolia, Inc. and contributors';

return `/*! ${pkg.name} ${version} | MIT License | ${authors} | ${pkg.homepage} */`;
}
Empty file modified tilt_modules/restart_process/release.sh
100755 → 100644
Empty file.
Empty file modified tilt_modules/restart_process/test/fail.sh
100755 → 100644
Empty file.
Empty file modified tilt_modules/restart_process/test/test-custom.sh
100755 → 100644
Empty file.
Empty file modified tilt_modules/restart_process/test/test-docker.sh
100755 → 100644
Empty file.
Empty file modified tilt_modules/restart_process/test/test.sh
100755 → 100644
Empty file.

0 comments on commit c15a962

Please sign in to comment.