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
2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ Please check off each taskbox as an acknowledgment that you completed the task o
- [ ] Link the issue in the Development Section on the right hand side.
- [ ] Address all merge conflicts and resolve appropriately
- [ ] Pat yourself on the back for a job well done! Much love to your accomplishment!

To create the website for the content of this PR add "[create website]" to the title of the pull request.
36 changes: 24 additions & 12 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ on:
- "v*"
branches:
- main
# 'pull_request' events are triggered when PRs are
# created against one of these target branches.
# 'pull_request' events are triggered when PRs are created against one of
# these target branches or if commits are pushed to the source/feature branch.
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
# 'release' events are triggered when...
Expand Down Expand Up @@ -48,14 +49,14 @@ jobs:
style:
name: Code Style
uses: pharmaverse/admiralci/.github/workflows/style.yml@main
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.event.action != 'closed'
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
spellcheck:
name: Spelling
uses: pharmaverse/admiralci/.github/workflows/spellcheck.yml@main
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.event.action != 'closed'
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
Expand All @@ -71,11 +72,15 @@ jobs:
uses: pharmaverse/admiralci/.github/workflows/r-cmd-check.yml@main
with:
error-on: note # TODO: find a way to ignore specific notes
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.event.action != 'closed'
docs:
name: Documentation
uses: pharmaverse/admiralci/.github/workflows/pkgdown.yml@main
if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/v')
if: >
github.event_name == 'push' ||
startsWith(github.ref, 'refs/tags/v') ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[create website]') &&
github.event.action != 'closed')
needs: get_r_version
with:
r-version: "release"
Expand All @@ -86,25 +91,32 @@ jobs:
latest-tag-alt-name: cran-release
multiversion-docs-landing-page: cran-release
branches-or-tags-to-list: >-
^main$|^cran-release$|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)(-rc[0-9]+)$
^main$|^cran-release$|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)
secrets:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
remove_docs:
name: Remove PR Website
uses: pharmaverse/admiralci/.github/workflows/remove_pr_website.yml@main
if: github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[create website]')
secrets:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
linter:
name: Lint
uses: pharmaverse/admiralci/.github/workflows/lintr.yml@main
if: github.event_name == 'pull_request' && github.event.action != 'closed'
needs: get_r_version
if: github.event_name == 'pull_request'
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
links:
name: Links
uses: pharmaverse/admiralci/.github/workflows/links.yml@main
if: github.event_name == 'pull_request'
if: >
github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
coverage:
name: Code Coverage
uses: pharmaverse/admiralci/.github/workflows/code-coverage.yml@main
if: >
github.event_name != 'release'
github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
Expand All @@ -115,15 +127,15 @@ jobs:
man-pages:
name: Man Pages
uses: pharmaverse/admiralci/.github/workflows/man-pages.yml@main
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.event.action != 'closed'
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
templates:
name: Check Templates
uses: pharmaverse/admiralci/.github/workflows/check-templates.yml@main
secrets: inherit
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'workflow_dispatch'
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ of the navigation bar. Tooltips have also been set up for each of the icons on t

- Increased the maximum height of the drop-down menus in the website navigation bar to ensure all items are visible without scrolling. (#2974)

- Creating the website for pull requests was enabled. Add "[create website]" to
the pull request title to trigger website creation. (#2984)
</details>

# admiral 1.4.1
Expand Down
Loading