Skip to content

Commit

Permalink
chore(release): 1.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# 1.0.0 (2023-01-03)

### Bug Fixes

* fix the default GITHUB_TOKEN does not have permission to request a review from a team ([eab1006](eab1006))
* get issue/pr labels real-timely ([c3701c7](c3701c7))

### Features

* ✨ auto assign issue ([f0afbe5](f0afbe5))
* ✨ init ([f821e91](f821e91))
* ✨ support pull_request_target ([afd92f8](afd92f8))
* auto extract members fo a team when specifyed assignee is a team ([72dddcf](72dddcf))
* ignore unknown reviewers/assignees ([ef22c9b](ef22c9b)), closes [#8](#8)
* skip assigned issue/pr or requested reviewer pr ([7b85613](7b85613))
  • Loading branch information
semantic-release-bot authored and wow-actions-bot committed Jan 3, 2023
1 parent c6e05e0 commit 9a473b9
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 1.0.0 (2023-01-03)


### Bug Fixes

* fix the default GITHUB_TOKEN does not have permission to request a review from a team ([eab1006](https://github.com/wow-actions/auto-assign/commit/eab1006056e7e7891ca7d0689202fadc39dbe774))
* get issue/pr labels real-timely ([c3701c7](https://github.com/wow-actions/auto-assign/commit/c3701c76c743672a7e7054993b075bd167707652))


### Features

* ✨ auto assign issue ([f0afbe5](https://github.com/wow-actions/auto-assign/commit/f0afbe58dc4dcb4628aac30e40247f434196a249))
* ✨ init ([f821e91](https://github.com/wow-actions/auto-assign/commit/f821e914cffa94e44aa2c28ba094b11d70b5c6fc))
* ✨ support pull_request_target ([afd92f8](https://github.com/wow-actions/auto-assign/commit/afd92f887efe9615f8c66a069a24aae06729c0a9))
* auto extract members fo a team when specifyed assignee is a team ([72dddcf](https://github.com/wow-actions/auto-assign/commit/72dddcf56e264b4f4fa5edc60a85bd95bad6bb00))
* ignore unknown reviewers/assignees ([ef22c9b](https://github.com/wow-actions/auto-assign/commit/ef22c9b349930775a0df58912ec5d14ea315707f)), closes [#8](https://github.com/wow-actions/auto-assign/issues/8)
* skip assigned issue/pr or requested reviewer pr ([7b85613](https://github.com/wow-actions/auto-assign/commit/7b856134f3bd435a10f966fcf55f4821810466f0))
1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
8 changes: 8 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module');
const basename = __dirname + '/index.js';
const source = readFileSync(basename + '.cache.js', 'utf-8');
const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache');
const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 }
const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts);
(script.runInThisContext())(exports, require, module, __filename, __dirname);
if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} });
Binary file added dist/index.js.cache
Binary file not shown.
7 changes: 7 additions & 0 deletions dist/index.js.cache.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions dist/inputs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export declare function getInputs(): {
skipDraft?: boolean | undefined;
addReviewers?: boolean | undefined;
addAssignees?: boolean | undefined;
reviewers?: string[] | undefined;
assignees?: string[] | undefined;
numberOfAssignees?: number | undefined;
numberOfReviewers?: number | undefined;
skipKeywords?: string[] | undefined;
includeLabels?: string[] | undefined;
excludeLabels?: string[] | undefined;
};
export type Inputs = ReturnType<typeof getInputs>;
17 changes: 17 additions & 0 deletions dist/util.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Inputs } from './inputs';
export declare function skip(msg: string): void;
export declare function isValidEvent(event: string, action?: string | string[]): boolean | "" | undefined;
export declare function getOctokit(): import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/types").Api & {
paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
};
type Octokit = ReturnType<typeof getOctokit>;
export declare function hasSkipKeywords(title: string, keywords: string[]): boolean;
export declare function getIssueLabels(octokit: Octokit, issueNumber: number): Promise<string[]>;
export declare function getState(octokit: Octokit): Promise<{
assignees: string[];
teams: string[];
reviewers: string[];
}>;
export declare function addReviewers(octokit: Octokit, inputs: Inputs): Promise<void>;
export declare function addAssignees(octokit: Octokit, inputs: Inputs): Promise<void>;
export {};
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"@semantic-release/release-notes-generator": "^10.0.3",
"@wow-actions/parse-inputs": "^1.2.0",
"lodash.samplesize": "^4.2.0"
},
Expand Down

0 comments on commit 9a473b9

Please sign in to comment.