Skip to content
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: add rules postman.format.after, yapi.format.after #1033

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

tangcent
Copy link
Owner

@tangcent tangcent commented Sep 17, 2023

yapi.format.after demo:

            path.multi=all
            yapi.format.after=groovy:```
                if(url.contains("/admin")){
                    item["title"] = "[admin]"+item["title"]
                    item["markdown"] = "[admin]"+item["markdown"]
                    item["desc"] = "[admin]"+item["desc"]
                }
            ```

postman.format.after demo:

            path.multi=all
            postman.format.after=groovy:```
                if(url.contains("/admin")){
                    item["name"] = "[admin]"+item["name"]
                    item["request"]["description"] = "[admin]"+item["request"]["description"]
                }
            ```

close #1026

@tangcent tangcent added the type: new feature Add New Feature label Sep 17, 2023
@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Merging #1033 (1942cfd) into master (62424b4) will increase coverage by 0.299%.
The diff coverage is 80.000%.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##              master     #1033       +/-   ##
===============================================
+ Coverage     62.000%   62.300%   +0.299%     
- Complexity      2251      2257        +6     
===============================================
  Files            243       244        +1     
  Lines          11829     11854       +25     
  Branches        2918      2925        +7     
===============================================
+ Hits            7334      7385       +51     
+ Misses          2945      2910       -35     
- Partials        1550      1559        +9     
Flag Coverage Δ
unittests 62.300% <80.000%> (+0.299%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...idea/plugin/api/export/core/ClassExportRuleKeys.kt 100.000% <ø> (ø)
...ea/plugin/api/export/postman/PostmanApiExporter.kt 32.432% <0.000%> (ø)
...gcent/idea/plugin/api/export/yapi/YapiFormatter.kt 59.351% <52.381%> (+2.458%) ⬆️
...idea/plugin/api/export/postman/PostmanFormatter.kt 69.655% <78.947%> (+3.302%) ⬆️
...ent/idea/plugin/settings/EnumProcessInitializer.kt 83.333% <83.333%> (+0.725%) ⬆️
...plugin/api/export/postman/PostmanExportRuleKeys.kt 100.000% <100.000%> (ø)
...in/api/export/postman/PostmanFormatFolderHelper.kt 76.471% <100.000%> (ø)
...pi/export/postman/PostmanRequestBuilderListener.kt 66.667% <100.000%> (ø)
.../plugin/api/export/yapi/YapiClassExportRuleKeys.kt 100.000% <100.000%> (ø)

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62424b4...1942cfd. Read the comment docs.

@tangcent tangcent merged commit 830c401 into master Sep 18, 2023
10 checks passed
@tangcent tangcent mentioned this pull request Sep 18, 2023
@tangcent tangcent deleted the feature/rules branch September 18, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: new feature Add New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

groovy扩展移除了么
1 participant