Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
cda138c
chore: inital commit
HarryC05 Feb 16, 2023
9025b4e
feat: added release notes post type
HarryC05 Feb 16, 2023
f101221
fix: global variable names
HarryC05 Feb 16, 2023
f803d6e
feat: added a simple template for the release notes post type
HarryC05 Feb 16, 2023
c539ebe
feat: added the widget to the dashboard
HarryC05 Feb 16, 2023
a9bc37f
feat: added the archive page
HarryC05 Feb 16, 2023
cba238a
feat: added the admin bar item
HarryC05 Feb 16, 2023
39ce5cd
feat: added the version number field to the post and cleaned up files
HarryC05 Feb 16, 2023
c79db5c
fix: changed the header place holders for content
HarryC05 Feb 16, 2023
66e0968
feat: added video block support
HarryC05 Feb 17, 2023
f67689d
feat: added a release date meta
HarryC05 Feb 17, 2023
70cca44
fix: added a label to the date picker input
HarryC05 Feb 17, 2023
fce25d9
chore: moved all changes made in the other repo
HarryC05 Mar 6, 2023
4dadf0d
feat: add settings page
HarryC05 Mar 20, 2023
a89a634
fix: re worded settings names
HarryC05 Mar 20, 2023
3503653
feat: added support for the slack API
HarryC05 Mar 21, 2023
ea107d1
feat: added a header section to the slack message
HarryC05 Mar 21, 2023
c9c0c75
chore: removed version section from slack message
HarryC05 Mar 21, 2023
9d9cfc6
feat: added support for links and rich text formatting
HarryC05 Mar 21, 2023
5ec8044
feat: created richtext and link formatters
HarryC05 Mar 21, 2023
9e69557
chore: add doc comments
HarryC05 Mar 21, 2023
f3206dc
chore: added doc comments
HarryC05 Mar 21, 2023
5017093
style: added space before/after brackets
HarryC05 Mar 21, 2023
3eadeda
chore: removed unused file
HarryC05 Mar 23, 2023
664d957
feat: added the ability to use post meta in the slack message
HarryC05 Mar 23, 2023
a1911cb
feat: added different header for a pre-release
HarryC05 Mar 23, 2023
8c59f56
fix: updated the namespace to use camelcaps
HarryC05 Mar 23, 2023
b494d19
chore: added editor config file
HarryC05 Mar 23, 2023
8b9b394
chore: replaced indentation with tabs
HarryC05 Mar 23, 2023
c965f07
chore: added domain to the translation strings
HarryC05 Mar 23, 2023
03b54ae
chore: added more translations and fixed spacing
HarryC05 Mar 23, 2023
fe9612e
chore: doc comment cleanup and function clean up
HarryC05 Mar 23, 2023
c9223a7
chore: replaced double quotes, fixed spacing, added translations
HarryC05 Mar 23, 2023
c71fdfa
chore: updated dic comments
HarryC05 Mar 23, 2023
60681b3
chore: separated the foreach loop into its own func
HarryC05 Mar 23, 2023
8a74c40
chore: reduced the complexity of the format func
HarryC05 Mar 23, 2023
1fca70f
chore: removed useless validation function
HarryC05 Mar 23, 2023
53ba8c8
fix: update phpcs ruleset ref
HarryC05 Mar 23, 2023
a9c19a9
chore: added comments to empty files
HarryC05 Mar 23, 2023
9eb97c0
style: phpcs changes
HarryC05 Mar 23, 2023
1b83ce5
style: phpcs
HarryC05 Mar 23, 2023
44dd3cb
style: phpcs
HarryC05 Mar 23, 2023
38fbb7d
style: split all if statements into their own func
HarryC05 Mar 24, 2023
5fe5d17
feat: now using the rich text block for the regular text
HarryC05 Mar 27, 2023
dce11b9
feat: added rich text lists
HarryC05 Mar 27, 2023
17046c8
style: phpcs
HarryC05 Mar 27, 2023
94de37a
fix: fix image links and alt text for slack notification
HarryC05 Mar 27, 2023
c15ae93
fix: moved class properties and used sprintf for strings
HarryC05 Mar 30, 2023
5e65b84
fix: added default value to the settings
HarryC05 Mar 30, 2023
ec3b5f1
fix: default setting arr
HarryC05 Mar 30, 2023
562a71a
style: phpcs
HarryC05 Mar 30, 2023
babf3e0
Merge pull request #2 from bigbite/feat/slack-integration
HarryC05 Mar 31, 2023
a087ae5
chore: removed class name space
HarryC05 Apr 5, 2023
ae3be03
fix: removed unused function
HarryC05 Apr 5, 2023
f60fbd2
fix: updated heading regex pattern
HarryC05 Apr 5, 2023
c94bfce
Update class-register-settings.php
HarryC05 May 22, 2023
7f7e006
chore: composer update
HarryC05 May 22, 2023
275bfe6
Merge branch 'main' of github.com:bigbite/release-notes
HarryC05 May 22, 2023
1c581a9
fix: changed __e() to _e()
HarryC05 May 22, 2023
4b58063
fix: allow classes on elements
HarryC05 May 22, 2023
35ea480
fix: remove dives from the elements list
HarryC05 May 22, 2023
519b749
Updated config.yml
HarryC05 May 31, 2023
7c717ed
Update composer.json
HarryC05 Jun 2, 2023
54c57ff
Update .deployignore
HarryC05 Jun 2, 2023
ec8a9fc
Update plugin.php
HarryC05 Jun 5, 2023
6cd3bf1
Update README.md
HarryC05 Jun 5, 2023
f43eddc
chore: changed plugin type to myplugin
HarryC05 Jun 5, 2023
b69c611
updated plugin and readme file
HarryC05 Jun 5, 2023
b5b0900
revert README.md
HarryC05 Jun 5, 2023
a25cd51
revert composer.json
HarryC05 Jun 5, 2023
f661617
revert plugin.php
HarryC05 Jun 5, 2023
9fd51b7
revert composer.json
HarryC05 Jun 5, 2023
3407bc5
chore: change plugin type to client mu
HarryC05 Jun 5, 2023
d8c18a0
chore: update version numbers
HarryC05 Jun 5, 2023
09441b3
revert
HarryC05 Jun 5, 2023
9659f0b
chore: changed to mu plugin type
HarryC05 Jun 6, 2023
806a970
chore: update version
HarryC05 Jun 6, 2023
1f32fd5
revert
HarryC05 Jun 6, 2023
2ecb289
chore: composer update
HarryC05 Jun 6, 2023
bbcdb6a
chore: install cypress and wp-cypress
g-elwell Jun 20, 2023
89e86cd
chore: install and configure cucumber preprocessor, add example test
g-elwell Jun 20, 2023
5f32f16
Chore: added instructions to README
HarryC05 Jun 20, 2023
e7a2913
chore: add gherkin lint
g-elwell Jun 26, 2023
1062f79
feat: remove unused seeders, seed release notes, rewrite scenarios
g-elwell Jun 26, 2023
536d9dd
Merge pull request #3 from bigbite/chore/cypress-setup
g-elwell Jul 7, 2023
1730caa
test: initial creation of a release note for the test
Jul 11, 2023
6ca9c88
test: implentation of successfully publishing the release note
Jul 11, 2023
eafc20a
test: assertions added to test
Jul 11, 2023
f30093d
refactor: refactored the feature and test files along with the naming…
Jul 19, 2023
f4dd0a2
chore: upgrade wp-cypress to current version
Oct 3, 2023
0594f57
chore: removed all reference of cucumber and gherkin from the plugin …
Oct 3, 2023
cda20c6
chore: add CODEOWNERS file
jaymcp Nov 13, 2023
eb40d37
Merge pull request #5 from bigbite/feature/release-notes-tests
johnmunster Nov 14, 2023
1ce7d14
feature: non admin users test added
Dec 1, 2023
c68da9c
fix: removed the page template test as it was not complete
Dec 1, 2023
da2a7eb
featre: Added some code that stops xhr requests from showing when run…
Dec 1, 2023
7c5320e
feature: creation of all users can access releae notes page
Dec 1, 2023
f8e6ef9
fix: typo fix and changed object of varibles to an array
Dec 4, 2023
d391755
fix: refactored the test to loop over all users to run as one test
Dec 4, 2023
39eae12
feature: new test for users seeing the release notes widget in the da…
Dec 4, 2023
009f3ec
fix: fixed a typo found in PR review
Dec 5, 2023
3192f1e
Update cypress/e2e/access-to-release-notes-page.cy.js
johnmunster Dec 5, 2023
022318a
Merge pull request #10 from bigbite/feature/access-to-release-notes-page
johnmunster Dec 5, 2023
cab7556
Merge pull request #9 from bigbite/feature/remove-xhr-requests
johnmunster Dec 5, 2023
8947245
Merge pull request #8 from bigbite/feature/release-notes-tests
johnmunster Dec 5, 2023
78b23e4
add: New test that varifies that is possible to delete release notes:
Dec 11, 2023
3eb8c60
fix: adjusted the selector in the test to grab the most recent releas…
Dec 12, 2023
04eab16
fix: added an extra assertion to the version in the top toolbar and c…
Dec 13, 2023
76bc057
Merge pull request #11 from bigbite/feature/users-see-release-notes-i…
johnmunster Jan 5, 2024
24831b2
test: refactored the test to make it more about the version control t…
Jan 10, 2024
3dff58c
Merge branch 'main' into feature/delete-release-note
johnmunster Jan 10, 2024
bbdffe9
test: filename, test description and slight refactor of code so that …
Jan 10, 2024
ccc97cd
Merge pull request #13 from bigbite/feature/delete-release-note
johnmunster Jan 10, 2024
1311e05
Merge pull request #7 from bigbite/chore/codeowner
jaymcp Jun 28, 2024
2334c05
docs: add GPLv2 licence
jaymcp Jun 28, 2024
89ebf10
Merge pull request #20 from bigbite/docs/licence
jonnywatersbb Apr 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2.1

