-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 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)) ### chore * use "wow-actions/release-github-action@v2" ([88b6aaa](88b6aaa)) ### Features * ✨ auto assign issue ([f0afbe5](f0afbe5)) * ✨ init ([f821e91](f821e91)) * ✨ support pull_request_target ([afd92f8](afd92f8)) * auto extract members fo a team on adding teams to assignees ([#13](#13)) ([147b920](147b920)) * ignore unknown reviewers/assignees ([ef22c9b](ef22c9b)), closes [#8](#8) ### BREAKING CHANGES * force next release
- Loading branch information
1 parent
88b6aaa
commit f22dd1d
Showing
8 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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)) | ||
|
||
|
||
### chore | ||
|
||
* use "wow-actions/release-github-action@v2" ([88b6aaa](https://github.com/wow-actions/auto-assign/commit/88b6aaac3fe88f7841ded44e2aca9ae873532485)) | ||
|
||
|
||
### 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 on adding teams to assignees ([#13](https://github.com/wow-actions/auto-assign/issues/13)) ([147b920](https://github.com/wow-actions/auto-assign/commit/147b920eb17eb616117f2e2556b14fb7e9abab82)) | ||
* 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) | ||
|
||
|
||
### BREAKING CHANGES | ||
|
||
* force next release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters