Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
feat: build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 23, 2021
1 parent 3891763 commit 9e670ff
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 73 deletions.
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"owner":"technote-space","repo":"broken-link-checker-action","sha":"ff35417772b63d03730d36578f130f6c390666f8","ref":"refs/tags/test/v2.2.6.954130929","tagName":"test/v2.2.6.954130929","branch":"gh-actions","tags":["test/v2.2.6.954130929","test/v2.2.6","test/v2.2","test/v2"],"updated_at":"2021-06-20T09:08:10.890Z"}
{"owner":"technote-space","repo":"broken-link-checker-action","sha":"190a74bac67ea5b2d47cc7f3ba221a38adc40ac6","ref":"refs/tags/v2.2.6","tagName":"v2.2.6","branch":"gh-actions","tags":["v2.2.6","v2.2","v2"],"updated_at":"2021-06-23T16:18:27.315Z"}
6 changes: 3 additions & 3 deletions lib/utils/issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.closeIssue = exports.createIssue = exports.getIssues = void 0;
const misc_1 = require("./misc");
const getIssues = async (octokit, context) => (await octokit.paginate(octokit.issues.listForRepo, {
const getIssues = async (octokit, context) => (await octokit.paginate(octokit.rest.issues.listForRepo, {
...context.repo,
})).filter(item => !('pull_request' in item));
exports.getIssues = getIssues;
const createIssue = async (brokenLink, octokit, context) => (await octokit.issues.create({
const createIssue = async (brokenLink, octokit, context) => (await octokit.rest.issues.create({
...context.repo,
title: await misc_1.getIssueTitle(brokenLink.originalURL, context),
body: await misc_1.getIssueBody(brokenLink, context),
labels: misc_1.getIssueLabels(),
assignees: misc_1.getIssueAssignees(),
})).data;
exports.createIssue = createIssue;
const closeIssue = async (issue, octokit, context) => (await octokit.issues.update({
const closeIssue = async (issue, octokit, context) => (await octokit.rest.issues.update({
...context.repo,
'issue_number': issue.number,
state: 'closed',
Expand Down
Loading

0 comments on commit 9e670ff

Please sign in to comment.