Skip to content

Commit

Permalink
feat(cicd): first version
Browse files Browse the repository at this point in the history
  • Loading branch information
itayB committed Apr 28, 2024
1 parent 0d03583 commit bf89573
Show file tree
Hide file tree
Showing 14 changed files with 1,668 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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:
* @itayB
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)
37 changes: 37 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
issues: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false

- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMREL_GITHUB_TOKEN }}
run: npx semantic-release
38 changes: 38 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":preserveSemverRanges"
],
"pre-commit": {
"enabled": true
},
"dependencyDashboard": true,
"semanticCommits": "enabled",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"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"
}
]
}
35 changes: 35 additions & 0 deletions .github/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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: null
permissions:
contents: read
pull-requests: read
statuses: write
jobs:
semantic-pr:
runs-on: ubuntu-latest
timeout-minutes: 5
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: Semantic pull-request
uses: amannn/[email protected]
with:
requireScope: false
wip: true
validateSingleCommit: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 changes: 41 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Configuration for probot-stale - https://github.com/probot/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
Loading

0 comments on commit bf89573

Please sign in to comment.