Skip to content

Commit c4161fc

Browse files
feat: build for release
1 parent e8bf2f9 commit c4161fc

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"owner":"technote-space","repo":"create-project-card-action","sha":"4f3df4654740279918dba96693bfd433db05c143","ref":"refs/tags/test/v1.3.11.959244034","tagName":"test/v1.3.11.959244034","branch":"gh-actions","tags":["test/v1.3.11.959244034","test/v1.3.11","test/v1.3","test/v1"],"updated_at":"2021-06-22T03:07:09.020Z"}
1+
{"owner":"technote-space","repo":"create-project-card-action","sha":"22d21159d7b49f63318bc8780e388d661d40417c","ref":"refs/tags/v1.3.11","tagName":"v1.3.11","branch":"gh-actions","tags":["v1.3.11","v1.3","v1"],"updated_at":"2021-06-22T17:38:40.419Z"}

lib/utils/card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const github_action_helper_1 = require("@technote-space/github-action-helper");
1414
const constant_1 = require("../constant");
1515
const createCard = (columnId, contentId, contentType, logger, octokit) => __awaiter(void 0, void 0, void 0, function* () {
1616
try {
17-
yield octokit.projects.createCard({
17+
yield octokit.rest.projects.createCard({
1818
'column_id': columnId,
1919
'content_id': contentId,
2020
'content_type': contentType,

lib/utils/column.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const getColumnIds = (projectIds, columnName, logger, octokit) => __awaiter(void
1616
var _a;
1717
const columnIds = [];
1818
for (const projectId of projectIds) {
19-
const columnId = (_a = (yield octokit.paginate(octokit.projects.listColumns, { 'project_id': projectId })).find(item => item.name === columnName)) === null || _a === void 0 ? void 0 : _a.id;
19+
const columnId = (_a = (yield octokit.paginate(octokit.rest.projects.listColumns, { 'project_id': projectId })).find(item => item.name === columnName)) === null || _a === void 0 ? void 0 : _a.id;
2020
if (undefined !== columnId) {
2121
columnIds.push(columnId);
2222
}

lib/utils/project.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ const misc_1 = require("./misc");
1414
// eslint-disable-next-line camelcase
1515
const getRepoProject = (projectName, logger, octokit, context) => __awaiter(void 0, void 0, void 0, function* () {
1616
var _a, _b;
17-
return ((_a = context.payload.repository) === null || _a === void 0 ? void 0 : _a.has_projects) ? (_b = (yield octokit.paginate(octokit.projects.listForRepo, Object.assign(Object.assign({}, context.repo), { state: 'open' }))).find(item => item.name === projectName)) === null || _b === void 0 ? void 0 : _b.id : undefined;
17+
return ((_a = context.payload.repository) === null || _a === void 0 ? void 0 : _a.has_projects) ? (_b = (yield octokit.paginate(octokit.rest.projects.listForRepo, Object.assign(Object.assign({}, context.repo), { state: 'open' }))).find(item => item.name === projectName)) === null || _b === void 0 ? void 0 : _b.id : undefined;
1818
});
1919
exports.getRepoProject = getRepoProject;
2020
const getOrgProject = (projectName, logger, octokit, context) => __awaiter(void 0, void 0, void 0, function* () {
2121
var _c;
22-
return misc_1.isActive('ORG') && 'organization' in context.payload ? (_c = (yield octokit.paginate(octokit.projects.listForOrg, { org: context.repo.owner, state: 'open' })).find(item => item.name === projectName)) === null || _c === void 0 ? void 0 : _c.id : undefined;
22+
return misc_1.isActive('ORG') && 'organization' in context.payload ? (_c = (yield octokit.paginate(octokit.rest.projects.listForOrg, { org: context.repo.owner, state: 'open' })).find(item => item.name === projectName)) === null || _c === void 0 ? void 0 : _c.id : undefined;
2323
});
2424
exports.getOrgProject = getOrgProject;
2525
const getUserProject = (projectName, logger, octokit, context) => __awaiter(void 0, void 0, void 0, function* () {
2626
var _d;
27-
return misc_1.isActive('USER') && !('organization' in context.payload) ? (_d = (yield octokit.paginate(octokit.projects.listForUser, { username: context.repo.owner, state: 'open' })).find(item => item.name === projectName)) === null || _d === void 0 ? void 0 : _d.id : undefined;
27+
return misc_1.isActive('USER') && !('organization' in context.payload) ? (_d = (yield octokit.paginate(octokit.rest.projects.listForUser, { username: context.repo.owner, state: 'open' })).find(item => item.name === projectName)) === null || _d === void 0 ? void 0 : _d.id : undefined;
2828
});
2929
exports.getUserProject = getUserProject;
3030
const getProjectIds = (projectName, logger, octokit, context) => __awaiter(void 0, void 0, void 0, function* () {

node_modules/.yarn-integrity

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)