-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
507 changed files
with
59,060 additions
and
157,281 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Change Log | ||
|
||
## [1.1.0] - 2020-09-29 | ||
* [#5](https://github.com/Blackjacx/backlog-notifier/pull/5): Multiple Notifier References - [@Blackjacx](https://github.com/blackjacx). |
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 |
---|---|---|
@@ -1,31 +1,53 @@ | ||
# Backlog Notifier Github Action (JS) | ||
# Backlog Notifier GitHub Action (JS) | ||
|
||
Comment on tickets connected to PRs in a teams platform specific repository in the same account about the release of a new PR / feature. | ||
This action automatically notifies ticket owners (product owner, product managers, people watching tickets, ...) about included features when it gets triggered, e.g. at release time. It takes away the need of asking or manual commenting on tickets when they get resolved. | ||
|
||
## How does it work? | ||
|
||
This action was born to get rid of manually inform all responsible people that a certain backlog ticket has been closed when the connected PR makes it into a release. | ||
|
||
In our company we have separate repos for iOS, Android and web. Additionally, we have global repos to handle backlog and bug tickets respectively. For each bug or backlog ticket we create an issue in the platform-specific repo and reference the master-ticket. This action is able to detect these references and automatically comment on the master ticket, e.g. when a tag is created. It can also put the released version into the comment. This automatically informs all stakeholders in which version the feature gets released or the bug gets resolved. For us this is a huge time saver. | ||
|
||
Of course this can also be used if you have a simpler setup than the one described above. If you develop e.g. your own iOS app, wouldn't it be practical to automatically post a comment on each issue/PR with the released app version the issue/PR made it in? Yes you can do that too :) | ||
|
||
For PRs that resolve multiple issues this action is also capable of detecting each reference and comment on all of the connected tickets. | ||
|
||
The only thing this action relies on is that you maintain a CHANGELOG.md file following the format described on [Keep A Changelog](https://keepachangelog.com/). | ||
|
||
## Inputs | ||
|
||
### `backlog-ticket-prefix` | ||
#### `reference-repo-prefixes` • required | ||
|
||
**Required** Prefix of the backlog issue identifier. The whole identifier must look like `BACKLOG-539` and has to be part of the PR description. Default `"BACKLOG"`. | ||
Prefixes for issue numbers of reference repos. You can specify multiple comma-separated ones. The should be single words like BACKLOG or BUGLOG which could identify repos for backlog and bug tickets respectively. A complete identifier, as the action searches it in the PR description, should consist of this prefix and the issue number separated by a dash, e.g. `BACKLOG-539`. **Default:** `BACKLOG`. | ||
|
||
### `backlog-repo-name` | ||
#### `reference-repo-names` • required | ||
|
||
**Required** The repo name that contains your backlog tickets. Must be under the same github account as the repo you use this action in. Default `"backlog"`. | ||
Repository names that contain tickets to notify. This list must have the same number of elements as the repository prefixes list. Specify one repository name for each prefix. The repository must be located under the same GitHub account as the repository you use this action on. **Default:** `backlog`. | ||
|
||
### `message` | ||
#### `message` • required | ||
|
||
**Required** The message thats posted in the backlog ticket. Use `#` as placeholder for the version number. It will be automatically replaced. Default `"This feature has just been released for iOS 🎉 Now it takes typically 2-3 days until the release is available in the App Store."`. | ||
The message thats posted in the backlog ticket. Use `#` as placeholder for the version number. It will be automatically replaced. Default `"This feature has just been released for iOS 🎉 Now it takes typically 2-3 days until the release is available in the App Store."`. | ||
|
||
## Example usage | ||
## Example Usage | ||
|
||
The example below defines two prefixes and two repo names respectively, which enables the action to find connected tickets in the repos named `backlog` and `bug`. | ||
|
||
``` | ||
uses: blackjacx/backlog-notifier@master | ||
with: | ||
backlog-ticket-prefix: 'BACKLOG' | ||
backlog-repo-name: 'backlog' | ||
reference-repo-prefixes: 'BACKLOG, BUG' | ||
reference-repo-names: 'backlog, bug' | ||
message: 'Dang! This feature is released in version # 🎉' | ||
``` | ||
|
||
## Testing | ||
|
||
I didn't find a way to properly test the JS action implementation in `index.js` locally yet. That's why I created the repos [Backlog](https://github.com/Blackjacx/backlog) and [GHTest](https://github.com/Blackjacx/ghtest). | ||
|
||
Backlog is just setup with some issues where the action can comment on and which can be referenced from PRs in different repos. | ||
|
||
GHTest contains a [shell script](https://github.com/Blackjacx/ghtest/blob/develop/trigger-backlog-notifier.sh) that can trigger this action. It will essentially push a tag to GitHub, i.e. create a release which is the main use case where this action should run. After executing the script this [GHTest workflow](https://github.com/Blackjacx/ghtest/blob/develop/.github/workflows/backlog-notifier.yml) is used to run the action on GitHub. It is configured to detect ticket references for both repos, `Backlog` and `GHTest`. | ||
|
||
## License | ||
|
||
This software is available under the MIT license. See [LICENSE](LICENSE) for details. |
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 was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
node_modules/get-stream/license → node_modules/@actions/core/LICENSE.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.