deepakputhraya / action-pr-title Goto Github PK
View Code? Open in Web Editor NEWGithub action to enforce Pull Request title conventions
License: MIT License
Github action to enforce Pull Request title conventions
License: MIT License
Hi
Thanks for this
In my case I would like to not allow to have PRs that starts with feature/
but just feature
is ok.
I dont see a way to setup this with this one.
I have the following workflow
validate-pr-title:
name: PR Title Validation
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-pr-title@master
with:
regex: '((feature|bugfix|hotfix)\/){0,1}(MULE|HUG)-\d+'
prefix_case_sensitive: true
github_token: ${{ github.token }}
This is the output of the job:
This is what it should have done
Why isn't it failing if the PR title does not match the regex?
Lines 43 to 47 in 3864beb
We're using this action in our project and I noticed that Github Actions issues warnings stating that Node 12 does not receive support anymore as of April 2022, see Github Blog.
I think it's as easy as replacing
runs:
using: 'node12'
main: 'index.js'
with
runs:
using: 'node16'
main: 'index.js'
in action.yml
.
Only solution I found is to close/open a new PR or kick the build via commit; both are not great.
This might be more of a github-actions question than an issue with this action. I'm new to github-actions so would appreciate some help :)
This is the yml
script that I use but it triggers only on PRs based on the master
(default) branch. When I open a PR on a release/...
branch, this is not triggered. I assumed that if I don't specifically set a branch under the on:
condition, it should work for all branches. Is that not the case?
name: PR Title Check
on:
pull_request:
types: [ opened, edited, synchronize, reopened ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull Request title rules
uses: deepakputhraya/[email protected]
with:
regex: {redacted}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.