Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve issues on workflows #218

Merged
merged 16 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .devskim.json

This file was deleted.

18 changes: 0 additions & 18 deletions .editorconfig

This file was deleted.

271 changes: 170 additions & 101 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,143 +1,212 @@
# Contributor Guide

Thank you for your interest in improving the checkconnect.
This project is open-source under the [EUPL-1.2 license] and
welcomes contributions in the form of bug reports, feature requests, and pull requests.
# Contributing to AnniversaryReminder

dotNetty is a large project and contributions are more than welcome, so thank you for wanting to

Check notice on line 3 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
contribute to dotNetty!

---

### Checklist before creating a Pull Request

Check notice on line 8 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD001)

[new] Heading levels should only increment by one level at a time

Submit only relevant commits. We don't mind many commits in a pull request, but they must be

Check notice on line 10 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
relevant as explained below.

- **Use a feature branch** The pull request should be created from a feature branch, and not from

Check notice on line 13 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
_develop_. See below for why.
- **No merge-commits** If you have commits that looks like this _"Merge branch 'my-branch' into

Check notice on line 15 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
develop"_ or _"Merge branch 'develop' of <https://github.com/jmuelbert/anniversaryreminder> into

Check notice on line 16 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
develop"_ you're probably using merge instead of
[rebase](https://help.github.com/articles/about-git-rebase) locally. See below on _Handling

Check notice on line 18 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
updates from upstream_.
- **Squash commits** Often we create temporary commits like _"Started implementing feature x"_ and

Check notice on line 20 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
then _"Did a bit more on feature x"_. Squash these commits together using
[interactive rebase](https://help.github.com/articles/about-git-rebase). Also see
[Squashing commits with rebase](https://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html).
- **Descriptive commit messages** If a commit's message isn't descriptive, change it using

Check notice on line 24 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
[interactive rebase](https://help.github.com/articles/about-git-rebase). Refer to issues using

Check notice on line 25 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
`#issue`. Example of a bad message ~~"Small cleanup"~~. Example of good message: _"Removed

Check notice on line 26 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
Security.Claims header from FSM, which broke Mono build per #62"_. Don't be afraid to write long

Check notice on line 27 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
messages, if needed. Try to explain _why_ you've done the changes. The Erlang repo has some info

Check notice on line 28 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
on
[writing good commit messages](https://github.com/erlang/otp/wiki/Writing-good-commit-messages).
- **No one-commit-to-rule-them-all** Large commits that changes too many things at the same time are

Check notice on line 31 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
very hard to review. Split large commits into smaller. See this
[StackOverflow question](https://stackoverflow.com/questions/6217156/break-a-previous-commit-into-multiple-commits)
for information on how to do this.
- **Tests** Add relevant tests and make sure all existing ones still passes. Tests can be run using

Check notice on line 35 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
the command
- **No Warnings** Make sure your code do not produce any build warnings.

After reviewing a Pull request, we might ask you to fix some commits. After you've done that you

Check notice on line 39 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
need to force push to update your branch in your local fork.

#### Title and Description for the Pull Request

Give the PR a descriptive title and in the description field describe what you have done in general

Check notice on line 44 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
terms and why. This will help the reviewers greatly, and provide a history for the future.

Check notice on line 45 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length

Especially if you modify something existing, be very clear! Have you changed any algorithms, or did

Check notice on line 47 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
you just intend to reorder the code? Justify why the changes are needed.

---

### Getting started

Make sure you have a [GitHub](https://github.com/) account.

- Fork, clone, add upstream to the dotNetty repository. See
[Fork a repo](https://help.github.com/articles/fork-a-repo) for more detailed instructions or

Check notice on line 57 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
follow the instructions below.

- Fork by clicking _Fork_ on <https://github.com/jmuelbert/anniversaryreminder>
- Clone your fork locally.

```bash
git clone https://github.com/YOUR-USERNAME/anniversaryreminder
```

Here is a list of important resources for contributors:
- Add an upstream remote.

- [Source Code]
- [Documentation]
- [Issue Tracker]
- [Code of Conduct]
```bash
git remote add upstream https://github.com/jmuelbert/anniversaryreminder
```

## How to report a bug
You now have two remotes: _upstream_ points to <https://github.com/jmuelbert/anniversaryreminder>,
and _origin_ points to your fork on GitHub.

Report bugs on the [Issue Tracker].
- Make changes. See below.

When filing an issue, make sure to answer these questions:
Unsure where to start? Issues marked with
[_up for grabs_](https://github.com/jmuelbert/anniversaryreminder/labels/up%20for%20grabs) are

Check notice on line 79 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
things we want help with.

- Which operating system and Python version are you using?
- Which version of this project are you using?
- What did you do?
- What did you expect to see?
- What did you see instead?
See also:
[Contributing to Open Source on GitHub](https://guides.github.com/activities/contributing-to-open-source/)

The best way to get your bug fixed is to provide a test case,
and/or steps to reproduce the issue.
New to Git? See
<https://help.github.com/articles/what-are-other-good-resources-for-learning-git-and-github>

## How to request a feature
### Making changes

Request features on the [Issue Tracker].
**Never** work directly on _dev_ or _master_ and you should never send a pull request from master -

Check notice on line 90 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
always from a feature branch created by you.

## How to set up your development environment
- Pick an [issue](https://github.com/jmuelbert/anniversaryreminder/issues). If no issue exists

Check notice on line 93 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
(search first) create one.
- Get any changes from _upstream_.

You need Python 3.8+ and the following tools:
```bash
git checkout dev
git fetch upstream
git merge --ff-only upstream/dev
git push origin dev #(optional) this makes sure dev in your own fork on GitHub is up to date

Check notice on line 101 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
```

- [Hatch]
See <https://help.github.com/articles/fetching-a-remote> for more info

Fork the repository on [GitHub],
and clone the fork to your local machine. You can now generate a project
from your development version:
- Create a new feature branch. It's important that you do your work on your own branch and that it's

Check notice on line 106 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
created off of _dev_. Tip: Give it a descriptive name and include the issue number, e.g.

Check notice on line 107 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
`implement-lengthframeencoder-323` or `295-implement-recvbuffer`, so that others can see what is

Check notice on line 108 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
being worked on.

```console
git clone https://github.com/jmuelbert/checkconnect.git
```bash
git checkout -b my-new-branch-123
```

You may also want to push your generated project to GitHub,
and set up [continuous integration].
- Work on your feature. Commit.
- Rebase often, see below.
- Make sure you adhere to _Checklist before creating a Pull Request_ described above.
- Push the branch to your fork on GitHub

## How to test the project

Please refer to the [User Guide]
for instructions on how to run the test suite locally.

## How to submit changes
```bash
git push origin my-new-branch-123
```

Open a [pull request] to submit changes to this project.
- Send a Pull Request, see <https://help.github.com/articles/using-pull-requests> to the _develop_

Check notice on line 124 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
branch.

Your pull request needs to meet the following guidelines for acceptance:
See also: [Understanding the GitHub Flow](https://guides.github.com/introduction/flow/) (we're using

Check notice on line 127 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
`develop` as our master branch)

- The Tests test suite must pass without errors and warnings.
- Include unit tests. This project maintains 100% code coverage.
- If your changes add functionality, update the documentation accordingly.
### Handling updates from upstream

Feel free to submit early, though—we can always iterate on this.
While you're working away in your branch it's quite possible that your upstream _dev_ may be

Check notice on line 132 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
updated. If this happens you should:

It is recommended to open an issue before starting work on anything.
This will allow a chance to talk it over with the owners and validate your approach.
- [Stash](https://git-scm.com/book/en/Git-Tools-Stashing) any un-committed changes you need to

Check notice on line 135 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length

## How to accept changes
```bash
git stash
```

_You need to be a project maintainer to accept changes._
- Update your local _dev_ by fetching from _upstream_

Before accepting a pull request, go through the following checklist:
```bash
git checkout dev
git fetch upstream
git merge --ff-only upstream/dev
```

- The PR must pass all checks.
- The PR must have a descriptive title.
- The PR should be labelled with the kind of change (see below).
- Rebase your feature branch on _dev_. See
[Git Branching - Rebasing](https://git-scm.com/book/en/Git-Branching-Rebasing) for more info on

Check notice on line 150 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
rebasing

Release notes are pre-filled with titles and authors of merged pull requests.
Labels group the pull requests into sections.
The following list shows the available sections,
with associated labels in parentheses:
```bash
git checkout my-new-branch-123
git rebase dev
git push origin dev #(optional) this makes sure dev in your own fork on GitHub is up to date

Check notice on line 156 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
```

- 💥 Breaking Changes (`breaking`)
- 🚀 Features (`enhancement`)
- 🔥 Removals and Deprecations (`removal`)
- 🐞 Fixes (`bug`)
- 🐎 Performance (`performance`)
- 🚨 Testing (`testing`)
- 👷 Continuous Integration (`ci`)
- 📚 Documentation (`documentation`)
- 🔨 Refactoring (`refactoring`)
- 💄 Style (`style`)
- 📦 Dependencies (`dependencies`)
This ensures that your history is "clean" i.e. you have one branch off from _dev_ followed by your

Check notice on line 159 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
changes in a straight line. Failing to do this ends up with several "messy" merges in your history,

Check notice on line 160 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
which we don't want. This is the reason why you should always work in a branch and you should never

Check notice on line 161 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
be working in, or sending pull requests from _dev_.

To merge the pull request, follow these steps:
If you're working on a long running feature then you may want to do this quite often, rather than

Check notice on line 164 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
run the risk of potential merge issues further down the line.

1. Click **Squash and Merge**.
(Select this option from the dropdown menu of the merge button, if it is not shown.)
2. Click **Confirm squash and merge**.
3. Click **Delete branch**.
### Making changes to a Pull request

## How to make a release
If you realize you've missed something after submitting a Pull request, just commit to your local

Check notice on line 169 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
branch and push the branch just like you did the first time. This commit will automatically be

Check notice on line 170 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
included in the Pull request. If we ask you to change already published commits using interactive

Check notice on line 171 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
rebase (like squashing or splitting commits or rewriting commit messages) you need to force push

Check notice on line 172 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
using `-f`:

_You need to be a project maintainer to make a release._
```bash
git push -f origin my-new-branch-123
```

Before making a release, go through the following checklist:
### All my commits are on develop. How do I get them to a new branch?

- All pull requests for the release have been merged.
- The default branch passes all checks.
If all commits are on _develop_ you need to move them to a new feature branch.

Releases are made by publishing a GitHub Release.
A draft release is being maintained based on merged pull requests.
To publish the release, follow these steps:
You can rebase your local _develop_ on _upstream/develop_ (to remove any merge commits), rename it,

Check notice on line 183 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length
and recreate _develop_

1. Click **Edit** next to the draft release.
2. Enter a tag with the new version.
3. Enter the release title, also the new version.
4. Edit the release description, if required.
5. Click **Publish Release**.
```bash
git checkout develop
git rebase upstream/develop
git branch -m my-new-branch-123
git branch develop upstream/develop
```

Version numbers adhere to [semantic Versioning],
of the form `YYYY.MM.DD`.
Or you can create a new branch off of _develop_ and then cherry pick the commits

After publishing the release, the following automated steps are triggered:
```bash
git checkout -b my-new-branch-123 upstream/develop
git cherry-pick rev #rev is the revisions you want to pick
git cherry-pick rev #repeat until you have picked all commits
git branch -m develop old-develop #rename dev
git branch develop upstream/develop #create a new dev
```

- The Git tag is applied to the repository.
- [Read the Docs] builds a new stable version of the documentation.
## Code guidelines

[semantic versioning]: https://semver.org
[continuous integration]: https://cookiecutter-hypermodern-python.readthedocs.io/en/stable/quickstart.html#continuous-integration
[documentation]: https://cookiecutter-hypermodern-python.readthedocs.io/
[github]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[issue tracker]: https://github.com/cjolowicz/cookiecutter-hypermodern-python/issues
[pull request]: https://github.com/cjolowicz/cookiecutter-hypermodern-python/pulls
[read the docs]: https://cookiecutter-hypermodern-python.readthedocs.io/
[source code]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[user guide]: https://cookiecutter-hypermodern-python.readthedocs.io/en/latest/guide.html#how-to-test-your-project
See our
[C# Coding Style](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md)
for more information on following the project's conventions.

<!-- github-only -->
---

[code of conduct]: CODE_OF_CONDUCT.md
Props to [Akka.NET](http://getakka.net/) and [NancyFX](https://github.com/NancyFx/Nancy) from which

Check notice on line 211 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

markdownlint(MD013)

[new] Line length

Check failure on line 211 in .github/CONTRIBUTING.md

View check run for this annotation

Trunk.io / Trunk Check

cspell(error)

[new] Unknown word (Akka) Suggestions: [Kaka, Aka, anka, Anka, Akkad]
we've "borrowed" this text.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/01-bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: "\U0001F41E Bug report"
name: \U0001F41E Bug report
description: Report a bug in checkconnect. To report a security issue, please instead use the security option below. For questions, please use the GitHub Discussions.
title: "🐛 [BUG] - <title>"
labels: ["bug"]
title: 🐛 [BUG] - <title>
labels: [bug]
assignees: jmuelbert
body:
- type: markdown
Expand Down Expand Up @@ -51,7 +51,7 @@ body:
id: logs
attributes:
label: Logs
description: "Please include the full stacktrace of the errors you get from Python or Javascript. If you are running in a colab notebooks, you can get the logs with by setting `debug=True`"
description: Please include the full stacktrace of the errors you get from Python or Javascript. If you are running in a colab notebooks, you can get the logs with by setting `debug=True`
render: shell
- type: textarea
id: system-info
Expand Down
Loading
Loading