Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
aa087296
Unverified
Commit
aa087296
authored
Aug 31, 2023
by
Gyanendra Mishra
Committed by
GitHub
Aug 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: removed noisy workflow (#173)
parent
1133497b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
50 deletions
+0
-50
pr-description-update.yml
.github/workflows/pr-description-update.yml
+0
-50
No files found.
.github/workflows/pr-description-update.yml
deleted
100644 → 0
View file @
1133497b
name
:
"
Update
Pull
Request
Description
with
conventional
commits"
on
:
pull_request
:
types
:
-
opened
-
reopened
-
edited
-
synchronize
# cancel redundant builds
concurrency
:
group
:
"
update-pr-${{
github.head_ref
}}"
cancel-in-progress
:
true
jobs
:
update_pr
:
if
:
contains(github.head_ref, 'release-please') !=
true
runs-on
:
ubuntu-latest
steps
:
-
uses
:
8BitJonny/gh-get-current-pr@2.2.0
with
:
sha
:
${{ github.event.pull_request.head.sha }}
id
:
PR
-
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
run
:
|
pr_body='${{ steps.PR.outputs.pr_body }}'
delimiter="Changelog picked up from commits here:"
cleaned_body="${pr_body%${delimiter}*}"
cleaned_body_without_trailing_space="$(python .github/remove_trailing_space.py "${cleaned_body}")"
conventional_commits="$(git log --pretty=format:"%B" origin/main..HEAD | grep -Pio '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|¯\\_\(ツ\)_\/¯)(\(\w+\)?((?=:\s)|(?=!:\s)))?(!)?(:\s.*)?(\n\n.*)?$' | grep ':' || true)"
echo "CONVENTIONAL_COMMITS<<EOF" >> $GITHUB_ENV
echo "${cleaned_body_without_trailing_space}" >> ${GITHUB_ENV}
if [ ${#conventional_commits} -gt 0 ]; then
echo "" >> ${GITHUB_ENV}
echo "${delimiter}" >> ${GITHUB_ENV}
echo "" >> ${GITHUB_ENV}
echo "${conventional_commits}" >> $GITHUB_ENV
fi
echo 'EOF'>> $GITHUB_ENV
-
uses
:
tzkhan/pr-update-action@v2
with
:
repo-token
:
"
${{
secrets.GITHUB_TOKEN
}}"
# added this though it isn't used
base-branch-regex
:
'
[a-z\d-_.\\/]+'
body-template
:
|
${{ env.CONVENTIONAL_COMMITS }}
body-update-action
:
"
replace"
body-uppercase-base-match
:
false
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment