Sourced from peter-evans/create-pull-request's\r\nreleases.
\r\n\r\n\r\nCreate Pull Request v5.0.0
\r\nBehaviour changes
\r\n\r\n
\r\n- The action will no longer leave the local repository checked out on\r\nthe pull request
\r\nbranch
. Instead, it will leave the\r\nrepository checked out on the branch or commit that it was when the\r\naction started.- When using
\r\nadd-paths
, uncommitted changes will no\r\nlonger be destroyed. They will be stashed and restored at the end of the\r\naction run.What's new
\r\n\r\n
\r\n- Adds input
\r\nbody-path
, the path to a file containing the\r\npull request body.- At the end of the action run the local repository is now checked out\r\non the branch or commit that it was when the action started.
\r\n- Any uncommitted tracked or untracked changes are now stashed and\r\nrestored at the end of the action run. Currently, this can only occur\r\nwhen using the
\r\nadd-paths
input, which allows for changes to\r\nnot be committed. Previously, any uncommitted changes would be\r\ndestroyed.- The proxy implementation has been revised but is not expected to\r\nhave any change in behaviour. It continues to support the standard\r\nenvironment variables
\r\nhttp_proxy
,https_proxy
\r\nandno_proxy
.- Now sets the git
\r\nsafe.directory
configuration for the\r\nlocal repository path. The configuration is removed when the action\r\ncompletes. Fixes issue peter-evans/create-pull-request#1170.- Now determines the git directory path using the
\r\ngit rev-parse\r\n--git-dir
command. This allows users with custom repository\r\nconfigurations to use the action.- Improved handling of the
\r\nteam-reviewers
input and\r\nassociated errors.News
\r\n:trophy: create-pull-request won an\r\naward for "awesome action" at the Open Source Awards at\r\nGitHub Universe. Thank you for your support and for making\r\ncreate-pull-request one of the top used actions. Please give it a\r\n:star:, or even buy me\r\na coffee.
\r\nWhat's Changed
\r\n\r\n
\r\n- v5 by
\r\n@peter-evans
in\r\npeter-evans/create-pull-request#1792- 15 dependency updates by
\r\n@dependabot
Full Changelog: https://github.com/peter-evans/create-pull-request/compare/v4.2.4...v5.0.0
\r\nCreate Pull Request v4.2.4
\r\n⚙️ Patches some recent security vulnerabilities.
\r\nWhat's Changed
\r\n\r\n
\r\n- Update concepts-guidelines.md by
\r\n@chrisbruford
\r\nin peter-evans/create-pull-request#1610- 58 dependency updates by
\r\n@dependabot
New Contributors
\r\n\r\n
\r\n- \r\n
@chrisbruford
\r\nmade their first contribution in peter-evans/create-pull-request#1610Full Changelog: https://github.com/peter-evans/create-pull-request/compare/v4.2.3...v4.2.4
\r\nCreate Pull Request v4.2.3
\r\nWhat's Changed
\r\n\r\n
\r\n- fix: add check for missing token input by
\r\n@peter-evans
in\r\npeter-evans/create-pull-request#1324Full Changelog: https://github.com/peter-evans/create-pull-request/compare/v4.2.2...v4.2.3
\r\nCreate Pull Request v4.2.2
\r\nWhat's Changed
\r\n\r\n
\r\n\r\n- fix: support github server url for pushing to fork by
\r\n@peter-evans
in\r\npeter-evans/create-pull-request#1318
... (truncated)
\r\n5b4a9f6
\r\nv5 (#1792)1847e5d
\r\nbuild(deps-dev): bump eslint from 8.36.0 to 8.37.0 (#1803)c246f7e
\r\nbuild(deps-dev): bump @typescript-eslint/parser
from\r\n5.57.0 to 5.57.1 (#1801)2dd2b11
\r\nbuild(deps-dev): bump eslint-import-resolver-typescript (#1802)05d5a3c
\r\nbuild(deps-dev): bump @types/node
from 18.15.10 to\r\n18.15.11 (#1800)21479f2
\r\nbuild(deps-dev): bump ts-jest from 29.0.5 to 29.1.0 (#1799)36a56da
\r\nbuild(deps-dev): bump @typescript-eslint/parser
from\r\n5.56.0 to 5.57.0 (#1768)b7f0c97
\r\nbuild(deps-dev): bump prettier from 2.8.6 to 2.8.7 (#1767)6a62596
\r\nbuild(deps): bump peter-evans/enable-pull-request-automerge from 2 to 3\r\n(#1766)d1ed29f
\r\nbuild(deps-dev): bump @types/node
from 18.15.5 to 18.15.10\r\n(#1765)Sourced from danger's\r\nchangelog.
\r\n\r\n\r\n9.3.0
\r\n\r\n
\r\n- Add CI Source of CustomCiWithGithub - [
\r\n@jmeridth
](https://github.com/jmeridth]\r\n#1435- Fixes issue where a comment is posted to Bitbucket Cloud even when\r\neverything is green.
\r\n@SalvatoreT
#1299Internals:
\r\n\r\n
\r\n- Make specs independent from default branch setting in git config -\r\n
\r\n@manicmaniac
\r\n#1420- Add missing error types to raise_error matcher -
\r\n@manicmaniac
#1421- Cannot specify danger_id testing locally -
\r\n@manicmaniac
#1362- Update ruby-git gem
\r\n@manicmaniac
-\r\n#1419- Make specs independent from default branch setting in git config
\r\n@manicmaniac
#1420- Add missing error types to raise_error matcher [
\r\n@manicmaniac
][https://github.com/manicmaniac]\r\n#1421- Add /github/workspace to git safe.directory
\r\n@hiro-flank
#1427- Add Ruby 3.2 to test matrix
\r\n@mataku
#1434
f0e7349
\r\nPrepare for release093c31a
\r\nMerge pull request #1435\r\nfrom jmeridth/jm/generalized-github-cicaa4bdb
\r\nfeat: Add new CustomCiWithGithub CI Source Type949dc67
\r\nMerge pull request #1434\r\nfrom mataku/feature/ruby3239feb04
\r\nAdd CHANGELOG7e4c422
\r\nAdd Ruby 3.2 to test matrix91d3813
\r\nRelax webmock version to fix net-protocol usage which is bundled in Ruby\r\n3.2fa74bfa
\r\nMerge pull request #1428\r\nfrom SalvatoreT/salvatore/1299/reduce-noise-bitbucke...5c4ee6c
\r\nPost comment to BBC only if there is any contentc2bb178
\r\nMerge pull request #1427\r\nfrom hiro-flank/fix/dubious_ownership_github_workspaceSourced from danger's\r\nreleases.
\r\n\r\n\r\n9.3.1
\r\n\r\n
\r\n- Update Octokit dependency to version 6.0 -
\r\n@spencertransier
\r\ndanger/danger#1437- Fixes dependency constraint issue on ruby-git -
\r\n@ainame
danger/danger#1436
Sourced from danger's\r\nchangelog.
\r\n\r\n\r\n9.3.1
\r\n\r\n
\r\n- Update Octokit dependency to version 6.0 -
\r\n@spencertransier
\r\n#1437- Fixes dependency constraint issue on
\r\nruby-git
-@ainame
#1436
9eccfbd
\r\nRelease85a2a6f
\r\nMerge pull request #1436\r\nfrom ainame/ruby-git12ea0a1
\r\nRevise commenta7dd13f
\r\nExplicitly set expectation on a speca42584d
\r\nFix broken test case11df4ba
\r\nUpdate changelog6b979b6
\r\nUpdate danger.gemspeca4bf8be
\r\nMerge pull request #1438\r\nfrom spencertransier/spencertransier/add-changelog-e...414adc4
\r\nAdd CHANGELOG.md entry for PR #14376317256
\r\nMerge pull request #1437\r\nfrom spencertransier/spencertransier/update-octokit-...
Foil
A lightweight property wrapper for UserDefaults done right
About
Read the post: A better approach to writing a UserDefaults Property Wrapper
Why the name?
Foil, as in “let me quickly and easily wrap and store this leftover food in some foil so I can eat it later.” 🌯 😉
Usage
You can use
@WrappedDefault
for non-optional values and@WrappedDefaultOptional
for optional ones. You may wish to store all your user defaults in one place, however, that is not necessary. Any property on any type can use this wrapper.There is also an included example app project.
Using
enum
keysIf you prefer using an
enum
for the keys, writing an extension specific to your app is easy. However, this is not required. In fact, unless you have a specific reason to reference the keys, this is completely unnecessary.Observing changes
There are many ways to observe property changes. The most common are by using Key-Value Observing or a Combine Publisher. KVO observing requires the object with the property to inherit from
NSObject
and the property must be declared as@objc dynamic
.Using KVO
Using Combine
Note: that
average
does not need the@objc dynamic
annotation,.receiveValue
will fire immediately with the current value ofaverage
and on every change after.Combine Alternative with KVO
Note: in this case,
userId
needs the@objc dynamic
annotation andAppSettings
needs to inherit fromNSObject
. ThenreceiveValue
will fire only on changes to wrapped object’s value. It will not publish the initial value as in the example above.Supported types
The following types are supported by default for use with
@WrappedDefault
.Adding support for custom types is possible by conforming to
UserDefaultsSerializable
. However, this is highly discouraged.UserDefaults
is not intended for storing complex data structures and object graphs. You should probably be using a proper database (or serializing to disk viaCodable
) instead.Bool
Int
UInt
Float
Double
String
URL
Date
Data
Array
Set
Dictionary
RawRepresentable
typesAdditional Resources
Supported Platforms
Requirements
Installation
CocoaPods
Swift Package Manager
Alternatively, you can add the package directly via Xcode.
Documentation
You can read the documentation here. Generated with jazzy. Hosted by GitHub Pages.
Contributing
Interested in making contributions to this project? Please review the guides below.
Also consider sponsoring this project or buying my apps! ✌️
Credits
Created and maintained by Jesse Squires.
License
Released under the MIT License. See
LICENSE
for details.