Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test 3 #11

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/notify_on_pull_request_open.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Pull Request workflow template Made for Gomu Developers OS Community
on:
pull_request:
branches: ['master','dev']
types:
- "opened"
jobs:
rbuild_and_notify:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -30,4 +32,4 @@ jobs:
GITHUB_PR_BODY: ${{github.event.pull_request.body}}
GITHUB_PR_LINK: ${{github.event.pull_request._links.html.href}}
run: |
python3 src/notify_on_pull_request.py
python3 src/notify_on_pull_request.py
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# GomuDevelopers workflow template 🚀

Community Core Project

This project consist of creating a workflow to that aim is to be reused on several other different projects as a template **🛠️**. Before continuing let's clairify
some points for newbies .
- **Workflow** refers to a series of automated steps or tasks that are executed in response to specific events or triggers within a software development project ⚙️.
Expand All @@ -8,6 +11,8 @@
> events like folks, pull request , builds . Moreover , on automation task like `constinous intergration` , `continous delivery` and `testing` .

[Link to official documentation](https://docs.github.com/fr/actions/learn-github-actions)

Don't hesitate if you want to know more on GOMU Developers Community



2 changes: 1 addition & 1 deletion src/notify_on_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def send_msg_on_push():
author = os.environ['GITHUB_AUTHOR']
repository = os.environ['GITHUB_REPOSITORY']
link = f"https://github.com/{repository}"
link = f"https://github.com/{repository}/tree/dev"
commits = os.environ['GITHUB_COMMIT']
# count = len(os.environ['GITHUB_PuSH_NUMBER'])
date = time.ctime()
Expand Down
Loading