-
-
Notifications
You must be signed in to change notification settings - Fork 778
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
Fix bug GHA "Schedule Thursday 1100" (inactive members) 4768 #5158
Fix bug GHA "Schedule Thursday 1100" (inactive members) 4768 #5158
Conversation
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
add misc. explicit semicolons
Hi @mademarc! When you have a minute, please add your ETA and Availablity. Thanks! |
Review ETA: 8/11/2023 |
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.
Hey @t-will-gillis the format also the code changes on the line 5 & 8 on the yml file is done correctly and @LRenDO the ETA and Availability is done.
ETA: 8/12/23 |
Just wanted to comment and say that I have been reviewing this pull request, but due to the complexity and amount of file changes / line changes, I may have to split this one into chunks. I know the challenges that we have been facing with the various schedule files due to things such as deprecation, breaking changes on updates, or changes to how the schedules and triggers need to be setup in the latest updates to avoid breaking functionality. With that said, I want to take my time with this and make sure I can verify under testing the latest changes, with the understanding that this is one key step in solving several other related issues. Likewise, if I were to miss something in testing, then that would create a domino effect, making the other related issues difficult to solve for. Thank you for your patience as I continue to delve deep on this. |
Hi @yujioshiro! Thanks for volunteering to review this issue! When you have a minute, please add your ETA and Availability. Thanks! |
Hi @t-will-gillis! I went to review this and I believe I don't have correct permissions to access HFLA Org level information using the API. I get back the repo level information (in That said, I did read through the code and PR and it looks like you did a great job refactoring and solving the bug! I particularly appreciated the explanation and breakdown of what needed to be done to fix the issue in your PR. The inclusion of the diffs was very helpful as well since many things were moved and deleted. It was also useful to see the ER with the other issues that need to be addressed including adding the notify functionality and the other monthly actions to this GHA. I have a couple additional thoughts/questions based on what I read in your PR and code.
If/when we can get the permissions issue resolved, I will circle back. |
github-actions/trigger-schedule/github-data/contributors-data.js
Outdated
Show resolved
Hide resolved
github-actions/trigger-schedule/github-data/contributors-data.js
Outdated
Show resolved
Hide resolved
Updated definitions for `oneMonthAgo` and `twoMonthsAgo`, and corrected reference to "one month ago" in comment at function `notifyInactiveMembers`
Hey @LRenDO! Thank you for your thorough review and comments.
Let me know, and I would be happy to demo this if it would be helpful- |
Hey @t-will-gillis! On Lines 15-17, I was reading through too quickly. I see now that today was also being set to one month ago which made it update correctly in the code. What you've got now is definitely clearer though. The PR and comment look great too! Thanks for taking the time to review and clarify what I was seeing! On testing, the permissions seem to cover those areas. I'll connect with you on Slack and maybe you can catch something I'm missing. |
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.
Hi @t-will-gillis!
I was able to figure out that a classic PAT is required for this GHA. I had been using a Fine-grained PAT. The testing went as expected and the changes all look great here!
I see after the issue is merged, a wiki page will be created for the GHA. If the notification implementation will not be completed in the very near future, I would mention there and/or in the test logs that the notification feature has not yet been implemented and that the logs are providing a list of folks who will be notified when the implementation is complete. Additionally, in the wiki I would make sure to include that it does not currently remove 60 day inactive members from child teams or the website team, only specifically the website-write team.
Thanks for taking the time to contribute to fixing this GHA! The GHAs can definitely be pretty cumbersome!
Hi @one2code and @yujioshiro!
|
I will start to work on reviewing this PR tomorrow. Review ETA: 9/1/2023 |
Hi @yujioshiro would you please provide an update on your progress and let us know if you are still looking at this? Also, please ask if you would like something specific explained. This is a time sensitive issue and needs to be resolved so that other issues can proceed. Thank you |
Fixes #4768
What changes did you make?
schedule-thu-1100.yml
was scheduled to run on the first Thursday of the month, this action has been revised/ renamed toschedule-monthly.yml
and now is scheduled to run on the first day of the month.schedule-thu-1100.yml
file.schedule-monthly-PREV.yml
. This action is not/ has not been running either. The renaming is intended to be temporary because the plan is to explore how to integrate the other action's steps into this action.working-directory
in the step "Install npm dependencies" is refactored to the correct directory i.e../github-actions/trigger-schedule/github-data
. (This was one of the reasons the existing GHA has not worked- this refactor fixes the action.)node-version
is updated to version 18. (The previous version 14 is incompatible with the current modules.)run
path in the step "Trim members" is refactored to the correct directory and thecontributors-data.js
is moved to the same directory as above. (This was another one of the reasons the existing GHA was not working. The@octokit/rest
module cannot be found unless the js file resides in the same directory as thepackage.json
file.)trim-contributors
directory is empty and so is deleted.contributors-data.js
:Why did you make the changes (we will use this info to test)?
FUTURE revisions/ additions are detailed in ER #5163
Screenshots of Proposed Changes Of The Website
Diffchecker for new `schedule-monthly.yml`
Diffchecker for `contributors-data.js`