Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/main-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,26 @@ jobs:
runs-on: ubuntu-latest

steps:
# Step 1: Extract the main reviewer (assignee) and PR details
# Step 1: Check out the repository
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Extract the main reviewer (assignee) and PR details
- name: Extract PR details
id: pr_details
run: |
echo "ASSIGNEE=$(jq -r '.assignee.login' < $GITHUB_EVENT_PATH)" >> $GITHUB_ENV

# Step 2: Replace the placeholder in the checklist template
# Step 3: Replace the placeholder in the checklist template
- name: Replace reviewer name in checklist template
run: |
ASSIGNEE=${{ env.ASSIGNEE }}
sed "s/__MAINREV__/$ASSIGNEE/g" .github/workflows/main_rev_checklist.md > filled_checklist.md

# Step 3: Post the filled checklist as a comment on the PR
# Step 4: Post the filled checklist as a comment
- name: Post checklist as a comment
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
$(cat filled_checklist.md)
body-path: filled_checklist.md
2 changes: 1 addition & 1 deletion .github/workflows/main_rev_checklist.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Hello @__MAINREV__!

You've been assigned to this PR, which means that you've been nominated Main Reviewer! (Lucky you! :ta-da: :ta-da: :ta-da:)
You've been assigned to this PR, which means that you've been nominated Main Reviewer! Lucky you!

As a Main Reviewer, you are slightly more responsible for the quality of this PR than your fellow Reviewers. If you have any doubt, check [this section on reviewing](https://phys2bids.readthedocs.io/en/latest/contributorfile.html#reviewing) and [this section on being the Main Reviewer](https://phys2bids.readthedocs.io/en/latest/contributorfile.html#mainreviewer) of the documents.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ We use the third-party data archiving tool Zenodo to create a DOI that can be us

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification([emoji key](https://allcontributors.org/docs/en/emoji-key)). Contributions of any kind welcome!

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section! -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
Expand Down