Skip to content

Commit 500cc48

Browse files
authored
Merge pull request #1 from b2broker/v1
V1
2 parents 4ec57fb + c69cc82 commit 500cc48

22 files changed

Lines changed: 7883 additions & 0 deletions

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./index.js"
3+
}

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "b2broker-ts",
3+
"parserOptions": {
4+
"project": "tsconfig.json"
5+
}
6+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
---
7+
8+
**Describe the bug**
9+
A clear and concise description of what the bug is.
10+
11+
**To Reproduce**
12+
Steps to reproduce the behavior (add some code):
13+
14+
```javascript
15+
{
16+
"extends": "b2broker",
17+
// add your config here
18+
}
19+
```
20+
21+
**Expected behavior**
22+
A clear and concise description of what you expected to happen.
23+
24+
**Please complete the following information:**
25+
26+
- Node.js version: [e.g. v14.9.0]
27+
- NPM version: [e.g. 5.1.2]
28+
- `commitlint-config-b2broker` version [e.g. 1.0.0]
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEATURE-REQUEST]"
5+
labels: enhancement
6+
---
7+
8+
**Is your feature request related to a problem? Please describe.**
9+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
11+
**Describe the solution you'd like**
12+
A clear and concise description of what you want to happen.
13+
14+
**Describe alternatives you've considered**
15+
A clear and concise description of any alternative solutions or features you've considered.
16+
17+
**Additional context**
18+
Add any other context or screenshots about the feature request here.

.github/pgp/key.asc.gpg

6.88 KB
Binary file not shown.

.github/scripts/cleanup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Delete the private key
4+
rm -f .github/pgp/key.asc

.github/scripts/decrypt.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# Descrypt the private key
4+
gpg --quiet --batch --yes --decrypt --passphrase=${PRIVATE_KEY_PASSPHRASE} \
5+
--output ./.github/pgp/key.asc ./.github/pgp/key.asc.gpg
6+
7+
# Set the access permissions
8+
chmod 600 ./.github/pgp/key.asc
9+
10+
# Import the private key
11+
gpg --batch --yes --import ./.github/pgp/key.asc

.github/scripts/encrypt.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# Encrypt PGP key
4+
gpg --batch --symmetric --cipher-algo AES256 \
5+
--output ./.github/pgp/key.asc.gpg --passphrase=${PRIVATE_KEY_PASSPHRASE} \
6+
./.github/pgp/key.asc

.github/scripts/git.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Set pgp siging key
4+
git config user.signingkey ${PGP_KEY_ID}
5+
6+
# Set the custom gpg program (that passes the passphrase to `gpg`)
7+
git config gpg.program ./.github/scripts/gpg.sh
8+
9+
# Sign commits with PGP key
10+
git config commit.gpgsign true

.github/scripts/gpg.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Pass the passphrase to gpg
4+
gpg --batch --pinentry-mode=loopback --passphrase ${PGP_PASSPHRASE} -v $@

0 commit comments

Comments
 (0)