-
-
Notifications
You must be signed in to change notification settings - Fork 843
Augment "Schedule Monthly" open issues assigned to non-team members #8175
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
Augment "Schedule Monthly" open issues assigned to non-team members #8175
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. |
github-actions/trigger-schedule/list-inactive-members/trim-inactive-members.js
Fixed
Show fixed
Hide fixed
github-actions/trigger-schedule/list-inactive-members/trim-inactive-members.js
Fixed
Show fixed
Hide fixed
fix misplaced `!`
correct capitalization of 'GitHub'
santiseccovidal
left a comment
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 everything looks great.
My repo's run. I run the changes in my own repo and it worked exactly as we discussed on Sunday.
Code changes are correct, the changes in the structures and I agree on the logic for locating users. Now that the variable holding users that cannot be removed yet is deleted the code changes are more clear.
Fixes #8174
What changes did you make?
get-open-assigned-issues.jsget-contributors-data.js, split outinactiveWithOpenSkillsfrominactiveWithOpenIssuetrim-inactive-members.js, followedinactiveWithOpenSkillssplit, added function call togetOpenAssignedIssues.js, simplified if/else statements, followed new variablenonTeamOpenIssuecreateNewIssue.js, added section to reportnonTeamWIthOpenWhy did you make the changes (we will use this info to test)?
CodeQL Alerts
After the PR has been submitted and the resulting GitHub actions/checks have been completed, developers should check the PR for CodeQL alert annotations.
Check the PR's comments. If present on your PR, the CodeQL alert looks similar as shown
Please let us know that you have checked for CodeQL alerts. Please do not dismiss alerts.
Instructions for resolving CodeQL alerts
If CodeQL alert/annotations appear, refer to How to Resolve CodeQL alerts.
In general, CodeQL alerts should be resolved prior to PR reviews and merging
Screenshots of Proposed Changes To The Website (if any, please do not include screenshots of code changes)
Notes for Reviewers
Note that I can do a live demonstration instead of you needing to run this yourself. Otherwise,
You will need to have a functioning test environment on your local repo. In addition to the 'files changed' in the PR, there are additional changes that you should make to help with testing. If you do not make these edits, you might delete or mis-edit Hack for LA data, delete team members, generate false or junk notifications, and/or create junk issues on HfLA's live project board.
In
schedule-monthly.yml, you will need to activate two personal tokens.HACKFORLA_BOT_PA_TOKENscopes: admin:org_hook, public_repoHACKFORLA_ADMIN_TOKENscopes: admin:org_hook, public_repo, write:orgIn the same file, near line 12, replace 'hackforla' with your personal repo.
In
get-contributors-data.jsowner: 'hackforla',repo: 'website',In 'trim-inactive-members.js`:
with:
closePrework()function, starting around ln 110:In
create-new-issue.js:const owner = '<your name>';NOT 'hackforla'const repo = '<your repo name>';// let milestone = parseInt(issueObject['milestone']);// milestone,In
/utils/get-team-members.js:org: 'hackforla',In
/utils/add-team-member.js:org: 'hackforla',org: 'hackforla',In
/utils/get-timeline.js:owner: 'hackforla',repo: 'website',In
/utils/post-issue-comment.js:owner: ' <your name> ',NOT 'hackforla'repo: 'website',In
get-open-assigned-issues.js:owner: 'hackforla',