orbs:
project: 'bigbite/project@0.0.61'

jobs:
build:
executor:
name: project/default
php: '8.0'
steps:
- checkout
- project/setup
- project/composer-install:
path: './'
- project/npm-install:
path: './'
- project/npm-build:
path: './'
- project/create-build

workflows:
workflow:
jobs:
- build:
context: bigbite
filters:
branches:
ignore: /^.*-built$/
16 changes: 16 additions & 0 deletions .deployignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# npm
node_modules
package-lock.json
package.json

# composer
composer.lock

# build tools
src
.phpcs.xml.dist
webpack.config.js

# other
.gitignore
README.md
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# editorconfig.org
root = true

[*]
indent_style = space
end_of_line = lf
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{html,php,twig}]
indent_size = 2

[*.php]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @scottblackburn @bigbite/lead-engineers
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
vendor/
dist/

.DS_Store
inc/asset-settings.php
4 changes: 4 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<ruleset name="release-notes Rules">
<rule ref="./vendor/bigbite/phpcs-config/BigBite" />
</ruleset>
339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

75 changes: 74 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,74 @@
# release-notes
# 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": "git@github.com: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 git@github.com: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
```
38 changes: 38 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "bigbite/release-notes",
"description": "",
"type": "wordpress-plugin",
"repositories": [
{
"url": "git@github.com:bigbite/phpcs-config.git",
"type": "vcs"
}
],
"require": {
"automattic/jetpack-autoloader": "^2.10.1",
"league/commonmark": "^2.3"
},
"require-dev": {
"bigbite/phpcs-config": "dev-main"
},
"autoload": {
"files": [
"inc/constants.php",
"inc/asset-settings.php",
"inc/utils.php",
"inc/setup.php"
],
"psr-4": {
"Big_Bite\\release-notes\\": "inc/"
},
"classmap": [ "inc/" ]
},
"scripts": {},
"config": {
"preferred-install": "dist",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"automattic/jetpack-autoloader": true
}
}
}
Loading