hackforla / hackforla/website

Change behavior of "Schedule Friday" workflow for Skills Issues

Open
#8,425 4 comments 0 reactions 0 assignees View on GitHub
Complexity: Large Dependency ER Feature: Refactor GHA Lang: GHA role: back end/devOps size: 5pt Skill: enhance
Dominant language
JavaScript
Stars
363
Forks
872
Avg merge
2d 21h
Merged PRs (30d)
18

Description

### Dependency
- Wait for PR < > to be merged.
- After the above is merged, move this issue to "New issue approval" and add `Ready for Prioritization` label.

### Overview
We need to update the "Schedule Friday" workflow so the bot considers all of a member's activity when deciding whether to leave an activity reminder on their Skills Issue.

### Details
The bot currently labels members as inactive if they haven't updated their Skills Issue in 7-14 days, even when they're active elsewhere. We need to change the bot to check member activity before it applies inactive labels so that active members don't get incorrectly marked as inactive.

### Action Items
- [ ] Check whether a user's Skills Issue has a recent comment. If it doesn't, check whether the bot updated the 'Activity Log' comment on the user's Skills Issue within the last week or last two weeks.
- [ ] Update the code so it checks member activity (not just their Skills Issue) before adding inactive labels.
- [ ] Update the code so the bot applies a new comment to the Skills Issue when the dev has no activity elsewhere.
- [ ] Propose a new bot comment and review it with the team.

### Resources/Instructions
- [GitHub GraphQL Explorer](https://docs.github.com/en/enterprise-server@3.12/graphql/overview/explorer)
- [GitHub GraphQL API](https://github.com/octokit/octokit.js?tab=readme-ov-file#graphql-api-queries)
- Refer to https://github.com/hackforla/website/issues/6537#issuecomment-2041147335, especially Tips 6, 7, and 8, if you have not already created you personal environment for testing.
- [How to Test GitHub Actions](https://drive.google.com/drive/u/0/folders/1MPY9CKcfKKN7hpDCG46ARrRzRSM8d8OA)
- [Additional Notes for GitHub Actions](https://docs.google.com/document/d/1frtvr5twBa_3yRGCG0divhlOMW8dPJxT/edit)
- `.github/workflows/schedule-friday-0700.yml` (Review how the workflow runs in the Actions tab.)
- `github-actions/trigger-schedule/add-update-label-weekly/add-label.js`
- files referred to in `add-label.js` (like helper files in the `utils` folder)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.