Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy to GitHub Pages

on:
# Deploy automatically when pushing to master
push:
branches:
- master
# Allow manual deployment from the Actions tab
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

# Currently deploying static files directly.
# When upgrading to Vite, add build steps here:
#
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: '20'
#
# - name: Install dependencies
# run: npm ci
#
# - name: Build
# run: npm run build
#
# Then change the upload path below from '.' to './dist' (or your build output directory)

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Deploy everything in the root directory
# Change to './dist' when using Vite
path: '.'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
9 changes: 3 additions & 6 deletions OpenPRs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="diffblue.css" />
</head>
<body data-bind="with: searchResults, css: { disaster: !travisBuild.lastCompleteBuildPassed() }">
<body data-bind="with: searchResults">
<div data-bind="visible: uninitialised">
<p class="loadingWaiter">Loading...</p>
</div>
Expand Down Expand Up @@ -215,20 +215,17 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.3/lodash.min.js"></script>
<script src="GitHub-utils.js"></script>
<script src="SearchResults.js"></script>
<script src="TravisBuilds.js"></script>
<script>
var viewModel =
{
searchResults: new SearchResults(),
travisBuild: new TravisBuilds("diffblue/quality-assurance", "master")
searchResults: new SearchResults()
};
$(function () {
viewModel.searchResults.load();
viewModel.travisBuild.load();
ko.applyBindings(viewModel);
});
</script>
<script src="CheckForUpdates.js"></script>
<!-- <script src="CheckForUpdates.js"></script> -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>
7 changes: 5 additions & 2 deletions SearchResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ function SearchResults() {
var nextLinks = linksHeader.split(",").filter(function (link) { return link.endsWith(nextLinkSuffix); });
if (nextLinks.length > 0) {
var nextLink = nextLinks[0];
nextLink = nextLink.substring(1, nextLink.length - nextLinkSuffix.length - 1);
getPage(nextLink);
// Extract URL from <URL>; rel="next" format
var match = nextLink.match(/<([^>]+)>/);
if (match) {
getPage(match[1]);
}
} else if (onComplete)
onComplete(pullRequests, totalCount);
})
Expand Down
55 changes: 0 additions & 55 deletions TravisBuilds.js

This file was deleted.

3 changes: 0 additions & 3 deletions credentials.sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ var username = "username";
// A personal access token from https://github.com/settings/tokens
var accessCode = "token";

// An API token from https://developer.travis-ci.com/authentication
var travisAccessCode = "token";

// ///////////////////// Leave the below /////////////////////

$.ajaxSetup({
Expand Down