-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Issue #2495] Set points and sprint on close #2519
Conversation
Creates scripts for a linter that sets the points and scripts fields to a default value if those fields are unset when an issue is closed
Allows users to run linter without making changes in GitHub
a) You can either include:
b) Or exclude
Option (a) sounds safer
Yes that sounds great! I love clarifying comments from bots
If you can only include tick where { |
- Filters issues by type - Adds comment after update
@coilysiren Thanks for the feedback above! I've implemented most of it in the following commits: With two notes:
I'm also skipping deliverable because Deliverable is meant to be a parent to Epic, and shouldn't really ever live in a given sprint.
This is a bit trickier to do, but helpful to note. Maybe we can revisit if we find a lot of issues being accidentally added because they were closed by open source contributors. Examples of new behaviorHere's an example of skipping an update because an issue is an Epic: And here's a sample comment Note: Unfortunately unless we switch to a different auth structure for GitHub actions, the automations tied to my PAT will continue to be shown as coming from me, hence the "beep boop". |
@widal001 we definitely have a ticket for this... but I can't find it! |
@@ -17,6 +17,7 @@ jobs: | |||
runs-on: ubuntu-latest | |||
env: | |||
GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ACCESS }} | |||
UNSET_ISSUE: "https://github.com/HHS/simpler-grants-gov/issues/1932" |
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.
Can you expand on what UNSET_ISSUE
means here?
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.
Great callout! Just added some comments in this commit: docs: Explains what UNSET_ISSUE is in ci-project-linters.yml
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.
Looks good, just have a clarity 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.
Excited for this!
Summary
Adds new linter to set a default value for points and sprint if those fields are unset when an issue is closed.
Fixes #2495
Time to review: 5 mins
Changes proposed
linters/scripts/set-points-and-sprint.sh
linters/queries/getFieldMetadata.graqphql
linters/queries/getItemMetadata.graphql
Context for reviewers
This action will trigger every time an issue is closed in the repo.
Questions
TODO
ci-project-linters.yml
Additional information
Here's an example of this action from our sandbox repo
Screen.Recording.2024-10-18.at.9.31.55.AM.mov
Here's an example of a dry run within this repo: