-
Hi folks! I am trying to create a comment on a commit automatically by using results from my runner program. Let’s consider this run. I want to be able to take the highlighted URL and include that in the comment: Programmatically, I am using Weights and Biases to keep track of my ML models. So, once, I run |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments
-
Thanks for your feedback.
Hope it helps and if I misunderstood you, please correct me. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @niconbw yes, you understood the requirement correctly. I wanted to understand where the comment would go? |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul
sayakpaul:
Did you mean to know where the |
Beta Was this translation helpful? Give feedback.
-
@niconbwI was meaning where the comment would go? Because my requirement is to be able to log the run URL as a comment upon each new commit. |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul Result: If it still doesn’t meet your needs, some screenshots for describing your request will be appreciated. |
Beta Was this translation helpful? Give feedback.
-
@niconbwappreciate your help here. I am aware of that repository but I found it kind of complicated to get started with. Hence I preferred something simpler. Your example does meet the requirement. Do you think it would be better to run this action on a PR and have the run URL as a comment? Also, if you set your Again, thank you so much for being so helpful :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Thanks for your update. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @niconbw. So, if I were to extend this use-case to support commenting capabilities upon a new PR what would be the solutions? |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul |
Beta Was this translation helpful? Give feedback.
-
@sayakpaul have you seen the weights and biases GitHub Action? https://github.com/marketplace/actions/get-runs-from-weights-biases |
Beta Was this translation helpful? Give feedback.
-
To comment on a PR, its best to use this Action https://github.com/actions/github-script |
Beta Was this translation helpful? Give feedback.
-
@hamelsmu thanks for your response. I am aware of that action but my purpose with the action I mentioned in this thread is a bit more reduced. I want to be able to (upon a new commit) -
It might seem very trivial to you but I am doing this for self-learning 😃 Then upon a PR, I want to be able to fetch the latest run URL and comment that out on the PR. I have been able to realize these so far - https://github.com/sayakpaul/wine/blob/a49b0d8386c6ef926bca45fd1cd2e8cd474a52b0/.github/workflows with a caveat that my action is picking up on an older run instead of the latest one. |
Beta Was this translation helpful? Give feedback.
Hi @sayakpaul
I can’t run your workflow because there is no wandb environment. Generally speaking, if you can get the value of the
run_url
in your train.py file, you can use thisrun_url
as the comment when submitting the commit.A simple example :
Result:
If it still doesn’t meet your needs, some screenshots for describing your request will be appreciated.
By the way, there is an existing wandb action. You could check it. Hope it helps.