-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into allow_submission_f…
…rom_stock_plate_test_branch
- Loading branch information
Showing
229 changed files
with
2,159 additions
and
1,996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,17 +27,17 @@ jobs: | |
with: | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
|
||
# Actually run our build | ||
- name: Create Build | ||
run: ./compile-build | ||
|
||
# Create a release tag based on the branch name and .release-version file | ||
- name: Set release tag | ||
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable | ||
# On the develop branch this might create RELEASE_VERSION=2.4.6-987654321-develop | ||
# On the master branch this would then only create RELEASE_VERSION=2.4.6 | ||
run: echo "RELEASE_VERSION=$(printf -- '%s%s\n' $(cat .release-version) $([ ${BRANCH_NAME} = "develop" ] && printf -- '-%s-develop' ${GITHUB_RUN_ID} || echo ""))" >> $GITHUB_ENV | ||
|
||
# Actually run our build | ||
- name: Create Build | ||
run: ./compile-build '' v${{ env.RELEASE_VERSION }} ${BRANCH_NAME} | ||
|
||
# Create a GitHub release with the release asset as an artifact | ||
- name: Create release and upload release.tar.gz | ||
uses: ncipollo/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Create or update merge-to-master pull requests for production releases | ||
# Note that by design, creating or editing a PR will not trigger a downstream `pull_request` event as this could lead to recursion | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
pull_request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create or update PR | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
PR_TITLE="[automated] Merge Develop into Master" | ||
# Extract numbers from PRs that have been merged into develop | ||
PR_NUMBERS=$(gh api repos/:owner/:repo/compare/master...develop --jq ' | ||
.commits[] | ||
| select(.commit.message | ||
| startswith("Merge pull request")) | ||
| .commit.message | ||
| capture("#(?<pr_number>\\d+)") | ||
| .pr_number' | ||
) | ||
# Fetch titles for each PR number | ||
PR_NUMBERS_AND_TITLES=$(for PR_NUMBER in $PR_NUMBERS; do | ||
gh pr view $PR_NUMBER --json number,title --jq '{number: .number, title: .title}' | ||
done | jq -s 'sort_by(.title)') | ||
# Sort extracted PR numbers by title | ||
SORTED_PR_NUMBERS=$(jq -r '.[].number' <<< "$PR_NUMBERS_AND_TITLES") | ||
STORIES=$(xargs -I {} gh pr view {} --json body --jq '.body | if . | test("Closes #\\d+") then capture("Closes #(?<issue_number>\\d+)") | "- #{} | ||
- Closes #" + .issue_number else "- #{}" end' <<< "$SORTED_PR_NUMBERS") # Note the line-break on this line is for formatting | ||
PR_BODY="#### Changes proposed in this pull request | ||
$(echo "$STORIES") | ||
#### Instructions for Reviewers | ||
- _Check stories are ready for release._ | ||
- _Check for any database migrations._ | ||
- _Check for debug code._ | ||
- _Check version is appropriate._ | ||
This description will be overwritten on the next push | ||
This PR was auto-generated on $(TZ=Europe/London date --iso-8601=seconds)" | ||
# Check if a PR already exists | ||
EXISTING_PR=$(gh pr list --base master --head develop --json number --jq '.[0].number') | ||
if [ -z "$EXISTING_PR" ]; then | ||
gh pr create --base master --head develop --title "$PR_TITLE" --body "$PR_BODY" --draft | ||
else | ||
gh pr edit "$EXISTING_PR" --body "$PR_BODY" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"printWidth": 120, | ||
"semi": false, | ||
"singleQuote": true | ||
"rubySingleQuote": true, | ||
"singleQuote": true, | ||
"plugins": ["@prettier/plugin-ruby"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
if defined?(PryByebug) | ||
Pry.commands.alias_command 's', 'step' | ||
Pry.commands.alias_command 'n', 'next' | ||
Pry.commands.alias_command 'f', 'finish' | ||
Pry.commands.alias_command 'c', 'continue' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.60.0 | ||
3.61.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,52 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2023-10-17 14:45:52 UTC using RuboCop version 1.39.0. | ||
# `rubocop --auto-gen-config --no-exclude-limit` | ||
# on 2024-09-20 10:20:24 UTC using RuboCop version 1.65.1. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 7 | ||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. | ||
Metrics/MethodLength: | ||
Max: 21 | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: LengthThreshold. | ||
Metrics/CollectionLiteralLength: | ||
Exclude: | ||
- 'spec/models/labware_creators/quadrant_split_plate_spec.rb' | ||
- 'spec/helpers/well_helpers_spec.rb' | ||
- 'spec/models/labware_creators/quadrant_split_plate_spec.rb' | ||
|
||
# Offense count: 36 | ||
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns. | ||
Metrics/MethodLength: | ||
Exclude: | ||
- 'app/controllers/labware_controller.rb' | ||
- 'app/controllers/pipeline_work_in_progress_controller.rb' | ||
- 'app/controllers/plates_controller.rb' | ||
- 'app/helpers/plate_helper.rb' | ||
- 'app/models/concerns/labware_creators/donor_pooling_calculator.rb' | ||
- 'app/models/concerns/presenters/extended_csv.rb' | ||
- 'app/models/concerns/presenters/statemachine.rb' | ||
- 'app/models/labware_creators/custom_tagged_plate.rb' | ||
- 'app/models/labware_creators/final_tube.rb' | ||
- 'app/models/labware_creators/multi_stamp_tubes.rb' | ||
- 'app/models/labware_creators/multi_stamp_tubes_using_tube_rack_scan.rb' | ||
- 'app/models/labware_creators/pcr_cycles_binned_plate/csv_file/well_details_header_base.rb' | ||
- 'app/models/labware_creators/pcr_cycles_binned_plate_for_t_nano_seq.rb' | ||
- 'app/models/labware_creators/plate_split_to_tube_racks.rb' | ||
- 'app/models/labware_creators/stamped_plate_adding_randomised_controls.rb' | ||
- 'app/models/labware_creators/well_filter_allowing_partials.rb' | ||
- 'app/models/pipeline_list.rb' | ||
- 'app/models/print_job.rb' | ||
- 'app/models/robots/splitting_robot.rb' | ||
- 'app/models/sequencescape_submission.rb' | ||
- 'app/models/utility/common_dilution_calculations.rb' | ||
- 'app/models/utility/concentration_binning_calculator.rb' | ||
- 'app/models/utility/normalised_binning_calculator.rb' | ||
- 'app/models/validators/stock_state_validator.rb' | ||
- 'config/initializers/settings.rb' | ||
- 'spec/support/api_url_helper.rb' | ||
- 'spec/support/factory_bot_extensions.rb' | ||
- 'spec/support/feature_helpers.rb' | ||
- 'spec/support/with_pmb_stubbed.rb' | ||
|
||
Style/NumericPredicate: | ||
Exclude: | ||
- 'lib/deployed_version.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.6 | ||
3.2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.