Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.0.8 #496

Merged
merged 16 commits into from Jul 16, 2023
Merged

Release 1.0.8 #496

merged 16 commits into from Jul 16, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jul 16, 2023

Release checklist

General

  • Verify, and if necessary, update the version constraints for dependencies in the composer.json - N/A
  • Verify that any new functions have type declarations whenever possible. - N/A
  • Add changelog for the release - PR Changelog for PHPCSUtils 1.0.8 #495
    ✏️ Remember to add a release link at the bottom!

Release

  • Merge this PR
  • Make sure all CI builds are green.
  • Tag and create a release (careful, GH defaults to develop!) & copy & paste the changelog to it.
    ✏️ Don't forget to copy the link collection from the bottom of the changelog!
  • Make sure all CI builds are green.
  • Verify that the website regenerated correctly.
  • Close the milestone
  • Open a new milestone for the next release
  • If any open PRs/issues which were milestoned for this release did not make it into the release, update their milestone.
  • Fast-forward develop to be equal to stable

Publicize

  • Tweet about the release.
  • Inform the primary dependants of this repo (PHPCSExtra, WordPressCS, PHPCompatibility and VariableAnalysis) about the release.

jrfnl and others added 16 commits July 10, 2023 16:18
Follow up on PR 468.

Turns out Dependabot PRs do not have access to secrets with the exception of (read-only) access to the `GITHUB_TOKEN`.

As the coverage test runs and the Coveralls status are required builds, this blocks Dependabot PRs from being merged without overruling the required statuses.

As I'd like to avoid that situation, I'm special casing Dependabot PRs for the token selection.

Unfortunately using a condition like `${{ github.actor != 'dependabot[bot]' || secrets.COVERALLS_TOKEN && secrets.GITHUB_TOKEN }}` won't work when it involves secrets, so we need to use duplicate steps to get round this.

Refs:
* lemurheavy/coveralls-public 1721
* https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events
…hub-token

GH Actions: special case Dependabot PRs for Coveralls
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 1 to 2.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](actions/upload-pages-artifact@v1...v2)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…/actions/upload-pages-artifact-2

GH Actions: Bump actions/upload-pages-artifact from 1 to 2
No need to check on a daily basis. ("daily" was only really used to be able to test the setup)

Follow up on 298 in which I explicitly stated:

> Once the configuration has been "finalized" (I use that term loosely), this should be changed to run the Dependabot check only once a week.
PHP-Coveralls 2.6.0 has just been released and includes a fix for the last known PHP 8.x issue.

This means that it should now be safe to install php-coveralls on PHP 8.x and upload from there, which means we now only need the work-around for the PHP version when on PHP < 5.5 (as Coveralls v1 does not work with GH Actions).

Ref:
* https://github.com/php-coveralls/php-coveralls/releases/tag/v2.6.0
…-php-coveralls-2.6.0

GH Actions: update for php-coveralls 2.6.0
... when the second pointer passed is a comment token and the comment is the last content of the current file.

Includes tests.
…-defensive-coding

SpacesFixer: prevent an unwarranted exception
Follow up on 451

Upstream PR squizlabs/PHP_CodeSniffer 3797, which will be included in PHPCS 3.8.0, fixes a tokenizer issue which affected the `File::getDeclarationName()` and, by extension, the `BackCompat::getDeclarationName()` method.

The function name for functions named `self`, `parent` or `static` and declared to return by reference, could previously not be retrieved.

The PHPCSUtils native version of the method `ObjectDeclarations::getName()` already handled things correctly.

This commit adds back the BC-layer for the `getDeclarationName()` method and polyfills the fix from PHPCS 3.8.0 to backport it for PHPCS < 3.8.0.

As the methods will now handle these functions in the same way, this commit also moves the related tests from the `GetNameDiffTest` to the `GetDeclarationNameTest`.
…arationname-sync-with-upstream

BCFile::getDeclarationName(): sync with upstream
@jrfnl jrfnl added this to the 1.0.8 milestone Jul 16, 2023
@jrfnl jrfnl merged commit 69465ca into stable Jul 16, 2023
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant