-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from JoseEspinosa/merging-template-2.4.0
Merging template 2.4.0
- Loading branch information
Showing
10 changed files
with
123 additions
and
123 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Fix linting from a comment | ||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
# Only run if comment is on a PR with the main repo, and if it contains the magic keywords | ||
if: > | ||
contains(github.event.comment.html_url, '/pull/') && | ||
contains(github.event.comment.body, '@nf-core-bot fix linting') && | ||
github.repository == 'nf-core/smrnaseq' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Use the @nf-core-bot token to check out so we can push later | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.nf_core_bot_auth_token }} | ||
|
||
# Action runs on the issue comment, so we don't get the PR by default | ||
# Use the gh cli to check out the PR | ||
- name: Checkout Pull Request | ||
run: gh pr checkout ${{ github.event.issue.number }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }} | ||
|
||
- uses: actions/setup-node@v2 | ||
|
||
- name: Install Prettier | ||
run: npm install -g prettier @prettier/plugin-php | ||
|
||
# Check that we actually need to fix something | ||
- name: Run 'prettier --check' | ||
id: prettier_status | ||
run: | | ||
if prettier --check ${GITHUB_WORKSPACE}; then | ||
echo "::set-output name=result::pass" | ||
else | ||
echo "::set-output name=result::fail" | ||
fi | ||
- name: Run 'prettier --write' | ||
if: steps.prettier_status.outputs.result == 'fail' | ||
run: prettier --write ${GITHUB_WORKSPACE} | ||
|
||
- name: Commit & push changes | ||
if: steps.prettier_status.outputs.result == 'fail' | ||
run: | | ||
git config user.email "core@nf-co.re" | ||
git config user.name "nf-core-bot" | ||
git config push.default upstream | ||
git add . | ||
git status | ||
git commit -m "[automated] Fix linting with Prettier" | ||
git push |
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,9 @@ | ||
email_template.html | ||
.nextflow* | ||
work/ | ||
data/ | ||
results/ | ||
.DS_Store | ||
testing/ | ||
testing* | ||
*.pyc |
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,111 +1,53 @@ | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<!-- prettier-ignore --> | ||
<meta name="description" content="nf-core/smrnaseq: Small RNA-Seq Best Practice Analysis Pipeline." /> | ||
<title>nf-core/smrnaseq Pipeline Report</title> | ||
</head> | ||
<body> | ||
<div style="font-family: Helvetica, Arial, sans-serif; padding: 30px; max-width: 800px; margin: 0 auto"> | ||
<img src="cid:nfcorepipelinelogo" /> | ||
<meta name="description" content="nf-core/smrnaseq: Small RNA-Seq Best Practice Analysis Pipeline."> | ||
<title>nf-core/smrnaseq Pipeline Report</title> | ||
</head> | ||
<body> | ||
<div style="font-family: Helvetica, Arial, sans-serif; padding: 30px; max-width: 800px; margin: 0 auto;"> | ||
|
||
<h1>nf-core/smrnaseq v${version}</h1> | ||
<h2>Run Name: $runName</h2> | ||
<img src="cid:nfcorepipelinelogo"> | ||
|
||
<% if (!success){ out << """ | ||
<div | ||
style=" | ||
color: #a94442; | ||
background-color: #f2dede; | ||
border-color: #ebccd1; | ||
padding: 15px; | ||
margin-bottom: 20px; | ||
border: 1px solid transparent; | ||
border-radius: 4px; | ||
" | ||
> | ||
<h4 style="margin-top: 0; color: inherit">nf-core/smrnaseq execution completed unsuccessfully!</h4> | ||
<h1>nf-core/smrnaseq v${version}</h1> | ||
<h2>Run Name: $runName</h2> | ||
|
||
<% if (!success){ | ||
out << """ | ||
<div style="color: #a94442; background-color: #f2dede; border-color: #ebccd1; padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px;"> | ||
<h4 style="margin-top:0; color: inherit;">nf-core/smrnaseq execution completed unsuccessfully!</h4> | ||
<p>The exit status of the task that caused the workflow execution to fail was: <code>$exitStatus</code>.</p> | ||
<p>The full error message was:</p> | ||
<pre style="white-space: pre-wrap; overflow: visible; margin-bottom: 0">${errorReport}</pre> | ||
</div> | ||
""" } else { out << """ | ||
<div | ||
style=" | ||
color: #3c763d; | ||
background-color: #dff0d8; | ||
border-color: #d6e9c6; | ||
padding: 15px; | ||
margin-bottom: 20px; | ||
border: 1px solid transparent; | ||
border-radius: 4px; | ||
" | ||
> | ||
<pre style="white-space: pre-wrap; overflow: visible; margin-bottom: 0;">${errorReport}</pre> | ||
</div> | ||
""" | ||
} else { | ||
out << """ | ||
<div style="color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px;"> | ||
nf-core/smrnaseq execution completed successfully! | ||
</div> | ||
""" } %> | ||
</div> | ||
""" | ||
} | ||
%> | ||
|
||
<p>The workflow was completed at <strong>$dateComplete</strong> (duration: <strong>$duration</strong>)</p> | ||
<p>The command used to launch the workflow was as follows:</p> | ||
<pre | ||
style=" | ||
white-space: pre-wrap; | ||
overflow: visible; | ||
background-color: #ededed; | ||
padding: 15px; | ||
border-radius: 4px; | ||
margin-bottom: 30px; | ||
" | ||
> | ||
$commandLine</pre | ||
> | ||
<p>The workflow was completed at <strong>$dateComplete</strong> (duration: <strong>$duration</strong>)</p> | ||
<p>The command used to launch the workflow was as follows:</p> | ||
<pre style="white-space: pre-wrap; overflow: visible; background-color: #ededed; padding: 15px; border-radius: 4px; margin-bottom:30px;">$commandLine</pre> | ||
|
||
<h3>Pipeline Configuration:</h3> | ||
<table | ||
style=" | ||
width: 100%; | ||
max-width: 100%; | ||
border-spacing: 0; | ||
border-collapse: collapse; | ||
border: 0; | ||
margin-bottom: 30px; | ||
" | ||
> | ||
<tbody style="border-bottom: 1px solid #ddd"> | ||
<% out << summary.collect{ k,v -> " | ||
<tr> | ||
<th | ||
style=" | ||
text-align: left; | ||
padding: 8px 0; | ||
line-height: 1.42857143; | ||
vertical-align: top; | ||
border-top: 1px solid #ddd; | ||
" | ||
> | ||
$k | ||
</th> | ||
<td | ||
style=" | ||
text-align: left; | ||
padding: 8px; | ||
line-height: 1.42857143; | ||
vertical-align: top; | ||
border-top: 1px solid #ddd; | ||
" | ||
> | ||
<pre style="white-space: pre-wrap; overflow: visible">$v</pre> | ||
</td> | ||
</tr> | ||
" }.join("\n") %> | ||
</tbody> | ||
</table> | ||
<h3>Pipeline Configuration:</h3> | ||
<table style="width:100%; max-width:100%; border-spacing: 0; border-collapse: collapse; border:0; margin-bottom: 30px;"> | ||
<tbody style="border-bottom: 1px solid #ddd;"> | ||
<% out << summary.collect{ k,v -> "<tr><th style='text-align:left; padding: 8px 0; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd;'>$k</th><td style='text-align:left; padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd;'><pre style='white-space: pre-wrap; overflow: visible;'>$v</pre></td></tr>" }.join("\n") %> | ||
</tbody> | ||
</table> | ||
|
||
<p>nf-core/smrnaseq</p> | ||
<p><a href="https://github.com/nf-core/smrnaseq">https://github.com/nf-core/smrnaseq</a></p> | ||
</div> | ||
</body> | ||
<p>nf-core/smrnaseq</p> | ||
<p><a href="https://github.com/nf-core/smrnaseq">https://github.com/nf-core/smrnaseq</a></p> | ||
|
||
</div> | ||
|
||
</body> | ||
</html> |
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