darma-tasking / check-pr-fixes-issue Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to validate if PR description contains phrase "Fixes #issue"
License: Other
GitHub Action to validate if PR description contains phrase "Fixes #issue"
License: Other
Needs for DARMA-tasking/template-repository#1 and DARMA-tasking/vt#1177
Error: TypeError: Cannot read property '0' of null
Error: Cannot read property '0' of null
Right now, a title #1056: Do stuff
is not accepted because the regex looks for a space immediately following the issue number.
I the the regex should be something more like ^#?\d+([:;,/&]?|\s).+$
Similarly, in the body, Fixes: #1056
is not accepted by the check (though it is picked up by Github) because of the :
For PRs to branches other than develop
, it doesn't make as much sense to enforce that the branch name begins with a matching issue ID.
In VT, when the title ends with a color :
(or maybe it's the pound?), it seems to disallow it even though that is supposed to be allowed through the regex. Not sure what is going on there:
check-pr-fixes-issue/tests/helpers.test.js
Lines 27 to 29 in 087ae36
Run DARMA-tasking/check-pr-fixes-issue@master
with:
pr_branch: 1075-run-description-when-edited
pr_title: #1075: Run PR description when edited
pr_description: Fixes #1075
The check should run when edited now! The default set is:
> By default, a workflow only runs when a pull_request_target's activity type is opened, synchronize, or reopened. To trigger workflows for more activity types, use the types keyword. For more information, see "Workflow syntax for GitHub Actions."
Removing the set made it not run on `edited`. This should fix the problem
##[error]PR title doesn't start with issue number
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.