Improve valid-milestone-change workflow#17787
Open
richard-cox wants to merge 1 commit into
Open
Conversation
- remove org level permission (this was the reason for the 'no jobs run' notification on forks due to it failing) - org level permission not allowed with defaut gh token, so replace with our vault one - remove the 'edit' milestone change trigger. we might still need this but lets start smaller - remove vs code lint warnings via defining envs up front - use echo delimiter and toJSON to avoid injection vulnerabilities
10 tasks
Member
marcelofukumoto
left a comment
There was a problem hiding this comment.
I didnt execute the WORKFLOW, just checking line by line and trying to check code structure.
| echo "OLD_MILESTONE=None" | ||
| echo "NEW_MILESTONE=$ISSUE_MILESTONE" | ||
| elif [ "$ACTION" == "demilestoned" ]; then | ||
| echo "OLD_MILESTONE=$ISSUE_MILESTONE" |
Member
There was a problem hiding this comment.
Question
just comparing with the previous flow. The OLD_MILESTONE sets the value to
echo "OLD_MILESTONE=${{ github.event.milestone.title }}"
This one sets to $ISSUE_MILESTONE which. is...
ISSUE_MILESTONE: ${{ github.event.issue.milestone.title }}
It is different. Not sure about the logic, So mostly pointing out this difference.
Member
Author
There was a problem hiding this comment.
had pondered about that too. went with the assumption it was a typo when originally created. don't think i've seen a full run of this yet, so in all worlds will require some test / fix cycles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Technical notes summary
valid milestone changeworkflow #16059Areas or cases that should be tested
Checklist
Admin,Standard UserandUser Base