Skip to content

Commit e638d3b

Browse files
authored
Merge pull request #18 from linux-wizard/feat/committools
chore: committools
2 parents d79c75f + a3182e6 commit e638d3b

6 files changed

Lines changed: 98 additions & 20 deletions

File tree

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'build-test'
2+
on: # rebuild any PRs and main branch changes
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build: # make sure build/ci work properly
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: |
14+
yarn
15+
- run: |
16+
yarn all
17+
version:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Semantic Release
26+
uses: cycjimmy/semantic-release-action@v2
27+
id: semantic
28+
with:
29+
branch: master
30+
extra_plugins: |
31+
@semantic-release/commit-analyzer
32+
@semantic-release/git
33+
@semantic-release/changelog
34+
env:
35+
GITHUB_TOKEN: '${{ secrets.GH_TOKEN }}'

.github/workflows/test.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.pre-commit-config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
default_stages: [commit, push]
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.3.0
6+
hooks:
7+
- id: end-of-file-fixer
8+
- id: check-json
9+
- id: pretty-format-json
10+
- id: check-yaml
11+
- id: check-merge-conflict
12+
- id: detect-private-key
13+
- id: no-commit-to-branch
14+
15+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
16+
rev: v1.0.0
17+
hooks:
18+
- id: commitlint
19+
stages: [commit-msg]
20+
additional_dependencies:
21+
- "@commitlint/config-conventional"
22+
- conventional-changelog-conventionalcommits
23+
24+
- repo: https://github.com/sirosen/check-jsonschema
25+
rev: 0.9.1
26+
hooks:
27+
- id: check-github-workflows
28+
- id: check-github-actions
29+
30+
- repo: https://github.com/pre-commit/mirrors-eslint
31+
rev: 'v8.7.0' # Use the sha / tag you want to point at
32+
hooks:
33+
- id: eslint
34+
35+
- repo: https://github.com/pre-commit/mirrors-prettier
36+
rev: 'v2.5.1' # Use the sha / tag you want to point at
37+
hooks:
38+
- id: prettier

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<p align="center">
2-
<a href="https://github.com/yuya-takeyama/github-actions-metrics-to-datadog-action"><img alt="github-actions-metrics-to-datadog-action status" src="https://github.com/yuya-takeyama/github-actions-metrics-to-datadog-action/workflows/build-test/badge.svg"></a>
2+
<a href="https://github.com/linux-wizard/github-actions-metrics-to-datadog-action"><img alt="github-actions-metrics-to-datadog-action status" src="https://github.com/linux-wizard/github-actions-metrics-to-datadog-action/workflows/build-test/badge.svg"></a>
3+
<a href="https://github.com/pre-commit/pre-commit"><img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" alt="pre-commit" style="max-width:100%;"></a>
34
</p>
45

6+
7+
8+
59
# GitHub Actions metrics to Datadog
610

711
Send metrics of GitHub Actions to Datadog
@@ -20,7 +24,7 @@ jobs:
2024
actions-metrics:
2125
runs-on: ubuntu-latest
2226
steps:
23-
- uses: yuya-takeyama/github-actions-metrics-to-datadog-action@v0.5.0
27+
- uses: linux-wizard/github-actions-metrics-to-datadog-action@v0.5.0
2428
with:
2529
github-token: ${{ secrets.OWNER_GITHUB_TOKEN }}
2630
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
@@ -42,7 +46,7 @@ jobs:
4246
actions-billing-metrics:
4347
runs-on: ubuntu-latest
4448
steps:
45-
- uses: yuya-takeyama/github-actions-metrics-to-datadog-action@v0.5.0
49+
- uses: linux-wizard/github-actions-metrics-to-datadog-action@v0.5.0
4650
with:
4751
github-token: ${{ secrets.OWNER_GITHUB_TOKEN }}
4852
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}

release.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
dryRun: false,
3+
plugins: [
4+
'@semantic-release/commit-analyzer',
5+
'@semantic-release/release-notes-generator',
6+
'@semantic-release/changelog',
7+
'@semantic-release/github',
8+
[
9+
'@semantic-release/git',
10+
{
11+
"assets": [],
12+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
13+
}
14+
]
15+
]
16+
}

renovate.json5

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": [
3-
"config:base"
3+
"config:base",
4+
":semanticCommits"
45
],
56
"automerge": true,
67
"labels": [

0 commit comments

Comments
 (0)