Commit graph

404 commits

Author SHA1 Message Date
Mark Cheret
b198b33b52
Create ossar-analysis.yml 2021-04-04 22:12:18 +02:00
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
e8d6dbe13d
Automatically generate new releases (#59)
* Adapt after the 2.5.9d1 accident.

* Corrections to changelog.

* 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.

* Readme header upgrade.

* Create deploy-to-wordpress.org.yml

* Add distignore

* Comment out `build` command, replace npm with composer

* Remove placeholder comments

* Add build commands

* Fix typo

* Fix version number bug

* Make zip without top-level directory

* Append tag name to plugin zip

* Clean up a bit

* Rename workflow config

* Fix upload paths

* Append tag name to artifact

* Fix paths

* Revert path fix

* Try again

* Add wplm-config.xml to buildfiles

* Fix indentation

* Rename development/csscat.sh to css/csscat.sh

* Rename development/customized-documentation-schema.txt to customized-documentation-schema.txt

* Rename development/customized-template-stack.txt to customized-template-stack.txt

* Version number related fixes before pull request.

* Move csscat script to tools dir

* Rename csscat

* Refactor script

* Update customized-documentation-schema.txt

* Replace empty lines in help output

* Escape empty lines.

* Delete 3 items from `.distignore`
As mentioned, CONTRIBUTING.md and README.md should be included in distributions.

- As an invitation to the Community.
- As a tangible proof of goodwill after the 2.5.9d1 accident.

Also SECURITY.md so Footnotes users see that we’re concerned, and
can reach out without transiting via GitHub.

* Include CONTRIBUTING.md README.md SECURITY.md

* Update sync w/ 5.7 tested.

* Update

* Update composerfiles

Co-authored-by: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
2021-03-12 17:53:49 +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
ebdb68969b
Merge pull request #61 from markcheret/fixcomments
Version number related fixes for now.
2021-03-11 09:18:14 +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
2e0b2f8d98
Merge pull request #50 from markcheret/wp-coding-standard--fresh
Update code to comply with WP Coding Standards (*fourth* time's the charm!)
2021-02-28 20:03:45 +00:00
f129f3a392 Renormalise line endings 2021-02-28 14:13:07 +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
pewgeuges
8a01584196 Restore lost corrections 2021-02-28 00:53:50 +01:00
25c3f2f12e Replace output escape and input sanitization functions with linter supression messages 2021-02-27 08:49:08 +00:00
74ac6f1cad Rebase to 2.5.7 2021-02-27 08:34:58 +00:00
cbefa2e9d7 Add authorsfile to gitignore 2021-02-27 08:14:09 +00:00
f5b2e1f30f Rebase to 2.5.7 2021-02-27 08:12:17 +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
cf3616f65c Fix indentation 2021-02-27 07:55:43 +00:00
04d1bb390b Alter formatting, add contribution information 2021-02-27 07:55:43 +00:00
Mark Cheret
5c1884f059 Update README.md 2021-02-27 07:55:26 +00:00
Mark Cheret
75f4287aa3 Update CONTRIBUTING.md 2021-02-27 07:54:34 +00:00
Mark Cheret
6297965716 Update README.md
moved image due to repo change
2021-02-27 07:54:34 +00:00
Mark Cheret
9bce76c785 Update readme.txt
update minor language. How do we keep the readme's in sync?
2021-02-27 07:54:34 +00:00
Mark Cheret
0f22292941 Update README.md 2021-02-27 07:54:34 +00:00
5eec0ed6d7 Create SECURITY.md 2021-02-27 07:54:34 +00:00
0f41f1a735 Create LICENSE 2021-02-27 07:54:34 +00:00
6d8c32fc63 Add .phpdoc/ to gitignore 2021-02-27 07:54:34 +00:00
c93271ee65 Generate HTML documentation using phpDocumentor 2021-02-27 07:54:34 +00:00
8cf1930059 Create CONTRIBUTING.md 2021-02-27 07:54:34 +00:00
947a64844a Add more PHPCS tips 2021-02-27 07:54:34 +00:00
f465732b32 Add linting instructions and header image 2021-02-27 07:54:34 +00:00
09b065b463 Add footnotes header image 2021-02-27 07:54:34 +00:00
5ce214cf10 Add getting started instructions to README 2021-02-27 07:54:34 +00:00
b1c6f2fe62 Create README.md 2021-02-27 07:54:34 +00:00
0b1e7c2b0b Update issue templates 2021-02-27 07:54:34 +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
600910d9ee Remove custom CSS output escaping 2021-02-26 14:40:23 +00:00
221b87a54f
Merge pull request #49 from markcheret/revert-38-wp-coding-standard--fresh
Revert "Update code to comply with WP Coding Standards (third time's the charm!)"
2021-02-26 12:01:21 +00:00
5982f12bd5 Revert "Update code to comply with WP Coding Standards (#38)"
This reverts commit 02c6c1c362.
2021-02-26 08:07:03 +00:00
02c6c1c362
Update code to comply with WP Coding Standards (#38)
Co-authored-by: @pewgeuges <pewgeuges@gmail.com>
2021-02-25 19:17:00 +00:00
pewgeuges
b4df058574
File header class/widgets/reference-container.php
Move date to its tag, …
2021-02-25 17:48:04 +01:00
pewgeuges
c8d526ebc1
Remove dates in class/widgets/base.php
Remove @‌lastmodified date.
Remove purely documentation related @‌date tag.
2021-02-25 17:35:16 +01:00
pewgeuges
422a6d1fa2 File level headings in class/layout/.
Move date to @‌date tag below the @‌since tag.
Delete @‌lastmodified tag as pointless, easily out of sync, and screwing things up when collaborating.
Need to mention however that in many projects, the last modified datestamp is applied and maintained.
That said, some published files on the web out there contain edits post-dating their datestamp.
2021-02-25 14:22:07 +01:00