Skip to content

Commit f46fda3

Browse files
authored
Merge pull request #1 from espressif/feat/initial-version
Initial version of the action
2 parents 7a0880d + 188759e commit f46fda3

13 files changed

+988
-25
lines changed

.github/workflows/dangerjs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: DangerJS Pull Request linter
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: write
10+
11+
jobs:
12+
pull-request-style-linter:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out PR head
16+
uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.pull_request.head.sha }}
19+
20+
- name: DangerJS pull request linter
21+
uses: espressif/shared-github-dangerjs@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
instructions-contributions-file: CONTRIBUTING.rst
26+
instructions-gitlab-mirror: 'true'

.github/workflows/issue_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717
JIRA_PASS: ${{ secrets.JIRA_PASS }}
1818
JIRA_PROJECT: IDFGH
19-
JIRA_COMPONENT: GitHub
19+
JIRA_COMPONENT: tools
2020
JIRA_URL: ${{ secrets.JIRA_URL }}
2121
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717
JIRA_PASS: ${{ secrets.JIRA_PASS }}
1818
JIRA_PROJECT: IDFGH
19-
JIRA_COMPONENT: GitHub
19+
JIRA_COMPONENT: tools
2020
JIRA_URL: ${{ secrets.JIRA_URL }}
2121
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_prs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Sync remain PRs to Jira
44
# Note that, PRs can also get synced when new PR comment is created
55
on:
66
schedule:
7-
- cron: "0 * * * *"
7+
- cron: 0 * * * *
88

99
jobs:
1010
sync_prs_to_jira:
@@ -21,6 +21,6 @@ jobs:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
JIRA_PASS: ${{ secrets.JIRA_PASS }}
2323
JIRA_PROJECT: IDFGH
24-
JIRA_COMPONENT: GitHub
24+
JIRA_COMPONENT: tools
2525
JIRA_URL: ${{ secrets.JIRA_URL }}
2626
JIRA_USER: ${{ secrets.JIRA_USER }}

.pre-commit-config.yaml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,49 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
3-
---
41
minimum_pre_commit_version: 3.3.0
5-
default_install_hook_types: [pre-commit,commit-msg]
2+
default_install_hook_types: [pre-commit, commit-msg]
3+
default_stages: [pre-commit]
4+
5+
ci:
6+
autofix_prs: false
7+
autoupdate_commit_msg: 'ci: Bump pre-commit hooks'
8+
autoupdate_schedule: quarterly
69

710
repos:
811
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.3.0
12+
rev: v5.0.0
1013
hooks:
1114
- id: trailing-whitespace
1215
- id: end-of-file-fixer
1316
- id: check-executables-have-shebangs
1417
- id: mixed-line-ending
15-
args: ['-f=lf']
16-
- id: double-quote-string-fixer
17-
18-
- repo: https://github.com/pycqa/flake8
19-
rev: 6.0.0
20-
hooks:
21-
- id: flake8
22-
args: ['--config=.flake8']
18+
args: [-f=lf]
2319

24-
- repo: https://github.com/pycqa/isort
25-
rev: 5.11.5
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
rev: v0.12.2
2622
hooks:
27-
- id: isort
28-
name: isort (python)
23+
- id: ruff
24+
args: [--fix, --exit-non-zero-on-fix]
25+
- id: ruff-format
2926

3027
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: 'v1.1.1' # Use the sha / tag you want to point at
28+
rev: v1.16.1
3229
hooks:
33-
- id: mypy
30+
- id: mypy
3431
additional_dependencies: []
3532

3633
- repo: https://github.com/espressif/conventional-precommit-linter
37-
rev: v1.2.0
34+
rev: v1.10.0
3835
hooks:
3936
- id: conventional-precommit-linter
4037
stages: [commit-msg]
38+
39+
- repo: https://github.com/codespell-project/codespell
40+
rev: v2.4.1
41+
hooks:
42+
- id: codespell
43+
additional_dependencies:
44+
- tomli
45+
46+
- repo: https://github.com/lyz-code/yamlfix/
47+
rev: 1.17.0
48+
hooks:
49+
- id: yamlfix

0 commit comments

Comments
 (0)