Commit graph

134 commits

Author SHA1 Message Date
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
Mark Cheret
0a83796cdc
Update author URIs (#63)
* Update author URIs from `cheret.de` to `cheret.org`.

* Update missed version number in `wysiwyg.js` from 2.1.6 to 2.5.10.

Co-authored-by: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
2021-03-15 07:11:12 +00:00
5c9e611837
Update supported WP version to 5.7 (#62)
* Update supported WP version to 5.7

* Update package version

* Add Package Version in MAIN.php

* Change version number labels.

* Obfuscate 'Version' string in label.
The way these headers are parsed, best is to make sure that
the string 'Version' doesn’t occur in another field label.

Co-authored-by: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
2021-03-12 09:48:47 +00:00
pewgeuges
b6f6ff76f3 Version number related fixes before pull request. 2021-03-11 06:26:34 +01:00
pewgeuges
0e6c5a8f87 Readme header upgrade. 2021-03-08 10:10:32 +01:00
pewgeuges
6ff77dc74d Also added @‌revision and @‌timestamp PHPDOC tags
@‌revision and @‌timestamp used for SVN refs.

Full enumeration of added custom PHPDOC tags:
@‌accountable, @‌bib, @‌biblio, @‌callback, @‌commit, @‌committer, @‌contributor, @‌courtesy, @‌date, @‌datetime, @‌lastmodified, @‌modified, @‌publisher, @‌reporter, @‌revision, @‌timestamp, @‌user.Some tags like @‌reporter and @‌contributor are more used than others.
2021-03-05 08:58:48 +01:00
pewgeuges
f63dfde076 Corrections to changelog. 2021-03-05 08:44:15 +01:00
pewgeuges
46fc9a7c5f Adapt after the 2.5.9d1 accident. 2021-03-05 04:30:50 +01:00
pewgeuges
6b9e602d07
Sync filenames with SVN repo (#57)
Returns to the original file names for the `class/dashboard/` directory (for now at least)
2021-03-04 07:46:19 +00:00
ef6dd57310
Update version number to 2.5.10 (#54)
* Update version number to 2.5.10 (current stable tag)

See [here](https://github.com/markcheret/footnotes/pull/54#discussion_r585895136) for discussion; **stable tags only to be used until releases are automated**
2021-03-02 21:47:09 +00:00
pewgeuges
ef8050477b Backport upcoming bugfix release 2.5.8
Will be released in response to Forum and as agreed.
= 2.5.8 =
- Bugfix: Layout: support right-to-left writing direction by replacing remaining CSS values 'left' with 'start', thanks to @arahmanshaalan bug report.
- Bugfix: Layout: support right-to-left writing direction by enabling mirrored paddings on HTML dir=rtl pages, thanks to @arahmanshaalan bug report.
2021-02-28 14:24:57 +01:00
74ac6f1cad Rebase to 2.5.7 2021-02-27 08:34:58 +00:00
9c88d218a8 Revert "Update code to comply with WP Coding Standards (#38)"
This reverts commit 02c6c1c362.
2021-02-27 08:09:08 +00:00
dac7ffe3a6 Update code to comply with WP Coding Standards (#38)
Co-authored-by: @pewgeuges <pewgeuges@gmail.com>
2021-02-27 08:06:32 +00:00
8d0ebdb859 Append line endings 2021-02-27 08:03:04 +00:00
pewgeuges
92365f1176 This very urgent bugfix release contains just one added line of code, fixing the footnotes duplication bug.
= 2.5.7 =

- Bugfix: Process: fix footnote duplication by emptying the footnotes list every time the search algorithm is run on the content, thanks to @inoruhana bug report.

This release cannot be delayed as it responds to a user request with [bug report on the Forum](https://wordpress.org/support/topic/footnote-duplicated-in-the-widget/).
Fast-tracking emergency releases as per instructions received and previous agreement.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2482506 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-27 01:39:18 +00:00
b339fd949f Add @package tag to header 2021-02-24 08:51:24 +00:00
pewgeuges
ceb112d7ff
Delete committer tag in footnotes.php 2021-02-23 23:05:05 +01:00
pewgeuges
f1e40bb3e4
Update header footnotes.php
Fix header docblock as discussed in https://github.com/markcheret/footnotes/pull/38#discussion_r581415367
2021-02-23 23:01:48 +01:00
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
9ee72568ef Append line endings 2021-02-23 16:00:59 +00:00
pewgeuges
c6ca03a4c7 Release v2.5.6 as there seems to be no reason to delay this urgent bugfix.
= 2.5.6 =
- Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it @pkverma99 issue reports.
- Bugfix: Alternative tooltips: shrink width to short content.
- Update: Documentation: slightly revise or update the plugin’s welcome page on WordPress.org.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2478170 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-20 18:18:30 +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
d0fa3c5f97 development update 2.5.6d3 to prepare the newly promised bugfix release adding a reference container template not using jQuery, plain JS instead.
The following is the changelog as drafted for this release: 
= 2.5.6 =
- Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it issue report.
- Update: Documentation: slightly revise / update the plugin’s welcome page on WordPress.org.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2477926 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-19 20:04:11 +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
177841be4b traceability update 2.5.6d0 to clear the diffs before switching back to tab indentation, requiring the next commit to be entirely dedicated to whitespace \s changes so as to avoid screwing up code diffs.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2477277 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-18 18:29:21 +00:00
pewgeuges
84c03f2ece Release now very urgent bugfix version 2.5.5
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2476290 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-17 11:42:31 +00:00
pewgeuges
f8a87d5928 dev version implementing @lolzim’s bugfix 2.5.5d2
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2476267 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-17 10:58:28 +00:00
pewgeuges
d9e23677b0 traceability update 2.5.5d1
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2476187 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-17 09:33:04 +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
e328969abf update for urgent bugfix release 2.5.4 - preview
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2473889 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-12 17:09:45 +00:00
pewgeuges
eaaad12e9b prepare urgent bugfix release 2.5.4 - this: 2.5.4d7
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2473867 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-12 16:22:45 +00:00
pewgeuges
b009311766 prepare urgent bugfix release 2.5.4 - this: 2.5.4d6
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2473635 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-12 10:18:31 +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
b34c0c12ab update with last changes (2.5.4d0)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2463046 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-26 17:01:53 +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
49bb66b8bd urgent release 2.5.2
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2459302 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-19 23:45:34 +00:00
pewgeuges
e42add9d4b urgent bugfix release 2.5.1
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2458602 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-18 23:18:45 +00:00
pewgeuges
22d6367a65 corrections for urgent bugfix, this: 2.5.1d2
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2458560 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-18 21:31:11 +00:00
pewgeuges
f83fb80ab0 corrections for urgent bugfix, this: 2.5.1d1
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2458521 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-18 20:35:16 +00:00
pewgeuges
c3c0515308 update for urgent bugfix, this: 2.5.1d0
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2458511 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-18 20:09:43 +00:00
pewgeuges
1c7debbaf5 update with last changes (2.6.0d0)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2456650 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-14 22:56:43 +00:00
pewgeuges
354b5439f0 update trunk/ in vue of urgent bugfix plus feature release 2.5.0
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2452163 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-07 21:21:29 +00:00
pewgeuges
53def2ec48 development update 2.5.0d0 to check whether the new class/template.php passes commit
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2450271 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-05 00:55:25 +00:00
pewgeuges
84981721d7 urgent release 2.4.0
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2449988 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-04 15:51:57 +00:00