Skip to content

Commit e28b7dd

Browse files
authored
Merge pull request #2 from itayB/cicd
feat(cicd): first version
2 parents 0d03583 + bf89573 commit e28b7dd

14 files changed

+1668
-7
lines changed

.github/CODEOWNERS

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

.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/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Release
4+
on:
5+
push:
6+
branches:
7+
- master
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: write
15+
issues: write
16+
pull-requests: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4.1.1
21+
with:
22+
fetch-depth: 0
23+
persist-credentials: false
24+
25+
- name: Setup node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
cache: npm
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.SEMREL_GITHUB_TOKEN }}
37+
run: npx semantic-release

.github/renovate.json

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

.github/semantic-pr.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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: null
9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
statuses: write
13+
jobs:
14+
semantic-pr:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 5
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4.1.1
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Pre-commit
24+
uses: pre-commit/action@v3.0.0
25+
with:
26+
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
27+
28+
- name: Semantic pull-request
29+
uses: amannn/action-semantic-pull-request@v5.4.0
30+
with:
31+
requireScope: false
32+
wip: true
33+
validateSingleCommit: true
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/stale.yml

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

0 commit comments

Comments
 (0)