{"id":19880470,"url":"https://github.com/wesleyscholl/github-jira-pr-script","last_synced_at":"2025-08-26T20:08:49.019Z","repository":{"id":203233745,"uuid":"709134494","full_name":"wesleyscholl/github-jira-pr-script","owner":"wesleyscholl","description":"Automating pull request creation with Jira info from the command line.","archived":false,"fork":false,"pushed_at":"2024-09-08T22:12:30.000Z","size":51,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-09T16:52:22.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wesleyscholl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-24T04:51:54.000Z","updated_at":"2024-09-09T14:27:23.000Z","dependencies_parsed_at":"2023-11-20T18:27:14.508Z","dependency_job_id":"be8d521b-8a95-42f6-b41b-87f44172f57c","html_url":"https://github.com/wesleyscholl/github-jira-pr-script","commit_stats":null,"previous_names":["wesleyscholl/github-jira-pr-script"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fgithub-jira-pr-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fgithub-jira-pr-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fgithub-jira-pr-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fgithub-jira-pr-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesleyscholl","download_url":"https://codeload.github.com/wesleyscholl/github-jira-pr-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224315245,"owners_count":17290992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T17:11:30.098Z","updated_at":"2024-11-12T17:11:30.868Z","avatar_url":"https://github.com/wesleyscholl.png","language":"Shell","readme":"# github-jira-pr-script - Automating pull request creation with Jira projects from the command line 👨🏻‍💻➡️🌐✅\n\nManually creating a GitHub pull request is a time-consuming task. Save time using this shell script.\n\n\n\n\u003e [!NOTE]  \n\u003e **There are now two versions of this script:**\n\u003e\n\u003e - `pr-script.sh` pulls JIRA ticket information and populates a pre-existing pull request template, PR summary provided by Gemini AI.\n\u003e - `public-pr-script.sh` creates a new pull request using the branch name, `git diff`, and git commits with hashes, PR summary provided by Gemini AI. I created this version for general use, not specific to Jira.  \n\n## Table of Contents\n* [What this script automates](#what-this-script-automates)\n* [Requirements](#requirements)\n* [Mac Installation](#mac-installation)\n* [Windows Installation](#windows-installation)\n* [Before submitting an actual Pull Request](#before-submitting-an-actual-pull-request)\n* [When you are ready to submit the Pull Request](#when-you-are-ready-to-submit-the-pull-request)\n* [Troubleshooting](#troubleshooting)\n  \n## What this script automates:\n\n| Name | Description |\n| --- | --- | \n| Git Commit Push | Pushing local commits to remote branch with `git push`. | \n| PR Creation | Clicking create a pull request from the feature branch in Github. | \n| Target Merge Branch | Selecting the target branch to merge changes into. | \n| PR Title | Copying the story name of the Jira ticket as the title of the pull request. | \n| Jira Ticket Link | Adding the link of the Jira ticket to the pull request description. | \n| Jira Ticket Description | Adding a description and acceptance criteria from the Jira ticket to the pull request. | \n| PR Reviewers | Adding the reviewers of the pull request. | \n| PR Assignee | Assigning the pull request owner as the assignee to the pull request. | \n| Jira Ticket Comments | Adding all Jira comments from the associated ticket. | \n| Jira Ticket Subtasks | Adding all Jira subtasks and subtask statuses, checked checkbox if completed. |\n| Jira Team, Sprint, Goal, Components \u0026 Epic | Adding a section with the team name, sprint, and epic. |\n| Jira Steps to Reproduce | Adding steps to reproduce if they exist, otherwise N/A. |\n| GitHub Commit Hashes | Adding the updates section, a list of all commits with hashes and commit descriptions. |\n| GitHub Diff | Adding a code changes section with the git diff of all code modifications. |\n| Jira Ticket Screenshots | Adding screenshots for UI modifications or functionality improvements. (Optional - 3 Maximum) |\n| GitHub PR Labels | Adding labels to categorize pull requests as a Story, Bug, QA, UAT, etc. Also adds team labels - ex. Automation, NSS_Automation (Optional) |\n \n\n## Requirements\n\n\u003e [!IMPORTANT]  \n\u003e For the public script (`public-pr-script.sh`), there are fewer requirements: GitHub CLI (hub), GitHub Token (PAT - set in .bash_profile or .zshrc), Gemini AI API Key (set in .bash_profile or .zshrc), GitHub reviewers (Code reviewer GitHub usernames) and GitHub assignee (your GitHub username) in .bash_profile or .zshrc (***`reviwers` and `assignee` are both optional**).\n\n| Name | Description | Link, Location, or Command |\n| --- | --- | --- |\n| `hub` | GitHub CLI - Adds additional GitHub commands to access the API from the CLI. | [hub](https://hub.github.com/) |\n| `jq` | Command-line JSON processor - Parsing the response data from the Jira API. | [jq](https://stedolan.github.io/jq/download/) |\n| `GitHub Personal Access Token - PAT` | Personal access tokens can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication. * ***Note*** * `repo` permissions are required for this script to function properly.  | [Create A GitHub Personal Access Token](https://github.com/settings/tokens) |\n| `Jira API Token` | API tokens can authenticate scripts or other process with Atlassian cloud products. | [Create a JIRA Token](https://id.atlassian.com/manage-profile/security/api-tokens) |\n| `\u003cyour_pr_script\u003e.sh` | Shell file that automates creating pull requests using Jira ticket data, images, and other details. | Static location on your local computer - `touch pr_script.sh` |\n| `PULL_REQUEST_TEMPLATE` | A pull request template to be used if a template does not exist in the repo. | Static location on your local computer - `PULL_REQUEST_TEMPLATE` in the same folder as `pr_script.sh` |\n| `Environment Variables` | Environment variables that are stored in the terminal/bash/zsh configuration. Includes: `\u003cpr_script\u003e.sh` path alias, `jira_url`, `jira_access_token`, `github_author` and `github_reviewers` | `~/.bash_profile` or `~/.zshrc` - open with `open ~/.bash_profile` or `open ~/.zshrc` - then load with `source ~/.bash_profile` or `source ~/.zshrc` |\n| `Git Bash` ***Required for Windows** | Git Bash provides a UNIX command line emulator for windows which can be used to run Git, shell commands, and much more. | [Download Git Bash](https://gitforwindows.org/) |\n\n\n## Mac Installation\n\n\u003cbr\u003e\n\u003cdetails\u003e\n\u003csummary\u003eMac Instructions\u003c/summary\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n##### 1. Install [hub](https://hub.github.com/).\n\n```bash\nbrew install hub\n```\n\n\u003cimg width=\"498\" alt=\"Screenshot 2023-11-08 at 12 36 56 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/d9a57250-a38b-4c2f-a546-4e022f75a5b6\"\u003e\n\n##### 2. Install [jq](https://stedolan.github.io/jq/download/).\n\n```bash\nbrew install jq\n```\n\n![jjjqqq](https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/b68cde56-37f9-4e63-9d00-bba309485665)\n\n\n\n##### 4. [Create A GitHub Personal Access Token](https://github.com/settings/tokens) with `repo` permissions. Copy this token and keep for use later.\n\u003cimg width=\"496\" alt=\"Screenshot 2023-11-08 at 2 23 56 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/111e80a5-89fd-48c2-8214-69d3c8073eb9\"\u003e\n\n\n##### 5. Configure the GitHub hub configuration:\n```bash\ngit config --global hub.protocol https\ngit config --global hub.user [your github username]\ngit config --global hub.token [your github personal access token]\n```\n\u003cimg width=\"591\" alt=\"Screenshot 2023-11-08 at 12 36 37 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/9edd77c6-a33e-45cc-aa70-66212b5c1599\"\u003e\n\n##### 6. [Create a JIRA Token](https://id.atlassian.com/manage-profile/security/api-tokens). Also copy this token and keep for use later.\n\n\u003cimg width=\"413\" alt=\"Screenshot 2023-11-08 at 1 00 27 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/2d6bf181-3a2f-4530-a419-4df0608e8eaf\"\u003e\n\u003cimg width=\"427\" alt=\"Screenshot 2023-11-08 at 1 01 07 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/4b177f2d-d38b-4481-8158-d7251eea7951\"\u003e\n\n##### 7. Create a local `pr_script.sh` file - Run the following command: `touch pr_script.sh`.\n\n```bash\ntouch pr_script.sh\n```\n\n\u003cimg width=\"721\" alt=\"Screenshot 2023-11-08 at 12 49 44 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/ba53eb34-6995-4d7e-bd58-3ab469ef37c3\"\u003e\n\n##### 8. Copy and paste the [pull request script template](https://raw.githubusercontent.com/wesleyscholl/github-jira-pr-script/main/automated-pr.sh) to your `pr_script.sh` file, then save the file.\n\n\u003cimg width=\"708\" alt=\"Screenshot 2023-11-08 at 12 50 28 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/51f42e9f-26d6-4cf9-ba14-643bf2545947\"\u003e\n\n\n##### 9. Open your terminal/bash/zsh configuration, `open ~/.bash_profile` or `open ~/.zshrc`.\n\n```bash\nopen ~/.bash_profile\n```\nor\n```bash\nopen ~/.zshrc\n```\n\n\n\u003cimg width=\"643\" alt=\"Screenshot 2023-11-08 at 1 02 09 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/ea687963-cf55-499b-9938-ffa6b48f6740\"\u003e\n   \n##### 10. Fill in the following bash configuration values:\n```bash\nalias pr='\u003cpr_script_path\u003e.sh'\nexport jira_url=https://totalwine.atlassian.net/\nexport jira_access_token=\u003cTotalwine_email\u003e:\u003cJiratoken\u003e\nexport github_author=\u003cgithub_username\u003e\nexport github_reviewers=\u003creviewers_github_usernames,seperated,by,commas\u003e\n```\nExample:\n\n```bash\nalias pr='/Users/wscholl/pr_script.sh'\nexport jira_url=https://totalwine.atlassian.net/\nexport jira_access_token=wscholl@totalwine.com:AT***...***0A\nexport github_author=wesleyscholl\nexport github_reviewers=naimish1083,KevinArce98,kareewongsagul\n```\n\n##### 11. Load the file with the source command:\n  ```bash\n  source ~/.bash_profile\n  ```\n  or\n  ```bash\n  source ~/.zshrc\n  ```\n\n##### 12. You can now execute the script to automate your pull request, the target branch is optional and defaults to `develop`.\n\n```bash\npr \u003ctarget_branch\u003e\n```\n\n\u003cbr\u003e\n\u003c/details\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n\n## Windows Installation\n\n\u003cbr\u003e\n\u003cdetails\u003e\n\u003csummary\u003eWindows Instructions\u003c/summary\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n#### 1. Scoop is required to install `hub`, if it's not installed on your machine open a powershell window and run:\n##\n```powershell\n\u003e Set-ExecutionPolicy RemoteSigned -Scope CurrentUser\n\u003e irm get.scoop.sh | iex\n```\n\u003cimg width=\"984\" alt=\"Screenshot 2023-11-09 at 12 06 55 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/fd09e9d4-1f1d-4740-a450-a44b29e2e4b6\"\u003e\n\n##\n#### 2. Then install `hub`:\n##\n```powershell\n\u003e scoop install hub\n```\n##\n#### 3. Use scoop to install `jq`: \n##\n```powershell\n\u003e scoop install jq\n```\n\u003cimg width=\"942\" alt=\"Screenshot 2023-11-09 at 12 10 34 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/3a54db81-8d0a-4d49-a443-c2f308db150e\"\u003e\n\n##\n#### 4. [Create A GitHub Personal Access Token](https://github.com/settings/tokens) with `repo` permissions. Copy this token and keep for use later.\n##\n\u003cimg width=\"496\" alt=\"Screenshot 2023-11-08 at 2 23 56 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/111e80a5-89fd-48c2-8214-69d3c8073eb9\"\u003e\n\n##\n#### 5. Install Git Bash from the Software Center App:\n##\nClick Search on the Microsoft Toolbar and type in `software center`.\n\n![Screenshot 2023-11-10 at 1 29 12 PM](https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/22e47f35-ed18-4079-8b2a-06a2a8ab0498)\n\nOpen the application and click on Git Bash to install.\n\n![Screenshot 2023-11-10 at 1 27 36 PM](https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/deb69ae4-7658-4782-bbab-fe5b81763d20)\n\n##\n#### 6. Copy the `pr_script.sh` file from the `github-jira-pr-script` repo or create a new file in your C:/Users/\u003cyour_username\u003e/ folder:\n##\nPowershell:\n```powershell\n\u003e New-Item -Type File -Path pr_script.sh\n```\n\nOr Git Bash.\n```bash\ntouch pr_script.sh\n```\n\n##\n#### 7. Open a git bash window and set the hub configuration using the following commands:\n##\nEnsure you update `\u003cyour_github_username\u003e` with your github username and `\u003cyour_github_personal_access_token\u003e` with your github personal access token.\n\n```bash\ngit config --global hub.protocol https\ngit config --global hub.user \u003cyour_github_username\u003e\ngit config --global hub.token \u003cyour_github_personal_access_token\u003e\n```\n\u003cimg width=\"487\" alt=\"Screenshot 2023-11-09 at 12 23 07 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/5f656c4c-f252-4cd3-b74b-324cd1af026e\"\u003e\n\n##\n#### 8. Create a JIRA Token\n##\n[Create a JIRA Token](https://id.atlassian.com/manage-profile/security/api-tokens) and copy for use later. \n\n\u003cimg width=\"413\" alt=\"Screenshot 2023-11-08 at 1 00 27 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/2d6bf181-3a2f-4530-a419-4df0608e8eaf\"\u003e\n\u003cimg width=\"427\" alt=\"Screenshot 2023-11-08 at 1 01 07 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/4b177f2d-d38b-4481-8158-d7251eea7951\"\u003e\n\n##\n#### 9. Create and open your bash configuration, `~/.bash_profile`.\n##\nIn the same directory:\n\n```bash\ntouch .bash_profile\n```\n\nThen:\n```bash\nnotepad .bash_profile\n```\n   \nAnd complete the following configuration:\n```bash\nalias pr='sh C:/Users/\u003cyour_windows_username\u003e/pr_script.sh'\nexport jira_url=https://totalwine.atlassian.net/\nexport jira_access_token=\u003cTotalwine_email\u003e:\u003cJiratoken\u003e\nexport github_author=\u003cgithub_username\u003e\nexport github_reviewers=\u003creviewers_github_usernames,seperated,by,commas\u003e\n```\nExample:\n\n```bash\nalias pr='sh C:/Users/WScholl/pr_script.sh'\nexport jira_url=https://totalwine.atlassian.net/\nexport jira_access_token=wscholl@totalwine.com:AT***...***0A\nexport github_author=wesleyscholl\nexport github_reviewers=naimish1083,KevinArce98,kareewongsagul\n```\n\n****Make sure you copy the full Jira token string into the `.bash_profile` configuration.***\n##\n#### 10. Load the `.bash_profile` configuration with the source command:\n##\n  ```bash\n  source ~/.bash_profile\n  ```\n##\n#### 11. You can now execute the script to automate your pull request creation. Target branch is optional, defaults to `develop`.\n##\n```bash\npr \u003ctarget_branch\u003e\n```\n****Only run the `pr` command from a Total Wine Labs git repository feature branch, otherwise it will fail.***\n\u003cbr\u003e\n\u003c/details\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n## Before submitting an actual Pull Request\n\nThe pull request function has been commented out to ensure that the pull request looks good before creating a live Pull Request. The script will output text similar to the example below.\n\n**Example Script Pull Request Output:**\n\n```md\nCRS-41964 NSS - 2.1 | Disable \"Free State\" data field - Story\n\n# [**CRS-41964**](https://totalwine.atlassian.net/browse/CRS-41964) NSS - 2.1 | Disable \"Free State\" data field - Story\n\n\n### Description\nAs a user,I want the \"Free Goods State\" data field to be disabled and  set to \"No\" to simplify data entryas filling this field is not required.\n##\n#### Comments\n- Finished development, wrote unit test to ensure input is disabled.!Screenshot 2023-11-08 at 2.09.51 PM.png|width=391,height=368!\n##\n#### Subtasks\n- [x] Development - Done\n- [ ] QA Validation - Code Review\n- [ ] PO Approval - Open\n##\n\u003e Team Pluto\n\u003e 23-23 - Team Pluto\n\u003e NSS - 2.1 | Post MVP\n##\n## Steps to Reproduce\n- N/A\n\n## Updates\n* list of updates\n7c1e712 CRS-41964 - Updated input value according to acceptance criteria\n41b99c4 CRS-41964 - Free Goods State input now disabled, added unit test to test input is disabled\n\n## Code Changes\n* list of code changes\n\n+diff --git a/src/components/SupplyChain/StoreContainer.test.tsx b/src/components/SupplyChain/StoreContainer.test.tsx\n+index 437e1b4..1983103 100644\n+--- a/src/components/SupplyChain/StoreContainer.test.tsx\n++++ b/src/components/SupplyChain/StoreContainer.test.tsx\n+@@ -185,4 +185,12 @@ describe('StoreContainer', () =\u003e {\n+ \n+     expect(setSupplyChainData).toHaveBeenCalled();\n+   });\n++\n++  it('should disable \"Free Goods State\" input when freeGoodsStateInput prop is true', () =\u003e {\n++    const wrapper = shallow(\u003cStoreContainer {...props} freeGoodsStateInput /\u003e);\n++    const freeGoodsStateInput = wrapper.find(\n++      'Select[name=\"nss-store-supply-chain-free-goods-select\"]'\n++    );\n++    expect(freeGoodsStateInput.prop('disabled')).toBe(true);\n++  });\n+ });\n+diff --git a/src/components/SupplyChain/StoreContainer.tsx b/src/components/SupplyChain/StoreContainer.tsx\n+index 63955cd..2c2b358 100644\n+--- a/src/components/SupplyChain/StoreContainer.tsx\n++++ b/src/co\n\n\n## Screen Shots\n![Screen Shot](https://api.media.atlassian.com/file/f6bef5ab-a4b5-4e28-ab32-2a197b719c42/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI5NTI3ZWFkMC1mMDFjLTQ3NjMtYTdlNC04Y2UxNzk1ZWM0NTIiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpmaWxlOmY2YmVmNWFiLWE0YjUtNGUyOC1hYjMyLTJhMTk3YjcxOWM0MiI6WyJyZWFkIl19LCJleHAiOjE2OTk0NzIwODcsIm5iZiI6MTY5OTQ3MTQ4N30.2gBkYLD_8Y-_pEsraxRH69bnxe0E4WlB3J25wE32k70\u0026client=9527ead0-f01c-4763-a7e4-8ce1795ec452\u0026dl=true\u0026name=Screenshot+2023-11-08+at+2.09.51+PM.png)\n```\n\n## When you are ready to submit the Pull Request\n\n**Uncomment these lines at the bottom of the `pr_script.sh` and run `pr \u003cbranch\u003e`.**\n```bash\n# if [ -z \"$label\" ]; then\n# \thub pull-request -b $base_branch -F PR_MESSAGE --no-edit -o -r $reviewers -a $assign\n# else\n# \thub pull-request -b $base_branch -F PR_MESSAGE --no-edit -o -r $reviewers -a $assign -l $label\n# fi\n```\n***Once the script completes, it will open the newly created PR in the default web browser. It should look like the following example.**\n\n## Example Created Pull Request\n\u003cimg width=\"1270\" alt=\"Screenshot 2023-11-08 at 2 19 30 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/42a4f8fc-6958-4f5b-8e07-0415698374c4\"\u003e\n\u003cimg width=\"690\" alt=\"Screenshot 2023-11-08 at 3 44 28 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/1813a8bf-1766-4665-8c9d-c46616e21715\"\u003e\n\n##\n## Troubleshooting\n\n#### fatal: not a git repository (or any of the parent directories): .git\n##\n![Screenshot 2023-11-10 at 1 56 17 PM](https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/e9cc37fd-69a7-412d-9fdc-dd78f6676de7)\n\nThis error message displays when the pr script is run from a non .git repository folder. Run the `pr` command from the feature branch within a Total Wine Labs repository.\n##\n#### command not found: pr_script.sh\n##\nIf you see this message, the environment variables haven't been loaded or the alias syntax is incorrect.\n\n\u003cimg width=\"321\" alt=\"Screenshot 2023-11-08 at 2 37 28 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/a2da7a75-6688-49e3-a070-1b4d93f359a4\"\u003e\n\n\n- Update your alias to the following syntax: `alias pr='/Users/wscholl/pr_script.sh'` Update the path if your pr_script.sh file is in a different location.\n- Load the bash/zsh/terminal configuration environment variables with the following command:\n  \n```bash\nsource ~/.bash_profile\n```\nor\n```bash\nsource ~/.zshrc\n```\n##\n#### Forbidden HTTP 403 - Resource protected by organization SAML enforcement. You must grant your Personal Access token access to this organization.\n##\nThis means that the GitHub personal access token (PAT) needs authorization to access the TotalWineLabs organization. \n\n- To do this, go to https://github.com/settings/tokens. Click \"Configure SSO\" on your pull request token. Authorize the token to access the TotalWineLabs organization.\n\n\u003cimg width=\"496\" alt=\"Screenshot 2023-11-08 at 2 23 56 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/c4dfaa73-7247-4720-89cb-15461a2bb1a8\"\u003e\n\n- When the token has been properly authorized, you should see \"Deauthorize\" under single sign-on organizations next to TotalWineLabs. \n\n\u003cimg width=\"802\" alt=\"Screenshot 2023-11-08 at 2 18 12 PM\" src=\"https://github.com/wesleyscholl/github-jira-pr-script/assets/128409641/bc249f31-ead9-4aa9-b01a-b17abf3167dd\"\u003e\n\n##\n#### Permission Denied Error\n##\nIf you receive this error, execute one of the following commands:\n\n```bash\nchmod +x pr\n```\nor\n```bash\nchmod +x path of the script.sh\n```\n##\n#### Terminal/bash/zsh config file not found\n##\nUse the following commands to create the file:\n```bash\ntouch ~/.bash_profile\n```\nor \n```bash\ntouch ~/.zshrc\n```\nAfter you’ve created the file, open it with `open ~/.bash_profile` or `open ~/.zshrc` and add the environment variables to it.\n##\n#### Cannot execute: required file not found error\n##\n\nIf you see this message, the `.bash_profile` alias is not configured properly.\n```bash\nbash: C:/Users/\u003cyour_windows_username\u003e/pr_script.sh: cannot execute: required file not found\n```\n\nModify this line:\n```bash\nalias pr='C:/Users/WScholl/pr_script.sh'\n```\nto\n```bash\nalias pr='sh C:/Users/WScholl/pr_script.sh'\n```\n\nWindows requires the `sh` command to be specified in the alias.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyscholl%2Fgithub-jira-pr-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleyscholl%2Fgithub-jira-pr-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyscholl%2Fgithub-jira-pr-script/lists"}