Skip to content

Commit 5f0a280

Browse files
authored
Initial commit
0 parents  commit 5f0a280

15 files changed

+1472
-0
lines changed

.github/CODEOWNERS

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# More details are here: https://help.github.com/articles/about-codeowners/
5+
6+
# The '*' pattern is global owners.
7+
8+
# Order is important. The last matching pattern has the most precedence.
9+
# The folders are ordered as follows:
10+
11+
# In each subsection folders are ordered first by depth, then alphabetically.
12+
# This should make it easy to add new rules without breaking existing ones.
13+
14+
# The following GitHub teams can be used within this file:
15+
# @AI21/devops
16+
# @AI21/writing

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: github-actions
6+
directory: /
7+
schedule:
8+
interval: daily
9+
commit-message:
10+
prefix: chore(deps)

.github/renovate.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
],
5+
"dependencyDashboard": true,
6+
"semanticCommits": "enabled",
7+
"labels": [
8+
"dependencies"
9+
],
10+
"regexManagers": [
11+
{
12+
"fileMatch": [
13+
"(^|/)\\.pre-commit-config\\.yaml$"
14+
],
15+
"matchStrings": [
16+
"\\nminimum_pre_commit_version: (?<currentValue>.*?)\\n"
17+
],
18+
"depNameTemplate": "pre-commit",
19+
"datasourceTemplate": "pypi"
20+
},
21+
{
22+
"fileMatch": [
23+
"(^|/)\\.pre-commit-config\\.yaml$"
24+
],
25+
"matchStrings": [
26+
"\\n\\s*entry: (?<depName>[^:]+):(?<currentValue>\\S+)"
27+
],
28+
"datasourceTemplate": "docker"
29+
}
30+
]
31+
}

.github/settings.yml

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.
5+
6+
# The name of the repository. Changing this will rename the repository.
7+
# name: template
8+
9+
# A short description of the repository that will show up on GitHub.
10+
description: GitHub Template Repository
11+
12+
# A URL with more information about the repository
13+
# homepage: https://example.github.io/
14+
15+
# A comma-separated list of topics to set on the repository
16+
topics: template
17+
18+
# Either `true` to enable issues for this repository, `false` to disable them.
19+
has_issues: true
20+
21+
# Either `true` to enable projects for this repository, or `false` to disable them.
22+
# If projects are disabled for the organization, passing `true` will cause an API error.
23+
has_projects: false
24+
25+
# Either `true` to enable the wiki for this repository, `false` to disable it.
26+
has_wiki: false
27+
28+
# Either `true` to enable downloads for this repository, `false` to disable them.
29+
has_downloads: false
30+
31+
# Updates the default branch for this repository.
32+
default_branch: main
33+
34+
# Either `true` to allow squash-merging pull requests, or `false` to prevent
35+
# squash-merging.
36+
allow_squash_merge: true
37+
38+
# Either `true` to allow merging pull requests with a merge commit, or `false`
39+
# to prevent merging pull requests with merge commits.
40+
allow_merge_commit: true
41+
42+
# Either `true` to allow rebase-merging pull requests, or `false` to prevent
43+
# rebase-merging.
44+
allow_rebase_merge: true
45+
46+
# Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge
47+
allow_auto_merge: true
48+
49+
# Either `true` to enable automatic deletion of branches on merge, or `false` to disable
50+
delete_branch_on_merge: true
51+
52+
# Either `true` to enable automated security fixes, or `false` to disable
53+
# automated security fixes.
54+
enable_automated_security_fixes: true
55+
56+
# Either `true` to enable vulnerability alerts, or `false` to disable
57+
# vulnerability alerts.
58+
enable_vulnerability_alerts: true
59+
60+
# Either `true` to make this repo available as a template repository or `false` to prevent it.
61+
# is_template: false
62+
# template_repository: false
63+
64+
# `true` to archive this repository. Note: You cannot unarchive repositories through the API.
65+
archived: false
66+
67+
# Labels: define labels for Issues and Pull Requests
68+
labels:
69+
- name: bug
70+
color: '#cc0000'
71+
description: An issue with the system 🐛.
72+
73+
- name: feature
74+
# If including a `#`, make sure to wrap it with quotes!
75+
color: '#336699'
76+
description: New functionality
77+
78+
- name: WIP
79+
# If including a `#`, make sure to wrap it with quotes!
80+
color: '#faf064'
81+
description: Work in progress
82+
83+
- name: draft
84+
# If including a `#`, make sure to wrap it with quotes!
85+
color: '#c800c8'
86+
87+
# Milestones: define milestones for Issues and Pull Requests
88+
# milestones:
89+
# - title: milestone-title
90+
# description: milestone-description
91+
# # The state of the milestone. Either `open` or `closed`
92+
# state: open
93+
94+
# Collaborators: give specific users access to this repository.
95+
# See https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator for available options
96+
# collaborators:
97+
# - username: my-user
98+
# # Note: `permission` is only valid on organization-owned repositories.
99+
# # The permission to grant the collaborator. Can be one of:
100+
# # * `pull` - can pull, but not push to or administer this repository.
101+
# # * `push` - can pull and push, but not administer this repository.
102+
# # * `admin` - can pull, push and administer this repository.
103+
# # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
104+
# # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
105+
# permission: admin
106+
107+
# See https://developer.github.com/v3/teams/#add-or-update-team-repository for available options
108+
teams:
109+
- name: rnd
110+
# The permission to grant the team. Can be one of:
111+
# * `pull` - can pull, but not push to or administer this repository.
112+
# * `push` - can pull and push, but not administer this repository.
113+
# * `admin` - can pull, push and administer this repository.
114+
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
115+
# * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
116+
permission: push
117+
118+
branches:
119+
- name: main
120+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
121+
# Branch Protection settings. Set to null to disable
122+
protection:
123+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
124+
required_pull_request_reviews:
125+
# The number of approvals required. (1-6)
126+
required_approving_review_count: 1
127+
# Dismiss approved reviews automatically when a new commit is pushed.
128+
dismiss_stale_reviews: true
129+
# Blocks merge until code owners have reviewed.
130+
require_code_owner_reviews: true
131+
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
132+
dismissal_restrictions: {}
133+
# users: []
134+
# teams: []
135+
# Required. Require status checks to pass before merging. Set to null to disable
136+
required_status_checks:
137+
# Required. Require branches to be up to date before merging.
138+
strict: true
139+
# Required. The list of status checks to require in order to merge into this branch
140+
contexts:
141+
- quality-checks
142+
# Commits pushed to matching branches must have verified signatures. Set to false to disable.
143+
required_signatures: false
144+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
145+
enforce_admins: true
146+
# Prevents merge commits from being pushed to matching branches. Set to false to disable.
147+
required_linear_history: true
148+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
149+
restrictions:
150+
# apps: []
151+
# users: []
152+
# teams: []
153+
# Permits force pushes for all users with push access. Set to null to disable.
154+
allow_force_pushes:
155+
# Allows users with push access to delete matching branches. Set to false to disable.
156+
allow_deletions: false
157+
# Ensure all review conversations are seen and addressed prior to merging
158+
required_conversation_resolution: true

