Skip to content

ci(dry-run): Add dry run build and PR template#89

Merged
tonywu1999 merged 1 commit intodevelfrom
dry-run
Jun 25, 2025
Merged

ci(dry-run): Add dry run build and PR template#89
tonywu1999 merged 1 commit intodevelfrom
dry-run

Conversation

@tonywu1999
Copy link
Contributor

@tonywu1999 tonywu1999 commented Jun 25, 2025

Motivation and Context

Please include relevant motivation and context of the problem along with a short summary of the solution.

Changes

Please provide a detailed bullet point list of your changes.

Testing

Please describe any unit tests you added or modified to verify your changes.

Checklist Before Requesting a Review

  • I have read the MSstats contributing guidelines
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have run the devtools::document() command after my changes and committed the added files

Summary by CodeRabbit

  • Chores
    • Added a pull request template to guide contributors in submitting changes.
    • Introduced a new GitHub Actions workflow to automatically build and check pull requests targeting the development branch.
    • Updated the ignore list to exclude .DS_Store files from version control.

@coderabbitai
Copy link

coderabbitai bot commented Jun 25, 2025

Walkthrough

A pull request template, a GitHub Actions workflow for dry-run builds on pull requests to the "devel" branch, and an update to the .gitignore file to exclude .DS_Store files have been added. No changes were made to exported or public entities in the codebase.

Changes

File(s) Change Summary
.github/pull_request_template.md Added a pull request template for structured PR descriptions, testing info, and contributor checklist.
.github/workflows/dry-run-build.yml Introduced a GitHub Actions workflow for CI dry-run builds on PRs targeting the "devel" branch.
.gitignore Updated to ignore .DS_Store files, preventing macOS system files from being tracked.

Sequence Diagram(s)

sequenceDiagram
    participant Contributor
    participant GitHub
    participant CI Runner

    Contributor->>GitHub: Open PR targeting "devel"
    GitHub->>CI Runner: Trigger "Dry runs for PRs" workflow
    CI Runner->>GitHub: Checkout code
    CI Runner->>CI Runner: Setup R and Bioconductor (devel)
    CI Runner->>CI Runner: Install dependencies
    CI Runner->>CI Runner: Build, install, and check R package
    CI Runner->>GitHub: Report build/check results on PR
Loading

Poem

In the garden of code where the pull requests grow,
A new template blooms for all to bestow.
The CI hops in for a dry-run delight,
While .DS_Store files vanish out of sight.
With checklists and builds, our project feels bright—
A bunny’s small leap makes everything right!
🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (4)
.github/workflows/dry-run-build.yml (2)

2-4: Trim trailing whitespace to satisfy YAML linters

The workflow currently fails yamllint due to two spaces after on:.

-on:␠␠
+on:

18-18: Add a terminating newline

Several tools (git, POSIX utilities, some CI linters) expect files to end with \n.
Append a newline after the last line.

-        uses: grimbough/bioc-actions/build-install-check@v1
+\tuses: grimbough/bioc-actions/build-install-check@v1
+
.github/pull_request_template.md (2)

3-4: Minor grammar tweak

Insert a comma after “problem”.

-Please include relevant motivation and context of the problem along with a short summary of the solution.
+Please include relevant motivation and context of the problem, along with a short summary of the solution.

9-10: Remove placeholder bullet or convert to comment

An empty bullet renders strangely in rendered Markdown.

-
+- <!-- Describe at least one change -->
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1eed116 and be6af36.

📒 Files selected for processing (3)
  • .github/pull_request_template.md (1 hunks)
  • .github/workflows/dry-run-build.yml (1 hunks)
  • .gitignore (1 hunks)
🧰 Additional context used
🪛 LanguageTool
.github/pull_request_template.md

[uncategorized] ~3-~3: Possible missing comma found.
Context: ... relevant motivation and context of the problem along with a short summary of the solut...

(AI_HYDRA_LEO_MISSING_COMMA)

🪛 YAMLlint (1.37.1)
.github/workflows/dry-run-build.yml

[error] 2-2: trailing spaces

(trailing-spaces)


[error] 18-18: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (1)
.gitignore (1)

8-8: 👍 Ignoring macOS artefacts looks good

Adding *.DS_Store keeps the repository clean and is industry-standard.
No further action required.

Comment on lines +9 to +18
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup R and Bioconductor
uses: grimbough/bioc-actions/setup-bioc@v1
with:
bioc-version: devel
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
- name: Build, Install, Check
uses: grimbough/bioc-actions/build-install-check@v1 No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Pin action revisions for supply-chain safety

Tag references (actions/checkout@v4, setup-bioc@v1, etc.) can be overwritten upstream.
For immutable builds, pin each action to a commit SHA:

-uses: actions/checkout@v4
+uses: actions/checkout@v4 # 4d5d7b9f9e63e7f0d…

Do the same for the other three actions.

🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 18-18: no new line character at the end of file

(new-line-at-end-of-file)

🤖 Prompt for AI Agents
In .github/workflows/dry-run-build.yml between lines 9 and 18, the GitHub
Actions use tag references for actions which can be overwritten upstream,
risking supply-chain security. To fix this, replace each action tag reference
with a pinned commit SHA by appending the specific commit hash after the tag,
for example, change "actions/checkout@v4" to "actions/checkout@v4 #
<commit-sha>". Do this for all four actions to ensure immutable builds.

Please describe any unit tests you added or modified to verify your changes.

## Checklist Before Requesting a Review
- [ ] I have read the MSstats [contributing guidelines](https://github.com/Vitek-Lab/MSstatsConvert/blob/master/.github/CONTRIBUTING.md)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Update link to project-local contributing guide

The link points to MSstatsConvert, not MSstatsTMT.

-I have read the MSstats [contributing guidelines](https://github.com/Vitek-Lab/MSstatsConvert/blob/master/.github/CONTRIBUTING.md)
+I have read the MSstatsTMT [contributing guidelines](https://github.com/Vitek-Lab/MSstatsTMT/blob/master/.github/CONTRIBUTING.md)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- [ ] I have read the MSstats [contributing guidelines](https://github.com/Vitek-Lab/MSstatsConvert/blob/master/.github/CONTRIBUTING.md)
- [ ] I have read the MSstatsTMT [contributing guidelines](https://github.com/Vitek-Lab/MSstatsTMT/blob/master/.github/CONTRIBUTING.md)
🤖 Prompt for AI Agents
In .github/pull_request_template.md at line 16, the link to the contributing
guidelines incorrectly points to the MSstatsConvert repository. Update the URL
to point to the MSstatsTMT project's local contributing guide to ensure it
directs users to the correct documentation.

@tonywu1999 tonywu1999 merged commit da443d0 into devel Jun 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant