diff --git a/.github/workflows/main-reviewer.yml b/.github/workflows/main-reviewer.yml index c8e4720..5ecd132 100644 --- a/.github/workflows/main-reviewer.yml +++ b/.github/workflows/main-reviewer.yml @@ -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 diff --git a/.github/workflows/main_rev_checklist.md b/.github/workflows/main_rev_checklist.md index d7b5fe4..e2f828b 100644 --- a/.github/workflows/main_rev_checklist.md +++ b/.github/workflows/main_rev_checklist.md @@ -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. diff --git a/README.md b/README.md index 79140a1..2cdb3ee 100644 --- a/README.md +++ b/README.md @@ -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! - +