-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat(datastore-lock)!: factoring out datastore-lock #1764
Conversation
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.
Will want @bcoe's feedback on naming. We can set up the release config in a followup PR.
return false; | ||
} | ||
|
||
private async _acquire(): Promise<AcquireResult> { |
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.
Fun fact, I learned recently that private
fields aren't actually private outside of the context of TypeScript, so when I actually wanted private methods, I ended up using symbols as method names:
https://github.com/yargs/yargs/blob/master/lib/yargs-factory.ts#L88
I'm not suggesting we change anything, just wanted to share this surprising TypeScript behavior.
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.
Ah it makes sense.
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.
Changed the package name to @github-automations/datastore-lock
.
@bcoe PTAL
I'll add release config first :) |
I'm trying to rewrite the first commit message to be a breaking change, but my local git client drops the exclamation mark. I'm going to squash locally and re-push the change with a new commit message. |
* changed the namespace to github-automations * changed the version to 0.1.0
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.
@bcoe I guess I'm ready for the release, PTAL
This small library is initially implemented in
blunderbuss
, but it should be useful for some other bots, so I'm trying to make it a npm package.