Skip to content

Conversation

lposen
Copy link
Contributor

@lposen lposen commented Oct 10, 2025

🔹 JIRA Ticket(s) if any

✏️ Description

Publish documentation to netlify

Copy link

github-actions bot commented Oct 10, 2025

Lines Statements Branches Functions
Coverage: 47%
47.45% (224/472) 20.67% (37/179) 40% (62/155)

Copy link

qltysh bot commented Oct 10, 2025

Diff Coverage: Not applicable. There was no coverage data reported for the files in this diff.

Total Coverage: This PR will not change total coverage.

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

This is from Qlty Cloud, the successor to Code Climate Quality. Learn more.

@lposen lposen added the documentation Improvements or additions to documentation label Oct 10, 2025
Copy link

github-actions bot commented Oct 10, 2025

@lposen lposen requested review from Ayyanchira and Copilot October 10, 2025 17:25
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Sets up automated documentation deployment to Netlify for the React Native SDK project, enabling continuous documentation publishing for both production and preview environments.

  • Configures Netlify deployment with caching, security headers, and build settings
  • Adds GitHub Actions workflow for automatic documentation deployment on master/main pushes and PRs with "documentation" label
  • Updates README to include API documentation link and reorganizes content structure
  • Provides comprehensive setup and usage documentation for the deployment process

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
netlify.toml Netlify configuration with build settings, caching headers, and security policies
.github/workflows/deploy-docs.yml GitHub Actions workflow for automated documentation deployment
docs-deployment.md Complete documentation setup and usage guide for Netlify deployment
README.md Updated with API documentation link and reorganized table of contents

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

# Only run on master/main pushes or PRs with "documentation" label
if: |
github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') ||
github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'documentation') ||
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The workflow condition checks for 'documentation' label but the documentation mentions using 'docs' label. This mismatch will prevent preview deployments from triggering when users follow the documented instructions.

Suggested change
github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'documentation') ||
github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'docs') ||

Copilot uses AI. Check for mistakes.

Copy link
Member

@Ayyanchira Ayyanchira Oct 10, 2025

Choose a reason for hiding this comment

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

Looks like a valid suggestion

- Updates the main documentation URL

### Preview Deployment
- Triggers on pull requests with the "docs" label
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

Documentation states preview deployments trigger with 'docs' label, but the actual workflow checks for 'documentation' label. This inconsistency will cause confusion and prevent expected functionality.

Copilot uses AI. Check for mistakes.

Copy link
Member

@Ayyanchira Ayyanchira left a comment

Choose a reason for hiding this comment

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

Looking great other than github copilot suggestions!

@lposen lposen merged commit 8d34f62 into master Oct 10, 2025
13 of 14 checks passed
@lposen lposen deleted the MOB-12295-publish-docs-to-netlify branch October 10, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants