Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
asafgardin authored Dec 10, 2023
0 parents commit a2841de
Show file tree
Hide file tree
Showing 15 changed files with 1,472 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# More details are here: https://help.github.com/articles/about-codeowners/

# The '*' pattern is global owners.

# Order is important. The last matching pattern has the most precedence.
# The folders are ordered as follows:

# In each subsection folders are ordered first by depth, then alphabetically.
# This should make it easy to add new rules without breaking existing ones.

# The following GitHub teams can be used within this file:
# @AI21/devops
# @AI21/writing
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json

version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
commit-message:
prefix: chore(deps)
31 changes: 31 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"extends": [
"config:base"
],
"dependencyDashboard": true,
"semanticCommits": "enabled",
"labels": [
"dependencies"
],
"regexManagers": [
{
"fileMatch": [
"(^|/)\\.pre-commit-config\\.yaml$"
],
"matchStrings": [
"\\nminimum_pre_commit_version: (?<currentValue>.*?)\\n"
],
"depNameTemplate": "pre-commit",
"datasourceTemplate": "pypi"
},
{
"fileMatch": [
"(^|/)\\.pre-commit-config\\.yaml$"
],
"matchStrings": [
"\\n\\s*entry: (?<depName>[^:]+):(?<currentValue>\\S+)"
],
"datasourceTemplate": "docker"
}
]
}
158 changes: 158 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.

# The name of the repository. Changing this will rename the repository.
# name: template

# A short description of the repository that will show up on GitHub.
description: GitHub Template Repository

# A URL with more information about the repository
# homepage: https://example.github.io/

# A comma-separated list of topics to set on the repository
topics: template

# Either `true` to enable issues for this repository, `false` to disable them.
has_issues: true

# Either `true` to enable projects for this repository, or `false` to disable them.
# If projects are disabled for the organization, passing `true` will cause an API error.
has_projects: false

# Either `true` to enable the wiki for this repository, `false` to disable it.
has_wiki: false

# Either `true` to enable downloads for this repository, `false` to disable them.
has_downloads: false

# Updates the default branch for this repository.
default_branch: main

# Either `true` to allow squash-merging pull requests, or `false` to prevent
# squash-merging.
allow_squash_merge: true

# Either `true` to allow merging pull requests with a merge commit, or `false`
# to prevent merging pull requests with merge commits.
allow_merge_commit: true

# Either `true` to allow rebase-merging pull requests, or `false` to prevent
# rebase-merging.
allow_rebase_merge: true

# Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge
allow_auto_merge: true

# Either `true` to enable automatic deletion of branches on merge, or `false` to disable
delete_branch_on_merge: true

# Either `true` to enable automated security fixes, or `false` to disable
# automated security fixes.
enable_automated_security_fixes: true

# Either `true` to enable vulnerability alerts, or `false` to disable
# vulnerability alerts.
enable_vulnerability_alerts: true

# Either `true` to make this repo available as a template repository or `false` to prevent it.
# is_template: false
# template_repository: false

# `true` to archive this repository. Note: You cannot unarchive repositories through the API.
archived: false

# Labels: define labels for Issues and Pull Requests
labels:
- name: bug
color: '#cc0000'
description: An issue with the system 🐛.

- name: feature
# If including a `#`, make sure to wrap it with quotes!
color: '#336699'
description: New functionality

- name: WIP
# If including a `#`, make sure to wrap it with quotes!
color: '#faf064'
description: Work in progress

- name: draft
# If including a `#`, make sure to wrap it with quotes!
color: '#c800c8'

# Milestones: define milestones for Issues and Pull Requests
# milestones:
# - title: milestone-title
# description: milestone-description
# # The state of the milestone. Either `open` or `closed`
# state: open

# Collaborators: give specific users access to this repository.
# See https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator for available options
# collaborators:
# - username: my-user
# # Note: `permission` is only valid on organization-owned repositories.
# # The permission to grant the collaborator. Can be one of:
# # * `pull` - can pull, but not push to or administer this repository.
# # * `push` - can pull and push, but not administer this repository.
# # * `admin` - can pull, push and administer this repository.
# # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
# # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
# permission: admin

# See https://developer.github.com/v3/teams/#add-or-update-team-repository for available options
teams:
- name: rnd
# The permission to grant the team. Can be one of:
# * `pull` - can pull, but not push to or administer this repository.
# * `push` - can pull and push, but not administer this repository.
# * `admin` - can pull, push and administer this repository.
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
# * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
permission: push

branches:
- name: main
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
# Branch Protection settings. Set to null to disable
protection:
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
required_pull_request_reviews:
# The number of approvals required. (1-6)
required_approving_review_count: 1
# Dismiss approved reviews automatically when a new commit is pushed.
dismiss_stale_reviews: true
# Blocks merge until code owners have reviewed.
require_code_owner_reviews: true
# 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.
dismissal_restrictions: {}
# users: []
# teams: []
# Required. Require status checks to pass before merging. Set to null to disable
required_status_checks:
# Required. Require branches to be up to date before merging.
strict: true
# Required. The list of status checks to require in order to merge into this branch
contexts:
- quality-checks
# Commits pushed to matching branches must have verified signatures. Set to false to disable.
required_signatures: false
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
enforce_admins: true
# Prevents merge commits from being pushed to matching branches. Set to false to disable.
required_linear_history: true
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
restrictions:
# apps: []
# users: []
# teams: []
# Permits force pushes for all users with push access. Set to null to disable.
allow_force_pushes:
# Allows users with push access to delete matching branches. Set to false to disable.
allow_deletions: false
# Ensure all review conversations are seen and addressed prior to merging
required_conversation_resolution: true
42 changes: 42 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 3

# Number of days of inactivity before an Issue or Pull Request with the stale
# label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually,
# but will remain marked as stale.
daysUntilClose: 3

# Issues or Pull Requests with these labels will never be considered stale.
# Set to `[]` to disable
exemptLabels:
- dependencies
- draft
- WIP

# Label to use when marking as stale
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This PR has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.

# Comment to post when closing a stale Issue or Pull Request.
closeComment: >
This PR has been automatically closed because it has not had recent activity.
You can reopen it by clicking on `Reopen pull request`.
Thank you for your contributions.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30

# Limit to only `issues` or `pulls`
only: pulls
27 changes: 27 additions & 0 deletions .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Quality Checks
concurrency:
group: Quality-Checks-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
jobs:
quality-checks:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Pre-commit
uses: pre-commit/[email protected]
with:
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
# - name: CODEOWNERS validator
# uses: mszostok/[email protected]
# with:
# checks: files,duppatterns,syntax,owners
# experimental_checks: notowned
# github_access_token: ${{ secrets.GH_PAT_RO }}
25 changes: 25 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Semantic PR
concurrency:
group: Semantic-PR-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
types:
- opened
- edited
- reopened
jobs:
semantic-pr:
runs-on: ubuntu-20.04
timeout-minutes: 1
steps:
- name: Semantic pull-request
uses: amannn/[email protected]
with:
requireScope: false
wip: true
validateSingleCommit: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit a2841de

Please sign in to comment.