Skip to content

Support closing PR #25

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

Merged
merged 2 commits into from
Aug 23, 2021
Merged

Support closing PR #25

merged 2 commits into from
Aug 23, 2021

Conversation

saschanaz
Copy link
Contributor

@saschanaz saschanaz commented Aug 22, 2021

(On top of #23)

Fixes #22

if (bodyLower.includes("lgtm")) {
new Actor().mergeIfHasAccess();
} else if (bodyLower.includes("@github-actions close")) {
new Actor().closeIfHasAccess();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it require same access as merge? Should this also cover issues?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense for closing PR/issues to instead only check on whether someone exists in the codeowners - given that the action can only have social downsides and not security downsides

Happy to ship this change myself tomorrow, and build it on this post merge 👍🏻

@orta orta merged commit 32204f0 into OSS-Docs-Tools:master Aug 23, 2021
@orta
Copy link
Collaborator

orta commented Aug 23, 2021

Looks solid to me, sneaking a class into my codebase though @saschanaz :-O

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.

Allow a codeowner to close PRs
2 participants