GithubHelp home page GithubHelp logo

work-with-script's Introduction

Work with Script

Requirements

  1. Python 3.9 or above

  2. python3-pip

Installation

  1. Clone this repository to a local directory

     [email protected]:Tim-Cao/work-with-script.git
    

Configuration

  1. Run the following command at the root directory of local repository, it will generate a credentials-ext.properties

     python3 initialization.py
    
  2. Generate jira API Token

    1. Sign in https://liferay.atlassian.net/

    2. Click the cog icon > Atlassian account settings > Security > Create and manage API tokens

    3. Create API Token

    4. Save generated token in your local file as you will not be able to see this again.

  3. Generate github API Token

    1. Sign in https://github.com/

    2. Personal Menu > Settings > Developer Settings > Personal access tokens > Tokens(classic) > Generate new token

    3. Add a name > Leave expiration as default > Select the following scopes

      image

      image

    4. Generate token

    5. Save generated token in your local file as you will not be able to see this again.

  4. Please fill out the value of properties in the credentials-ext.properties

    1. For required properties of each feature, please see Features section

Upgrade dependencies

  1. Run the following command at the root directory of local repository

     python3 upgrade.py
    

Launch the app

  1. Run the following command at the root directory of local repository

     python3 script_app.py
    

Open the credentials-ext.properties

  1. Execute ctrl + o shortcuts in app

    1. This file will open with vscode automatically.

    2. If you don't install vscode. Please open it manually.

Sync the Jira project components

  1. Execute ctrl + s shortcuts in app

See more shortcuts

  1. Execute ctrl + b shortcuts in app

    1. All shortcuts details will appear on a sidebar.

Features

  1. Create a pull request and forward

    create_pr_and_forward

    See pull request styles

    Required properties: GITHUB_REVIEWER_NAME, GITHUB_USER_NAME, GITHUB_TOKEN, LOCAL_REPO_PATH, TEAM_REPO_NAME

  2. Forward a failure pull request to BrianChan

    forward_failure_pull_request

    See pull request styles

    Required properties: GITHUB_USER_NAME, GITHUB_TOKEN, LOCAL_REPO_PATH, TEAM_REPO_NAME

  3. Create a test fix ticket based on a given case result

    create_test_fix_ticket

    Required properties: JIRA_USER_NAME, JIRA_TOKEN, TESTRAY_USER_NAME, TESTRAY_PASSWORD

  4. Write a comments template to a given jira ticket

    write_comments

    See comments styles

    Required properties: JIRA_USER_NAME, JIRA_TOKEN

  5. Write a description template to a given jira ticket

    write_description

    See description styles

    Required properties: JIRA_USER_NAME, JIRA_TOKEN

  6. Trigger gauntlet test suite on ci

    Trigger_Gauntlet

    Required properties: JIRA_USER_NAME, JIRA_TOKEN, LEGACY_REPO_PATH, GITHUB_USER_NAME, GITHUB_TOKEN

  7. Create a Jira issue

    create_issue

    Required properties: JIRA_USER_NAME, JIRA_TOKEN

  8. Run RCA

    rca

    Required properties: JIRA_USER_NAME, JIRA_TOKEN, GITHUB_USER_NAME, GITHUB_TOKEN

work-with-script's People

Contributors

joshitagaki avatar luizcarlosqueiroz avatar felix3508 avatar tim-cao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.