Skip to content

Only show filter-pr-by-build-status if the repo has CI - #2133

Merged
fregante merged 3 commits into
refined-github:masterfrom
hardikmodha:filter_pr_build_status_for_ci_enabled_repo
Jun 8, 2019
Merged

fregante merged 3 commits into
refined-github:masterfrom
hardikmodha:filter_pr_build_status_for_ci_enabled_repo

Conversation

@hardikmodha

Copy link
Copy Markdown
Contributor

return false;
}

const reviewsFilter = select('.table-list-header-toggle > details:nth-last-child(3)')!;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since #2114 removed some filters, we might need to change the way we find the position.

It may work before this PR because this check is added before clean-issue-filters runs

@hardikmodha hardikmodha Jun 7, 2019 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hey, "Assignee" and "Sort" filters are always there at the last and they are not getting removed. So this approach won't break. .table-list-header-toggle > details:nth-last-child(3) will still work.

@fregante fregante changed the title Hide status filter for PR list if there are no checks Only show filter-pr-by-build-status if the repo has CI Jun 8, 2019
@fregante
fregante merged commit 8ae8e88 into refined-github:master Jun 8, 2019
@fregante

fregante commented Jun 8, 2019

Copy link
Copy Markdown
Member

Thanks for the quick fix @hardikmodha ⚡️

@hardikmodha
hardikmodha deleted the filter_pr_build_status_for_ci_enabled_repo branch June 9, 2019 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Hide status filter for PR list if there are no checks

2 participants