-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:godaddy/timings
- Loading branch information
Showing
14 changed files
with
287 additions
and
110 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,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,56 @@ | ||
name: semantic-release-node | ||
description: 'perform semantic-release actions for node' | ||
|
||
inputs: | ||
publish: | ||
description: 'tell semantic-release to publish or run in DRY-RUN mode (default)' | ||
required: false | ||
default: 'false' | ||
add-summary: | ||
description: 'Add output of semantic-release results to GITHUB_STEP_SUMMARY' | ||
required: false | ||
default: 'false' | ||
|
||
outputs: | ||
last_release_version: | ||
description: 'version before semantic-release' | ||
value: ${{ steps.release.outputs.last_release_version }} | ||
new_release_version: | ||
description: 'version after semantic-release' | ||
value: ${{ steps.release.outputs.new_release_version }} | ||
new_release_published: | ||
description: 'whether semantic-release did (or would) publish a new version' | ||
value: ${{ steps.release.outputs.new_release_published }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: run-release | ||
id: release | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN || env.GH_TOKEN }} | ||
NPM_TOKEN: ${{ env.NPM_TOKEN }} | ||
run: | | ||
echo "last_release_version=`cat package.json | jq -r .version`" >> $GITHUB_OUTPUT | ||
if [[ '${{ inputs.publish }}' == 'true' ]]; then | ||
npx semantic-release | tee release.output; | ||
else | ||
npx semantic-release --dry-run --no-ci --branches ${{ github.ref_name }} | tee release.output; | ||
fi | ||
echo "new_release_published=`if (grep -q 'The next release version is' release.output); then echo true; else echo false; fi`" >> $GITHUB_OUTPUT | ||
echo "new_release_version=`grep 'The next release version is' release.output | sed -E 's/.* ([[:digit:].]+)$/\1/'`" >> $GITHUB_OUTPUT | ||
- name: Update job summary after semantic-release | ||
if: ${{ inputs.add-summary == 'true' }} | ||
shell: bash | ||
run: | | ||
if [ '${{ steps.release.outputs.new_release_published }}' == 'true' ]; then | ||
echo - A new release ${{ inputs.publish == 'true' && 'was' || 'will be' }} published! >> $GITHUB_STEP_SUMMARY | ||
echo - Last Release: **${{ steps.release.outputs.last_release_version }}** >> $GITHUB_STEP_SUMMARY | ||
echo - New Release: **${{ steps.release.outputs.new_release_version }}** >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo - No new Release! The current release is: **${{ steps.release.outputs.last_release_version }}** >> $GITHUB_STEP_SUMMARY | ||
fi |
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,38 @@ | ||
# Pull Request | ||
|
||
To help us get this pull request reviewed and merged quickly, please be sure to include the following items: | ||
|
||
* [ ] Tests (if applicable) | ||
* [ ] Documentation (if applicable) | ||
* [ ] Changelog entry | ||
* [ ] A full explanation here in the PR description of the work done | ||
|
||
## PR Type | ||
What kind of change does this PR introduce? | ||
|
||
* [ ] Bugfix | ||
* [ ] Feature | ||
* [ ] Code style update (formatting, local variables) | ||
* [ ] Refactoring (no functional changes, no api changes) | ||
* [ ] Build related changes | ||
* [ ] CI related changes | ||
* [ ] Documentation content changes | ||
* [ ] Tests | ||
* [ ] Other | ||
|
||
## Backward Compatibility | ||
|
||
Is this change backward compatible with the most recently released version? Does it introduce changes which might change the user experience in any way? Does it alter the API in any way? | ||
|
||
* [ ] Yes (backward compatible) | ||
* [ ] No (breaking changes) | ||
|
||
|
||
## Issue Linking | ||
<!-- | ||
KEYWORD #ISSUE-NUMBER | ||
[closes|fixes|resolves] # | ||
--> | ||
|
||
## What's new? | ||
- |
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
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
Oops, something went wrong.