-
Notifications
You must be signed in to change notification settings - Fork 2
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
Maintain Script Update #29
Conversation
スクリプトの変更
).maintain( | ||
locationSarif = "./lint-results.sarif", | ||
labelName = "featureflag-expiration", | ||
assignerAlternative = "{Alternative assignor's GitHub UserId}" |
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.
ちょっと長いですが、fallbackAssigneeWhenOwnerNotPresentにしちゃってもいいかも (現状コード見ないと何するのかよくわからない感じがあります。)
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.
Oh, I forgot to use English. But how about using fallbackAssigneeWhenOwnerNotPresent so that we can see what the code will do without seeing the code.
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.
I agree with that opinion. I know it's a little long winded, but I think it's a good idea to prioritize readability.
repoName = System.getenv("GITHUB_REPOSITORY"), | ||
headSha = System.getenv("HEAD_SHA") | ||
).maintain( | ||
locationSarif = "./lint-results.sarif", |
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.
How about using sarifLocation 👀
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.
Sorry how about sarifFilePath
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.
I got it.
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
I have made the following major changes:
• Modified to declare environment variables such as TOKEN and SHA from the outside
• Added the ability to assign someone else if the flag owner is not a collaborator in the Repository
• Removed unnecessary environment variables