| 1 | Project Scope |
| 2 | ------------- |
| 3 | |
| 4 | * Bug fixes and maintenance |
| 5 | * Prioritize extensibility and simplicity |
| 6 | * Do not make the codebase more complex, keep it simple to hack on |
| 7 | * Do not add extra dependency (if we do, add compile time switch to disable it) |
| 8 | * New features may be added if it cannot be achieved (easily) via a shell script, |
| 9 | doesn't break backwards compatibility and doesn't violate any of the above rules. |
| 10 | |
| 11 | Note: Since we aim to be a drop-in replacement for sxiv, we intend to keep all |
| 12 | sxiv's behaviors/features even in cases where removing them would make the |
| 13 | code-base simpler. |
| 14 | |
| 15 | Also note that (n)sxiv uses `imlib2` for loading images. Thus any request or |
| 16 | patches for adding support for new image formats should go into |
| 17 | [imlib2's repo](https://git.enlightenment.org/old/legacy-imlib2) instead. |
| 18 | |
| 19 | |
| 20 | Contribution Guideline |
| 21 | ---------------------- |
| 22 | |
| 23 | When contributing, make sure: |
| 24 | |
| 25 | * Your contribution falls under nsxiv's scope and aim |
| 26 | * You follow the existing code style (see [.editorconfig](.editorconfig)) |
| 27 | * You open the pull request from a new branch, not from master |
| 28 | * To avoid using force pushes, especially for bigger patches. Only use them |
| 29 | when there's merge conflicts. |
| 30 | |
| 31 | If your contribution is not suitable for general use, it will not be included in nsxiv. |
| 32 | For changes that are very much up to preference, such as changing values in config.h, |
| 33 | please do not open a pull request unless you have an objective explanation. |
| 34 | |
| 35 | See the [open issues](https://codeberg.org/nsxiv/nsxiv/issues) to find something |
| 36 | to work on. You can also filter the issues via label: |
| 37 | |
| 38 | * [Good first issue](https://codeberg.org/nsxiv/nsxiv/issues?labels=49698): |
| 39 | (Easy) Issues which do not require much if any experience. |
| 40 | * [Up for grabs](https://codeberg.org/nsxiv/nsxiv/issues?labels=49705): |
| 41 | (Intermediate) Issues which are free for anyone who wants to pick it up. |
| 42 | Might require some experience. |
| 43 | * [Help wanted](https://codeberg.org/nsxiv/nsxiv/issues?labels=49699): |
| 44 | (Intermediate/Experienced) Issues where we require some help. |
| 45 | |
| 46 | |
| 47 | Development workflow for maintainers |
| 48 | ------------------------------------ |
| 49 | |
| 50 | If we notice you contributing and/or showing interest in issues/pull requests, |
| 51 | we may invite you to join the nsxiv org as a member. Being a member simply means |
| 52 | you will be able to approve, disapprove and merge pull requests. |
| 53 | |
| 54 | Our workflow regarding pull requests is the following: |
| 55 | |
| 56 | * Code related changes require two approvals, but documentation related |
| 57 | changes (e.g. typo) can be merged with just one. |
| 58 | * Always prefer squashing when merging. In the case a PR makes more than one |
| 59 | significant change, use the "don't squash" tag and rebase instead. |
| 60 | * When merging, make sure the commit message is cleaned up properly so that |
| 61 | it reflects the current intention of the PR. |
| 62 | |
| 63 | For releases, the process is the following: |
| 64 | |
| 65 | * Tag the release with a "vN" tag, where N is the version number. Also set |
| 66 | the commit message and tag description for the release commit to "Release |
| 67 | version N". Make sure to use an annotated tag. |
| 68 | * Update `VERSION` macro in the `Makefile`. |
| 69 | * Update the changelog (`CHANGELOG.md`): |
| 70 | * Include link to the release tarball and add the release date. |
| 71 | * Document only the changes or fixes between releases. Don't document |
| 72 | changes which never made it into a release. |
| 73 | * Use the "Changes" section to document behavior changes since the last |
| 74 | release, the "Added" section for new features, and the "Fixes" section |
| 75 | for fixed bugs or regressions. Include pull request IDs. |
| 76 | |
| 77 | Mirroring to GitHub: |
| 78 | |
| 79 | Assuming `origin` is the name of the codeberg remote and `github` is the name |
| 80 | of the github remote; run the following commands to mirror the codeberg repo to |
| 81 | github: |
| 82 | |
| 83 | ```console |
| 84 | $ git fetch --prune origin |
| 85 | $ git push --prune github '+refs/remotes/origin/*:refs/heads/*' '+refs/tags/*:refs/tags/*' |
| 86 | ``` |
| 87 | |
| 88 | The first command updates the local repo and the second command pushes |
| 89 | everything on `origin` without pushing any of the local branches. |
| 90 | |
| 91 | - - - |
| 92 | |
| 93 | For mundane development related talks which don't warrant their own issue, use |
| 94 | the [general discussion](https://codeberg.org/nsxiv/nsxiv/issues/294) thread. |