-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(draft-pr): add new option to not process PRs which are in draft #539
Conversation
very much looking forward to this! |
up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💥 I like it @C0ZEN. Left one minor comment. There's some merge conflicts too.
// Delete the branch on closed pull request | ||
private async _deleteBranch(issue: Issue): Promise<void> { | ||
const issueLogger: IssueLogger = new IssueLogger(issue); | ||
|
||
issueLogger.info(`Delete branch from closed $$type - ${issue.title}`); | ||
|
||
const pullRequest = await this._getPullRequest(issue); | ||
const pullRequest: IPullRequest | undefined | void = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you have to specify the type here. Could just do const pullRequest = await this._getPullRequest(issue)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: I do this on purpose because I prefer explicit types; easier to review and code IMO
25ee4b6
to
cbb0ffc
Compare
Ready |
@C0ZEN thank you! @luketomlinson main branch hasn't tagged yet with new release, latest is v4.0.0 from July https://github.com/actions/stale/releases/tag/v4.0.0 |
Changes
Context
Closes #36 (even if already closed).
See #36 (comment).