-
Notifications
You must be signed in to change notification settings - Fork 2
Contribution Guidelines
The purpose of this document is to establish a contribution standard for contributors of the Terminarium
project as well as ensuring that individual contributions are well-formed and fulfill relevant criteria.
- For the checklist of the contributor please refer to the Checklist For Team Members section.
- Terminarium - Contribution Standards
To ensure correctness and traceability in project contributions, all contributors are expected to have read and understood the content of this document.
The system requirements are written either in the SRS-format or as User Epics, which are then broken down into smaller user stories - each relating to one issue.
- Labels are used to organise issues and milestones - appropriate labels must always be attached.
- A list of labels and their full descriptions can be found here.
- The
backlog
label is used to indicate an issue that is not currently in the considered scope (say, a sprint, or some proportion of a sprint); however, it may be considered for future development or to offer a way to introduce new ideas, without cluttering the main issue board.- Nevertheless, the
backlog
label should be removed once the issue is moved into the scope (i.e. is started to be worked on). - Furthermore, it's used to improve the documentation of the project, by providing a way to track the evolution of the project.
- Nevertheless, the
- Issues are used to describe tasks, track (their) progress, communicate around them, and most importantly: ensure traceability.
The Terminarium
repository (currently) contains the following template(s):
-
Requirement - defines the structure for a requirement type issue; applicable to a majority of project contributions.
- Enforces the following structure (the related issue can be omitted, if not applicable):
- Issue Description
- Acceptance Criteria
- Related Issues
- Enforces the following structure (the related issue can be omitted, if not applicable):
- Milestones consist of a group of requirements that together make up a particular milestone.
- For a milestone to have been achieved the associated issues must first be closed (completed or otherwise moved out of scope).
- Each project sprint has its own sprint milestone (and accompanying label).
-
Branches
are used when implementing new contributions into the project. Any additions or changes related to the implementation of a certain issue must first be made using the correlating branch, and later on merged with themain branch
via a merge-request.
- When creating an issue that corresponds to a feature request, it is important to adhere to the provided issue template.
- The template should include a user story or a Software System Requirements (SSR) description. Alternatively, if more feasible, a textual natural language description can be used.
- The author should also provide acceptance criteria that outline the specific requirements that must be met for the feature to be considered complete.
- For bug fixes or documentation enhancements, a textual natural language description is sufficient to describe the issue.
- Issue titles should use the imperative mood, such that it forms a command or request.
- When creating an issue, the author of the issue should assign themselves as the assignee.
- Additionally, the appropriate labels should be added, such as "enhancement" for a new feature or "bug" for a bug in the code.
- Labels for priority (e.g.
priority:medium
)and Sprint/Milestone (e.g.Sprint:2
) information should always be provided.- The Sprint/Milestone label can be omitted for bug fixes or other similar issues.
- An appropriate due date should be added to the issue with respect to the milestone's deadline.
- Once an issue is created, the author can continuously updates the acceptance criteria based on the committed implementations to track what work remains to be done.
- To ensure traceability, commit messages must be written in the imperative mood and should include the corresponding issue via the
#<n>
syntax. - Additionally, it is highly recommended to provide a description for each commit. It should cover the rationale for the changes and the approach taken to implement them.
- In cases where multiple individuals work on a commit, the "Co-authors: ..." convention should be utilized to acknowledge their contribution.
- In adherence to the feature-branch workflow, a distinct branch should be created for every issue. It is significant to ensure that the branch is created from the corresponding issue. The name assigned to the branch should be succinct, while also bearing resemblance to the content of the issue.
- Branch names must also include the related issue number as prefix, for example: "#21-add-contributing-md".
- A merge request must have an assignee (i.e., the author of the corresponding issue) and a reviewer (a different team member).
- The merge request shall:
- As a reviewer, the duties are to:
- ensure that the code meets acceptable quality standards and fulfills the desired feature request,
- provide feedback and/or code reviews to improve the feature if necessary,
- approve the merge request if they believe it is suitable for the system's development.
- Once the merge request is approved, the 'needs-review' label should be removed, and the 'status:ok' label added.
- Only after these steps have been completed can the assignee merge the merge request.
- In the event that a particular feature is deemed unfeasible or outside of the project scope, it may be closed with the addition of the 'deprecated' label. If necessary, the feature can be revisited and subsequently reopened.
The following should be continuously checked during the development process; as a team member, you are expected to question yourself and your peers on the following:
- Have you followed the issue template when creating a new issue that requests a new feature?
- Have you provided acceptance criteria for the feature that you are working on?
- Have you used the imperative style and included the issue number in the commit message to ensure traceability?
- Have you created a separate branch for each issue and named the branch appropriately?
- Have you assigned an assignee and reviewer for each merge request?
- Have you retained the labels and milestone from the original issue in the merge request?
- Have you thoroughly reviewed the code and added comments or suggestions for improvement as necessary?
- Have you approved the merge request only if you believe that it is suitable for application to the development of the system, and similarly changed the labels accordingly?
- Have you closed a feature as deprecated if it is no longer feasible or not part of the scope anymore?
- Have you raised any incidents of misconduct to the PM of the project as necessary?
- All team member are encouraged to adhere to the standard Markdown syntax. If necessary, the Markdown Cheatsheet can be used as a reference.
- In case of any inappropriate behavior, it is the duty of team members to escalate the matter to the Project Manager (@spano) for further action.
Terminarium Wiki 2023
, DIT113, University of Gothenburg | Chalmers University of Technology, Sweden