Skip to content

Commit 67f321b

Browse files
Feature/1 initial version (#2)
* Initial version of files and project settings. Co-authored-by: Saša Zejnilović <[email protected]>
1 parent 6e1421f commit 67f321b

File tree

11 files changed

+31923
-2
lines changed

11 files changed

+31923
-2
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
labels: 'bug'
5+
6+
---
7+
8+
## Describe the bug
9+
A clear and concise description of what the bug is.
10+
11+
## To Reproduce
12+
Steps to reproduce the behavior OR commands run:
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Enter value '...'
16+
4. See error
17+
18+
## Expected behavior
19+
A clear and concise description of what you expected to happen.
20+
21+
## Screenshots
22+
If applicable, add screenshots to help explain your problem.
23+
24+
## Additional context
25+
Add any other context about the problem here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
labels: 'enhancement'
5+
6+
---
7+
8+
## Background
9+
A clear and concise description of where the limitation lies.
10+
11+
## Feature
12+
A description of the requested feature.
13+
14+
## Example [Optional]
15+
A simple example if applicable.
16+
17+
## Proposed Solution [Optional]
18+
Solution Ideas:
19+
1.
20+
2.
21+
3.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Question
3+
about: Ask a question
4+
labels: 'question'
5+
6+
---
7+
8+
## Background [Optional]
9+
A clear explanation of the reason for raising the question.
10+
This gives us a better understanding of your use cases and how we might accommodate them.
11+
12+
## Question
13+
A clear and concise inquiry

.github/ISSUE_TEMPLATE/spike_task.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Spike
3+
about: Issue template for spikes, research and investigation tasks
4+
labels: 'spike'
5+
6+
---
7+
8+
## Background
9+
A clear and concise description of the problem or a topic we need to understand.
10+
11+
Feel free to add information about why it's needed and what assumptions you have at the moment.
12+
13+
## Questions To Answer
14+
15+
1.
16+
2.
17+
3.
18+
19+
## Desired Outcome
20+
21+
The list of desired outcomes of this spike ticket.
22+
23+
```[tasklist]
24+
### Tasks
25+
- [ ] Questions have been answered or we have a clearer idea of how to get to our goal
26+
- [ ] Discussion with the team
27+
- [ ] Documentation
28+
- [ ] Create recommendations and new implementation tickets
29+
- [ ] item here..
30+
```
31+
32+
## Additional Info/Resources [Optional]
33+
34+
1.
35+
2.
36+
3.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
target/
3+
node_modules

CONTRIBUTING.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# How to Contribute?
2+
3+
## **Identifying and Reporting Bugs**
4+
* **Ensure the bug has not already been reported** by searching our **[GitHub Issues](https://github.com/AbsaOSS/generate-release-notes/issues)**.
5+
* If you cannot find an open issue describing the problem, use the **Bug report** template to open a new one. Tag it with the **bug** label.
6+
7+
## **Proposing New Features**
8+
9+
* **Check if the feature has already been requested** by searching through our **[GitHub Issues](https://github.com/AbsaOSS/generate-release-notes/issues)**.
10+
* If the feature request doesn't exist, feel free to create a new one. Tag it with the **request** label.
11+
12+
## **Contributing to Development**
13+
14+
* Check _Issues_ logs for the desired feature or bug. Ensure that no one else is already working on it.
15+
* If the feature/bug is not yet filed, please create a detailed issue first:
16+
* **"Detail Your Idea or Issue"**
17+
* Fork the repository.
18+
* Begin coding. Feel free to ask questions and collaborate with us.
19+
* Commit messages should reference the GitHub Issue and provide a concise description:
20+
* **"#34 Implement Feature X"**
21+
* Remember to include tests for your code.
22+
* Once done, push to your fork and submit a Pull Request to our `master` branch:
23+
* Pull Request titles should begin with the GitHub Issue number:
24+
* **"45 Implementing New Analytics Feature"**
25+
* Ensure the Pull Request description clearly outlines your solution.
26+
* Link your PR to the relevant _Issue_.
27+
28+
### Community and Communication
29+
30+
If you have any questions or need help, don't hesitate to reach out through our GitHub discussion section. We're here to help!
31+
32+
#### Thanks!
33+
34+
Your contributions are invaluable to us. Thank you for being part of the AbsaOSS community and helping us grow and improve!
35+
36+
The AbsaOSS Team

README.md

Lines changed: 126 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,126 @@
1-
# generate-release-notes
2-
Efficiently automate your release note generation with 'generate-release-notes'. This tool scans your target GitHub repository's issues, sorting and organizing them into well-formatted release notes. Perfect for maintaining a streamlined and organized release process.
1+
# Generate Release Notes Action
2+
3+
This GitHub Action automatically generates release notes for a given release tag by categorizing contributions into user-defined chapters based on labels. It streamlines the process of documenting new features, bug fixes, and breaking changes in your project releases.
4+
5+
## Motivation
6+
7+
Generate Release Notes action is dedicated to enhance the quality and organization of project documentation. Its primary purpose is to categorize release notes according to various labels, perfectly aligning with the unique organizational needs of each project. In addition, it offers robust support for acknowledging the efforts of contributors, thereby fostering a sense of recognition and appreciation within the team. Another noteworthy feature of this tool is its capability to detect potential gaps in documentation, ensuring that release notes are comprehensive and leave no stone unturned. Well maintained release notes are a vital component in maintaining high-quality, meticulously organized documentation, which is indispensable in the development process. This repository reflects our commitment to excellence in project documentation and team collaboration.
8+
9+
## Setup and Usage
10+
11+
### Prerequisites
12+
13+
Before we begin, ensure you have a GitHub Token with permission to fetch repository data such as Issues and Pull Requests.
14+
15+
### Adding the Action to Your Workflow
16+
17+
Add the following step to your GitHub workflow:
18+
19+
```yaml
20+
- name: Generate Release Notes
21+
id: generate_release_notes
22+
uses: AbsaOSS/[email protected]
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
chapters: '[
26+
{"title": "Breaking Changes 💥", "label": "breaking-change"},
27+
{"title": "New Features 🎉", "label": "enhancement"},
28+
{"title": "Bugfixes 🛠", "label": "bugfix"}
29+
]'
30+
warnings: true
31+
32+
- name: Print generated Release notes
33+
run: |
34+
echo "Generated Release Notes:"
35+
echo "${{ steps.generate_release_notes.outputs.releaseNotes }}"
36+
```
37+
38+
### Configure the Action
39+
Configure the action by customizing the following parameters based on your needs:
40+
41+
- **github_token** (required): Your GitHub token for authentication. Store it as a secret and reference it in the workflow file as secrets.GITHUB_TOKEN.
42+
- **chapters** (required): A JSON string defining chapters and corresponding labels for categorization. Each chapter, like "Breaking Changes", "New Features", and "Bugfixes", should have a title and a label matching your GitHub issues and PRs.
43+
- **warnings** (optional): Set to true to enable warnings in the release notes. These warnings identify issues without release notes, without user-defined labels, or without associated pull requests, and PRs without linked issues. Defaults to false if not specified.
44+
45+
### Build the Action:
46+
If you need to build the action locally:
47+
48+
```bash
49+
npm install
50+
npm run build
51+
```
52+
53+
Then, commit action.yml and dist/index.js to your repository.
54+
55+
### Release Notes Extraction Process
56+
57+
This action requires that your GitHub issues include comments with specific release notes. Here's how it works:
58+
59+
#### Extraction Method
60+
The action scans through comments on each closed issue since the last release. It identifies comments that follow the specified format and extracts the content as part of the release notes.
61+
62+
**Note**: The time considered for the previous release is based on its creation time. This means that the action will look for issues closed after the creation time of the most recent release to ensure that all relevant updates since that release are included.
63+
64+
#### Comment Format
65+
For an issue's contributions to be included in the release notes, it must contain a comment starting with "Release Notes" followed by the note content. This comment is typically added by the contributors.
66+
```
67+
Release Notes
68+
- This update introduces a new caching mechanism that improves performance by 20%.
69+
```
70+
71+
#### Contributors Mention
72+
Along with the release note content, the action also gathers a list of contributors for each issue. This includes issue assignees and authors of linked pull requests' commits, providing acknowledgment for their contributions in the release notes.
73+
74+
#### Handling Multiple PRs
75+
If an issue is linked to multiple PRs, the action fetches and aggregates contributions from all linked PRs.
76+
77+
#### No Release Notes Found
78+
If no valid "Release Notes" comment is found in an issue, it will be marked accordingly. This helps maintainers quickly identify which issues need attention for documentation.
79+
80+
#### Warnings
81+
If the `warnings` option is enabled in the action's configuration, the release notes will include sections that highlight possible issues.
82+
83+
The action includes four specific warning chapters to highlight potential areas of improvement in release documentation. Each chapter serves a distinct purpose:
84+
85+
- **_Issues Without Pull Request_**
86+
- **Purpose**: This chapter lists issues that have been closed since the last release but are not linked to any pull requests.
87+
- **Importance**: Helps maintainers identify changes that might not have been properly reviewed or documented through PRs, ensuring the integrity of the release documentation.
88+
89+
- **_Issues Without User-Defined Labels_**
90+
- **Purpose**: Displays issues lacking the labels defined in the `chapters` configuration.
91+
- **Importance**: Ensures all issues are categorized correctly according to the project's classification system. It aids in organizing release notes into predefined chapters effectively.
92+
93+
- **_Issues Without Release Notes_**
94+
- **Purpose**: Identifies issues that do not contain a "Release Notes" comment.
95+
- **Importance**: Ensures that all significant changes are properly documented in the release notes, enhancing the completeness and usefulness of the release information provided to end-users.
96+
97+
- **_PRs Without Linked Issue_**
98+
- **Purpose**: Lists pull requests that are not associated with any issues.
99+
- **Importance**: Encourages linking PRs to issues for better traceability and understanding of why changes were made. It also helps in maintaining a cohesive narrative in the project history and release notes.
100+
101+
Each warning chapter acts as a quality check, ensuring that the release notes are comprehensive, well-organized, and meaningful. By addressing these warnings, project maintainers can significantly improve the clarity and effectiveness of their release documentation.
102+
103+
104+
### Contribution Guidelines
105+
106+
We welcome contributions to the Generate Release Notes Action! Whether you're fixing bugs, improving documentation, or proposing new features, your help is appreciated.
107+
108+
#### How to Contribute
109+
- **Submit Pull Requests**: Feel free to fork the repository, make changes, and submit a pull request. Please ensure your code adheres to the existing style and all tests pass.
110+
- **Report Issues**: If you encounter any bugs or issues, please report them via the repository's [Issues page](https://github.com/AbsaOSS/generate-release-notes/issues).
111+
- **Suggest Enhancements**: Have ideas on how to make this action better? Open an issue to suggest enhancements.
112+
113+
Before contributing, please review our [contribution guidelines](https://github.com/AbsaOSS/generate-release-notes/blob/master/CONTRIBUTING.md) for more detailed information.
114+
115+
### License Information
116+
117+
This project is licensed under the Apache License 2.0. It is a liberal license that allows you great freedom in using, modifying, and distributing this software, while also providing an express grant of patent rights from contributors to users.
118+
119+
For more details, see the [LICENSE](https://github.com/AbsaOSS/generate-release-notes/blob/master/LICENSE) file in the repository.
120+
121+
### Contact or Support Information
122+
123+
If you need help with using or contributing to Generate Release Notes Action, or if you have any questions or feedback, don't hesitate to reach out:
124+
125+
- **Issue Tracker**: For technical issues or feature requests, use the [GitHub Issues page](https://github.com/AbsaOSS/generate-release-notes/issues).
126+
- **Discussion Forum**: For general questions and discussions, join our [GitHub Discussions forum](https://github.com/AbsaOSS/generate-release-notes/discussions).

action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Generate Release Notes'
2+
description: 'Automatically generates release notes for a given release tag, categorized into chapters based on labels.'
3+
inputs:
4+
chapters:
5+
description: 'JSON string defining chapters and corresponding labels for categorization.'
6+
required: true
7+
warnings:
8+
description: 'Print warning chapters if true.'
9+
required: false
10+
default: 'false'
11+
12+
branding:
13+
icon: 'notebook'
14+
color: 'yellow'
15+
16+
runs:
17+
using: 'node20'
18+
main: 'dist/index.js'

0 commit comments

Comments
 (0)