From 912688353b6b63650bd7599b9a0c10fd51953293 Mon Sep 17 00:00:00 2001 From: Tamim Khan Date: Wed, 29 Apr 2020 12:15:59 +0100 Subject: [PATCH] Update workflow yaml --- .github/workflows/update-pr.yml | 26 +++++++++++++------------- README.md | 5 ++++- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/update-pr.yml b/.github/workflows/update-pr.yml index 70a7d220..13b345cd 100644 --- a/.github/workflows/update-pr.yml +++ b/.github/workflows/update-pr.yml @@ -6,16 +6,16 @@ jobs: pr_update_text: runs-on: ubuntu-latest steps: - - uses: tzkhan/pr-update-action@v1.1.0 - 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/pr-update-action@v1.1.0 + 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 diff --git a/README.md b/README.md index e7679a0c..77353a80 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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+'