Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bigbite/release-notes
https://github.com/bigbite/release-notes
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bigbite/release-notes
- Owner: bigbite
- Created: 2023-02-16T12:11:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T09:02:36.000Z (10 days ago)
- Last Synced: 2024-11-04T09:31:49.927Z (10 days ago)
- Language: PHP
- Size: 1.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# release-notes
## Slack integration setup
1. Create a slack app & webhook if you don't have one already (Follow steps 1 to 3 at https://api.slack.com/messaging/webhooks)
2. Add the webhook to the sites settings page (wp-admin -> settings -> Release Notes)## Integrating with github releases
If you want to create a draft release note post using the notes you've added to the github release, you can do this automatically using the `bigbite/project` circleCI orb version `0.0.63` or newer. You just need to add the following to your .circleci/config.yml` file:
```yaml
workflows:
release-workflow:
jobs:
- project/set-release-notes:
context: bigbite
filters:
branches:
ignore: /.*/
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+(\-[\w\d\.]+)?$/
```## Creating a draft release remotely
If you want to create a draft release remotely, you can use the REST endpoint `POST /release-notes/v1/new-release` with the following parameters:
- body: string - a git-markdown string used for the content of the release note post
- isDraft: boolean - used to check if the release is just a draft, if it is true, the release note post will not be created
- name: string - the name of the release
- publishedAt: UTC date-time string - used to set the release date of the release note post
- tagName: string - the release version
- isPrerelease: boolean - used to note if a release is a pre-release or not## Installing
When installing to your site, add the following to you `composer.json` file. This will ensure that installation will use the build version of the package and allow it to be loaded using composer in the preferred path.
```json
{
"repositories": [
{
"type": "vcs",
"url": "[email protected]:bigbite/release-notes.git"
}
],
"require": {
"bigbite/release-notes": "1.0.0-rc.6"
},
"extra": {
"installer-paths": {
"plugins/{$name}/": [
"type:wordpress-plugin"
]
}
}
}```
## Local Development or Manual Install
Clone the repository into your `plugins` or `client-mu-plugins` directory.
```
git clone [email protected]:bigbite/release-notes.git && cd release-notes
```Install JS packages.
```
npm install
```Build all assets - additional commands can be found on the [`bigbite/build-tools` repo.](https://github.com/bigbite/build-tools#commands)
```
npm run build:dev
```Install PHP packages and create autoloader for the plugin.
```
composer update
```