This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
-
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.
Merge pull request #104 from lavanyagarg112/easyPRworkflow
Easy pr workflow
- Loading branch information
Showing
2 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
name: update Pull Request Template Link File on branch creation | ||
|
||
on: | ||
create: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
update_pr_file: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update pullRequestLinks.md | ||
run: | | ||
echo " | ||
## Pull Requests to Main | ||
* [New Feature](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=feature.md) | ||
* [Bug Fix](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=bug.md) | ||
* [Documentation](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=docs.md) | ||
* [Refactoring](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=refactor.md) | ||
* [Chore](https://github.com/lavanyagarg112/meetwise/compare/main...${{ github.ref_name }}?template=chore.md)" | ||
> pullRequestLinks.md | ||
git add pullRequestLinks.md | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git commit -m "Update pullRequestLinks.md on branch creation" | ||
git push origin ${{ github.ref_name }} |