Skip to content

Commit 0989aab

Browse files
authored
Initial commit
0 parents  commit 0989aab

27 files changed

Lines changed: 1566 additions & 0 deletions

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
curly_bracket_next_line =false
11+
spaces_around_operators = true
12+
indent_brace_style = K&R
13+
14+
[*.py]
15+
indent_style = space
16+
indent_size = 4
17+
18+
[Makefile]
19+
indent_style = tab
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the bug: what you experienced
11+
12+
<!-- A clear and concise description of the bug -->
13+
14+
## Steps to Reproduce
15+
16+
<!-- Steps to reproduce the behavior -->
17+
18+
1. Go to '…'
19+
2. Click on '….'
20+
3. Scroll down to '….'
21+
4. See error
22+
23+
## Expected behavior: what you expected
24+
25+
<!-- please provide a clear and concise description of what you
26+
expected to happen. -->
27+
28+
### Screenshots
29+
30+
<!-- If applicable, add screenshots to help explain your problem. -->
31+
32+
## Additional context
33+
34+
<!-- Add any other context about the problem here. -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
## Is your feature request related to a problem? Please describe.
11+
12+
<!-- Please provide a clear and concise description of the problem. -->
13+
14+
## Describe the solution you'd like
15+
16+
<!-- A clear and concise description of what you want to happen. -->
17+
18+
## Describe alternatives you've considered
19+
20+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
21+
22+
## Additional context
23+
24+
<!-- Add any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Please ensure your PR title is brief and descriptive for a good changelog entry -->
2+
<!-- Link to issue if there is one -->
3+
<!-- markdownlint-disable -->
4+
5+
Fixes #
6+
7+
<!-- markdownlint-restore -->
8+
9+
<!-- Describe what the changes are -->
10+
11+
## Proposed Changes
12+
13+
1.
14+
2.
15+
3.
16+
17+
## Readiness Checklist
18+
19+
- [ ] If documentation is needed for this change, has that been included in this pull request
20+
21+
### Reviewing Maintainer
22+
23+
- [ ] Label as `breaking` if this is a large fundamental change
24+
- [ ] Label as either `automation`, `bug`, `documentation`, `enhancement`, `infrastructure`, or `performance`

.github/dependabot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
---
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
commit-message:
13+
prefix: fix
14+
prefix-development: chore
15+
include: scope
16+
groups:
17+
minor-and-patch:
18+
applies-to: version-updates
19+
update-types:
20+
- "minor"
21+
- "patch"

.github/issue-branch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
mode: immediate
3+
autoLinkIssue: true
4+
autoCloseIssue: true
5+
autoDeleteBranch: true
6+
conventionalPrTitles: true
7+
branchName: '${issue.number}-${issue.title}'
8+
openDraftPR: true

.github/workflows/codeql.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: "CodeQL Advanced"
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
push:
7+
branches: ["main"]
8+
pull_request:
9+
branches: ["main"]
10+
schedule:
11+
- cron: "23 23 * * 1"
12+
13+
permissions: read-all
14+
15+
jobs:
16+
analyze:
17+
name: Analyze (${{ matrix.language }})
18+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-22.04' }}
19+
permissions:
20+
# required for all workflows
21+
security-events: write
22+
23+
# required to fetch internal or private CodeQL packs
24+
packages: read
25+
26+
# only required for workflows in private repositories
27+
actions: read
28+
contents: read
29+
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
include:
34+
- language: python # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
35+
build-mode: none
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@11bd71901bbe5b1630ceea73d27597364c9af683
39+
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # pin@v3
42+
with:
43+
languages: ${{ matrix.language }}
44+
build-mode: ${{ matrix.build-mode }}
45+
46+
- if: matrix.build-mode == 'manual'
47+
shell: bash
48+
run: |
49+
echo 'If you are using a "manual" build mode for one or more of the' \
50+
'languages you are analyzing, replace this with the commands to build' \
51+
'your code, for example:'
52+
echo ' make bootstrap'
53+
echo ' make release'
54+
exit 1
55+
56+
- name: Perform CodeQL Analysis
57+
uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # pin@v3
58+
with:
59+
category: "/language:${{matrix.language}}"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# yamllint disable-line rule:truthy
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- assigned
8+
issue_comment:
9+
types:
10+
- created
11+
pull_request:
12+
types:
13+
- opened
14+
- closed
15+
name: "Create issue branches"
16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: ${{ github.ref }}-${{ github.workflow }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
create_issue_branch_job:
25+
runs-on: ubuntu-22.04
26+
permissions:
27+
contents: write
28+
issues: write
29+
pull-requests: write
30+
steps:
31+
- name: Create Issue Branch
32+
uses: robvanderleek/create-issue-branch@dfe19372d9a9198999c0fd8a81f0dbe00951afd9 # pin@v1.9.0
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.PAT }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Dependabot auto-merge
3+
# yamllint disable-line rule:truthy
4+
on: pull_request
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
dependabot:
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
runs-on: ubuntu-22.04
16+
if: github.event.pull_request.user.login == 'dependabot[bot]'
17+
steps:
18+
- name: Dependabot metadata
19+
id: metadata
20+
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 # pin@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
21+
with:
22+
github-token: "${{ secrets.GITHUB_TOKEN }}"
23+
24+
- name: Enable auto-merge Dependabot PRs
25+
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
26+
run: gh pr merge --auto --merge "$PR_URL"
27+
env:
28+
PR_URL: ${{github.event.pull_request.html_url}}
29+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)