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

Add branch/library management #507

Open
SanjulaGanepola opened this issue Jun 18, 2024 · 0 comments
Open

Add branch/library management #507

SanjulaGanepola opened this issue Jun 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@SanjulaGanepola
Copy link
Collaborator

SanjulaGanepola commented Jun 18, 2024

Branch to library should use <branch-name>-<user>-<project>

Special variable

&BRANCHLIB will be a special variable that can be used in iproj.json or .ibmi.json. This variable will automatically be set based on the current branch.

Project Explorer new tree item

Simple case (no .ibmi.json files):

- Branches
  > Create branch (inline action on tree item)
  - feature/abcef (VSJFGJ49)
    > checkout to branch (inline action on tree item)
    > clear library (inline action on tree item)
    - MYPGM.PGM
    - OTHERTHING.FILE
  - bugfix/1234 (VSJT84HTO)
  - other/thing (VS48GH)
    - Branch library does not exist -> Create branch library (inline action on tree item)

Complex case (project contains .ibmi.json files):

- Branches
  - feature/abcd
    > checkout to branch (inline action on tree item)
    > clear library (inline action on tree item)
    - Objects (VSJFGJ49)
      - MYPGM.PGM -> mypgm.pgm.x
      - OTHERPGM.PGM -> Cannot find change in branch
    - Data (VSJFGJ4D)
      - OTHERFILE.FILE -> otherfile.dspf

New attribute in iproj.json

To hardcode/override library associated with branch:

{
  "branches": {
    "main": "MAINAPP",
    "dev": "DEVAPP",
    "feature/abcd": "VS208347"
  }
}

Useful references:
https://github.com/Microsoft/vscode/blob/main/extensions/git/README.md
https://github.com/codefori/vscode-ibmi/blob/master/src/api/local/git.ts

@SanjulaGanepola SanjulaGanepola added the enhancement New feature or request label Jun 18, 2024
@SanjulaGanepola SanjulaGanepola self-assigned this Jun 18, 2024
@SanjulaGanepola SanjulaGanepola pinned this issue Jun 24, 2024
@SanjulaGanepola SanjulaGanepola unpinned this issue Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant