Commit graph

73 commits

Author SHA1 Message Date
Ben Goldsworthy 0a34e96450
Add release helper script (#64)
This commit adds a release helper script, amongst other workflow improvements.

See `README.md` for instructions, and `_tools/release.sh` for the script itself.

This script:

1. sanity-checks the various version tags;
2. triggers a Plugin build;
3. flags the new version as pre-release;
4. tags the version in Git;
5. creates a local working copy of the SVN repo;
6. copies the new release to the local `trunk/` (whilst keeping the ‘Stable Tag’ field in `readme.txt` pointing to the previous stable version);
7. copies the commit message from the changelog in `readme.txt`; and
8. (if a flag is set) commits the changes to the remote `trunk/`.

Pushing out a new release must still be done manually, once `trunk/` is tested and working. To do so, check out a local copy of `trunk/` and:

1. update the ‘Stable Tag’ field in `trunk/readme.txt` to the new version;
2. update the ‘Version’ field in the comment header of `trunk/footnotes.php` to the new version;
3. remove the ‘p’ from the end of the ‘version’ tag in the `getInfo()` function at the bottom of `js/wsiwyg-editor.js`; 
4. copy a new tag for the release from `trunk/` (`svn cp trunk tags/<version number>`); and
5. commit your changes (`svn ci -m "Release version <version number>"`).

The WP Plugin Directory will automatically parse the ‘Stable Tag’ field in `trunk/readme.txt`, and inform users that a new version is available.

At various stages user input is required to validate information. This is not ready for automation with GitHub Actions, but is a useful step on the way — see [this piece](https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-the-key-to-gradual-automation/) for more info.

Unless a `-c` flag is passed (e.g., by running `composer run release:commit`) no changes will take place on the remote SVN repo. If you want to test this out on a branch other than `main`, uncomment lines 31 & 52 of the script.

Version checking enforces the versioning rules stated [here](https://github.com/markcheret/footnotes/wiki/Versioning).

**NB: I have not tested the `-c` mode yet, as I wanted people will more familiarity with the SVN to have a look at it before I risked making any changes and blowing everything up.**

Co-authored-by: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
2021-03-17 17:46:21 +00:00
pewgeuges 46fc9a7c5f Adapt after the 2.5.9d1 accident. 2021-03-05 04:30:50 +01:00
Ben Goldsworthy 25c3f2f12e Replace output escape and input sanitization functions with linter supression messages 2021-02-27 08:49:08 +00:00
pewgeuges bf80a52c07 Edit file level docblocks. 2021-02-24 23:53:22 +01:00
pewgeuges 3540815ba7 Small edits. 2021-02-24 17:11:41 +01:00
pewgeuges c1e5e0b33a Update contribution URL class/init.php
The historic repo where @felipelavinz contributed has recently been moved.
As a consequence the commit’s URL needs to be updated.
But the original URL is maintained below under the commit date.
2021-02-24 16:28:34 +01:00
pewgeuges 1c2afab4b3
Change variable names conventional class/init.php
Name variables in an intuitive manner according to coding conventions.
2021-02-23 20:56:06 +01:00
pewgeuges 63803e147b
Merge docblock restore attributions class/init.php
Merge deleted docblock attributions in remaining docblock.
2021-02-23 20:13:38 +01:00
Ben Goldsworthy 526b5d096f Minor whitespace, commenting tweaks 2021-02-23 17:59:52 +00:00
Ben Goldsworthy 078781b000 Explictly pass false argument to wp_enqueue_script().
Not doing so will result in a `WordPress.WP.EnqueuedResourceParameters.NotInFooter` warning from PHPCS.
2021-02-23 17:15:58 +00:00
Ben Goldsworthy 9a8e7c0851 Update codebase to be WP Coding Standard-compliant.
This is a squashed copy of `wp-coding-standard--rebase` to try and fix the line-ending
diff issue we're having.
2021-02-23 16:44:18 +00:00
Ben Goldsworthy 9ee72568ef Append line endings 2021-02-23 16:00:59 +00:00
pewgeuges 65874f089b update 2.5.6d4 in case it is tested in the related forum topic.\nFull changelog:\n= 2.5.6 =\n- Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it @pkverma99 issue reports.\n- Bugfix: Alternative tooltips: shrink width to short content.\n- Update: Documentation: slightly revise / update the plugin’s welcome page on WordPress.org.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2478015 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-20 03:50:52 +00:00
pewgeuges 67c1f443ad development update 2.5.6d2 to prepare the newly promised bugfix release adding a reference container template not using jQuery, plain JS instead.\nThe following is the changelog as drafted for this release: \n= 2.5.6 =\n- Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it issue report.\n- Update: Documentation: slightly revise / update the plugin’s welcome page on WordPress.org.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2477898 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-19 19:42:45 +00:00
pewgeuges 7f5499723b traceability update 2.5.6d1 revert space indent to tab.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2477300 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-18 19:56:44 +00:00
pewgeuges 3a341d36b2 development update 2.5.5d0 to be shared on the forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2475227 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-16 02:23:40 +00:00
pewgeuges b9476b682e traceability update 2.5.4d5
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2472973 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-11 10:34:35 +00:00
pewgeuges 0612b76412 traceability update 2.5.4d4
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2472020 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-09 23:33:29 +00:00
pewgeuges 4d884e22a0 traceability update 2.5.4d3
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2471020 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-08 18:04:15 +00:00
pewgeuges cee486702c traceability update 2.5.4d2
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2469883 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-06 01:57:25 +00:00
pewgeuges 6706ba811e development version for urgent bugfix test in response to Forum (2.5.4d1)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2466893 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-02 04:40:41 +00:00
pewgeuges 12a53754ab update for urgent bugfix upcoming 2.5.3
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2461253 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-23 00:25:35 +00:00
pewgeuges 391cce446a development 2.2.0d8 with update readme “Tested up to: 5.6”. Please test UI redesign prior to adding the missing settings
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2438063 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-12 21:07:24 +00:00
pewgeuges 8e02b48df3 development 2.2.0d0 for Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2435618 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-09 15:12:37 +00:00
pewgeuges 9dba60cd48 prerelease 2.1.4: this is 2.1.4 just without the tag 2.1.4; 2.2.0 will need localization, yet that implies a lot of extra changes and work. The overdue bugfixes need to be released today. Scheduled for this evening if no problems.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2432631 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-06 16:30:14 +00:00
pewgeuges ec116d10a2 development 2.2.0d2 tooltip durations settings
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2432531 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-06 12:46:45 +00:00
pewgeuges 3e8d312969 development 2.2.0d0 merged with 2.1.4d series. Scroll offset and duration settings
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2432050 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-05 04:48:09 +00:00
pewgeuges c432dde37b development 2.1.4d10 with 3 new stylesheets to fix layout in page, derived from Hello Elementor under GPLv3. Need to post on forum.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2431872 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-04 22:51:29 +00:00
pewgeuges 75558d98ac development update 2.1.4d6 for testing and sharing
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2429410 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-01 12:59:28 +00:00
pewgeuges 56a9c0d2e1 development update 2.1.4d5 for assessment and sharing
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2428366 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-30 06:17:43 +00:00
pewgeuges 043f2531ab development 2.1.4d4 for testing and Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2427643 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-28 09:58:23 +00:00
pewgeuges 26326bdcd3 development 2.1.4d3 (really) bugfix, for sharing on Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2426754 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-26 17:15:21 +00:00
pewgeuges 5a97dbb05a development 2.1.4d3 bugfix, for sharing on Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2426439 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-26 09:54:41 +00:00
pewgeuges dacd29c7ca development 2.1.4d1 bugfix, for sharing on Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2426102 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-25 23:40:45 +00:00
pewgeuges 592c663342 development 2.1.4d0 needed for bugfix: wrapping long URLs in ref container and tooltips to prevent layout issues; to be posted on Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2425397 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-25 07:47:45 +00:00
pewgeuges 7cadbec59a update trunk for upcoming 2.1.3, thanks for testing!
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2424352 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-24 09:22:27 +00:00
pewgeuges 860c7dc3c3 Stable Bugfix Release 2.1.2 to roll out immediately in compensation of previous overdue, as a goodwill gesture
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2422035 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-20 05:40:03 +00:00
pewgeuges 0520655f1c Wasn’t actually rolled out! So, 2.1.2 gets deleted; wasn’t ready, BTW… Waiting for 2.2.0 to complete!
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2421833 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-19 20:34:45 +00:00
pewgeuges ef544eb760 stable bugfix release 2.1.2: priority level settings for all other hooks, preventing them from being zeroed at save == URGENCY
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2421553 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-19 14:03:48 +00:00
pewgeuges e3cb392ace stable bugfix release 2.1.1
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2420456 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-18 00:47:53 +00:00
pewgeuges 1e0c8a3a89 development 2.1.1d10 priority level setting as fix for ref container relative position, for evaluation project-side / user-side
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2419731 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-17 02:14:21 +00:00
pewgeuges 3e4453929a development 2.1.1d9 last fixes for evaluation project-side / user-side
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2419624 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-16 20:57:15 +00:00
pewgeuges d2e72d37ee development 2.1.1d8 commented out all script loads to check if it fixes a theme incompatibility
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2419373 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-16 13:28:41 +00:00
pewgeuges 37ae1474ed development 2.1.1d7 fixed dead links
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2418754 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-14 21:40:09 +00:00
pewgeuges 478e21a284 development version 2.1.1d6: fixed line breaking for URLs in tooltips, in response to User on the Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2418088 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-13 16:54:31 +00:00
pewgeuges a9143a34b7 development version 2.1.1d5: added CSS animation to alternative tooltip implementation IN RESPONSE TO USER ON THE SUPPORT FORUM
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2417401 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-12 18:17:28 +00:00
pewgeuges 9d0044a35a development version 2.1.1d4: redacted (commented out) jQuery.browser function use in jquery.tools.min.js, updating for the Forum in response to user
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2416961 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-12 04:46:44 +00:00
pewgeuges 5a8e30e6ea development version 2.1.1d3 with experimental optional alternative tooltip implementation in response to user
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2416861 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-11 20:49:44 +00:00
pewgeuges c05c96a6fd development version 2.1.1d2 fix enqueuing in response to user
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2416626 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-11 13:24:25 +00:00
pewgeuges 6c776388c9 development version 2.1.1d1: more bugfixes for Forum User
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2415401 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-09 19:09:54 +00:00