-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Move common code + class definition updates #36120
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
base: main
Are you sure you want to change the base?
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
|
PR validation pipeline started successfully. If there is ApiView generated, it will be updated in this comment. |
@@ -20,7 +20,8 @@ | |||
"./swagger": "./src/swagger.js", | |||
"./tag": "./src/tag.js", | |||
"./simple-git": "./src/simple-git.js", | |||
"./test/examples": "./test/examples.js" | |||
"./test/examples": "./test/examples.js", |
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 did notice this looks odd. Was this intentional? If so I'll continue leaving this alone.
@@ -0,0 +1,9 @@ | |||
/** |
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 didn't really see a good place to put something branch
related like this. I DID consider sdk-types.js
, but that seemed like it was type related specifically so I didn't put it there.
* The name of the label. | ||
* @type {string} | ||
*/ | ||
name; |
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.
name; | |
#name; |
* Is the label currently present on the pull request? | ||
* @type {boolean} | ||
*/ | ||
present; |
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.
present; | |
#present; |
* label construction logic. | ||
* @type {boolean | undefined} | ||
*/ | ||
shouldBePresent; |
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.
shouldBePresent; | |
#shouldBePresent; |
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.
Approved pending rename of private fields
They're not private. They need to be accessible as various code points interact with those values directly. I'll check how hard it will be to refactor so they actually are private tho. |
If they only need to be read (not written) by callers, you can add a getter: azure-rest-api-specs/.github/shared/src/swagger.js Lines 176 to 181 in e6d4235
|
Addresses:
isManagement
orisReleaseBranch
toSpecModel
or common helpers.changed-files
utilities instead of redetecting inIsDataPlanePR
andisManagementPR
isReleaseBranch
to common code.