Skip to content

Commit

Permalink
Update workflow yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tzkhan committed Apr 29, 2020
1 parent e9d7f36 commit 9126883
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/update-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ jobs:
pr_update_text:
runs-on: ubuntu-latest
steps:
- uses: tzkhan/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
branch-regex: 'foo-\d+'
lowercase-branch: false
title-template: '[%branch%]'
replace-title: false
title-prefix-space: true
uppercase-title: false
body-template: '[Link to %branch%](https://url/to/browse/ticket/%branch%)'
replace-body: false
body-prefix-newline-count: 2
uppercase-body: false
- uses: tzkhan/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
branch-regex: '[a-z\d-_.\/]+'
lowercase-branch: true
title-template: "[updated-by-action]"
replace-title: false
title-prefix-space: true
uppercase-title: false
body-template: "[Updated by Pull Request Updater action]"
replace-body: false
body-prefix-newline-count: 2
uppercase-body: false
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Pull Request Updater

![Update Pull Request](https://github.com/tzkhan/pr-update-action/workflows/Update%20Pull%20Request/badge.svg)
[![Release](https://img.shields.io/github/release/tzkhan/pr-update-action.svg)](https://github.com/tzkhan/pr-update-action/releases/latest)

This is a GitHub Action that updates a pull request with information extracted from branch name. The pull request title and body can either be prefixed or replaced.

## Usage
Expand Down Expand Up @@ -48,7 +51,7 @@ jobs:
pr_update_text:
runs-on: ubuntu-latest
steps:
- uses: tzkhan/pr-update-action@v1
- uses: tzkhan/pr-update-action@v1.1.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
branch-regex: 'foo-\d+'
Expand Down

0 comments on commit 9126883

Please sign in to comment.