Skip to content

Commit 0c5c76f

Browse files
authored
Merge pull request #1 from espressif/change/add_basic_repo_structure
Add basic repository structure
2 parents 30b5f55 + 8cab0c9 commit 0c5c76f

14 files changed

+406
-91
lines changed

.astyle-rules.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
DEFAULT:
3+
# These formatting options will be used by default.
4+
options: "--style=otbs --attach-namespaces --attach-classes --indent=spaces=4 --convert-tabs --align-reference=name --keep-one-line-statements\
5+
\ --pad-header --pad-oper --unpad-paren --max-continuation-indent=120"

.check_copyright_config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
DEFAULT:
3+
perform_check: true
4+
allowed_licenses:
5+
- Apache-2.0
6+
- MIT
7+
license_for_new_files: Apache-2.0 OR MIT
8+
new_notice_c: |
9+
/*
10+
* SPDX-FileCopyrightText: {years} Espressif Systems (Shanghai) CO LTD
11+
*
12+
* SPDX-License-Identifier: {license}
13+
*/
14+
15+
espressif_copyright: '{years} Espressif Systems (Shanghai) CO LTD'

.github/workflows/dangerjs.yml

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

.github/workflows/issue_comment.yml

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

.github/workflows/jira.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
# FILE: .github/workflows/jira.yml
3+
# This GitHub Actions workflow synchronizes GitHub issues, comments, and pull requests with Jira.
4+
# It triggers on new issues, issue comments, and on a scheduled basis.
5+
# The workflow uses a custom action to perform the synchronization with Jira (espressif/sync-jira-actions).
6+
7+
name: 🔷 Sync to Jira
8+
9+
run-name: >
10+
Sync to Jira -
11+
${{ github.event_name == 'issue_comment' && 'Issue Comment' ||
12+
github.event_name == 'schedule' && 'New Pull Requests' ||
13+
github.event_name == 'issues' && 'New Issue' ||
14+
github.event_name == 'workflow_dispatch' && 'Manual Sync' }}
15+
16+
on:
17+
issues: {types: [opened]}
18+
issue_comment: {types: [created, edited, deleted]}
19+
schedule: [cron: '0 * * * *']
20+
workflow_dispatch:
21+
inputs:
22+
action: {description: 'Action to be performed', required: true, default: 'mirror-issues'}
23+
issue-numbers: {description: 'Issue numbers to sync (comma-separated)', required: true}
24+
25+
jobs:
26+
sync-to-jira:
27+
name: >
28+
Sync to Jira -
29+
${{ github.event_name == 'issue_comment' && 'Issue Comment' ||
30+
github.event_name == 'schedule' && 'New Pull Requests' ||
31+
github.event_name == 'issues' && 'New Issue' ||
32+
github.event_name == 'workflow_dispatch' && 'Manual Sync' }}
33+
runs-on: ubuntu-latest
34+
permissions:
35+
contents: read
36+
issues: write
37+
pull-requests: write
38+
steps:
39+
- name: Check out
40+
uses: actions/checkout@v4
41+
42+
- name: Run synchronization to Jira
43+
uses: espressif/sync-jira-actions@v1
44+
with:
45+
cron_job: ${{ github.event_name == 'schedule' && 'true' || '' }}
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
49+
JIRA_PROJECT: IDFGH
50+
JIRA_COMPONENT: GitHub
51+
JIRA_URL: ${{ secrets.JIRA_URL }}
52+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_issues.yml

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

.github/workflows/new_prs.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/build/

.pre-commit-config.yaml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
31
---
4-
minimum_pre_commit_version: 3.3.0
5-
default_install_hook_types: [pre-commit,commit-msg]
2+
minimum_pre_commit_version: 4.0.0
3+
default_install_hook_types: [pre-commit, commit-msg]
4+
5+
ci:
6+
autofix_commit_msg: |
7+
Apply automatic fixes from pre-commit hooks
8+
autofix_prs: true
9+
autoupdate_commit_msg: 'ci: Bump pre-commit hooks'
10+
autoupdate_schedule: quarterly
611

712
repos:
13+
- repo: https://github.com/codespell-project/codespell
14+
rev: v2.2.5
15+
hooks:
16+
- id: codespell
17+
18+
- repo: https://github.com/espressif/check-copyright/
19+
rev: v1.1.0
20+
hooks:
21+
- id: check-copyright
22+
args: ['--config', '.check_copyright_config.yaml']
23+
824
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.3.0
25+
rev: v5.0.0
1026
hooks:
1127
- id: trailing-whitespace
1228
- id: end-of-file-fixer
@@ -15,26 +31,19 @@ repos:
1531
args: ['-f=lf']
1632
- id: double-quote-string-fixer
1733

18-
- repo: https://github.com/pycqa/flake8
19-
rev: 6.0.0
34+
- repo: https://github.com/lyz-code/yamlfix/
35+
rev: 1.17.0
2036
hooks:
21-
- id: flake8
22-
args: ['--config=.flake8']
23-
24-
- repo: https://github.com/pycqa/isort
25-
rev: 5.11.5
26-
hooks:
27-
- id: isort
28-
name: isort (python)
29-
30-
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: 'v1.1.1' # Use the sha / tag you want to point at
32-
hooks:
33-
- id: mypy
34-
additional_dependencies: []
37+
- id: yamlfix
3538

3639
- repo: https://github.com/espressif/conventional-precommit-linter
37-
rev: v1.2.0
40+
rev: v1.10.0
3841
hooks:
3942
- id: conventional-precommit-linter
4043
stages: [commit-msg]
44+
45+
- repo: https://github.com/espressif/astyle_py.git
46+
rev: v1.1.0
47+
hooks:
48+
- id: astyle_py
49+
args: ['--astyle-version=3.4.7', '--rules=.astyle-rules.yml']

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)