Skip to content

Commit bb2ed4e

Browse files
committed
build: update project config
1 parent 034d062 commit bb2ed4e

6 files changed

Lines changed: 61 additions & 62 deletions

File tree

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
*.md
22
*.txt
3+
.actrc
4+
.dockerignore
5+
.editorconfig
6+
.gitattributes
7+
.gitignore
38
.github/
49
.shared/.*
510
.shared/*.md
611
.shared/*.txt
12+
image/Dockerfile

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
# Config/Serialisation
4040
.editorconfig text
4141
**/.editorconfig text
42+
*.graphql text
4243
*.ini text
4344
*.properties text
4445
*.json text
@@ -56,8 +57,11 @@
5657
*.fish text eol=lf
5758
*.sh text eol=lf
5859
*.zsh text eol=lf
60+
*.dart text
61+
*.hx text
5962
*.lua text
6063
*.php text
64+
*.py text
6165
*.python text
6266
*.sql text
6367
**/Dockerfile text eol=lf
@@ -125,6 +129,8 @@
125129
*.htm text diff=html
126130
*.html text diff=html
127131
*.js text
132+
*.ts text
133+
*.vue text
128134

129135

130136
# https://git-scm.com/docs/gitattributes#_export_ignore

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
# SPDX-License-Identifier: Apache-2.0
44
# SPDX-ArtifactOfProjectHomePage: https://github.com/vegardit/docker-meshcentral
55
#
6-
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
6+
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax
77
name: Build
88

9-
on:
9+
on: # https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows
10+
schedule:
11+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#schedule
12+
- cron: '0 17 * * 3'
1013
push:
1114
branches-ignore: # build all branches except:
1215
- 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR)
@@ -25,20 +28,20 @@ on:
2528
- '.git*'
2629
- '.github/*.yml'
2730
- '.github/workflows/stale.yml'
28-
schedule:
29-
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
30-
- cron: '0 17 * * 3'
3131
workflow_dispatch:
32-
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_dispatch
32+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflow_dispatch
33+
3334

3435
defaults:
3536
run:
3637
shell: bash
3738

39+
3840
env:
3941
DOCKER_REPO_NAME: meshcentral
4042
TRIVY_CACHE_DIR: ~/.trivy/cache
4143

44+
4245
jobs:
4346

4447
###########################################################
@@ -54,7 +57,7 @@ jobs:
5457
- name: "Show: GitHub context"
5558
env:
5659
GITHUB_CONTEXT: ${{ toJSON(github) }}
57-
run: echo $GITHUB_CONTEXT
60+
run: printf '%s' "$GITHUB_CONTEXT" | python -m json.tool
5861

5962

6063
- name: "Show: environment variables"
@@ -153,7 +156,7 @@ jobs:
153156
concurrency:
154157
group: ${{ github.workflow }}
155158
cancel-in-progress: false
156-
159+
157160
permissions:
158161
packages: write
159162

.github/workflows/stale.yml

Lines changed: 7 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
1+
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax
22
name: Stale issues
33

4-
on:
4+
on: # https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows
55
schedule:
6-
- cron: '0 16 * * 1'
6+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#schedule
7+
- cron: '0 15 1,15 * *'
78
workflow_dispatch:
8-
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
9+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflow_dispatch
910

1011
permissions:
1112
issues: write
@@ -14,43 +15,6 @@ permissions:
1415
jobs:
1516
stale:
1617
runs-on: ubuntu-latest
17-
1818
steps:
19-
- name: Git checkout
20-
uses: actions/checkout@v5 # https://github.com/actions/checkout
21-
22-
- name: Run stale action
23-
uses: actions/stale@v10 # https://github.com/actions/stale
24-
with:
25-
repo-token: ${{ secrets.GITHUB_TOKEN }}
26-
days-before-stale: 90
27-
days-before-close: 14
28-
stale-issue-message: >
29-
This issue has been automatically marked as stale because it has not had
30-
recent activity. It will be closed in 14 days if no further activity occurs.
31-
If the issue is still valid, please add a respective comment to prevent this
32-
issue from being closed automatically. Thank you for your contributions.
33-
stale-issue-label: stale
34-
close-issue-label: wontfix
35-
exempt-issue-labels: |
36-
enhancement
37-
pinned
38-
security
39-
40-
- name: Run stale action (for enhancements)
41-
uses: actions/stale@v10 # https://github.com/actions/stale
42-
with:
43-
repo-token: ${{ secrets.GITHUB_TOKEN }}
44-
days-before-stale: 360
45-
days-before-close: 14
46-
stale-issue-message: >
47-
This issue has been automatically marked as stale because it has not had
48-
recent activity. It will be closed in 14 days if no further activity occurs.
49-
If the issue is still valid, please add a respective comment to prevent this
50-
issue from being closed automatically. Thank you for your contributions.
51-
stale-issue-label: stale
52-
close-issue-label: wontfix
53-
only-labels: enhancement
54-
exempt-issue-labels: |
55-
pinned
56-
security
19+
- name: Run stale action
20+
uses: sebthom/gha-shared/.github/actions/stale@v1

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
https://vegardit.com/about/legal/.
63+
https://vegardit.com/legal/
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

CONTRIBUTING.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,45 @@
1-
# Contributing
1+
# Contributing to the Project
22

3-
Thanks for your interest in contributing to this project!
3+
Thank you for your interest in contributing to this project! We strive to make the contribution process clear and welcoming.
44

5-
We want to make contributing as easy and transparent as possible.
5+
Please take a moment to review the guidelines below.
66

77

88
## Code of Conduct
99

10-
Our code of conduct is described in [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
10+
Please review and adhere to our [Code of Conduct](CODE_OF_CONDUCT.md) in all your interactions with the project.
11+
This helps us maintain a positive and respectful environment for everyone involved.
1112

1213

13-
## Issues
14+
## How to Contribute
1415

15-
We use GitHub issues to track bugs and feature requests. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue.
16+
### Contributor Responsibilities
1617

18+
By submitting your contributions, you agree to the following:
19+
- You are the sole author of the content you contribute, or you have the appropriate rights and permissions to contribute it.
20+
- If employed, you have obtained any necessary permissions from your employer to contribute to this project.
21+
- All contributions will be made available under the project’s license.
1722

18-
## Pull Requests
23+
### Issues
1924

20-
Before you make a substantial pull request, please file an issue and make sure someone from the team agrees that there is a problem or room for improvement.
25+
We use GitHub Issues to track bugs and feature requests. When submitting an issue, please ensure:
26+
- The description is clear and concise.
27+
- You provide enough details and steps to reproduce the issue, if applicable.
2128

29+
### Pull Requests
2230

23-
## License
31+
Before making substantial contributions:
32+
1. **Discuss Changes**: Please file an issue first to discuss your proposed changes with the team. This helps ensure your contribution aligns with the project’s goals.
33+
2. **Follow Best Practices**: Adhere to the guidelines and ensure your code meets the project’s standards.
2434

25-
By contributing your code, you agree to license your contribution under the [Apache License 2.0](LICENSE.txt).
35+
When submitting a pull request:
36+
- Ensure your changes are well-documented.
37+
- Include tests for any new features or significant changes.
38+
- Reference the relevant issue(s) in your pull request description.
39+
40+
41+
## Licensing
42+
43+
By contributing to this project, you agree that your contributions will be licensed under the [Apache License 2.0](LICENSE.txt).
44+
45+
The project itself is also licensed under the [Apache License 2.0](LICENSE.txt)).

0 commit comments

Comments
 (0)