Skip to content

feat(draft-pr): add new option to not process PRs which are in draft - #539

Merged
luketomlinson merged 4 commits into
actions:mainfrom
C0ZEN:feature/ignore-draft-pr
Sep 20, 2021
Merged

luketomlinson merged 4 commits into
actions:mainfrom
C0ZEN:feature/ignore-draft-pr

Conversation

@C0ZEN

@C0ZEN C0ZEN commented Jul 31, 2021

Copy link
Copy Markdown
Contributor

Changes

  • Add new option "exempt-draft-pr" to not process a PR which is in draft

Context

Closes #36 (even if already closed).
See #36 (comment).

@C0ZEN
C0ZEN marked this pull request as ready for review July 31, 2021 12:45
@C0ZEN
C0ZEN requested a review from a team as a code owner July 31, 2021 12:45
@derek-bisson-ukg

Copy link
Copy Markdown

very much looking forward to this!

@C0ZEN

C0ZEN commented Sep 8, 2021

Copy link
Copy Markdown
Contributor Author

up

@github-actions github-actions Bot removed the Stale label Sep 9, 2021

@luketomlinson luketomlinson left a comment

Copy link
Copy Markdown
Collaborator

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.

issueLogger.info(`Delete branch from closed $$type - ${issue.title}`);

const pullRequest = await this._getPullRequest(issue);
const pullRequest: IPullRequest | undefined | void =

Copy link
Copy Markdown
Collaborator

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)

Copy link
Copy Markdown
Contributor Author

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

@C0ZEN
C0ZEN force-pushed the feature/ignore-draft-pr branch from 25ee4b6 to cbb0ffc Compare September 19, 2021 18:19
@C0ZEN

C0ZEN commented Sep 19, 2021

Copy link
Copy Markdown
Contributor Author

Ready

@luketomlinson
luketomlinson merged commit 9912fa7 into actions:main Sep 20, 2021
@nantiferov

nantiferov commented Sep 20, 2021 •

Copy link
Copy Markdown

@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
Do you plan to update it? I would like to test this feature, but I think it's not really safe to use @main in GitHub Action.

@C0ZEN
C0ZEN deleted the feature/ignore-draft-pr branch September 20, 2021 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to ignore draft PRs

4 participants