Skip to content

CI: add github action to post to first-time PRs openers #19166

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
Dec 23, 2020

Conversation

tacaswell
Copy link
Member

PR Summary

Not sure how to test this?

Below the line is how I think this should render:


Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and it is easy for things to fall through the cracks.

You can also join us on gitter if real-time discussion would be useful.

For details on testing, write docs, and our review process please see the developer guide

We strive to be a welcoming and open project, please follow our Code of Conduct.

Copy link
Member

@story645 story645 left a comment

Choose a reason for hiding this comment

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

Typo. But also where is the list this generates of PRs this would be applied to?

@@ -0,0 +1,31 @@
name: PR Greetings
Copy link
Member

Choose a reason for hiding this comment

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

Typo in file name: pr_welcom.yml

@tacaswell
Copy link
Member Author

I do not think there is a list anyplace, this should run on any PR opened by a first-time contributor and leave the welcome message.

Co-authored-by: hannah <story645@gmail.com>
@ianhi
Copy link
Contributor

ianhi commented Dec 23, 2020

Not sure how to test this?

Maybe merge this into your fork's default branch and then have someone open a PR against that?

Also, this is a nice thing 👍 to it, especially to the explicit language making clear that it's ok to ping people if it lies dormant.

@ianhi
Copy link
Contributor

ianhi commented Dec 23, 2020

Maybe also include a mention of https://gitter.im/matplotlib/incubator? This seems like part of the audience you're trying to capture?

story645
story645 previously approved these changes Dec 23, 2020
@story645 story645 dismissed their stale review December 23, 2020 16:14

agree w/ tim's suggestions

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Concerning testing, I'd just wait for the next new contributor and see if the action triggers properly. 😄

@timhoffm timhoffm added this to the v3.4.0 milestone Dec 23, 2020
@timhoffm timhoffm merged commit 51ab42c into matplotlib:master Dec 23, 2020
@tacaswell tacaswell deleted the gha_welcome branch December 23, 2020 21:08
@timhoffm
Copy link
Member

@tacaswell
Copy link
Member Author

I think I was too optomistic about the secrets already being set up. I knew @QuLogic had set one up from the wheels but it looks like it is the wrong name for his to discover and I suspect has the permissions locked down enough that it would not work anyway...

@tacaswell
Copy link
Member Author

xref actions/first-interaction#10

I'm now confused if we can actually make this work? If it needs access to a secret to post, then that means the secret needs to be available to the PR, which means it is extract able via a malicious PR that adds a task to print out said secret, which means we can not give the action access to the secret, which means the action can not post back to the thread 🤦 .

@jklymak
Copy link
Member

jklymak commented Dec 25, 2020

I thought this was an email to the user, not posted to the PR.

@ufmayer
Copy link
Contributor

ufmayer commented Dec 25, 2020

On my first PR to the matplotlib project I did not receive a welcome email, instead my CI build failed. Digging through the logs I found a reference to the welcome message for first-time contributors as a FAIL during the build. It's posted on that PR #19172 that @timhoffm already linked above in this discussion.

@jklymak
Copy link
Member

jklymak commented Dec 25, 2020

@ufmayer Ooops, sorry we made you the guinea pig! This was something new we were trying. Hopefully it is working now.

@ufmayer
Copy link
Contributor

ufmayer commented Dec 25, 2020

No problem. If I can help out here let me know, but I guess I can make my first PR only once, and that's done for.

@jklymak
Copy link
Member

jklymak commented Dec 29, 2020

The welcome message is still not working?

https://github.com/matplotlib/matplotlib/pull/19187/checks?check_run_id=1619669692

@dopplershift
Copy link
Contributor

Tried to fix it, see #19196.

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.

8 participants