Skip to content

Nightly Change Log Improvements#1076

Closed
Nonary wants to merge 13 commits intoLizardByte:nightlyfrom
Nonary:nightly_change_log
Closed

Nightly Change Log Improvements#1076
Nonary wants to merge 13 commits intoLizardByte:nightlyfrom
Nonary:nightly_change_log

Conversation

@Nonary
Copy link

@Nonary Nonary commented Mar 25, 2023

Description

This PR updates notifications for nightly builds to display the change log for up to 20 commits from latest Nightly Version of Sunshine. In addition, the change log will now link to the pull request if applicable.

This has a dependency to #1073

Changes Made:

Added a new section to display the change log for the latest Nightly Version of Sunshine.
Created retrieveNightlyChangelog method to fetch the commits for the nightly build from the GitHub API and retrieve the commit messages for the commits since it was installed.
Add getPrNumber method to search for a PR number in the commit message and return it to be used for creating links to a pull request.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Branch Updates

LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.

  • I want maintainers to keep my branch updated

Nonary added 6 commits March 25, 2023 00:20
…ve indexes

I guess this was someone who was used to too much Python :)

Also added an additional check to remove stable releases that aren't a new version
This commit refactors the stableBuildAvailable() and nightlyBuildAvailable() computed properties to improve code clarity. The buildVersionIsStable() method has been renamed to isStableBuild() for better naming consistency, and the nightlyBuildAvailable() computed property has been renamed to isNightlyBuildAvailable() to more clearly indicate its purpose.
Previously, the version check was incorrectly splitting the version number string by "-g" instead of ".", resulting in an error that prevented the check from properly detecting the version.

This commit fixes the bug by updating the version check to split the version number string by ".", which is the correct delimiter for version numbers
I changed the style of this boolean check to be more consistent with the other booleans
This commit adds a change log section to the index.html file of the project. The change log displays the commit messages for the most recent commits on the "nightly" branch of the LizardByte/Sunshine repository. The maximum number of commits displayed is controlled by the "nightlyCommitLimit" property, which is set to 20. If the user is more than 20 commits behind the current version, a warning message is displayed. The commit messages are fetched using the GitHub API and are displayed in an unordered list.
Also fixes a bug with the commit tracking, it will now properly stop at the latest commit.
@Nonary Nonary changed the title Nightly change log Nightly Change Log Improvements Mar 25, 2023
Nonary added 3 commits March 26, 2023 11:12
I've also changed the order of the boolean checks in the method so it doesn't short circuit and exit out early, it will check for version first.
@ReenigneArcher ReenigneArcher marked this pull request as draft March 28, 2023 01:02
@Nonary Nonary marked this pull request as ready for review April 1, 2023 19:59
@Nonary

This comment was marked as spam.

@LizardByte-bot
Copy link
Member

This PR is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

@LizardByte-bot
Copy link
Member

This PR was closed because it has been stalled for 10 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants