You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduces GitHub Environments for Develop, Production, and github-pages.
Applies branch protection rules for the develop branch.
Refactors release workflow to target develop and main branches distinctly.
Sets develop as the default repository branch.
Diagram Walkthrough
flowchart LR
A["setting.yml workflow"]
B[".github/environments.json"]
C[".github/protection.json"]
D["GitHub Environments (Develop, Production, github-pages)"]
E["Branch Protection Rules (develop, main)"]
F["release.yml workflow"]
G["gh-deploy.yml workflow"]
A -- "reads" --> B
A -- "reads" --> C
A -- "configures" --> D
A -- "applies" --> E
F -- "uses" --> D
G -- "uses" --> D
Loading
File Walkthrough
Relevant files
Configuration changes
2 files
environments.json
Defines GitHub environments for Develop, Production, and github-pages.
The 'production' job in the release workflow is currently incomplete. It only includes a checkout step and lacks the release drafting or publishing logic that the 'develop' job has. This might lead to inconsistent release behavior between develop and main branches.
The 'develop' branch protection rules define an empty 'required_status_checks.contexts' array. This means that no specific status checks are required to pass before a pull request can be merged into 'develop', potentially allowing broken code to be merged.
The 'reviewers' array is empty and 'wait_timer' is set to 0 for all defined environments. For 'Develop' and especially 'Production' environments, it is often beneficial to configure specific reviewers or a wait timer to ensure proper oversight before deployments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Type of Change
Related Issues
Breaking Changes
Checklist
Additional Context
PR Type
Enhancement, CI/CD
Description
Introduces GitHub Environments for
Develop,Production, andgithub-pages.Applies branch protection rules for the
developbranch.Refactors release workflow to target
developandmainbranches distinctly.Sets
developas the default repository branch.Diagram Walkthrough
File Walkthrough
2 files
Defines GitHub environments forDevelop,Production, andgithub-pages.Adds branch protection rules for the `develop` branch.1 files
Removes the draft release workflow.5 files
Assigns the `github-pages` environment to the deployment job.Updates push trigger branch from `main` to `develop`.Updates push trigger branch from `main` to `develop`.Refactors release workflow fordevelopandproductionenvironments.Enhances repository settings, branch protection, and environmentconfiguration.