Skip to content
This repository was archived by the owner on Jan 28, 2024. It is now read-only.

Commit 9b2cb78

Browse files
committed
chore: add supporting files
1 parent 85a9726 commit 9b2cb78

18 files changed

+826
-2
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug_report.yml

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: 🐛 Bug Report
2+
description: File a bug report and help us improve
3+
labels: [bug]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for filing a bug report, any help is greatly appreciated!
10+
11+
- type: checkboxes
12+
id: prerequisites
13+
attributes:
14+
label: Prerequisites
15+
options:
16+
- label: I have written a descriptive issue title
17+
required: true
18+
- label: |
19+
I have searched existing issues to ensure it has not already been reported
20+
required: true
21+
- label: |
22+
I agree to follow the [Code of Conduct](../../CODE_OF_CONDUCT.md) that this project adheres to
23+
required: true
24+
25+
- type: input
26+
id: version
27+
attributes:
28+
label: API/app/plugin version
29+
placeholder: 1.x.x
30+
31+
- type: input
32+
id: node-version
33+
attributes:
34+
label: Node.js version
35+
placeholder: 14.x
36+
validations:
37+
required: true
38+
39+
- type: dropdown
40+
id: os
41+
attributes:
42+
label: Operating system
43+
options:
44+
- Linux
45+
- macOS
46+
- Windows
47+
validations:
48+
required: true
49+
50+
- type: input
51+
id: os-version
52+
attributes:
53+
label: Operating system version (i.e. 20.04, 11.3, 10)
54+
validations:
55+
required: true
56+
57+
- type: textarea
58+
id: description
59+
attributes:
60+
label: Description
61+
description: A clear and concise description of what the bug is.
62+
validations:
63+
required: true
64+
65+
- type: textarea
66+
id: steps-to-reproduce
67+
attributes:
68+
label: Steps to Reproduce
69+
description: |
70+
List of steps, sample code, or a link to code or a project that reproduces the behaviour.
71+
Make sure you place a stack trace inside a [code (```) block](https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks) to avoid linking unrelated issues.
72+
validations:
73+
required: true
74+
75+
- type: textarea
76+
id: expected-behaviour
77+
attributes:
78+
label: Expected Behaviour
79+
description: A clear and concise description of what you expected to happen.

Diff for: .github/ISSUE_TEMPLATE/feature_request.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 🚀 Feature Request
2+
description: Submit a proposal for a new feature
3+
labels: [feature]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for making a feature request, new ideas are greatly appreciated!
10+
11+
- type: checkboxes
12+
id: prerequisites
13+
attributes:
14+
label: Prerequisites
15+
options:
16+
- label: I have written a descriptive title
17+
required: true
18+
- label: |
19+
I have searched existing feature requests to ensure it has not already been proposed
20+
required: true
21+
- label: |
22+
I agree to follow the [Code of Conduct](../../CODE_OF_CONDUCT.md) that this project adheres to
23+
required: true
24+
25+
- type: textarea
26+
id: description
27+
attributes:
28+
label: Description
29+
description: A clear and concise description of what the feature is, and what it would solve.
30+
validations:
31+
required: true
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
Thank you for your pull request. Please provide a description above and review
3+
the requirements below.
4+
5+
Bug fixes and new features should include tests.
6+
7+
Contributors guide: https://github.com/Fdawgs/ydh-community-contacts-api/blob/master/CONTRIBUTING.md
8+
9+
-->
10+
11+
#### Checklist
12+
13+
- [ ] Run `npm test`
14+
- [ ] Documentation has been updated and adheres to the style described in [CONTRIBUTING.md](https://github.com/Fdawgs/ydh-community-contacts-api/blob/master/CONTRIBUTING.md#documentation-style)
15+
- [ ] Commit message adheres to the [Conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) style, following the `@commitlint/config-conventional` config

Diff for: .github/dependabot.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
commit-message:
5+
include: scope
6+
prefix: build
7+
directory: /
8+
schedule:
9+
interval: monthly
10+
open-pull-requests-limit: 25
11+
12+
- package-ecosystem: github-actions
13+
commit-message:
14+
include: scope
15+
prefix: build
16+
directory: /
17+
ignore:
18+
- dependency-name: "actions/*"
19+
update-types:
20+
["version-update:semver-minor", "version-update:semver-patch"]
21+
- dependency-name: "GoogleCloudPlatform/release-please-action"
22+
update-types:
23+
["version-update:semver-minor", "version-update:semver-patch"]
24+
schedule:
25+
interval: monthly
26+
open-pull-requests-limit: 25
27+
28+
- package-ecosystem: npm
29+
commit-message:
30+
include: scope
31+
prefix: build
32+
directory: /
33+
schedule:
34+
interval: monthly
35+
open-pull-requests-limit: 25

Diff for: .github/workflows/automerge.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Automerge Dependabot PRs
2+
3+
on:
4+
workflow_run:
5+
workflows: ["CI"]
6+
types: [completed]
7+
8+
jobs:
9+
on-success:
10+
if: >
11+
github.event.workflow_run.event == 'pull_request' &&
12+
github.event.workflow_run.conclusion == 'success' &&
13+
github.actor == 'dependabot[bot]'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Download Artifact
17+
uses: actions/github-script@v5
18+
with:
19+
script: |
20+
const fs = require('fs');
21+
22+
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
23+
owner: context.repo.owner,
24+
repo: context.repo.repo,
25+
run_id: ${{ github.event.workflow_run.id }},
26+
});
27+
const matchArtifact = artifacts.data.artifacts.filter((artifact) => {
28+
return artifact.name == 'pr';
29+
})[0];
30+
31+
const download = await github.rest.actions.downloadArtifact({
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
artifact_id: matchArtifact.id,
35+
archive_format: 'zip',
36+
});
37+
38+
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
39+
- run: unzip pr.zip
40+
- name: Comment on PR
41+
uses: actions/github-script@v5
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
script: |
45+
const fs = require('fs');
46+
const pull_number = Number(fs.readFileSync('./NR'));
47+
48+
await github.rest.pulls.merge({
49+
merge_method: "merge",
50+
owner: context.repo.owner,
51+
repo: context.repo.repo,
52+
pull_number: pull_number,
53+
});

Diff for: .github/workflows/cd.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
# Allows this workflow to be run manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
release:
12+
name: Create/Update Release Pull Request
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Release Please
16+
id: release
17+
uses: GoogleCloudPlatform/release-please-action@v3
18+
with:
19+
changelog-types: '[ { "type": "feat", "section": "Features", "hidden": false }, { "type": "fix", "section": "Bug Fixes", "hidden": false }, { "type": "build", "section": "Dependencies", "hidden": false }, { "type": "chore", "section": "Miscellaneous", "hidden": false }, { "type": "ci", "section": "Continuous Integration", "hidden": false }, { "type": "perf", "section": "Improvements", "hidden": false }, { "type": "refactor", "section": "Improvements", "hidden": false }, { "type": "style", "section": "Miscellaneous", "hidden": false }, { "type": "docs", "section": "Documentation", "hidden": false }]'
20+
release-type: node

0 commit comments

Comments
 (0)