.github/stale.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 3
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale
7+
# label is closed.
8+
# Set to false to disable. If disabled, issues still need to be closed manually,
9+
# but will remain marked as stale.
10+
daysUntilClose: 3
11+
12+
# Issues or Pull Requests with these labels will never be considered stale.
13+
# Set to `[]` to disable
14+
exemptLabels:
15+
- dependencies
16+
- draft
17+
- WIP
18+
19+
# Label to use when marking as stale
20+
staleLabel: stale
21+
22+
# Comment to post when marking as stale. Set to `false` to disable
23+
markComment: >
24+
This PR has been automatically marked as stale because it has not had
25+
recent activity. It will be closed if no further activity occurs. Thank you
26+
for your contributions.
27+
28+
# Comment to post when removing the stale label.
29+
# unmarkComment: >
30+
# Your comment here.
31+
32+
# Comment to post when closing a stale Issue or Pull Request.
33+
closeComment: >
34+
This PR has been automatically closed because it has not had recent activity.
35+
You can reopen it by clicking on `Reopen pull request`.
36+
Thank you for your contributions.
37+
38+
# Limit the number of actions per hour, from 1-30. Default is 30
39+
limitPerRun: 30
40+
41+
# Limit to only `issues` or `pulls`
42+
only: pulls

.github/workflows/quality-checks.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Quality Checks
4+
concurrency:
5+
group: Quality-Checks-${{ github.head_ref }}
6+
cancel-in-progress: true
7+
on:
8+
pull_request:
9+
jobs:
10+
quality-checks:
11+
runs-on: ubuntu-20.04
12+
timeout-minutes: 10
13+
steps:
14+
- name: Checkout
15+
uses: actions/[email protected]
16+
with:
17+
fetch-depth: 0
18+
- name: Pre-commit
19+
uses: pre-commit/[email protected]
20+
with:
21+
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
22+
# - name: CODEOWNERS validator
23+
# uses: mszostok/[email protected]
24+
# with:
25+
# checks: files,duppatterns,syntax,owners
26+
# experimental_checks: notowned
27+
# github_access_token: ${{ secrets.GH_PAT_RO }}

.github/workflows/semantic-pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Semantic PR
4+
concurrency:
5+
group: Semantic-PR-${{ github.head_ref }}
6+
cancel-in-progress: true
7+
on:
8+
pull_request:
9+
types:
10+
- opened
11+
- edited
12+
- reopened
13+
jobs:
14+
semantic-pr:
15+
runs-on: ubuntu-20.04
16+
timeout-minutes: 1
17+
steps:
18+
- name: Semantic pull-request
19+
uses: amannn/[email protected]
20+
with:
21+
requireScope: false
22+
wip: true
23+
validateSingleCommit: true
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)