-
Notifications
You must be signed in to change notification settings - Fork 4
@W-22503173 - Devops project commands #506
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a830ef9
devops project commands
ad-shreya 8c3dbbc
eslint fix
ad-shreya 5953153
eslint fix
ad-shreya 6aab096
fix: regenerate json schemas for new commands
ad-shreya 827f907
fix: test failures
ad-shreya 3910d11
fix: unit tests
ad-shreya dce3ad1
chore: untrack settings.json
ad-shreya c792d1b
Apply text suggestions from code review
ad-shreya 3c42f80
Apply text suggestions from code review
ad-shreya fe691ed
fix: pr review
ad-shreya 93bd6d1
fix: unit test
ad-shreya c7d8cd3
chore: review fixes
ad-shreya 2343a11
fix: test fixes
ad-shreya f263971
chore: migrate to ESM
ad-shreya bf63989
fix: tests
ad-shreya f6d1aee
fix: tests
ad-shreya c4bd6e0
fix: test failure
ad-shreya e440a6b
fix: test failure
ad-shreya 0b93b69
fix: test failure
ad-shreya 8bd75f3
Merge pull request #507 from salesforcecli/ashreya/esm
soridalac 8dc021e
chore: update workitem status
ad-shreya 412394b
chore: create pull request command
ad-shreya ec0bb9b
fix: tests
ad-shreya bdce833
chore: create new project command
ad-shreya aab7971
chore: attach-project command
ad-shreya 5964639
fix: review fix
ad-shreya a9bd61e
Merge pull request #508 from salesforcecli/ashreya/commands-2
ad-shreya a148245
chore: create pipeline command
ad-shreya 0fd5982
chore: add stage command
ad-shreya 2e556e0
chore: activate pipeline
ad-shreya ea07b40
fix: review refactor
ad-shreya 0b65100
Merge pull request #509 from salesforcecli/ashreya/commands-3
soridalac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # summary | ||
|
|
||
| List all DevOps Center projects in a Salesforce org. | ||
|
|
||
| # description | ||
|
|
||
| This command queries the DevopsProject standard object and returns the project Id, Name, and Description for each project found. | ||
|
|
||
| # flags.target-org.summary | ||
|
|
||
| Username or alias of the DevOps Center org. | ||
|
|
||
| # examples | ||
|
|
||
| - List all DevOps Center projects in an org with alias "my-devops-org": | ||
|
|
||
| <%= config.bin %> <%= command.id %> --target-org my-devops-org | ||
|
|
||
| - List projects using an org's username: | ||
|
|
||
| <%= config.bin %> <%= command.id %> --target-org devops-center@example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # summary | ||
|
|
||
| Create a new work item in a DevOps Center project. | ||
|
|
||
| # description | ||
|
|
||
| The command creates the work item using the Connect API. Requires a project ID and a subject for the new work item; run the `devops project list` command to get the IDs for all existing projects. | ||
|
|
||
| # flags.target-org.summary | ||
|
|
||
| Username or alias of the DevOps Center org. | ||
|
|
||
| # flags.project-id.summary | ||
|
|
||
| ID of the DevOps Center project to create the work item in. | ||
|
|
||
| # flags.subject.summary | ||
|
|
||
| Subject (title) of the new work item. | ||
|
|
||
| # flags.description.summary | ||
|
|
||
| Description of the new work item. | ||
|
ad-shreya marked this conversation as resolved.
Outdated
|
||
|
|
||
| # examples | ||
|
|
||
| - Create a work item with a subject. | ||
|
ad-shreya marked this conversation as resolved.
Outdated
|
||
|
|
||
| <%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001 --subject "Fix login bug" | ||
|
|
||
| - Create a work item with a subject and description: | ||
|
|
||
| <%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001 --subject "Add dark mode" --description "Implement dark mode toggle in settings page" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # summary | ||
|
|
||
| List all work items for a DevOps Center project. | ||
|
|
||
| # description | ||
|
|
||
| Each work item displays the branch, environment, and repository details needed for checkout and promotion. Requires a project ID; run the `devops project list` command to get the IDs for all existing projects. | ||
|
|
||
| # flags.target-org.summary | ||
|
|
||
| Username or alias of the DevOps Center org. | ||
|
|
||
| # flags.project-id.summary | ||
|
|
||
| ID of the DevOps Center project to list work items for. | ||
|
|
||
| # examples | ||
|
|
||
| - List work items for a specific project in the DevOps org with alias "my-devops-org": | ||
|
|
||
| <%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001 | ||
|
|
||
| - List work items using JSON output: | ||
|
|
||
| <%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 0Hn000000000001 --json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "$ref": "#/definitions/DevopsProjectListResult", | ||
| "definitions": { | ||
| "DevopsProjectListResult": { | ||
| "type": "object", | ||
| "properties": { | ||
| "projects": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/DevopsProject" | ||
| } | ||
| } | ||
| }, | ||
| "required": ["projects"], | ||
| "additionalProperties": false | ||
| }, | ||
| "DevopsProject": { | ||
| "type": "object", | ||
| "properties": { | ||
| "Id": { | ||
| "type": "string" | ||
| }, | ||
| "Name": { | ||
| "type": "string" | ||
| }, | ||
| "Description": { | ||
| "type": ["string", "null"] | ||
| } | ||
| }, | ||
| "required": ["Id", "Name", "Description"], | ||
| "additionalProperties": false | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "$ref": "#/definitions/CreateWorkItemResult", | ||
| "definitions": { | ||
| "CreateWorkItemResult": { | ||
| "type": "object", | ||
| "properties": { | ||
| "success": { | ||
| "type": "boolean" | ||
| }, | ||
| "workItemId": { | ||
| "type": "string" | ||
| }, | ||
| "workItemName": { | ||
| "type": "string" | ||
| }, | ||
| "subject": { | ||
| "type": "string" | ||
| }, | ||
| "error": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["success"], | ||
| "additionalProperties": false | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "$ref": "#/definitions/DevopsWorkItemListResult", | ||
| "definitions": { | ||
| "DevopsWorkItemListResult": { | ||
| "type": "object", | ||
| "properties": { | ||
| "workItems": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/WorkItem" | ||
| } | ||
| } | ||
| }, | ||
| "required": ["workItems"], | ||
| "additionalProperties": false | ||
| }, | ||
| "WorkItem": { | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "type": "string" | ||
| }, | ||
| "subject": { | ||
| "type": "string" | ||
| }, | ||
| "description": { | ||
| "type": "string" | ||
| }, | ||
| "status": { | ||
| "type": "string" | ||
| }, | ||
| "owner": { | ||
| "type": "string" | ||
| }, | ||
| "DevopsProjectId": { | ||
| "type": "string" | ||
| }, | ||
| "PipelineId": { | ||
| "type": "string" | ||
| }, | ||
| "PipelineStageId": { | ||
| "type": "string" | ||
| }, | ||
| "SourceCodeRepository": { | ||
| "type": "object", | ||
| "properties": { | ||
| "repoUrl": { | ||
| "type": "string" | ||
| }, | ||
| "repoType": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["repoUrl", "repoType"], | ||
| "additionalProperties": false | ||
| }, | ||
| "WorkItemBranch": { | ||
| "type": "string" | ||
| }, | ||
| "TargetStageId": { | ||
| "type": "string" | ||
| }, | ||
| "TargetBranch": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["id", "name", "status", "owner", "DevopsProjectId"], | ||
| "additionalProperties": false | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.