Skip to content

Commit

Permalink
Rename input variable to TARGET_BRANCH_STARTS_WITH
Browse files Browse the repository at this point in the history
  • Loading branch information
luixlacrux committed Feb 4, 2021
1 parent a727d5f commit edc1018
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SOURCE_BRANCH: "master"
TARGET_BRANCH_STARS_WITH: "feature/"
TARGET_BRANCH_STARTS_WITH: "feature/"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To work properly delete created branches after merging them.

**Required** The branch you want to make the pull request from.

### `TARGET_BRANCH_STARS_WITH`
### `TARGET_BRANCH_STARTS_WITH`

**Required** The branchs you want to make the pull request to.

Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SOURCE_BRANCH: "master"
TARGET_BRANCH_STARS_WITH: "feature/"
TARGET_BRANCH_STARTS_WITH: "feature/"
```

Modified version of action [Create Sync PR](https://github.com/sudoStatus200/create-sync-pr) with support of multiple target branches matching with a given pattern.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
SOURCE_BRANCH:
description: "Branch from make pull-request from"
required: true
TARGET_BRANCH_STARS_WITH:
TARGET_BRANCH_STARTS_WITH:
description: "Branch to make the pull-request against"
required: true
outputs:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ const createBranch = __webpack_require__(503);
async function run() {
try {
const sourceBranch = core.getInput("SOURCE_BRANCH", { required: true });
const targetBranchPattern = core.getInput("TARGET_BRANCH_STARS_WITH", {
const targetBranchPattern = core.getInput("TARGET_BRANCH_STARTS_WITH", {
required: true,
});
const githubToken = core.getInput("GITHUB_TOKEN", { required: true });
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const createBranch = require("./create-branch");
async function run() {
try {
const sourceBranch = core.getInput("SOURCE_BRANCH", { required: true });
const targetBranchPattern = core.getInput("TARGET_BRANCH_STARS_WITH", {
const targetBranchPattern = core.getInput("TARGET_BRANCH_STARTS_WITH", {
required: true,
});
const githubToken = core.getInput("GITHUB_TOKEN", { required: true });
Expand Down

0 comments on commit edc1018

Please sign in to comment.