-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contributing: Add linting job and contributing guide (#12)
- Loading branch information
1 parent
4783768
commit e27ae26
Showing
10 changed files
with
1,595 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
image-tag: | ||
description: Image tag to run | ||
type: string | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: exokomodo/exoflow-devcontainer:${{ inputs.image-tag || (github.event_name == 'push' && 'latest') || (github.head_ref || github.ref_name) }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
- name: Lint | ||
run: | | ||
make lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
default: true | ||
MD007: | ||
indent: 4 | ||
MD013: | ||
line_length: 120 | ||
MD024: | ||
siblings_only: true | ||
MD033: false | ||
MD041: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Contributing Guide | ||
|
||
Thank you for considering contributing to this project. Your help is greatly appreciated! | ||
|
||
## Getting Started | ||
|
||
Before you begin, please take a moment to review the [README](README.md) for an overview of the project. | ||
Familiarize yourself with the following steps and guidelines. | ||
|
||
## Code Contributions | ||
|
||
- Ensure your local Git configuration (`user.name` and `user.email`) matches your GitHub profile. | ||
- [Sign your commits](https://gist.github.com/Beneboe/3183a8a9eb53439dbee07c90b344c77e) | ||
- Use clear, concise commit messages (under 80 characters, or under 120 character lines for body) | ||
|
||
## Development Environment | ||
|
||
```shell | ||
git clone [email protected]:exokomodo/exoflow | ||
# Local | ||
make setup | ||
# Docker compose (for a dev environment) | ||
docker compose up | ||
# devcontainer: use whatever tool you use here, including Github Codespaces | ||
``` | ||
|
||
## Branching and Pull Requests | ||
|
||
- Create a new branch for your changes. | ||
- Make sure your branch is up-to-date with the `main` branch. | ||
- Open a pull request describing your changes briefly. | ||
- A maintainer or team member will review your changes and provide feedback. | ||
|
||
## Communication | ||
|
||
- [Create an issue](https://github.com/ExoKomodo/exoflow/issues/new) if you find a bug or have an enhancement suggestion. | ||
- [Ask a question in the Discussions](https://github.com/ExoKomodo/exoflow/discussions) if you need to know something | ||
a bit more specific or discuss a larger topic. | ||
- If a thread evolves into something actionable, an [issue can be created from a discussion](https://github.com/orgs/community/discussions/2861#discussioncomment-696235) | ||
- Don't feel the need to only start discussions that may become issues. | ||
|
||
## Additional Guidelines | ||
|
||
- Keep contributions minimal and focused. | ||
- We do linear commit history with (generally) single commit pull requests. | ||
- Sometimes we will accept a multi-commit PR as a linear rebase of commits. | ||
- [This guide](https://www.bitsnbites.eu/a-tidy-linear-git-history/) explains our reasoning quite completely. | ||
- Avoid guidelines that are overly specific to a particular technology or tool chain. | ||
- Follow the project's existing structure and naming conventions. | ||
|
||
## Epilogue | ||
|
||
Thank you for your support and happy coding! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.markdownlint.yaml |
Oops, something went wrong.