mirror of
https://github.com/sagidayan/greasemonkey-scripts.git
synced 2024-11-25 02:25:25 +00:00
Merge pull request #1 from ronniel1/ronnie/pr_check
Fixed issue when there are no PR checks
This commit is contained in:
commit
97ff0d704d
1 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ setInterval(() => {
|
|||
|
||||
function createPrHTML(pr) {
|
||||
const div = document.createElement('div');
|
||||
const prState = pr.commits.nodes[0].commit.statusCheckRollup.state;
|
||||
const prState = pr.commits.nodes[0].commit.statusCheckRollup?.state || '';
|
||||
const prStateColor = prState === 'FAILURE' ? 'red' : (prState === 'SUCCESS' ? 'green' : 'yellow');
|
||||
|
||||
div.className = "d-sm-flex Box mb-2 Box-body color-bg-secondary";
|
||||
|
|
Loading…
Reference in a new issue