-
Notifications
You must be signed in to change notification settings - Fork 402
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
fix(ci): fixes typos and small issues on github scripts #1302
fix(ci): fixes typos and small issues on github scripts #1302
Conversation
The variable `issue` was not defined before.
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.
thanks a lot for these changes! only have comments so will merge as it's a blocking one and I can learn more about the no-return idea later
@@ -54,7 +54,7 @@ module.exports = async ({github, context, core}) => { | |||
} | |||
} finally { | |||
if (miss == Object.keys(labels).length) { | |||
return core.notice(`PR ${PR_NUMBER} title '${PR_TITLE}' doesn't follow semantic titles; skipping...`) |
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.
for my own benefit, why not a return?
} catch (error) { | ||
core.setFailed(`Unable to create comment on PR number ${PR_NUMBER}.\n\n Error details: ${error}`); | ||
throw new Error(error); | ||
} |
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.
YES!!! thank you
core.info(`Auto-labeling related issue ${issue} for release`) | ||
return await github.rest.issues.addLabels({ |
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.
for my own benefit, why not a return?
Issue number: #1009
Summary
Changes
This PR contains a bunch of small improvements to Github scripts:
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.