-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix actions skipped commit status indicator #34507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
badhezi
wants to merge
21
commits into
go-gitea:main
Choose a base branch
from
badhezi:dev/hezi/fix-skipped-icon
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+12
−3
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8d799c2
use the correct context data for PR link template in issue card
badhezi f2a2acf
Merge branch 'main' into main
badhezi 5cc1bda
Merge branch 'main' into main
GiteaBot 54d37d1
Merge branch 'main' into main
GiteaBot ac25150
Merge branch 'go-gitea:main' into main
badhezi e11a339
Merge branch 'go-gitea:main' into main
badhezi 104eecc
Merge branch 'go-gitea:main' into main
badhezi bcc4ade
Merge branch 'go-gitea:main' into main
badhezi a7aaa79
Merge branch 'go-gitea:main' into main
badhezi b46d314
Merge branch 'go-gitea:main' into main
badhezi 4e2434b
Merge branch 'go-gitea:main' into main
badhezi 7f72fe9
Merge branch 'go-gitea:main' into main
badhezi c6acfc1
Merge branch 'go-gitea:main' into main
badhezi 016c2f3
Merge branch 'go-gitea:main' into main
badhezi a3c2953
Merge branch 'go-gitea:main' into main
badhezi 4d7ea0d
Merge branch 'go-gitea:main' into main
badhezi 8adf028
add skipped commit status and icon indicator
badhezi ec76f44
Merge branch 'main' into dev/hezi/fix-skipped-icon
badhezi d352cfb
update js CommitStatus type
badhezi 4479858
add commitStatusPriorities to skipped status
badhezi 59f9944
Merge branch 'main' into dev/hezi/fix-skipped-icon
badhezi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are commit statuses correctly merged with this change?
In Pull Request Status / Merged Commit Status Icon
I looked at other locations of the other constants.
e.g. assign skipped value 5
The compare method returns false in both directions if not part of commitStatusPriorities e.g. making a stable sort impossible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out.
Im not sure if semantically skipped is "better than" success, anyhow ill assign 5 to it and we will see if anyone else has feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can read and read over the nobetterthan function, somehow I tend to get confused
This is a "no better than" table, negation.... Error has value 0, because it is a better status than warning, pending, success.
e.g. if we start with skipped/success, we end with error if a single status is error
After reading my suggestion here seems to be not required, but I found something else about PRs.
NoBetterThan is never used inverted and having no value defined for skipped would have a similar outcome if every other value is already in this table.