[match] Adds identifiers supplied to match to the git commit message #19303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
We have multiple teams developing multiple apps. We all use
fastlane
to automate our deployment, it's so great to have a reliable automated process. Recently we had to renew our iOS Distribution certificate which resulted in all teams renewing their respective Distribution provisioning profiles. This was super easy usingfastlane match
however the git repo we use for storage does not have a readable commit log. I wanted to include the identifiers supplied tomatch
from the CLI or Matchfile in the commit message to give us better visibility at a glance of our log.Description
First I moved the
app_identifiers
block of code in the runner above the storage selection. I want to pass this into the storage object.I fixed up the
runner_spec
according to expect these extra params.Next I added the
identifiers
to thegit_storage
and used them in thegenerate_commit_message
func.I updated the
git_storage_spec
with context block testing for single and multiple identifiers.Ensuring it works with multiple identifers was important to us as we have an app with linked extensions.
After the changes were made I ran the test suite and rubocop analysis.
Testing Steps
I ran: