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

[MISC] Add shellcheck checks to ensure that those few shell scripts we have are "robust" #1774

Merged
merged 4 commits into from
May 16, 2024

Conversation

yarikoptic
Copy link
Collaborator

@yarikoptic yarikoptic commented Apr 12, 2024

TODO

  • remove TEMP commit and possibly a custom workflow if pre-commit picks it up too

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.93%. Comparing base (943c20e) to head (a89b1bf).
Report is 2 commits behind head on master.

❗ Current head a89b1bf differs from pull request most recent head a8a891c. Consider uploading reports for the commit a8a891c to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1774   +/-   ##
=======================================
  Coverage   87.93%   87.93%           
=======================================
  Files          16       16           
  Lines        1351     1351           
=======================================
  Hits         1188     1188           
  Misses        163      163           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yarikoptic
Copy link
Collaborator Author

oh, actually I have a problem with current pre-commit setup - it requires docker so fails now

ShellCheck v0.9.0........................................................Failed
- hook id: shellcheck
- exit code: 1

Executable `docker` not found

keeping it in draft, hopefully would come back to this.

.pre-commit-config.yaml Outdated Show resolved Hide resolved
@Remi-Gau Remi-Gau added the exclude-from-changelog This item will not feature in the automatically generated changelog label Apr 15, 2024
@Remi-Gau Remi-Gau marked this pull request as ready for review April 15, 2024 14:49
@yarikoptic
Copy link
Collaborator Author

@effigies @sappelhoff - an easy one to reduce number of open prs by 1

@yarikoptic
Copy link
Collaborator Author

do we need more approvals here or could it be merged?? it is just a check to make a world a better place! @effigies do the honors - be the 3rd and press the button?

@sappelhoff
Copy link
Member

Thanks for the ping @yarikoptic, we can merge this with two positive reviews and 5 days passed since the last change.

@sappelhoff sappelhoff merged commit 3fd21ff into bids-standard:master May 16, 2024
24 of 25 checks passed
@yarikoptic
Copy link
Collaborator Author

Thanks for the ping @yarikoptic, we can merge this with two positive reviews and 5 days passed since the last change.

Could/should we automate that ? (e.g. 3 positive reviews and 5 days -- auto-merge)

@sappelhoff
Copy link
Member

Could/should we automate that ? (e.g. 3 positive reviews and 5 days -- auto-merge)

i would be +1 for this if an additional precondition is that a certain (new) label is added to the PR, like an "automerge" label. Because for some PRs (as this one), an automerge shouldn't be controversial, whereas for some other PRs it might be.

@Remi-Gau
Copy link
Collaborator

We have an old issue, maybe closed, about automating this that was never acted upon because no big need, no big motivation to implement.

@yarikoptic yarikoptic mentioned this pull request May 16, 2024
5 tasks
@yarikoptic
Copy link
Collaborator Author

drafted one in #1823 for now

@sappelhoff
Copy link
Member

We have an old issue, maybe closed, about automating this that was never acted upon because no big need, no big motivation to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-from-changelog This item will not feature in the automatically generated changelog maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants