forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEP-1351] Adding Propeller Github standard files
- Loading branch information
standardise_github_files.py
authored and
root
committed
Aug 13, 2024
1 parent
f3d3847
commit 757dc8d
Showing
4 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Check PR title contains issue key | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize, reopened] | ||
branches: [main] | ||
|
||
jobs: | ||
check-pr-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git clone the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Check PR title contains issue key | ||
run: cd github-actions && yarn install && ./node_modules/.bin/checkPullRequestDescription | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
JIRA_USER: ${{ secrets.JIRA_USER }} | ||
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
generate-issue-link: | ||
needs: check-pr-title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract issue key from PR title | ||
uses: actions-ecosystem/action-regex-match@v2 | ||
id: regex-match | ||
with: | ||
text: ${{ github.event.pull_request.title }} | ||
regex: '([A-Za-z]+-\d+)' | ||
|
||
- name: Comment on PR with link to Jira ticket | ||
uses: thollander/actions-comment-pull-request@v2 | ||
if: ${{ steps.regex-match.outputs.match != '' }} | ||
with: | ||
message: | | ||
:link: Jira Issue: [${{ steps.regex-match.outputs.group1 }}](https://propelleraero.atlassian.net/browse/${{ steps.regex-match.outputs.group1 }}) | ||
comment_tag: issue_key_link | ||
mode: upsert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"dependencies": { | ||
"@propelleraero/github-actions": "10.0.0", | ||
"tunnel": "^0.0.6" | ||
}, | ||
"description": "github-actions", | ||
"name": "github-actions", | ||
"private": true, | ||
"scripts": {}, | ||
"version": "0.0.0" | ||
} |