You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/blog/posts/pinning_dependecies.md
+156
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,159 @@ Here is a list of our needs:
48
48
## Our solution
49
49
50
50
Here, I will describe our solution to the problem. Today's date is 2023.11.7. Workflow may change over time. The most recent version of the workflow is available [here](https://github.com/napari/napari/blob/main/.github/workflows/upgrade_test_constraints.yml).
1. `workflow_dispatch` - for the manual trigger of update or create PR with constraints upgrade.
72
+
2. `schedule` - for automatic weekly update of constraints.
73
+
3. `issue_comment` - for the manual trigger of constraints upgrade from comment. This generates new constraints files that needs to be manually applied, because of the lack of permissions to push to the different repositories.
To be able to open PR from the workflow, we need to add `pull-request: write` and `issues: write` permissions to the workflow.
91
+
To run a workflow only on comments containing `@napari-bot update constraints` we use `contains(github.event.comment.body, '@napari-bot update constraints')` condition.
92
+
The rest of the conditions are to allow starting workflow from triggers described above.
To signal that the workflow is running, we add `eyes` reaction to the comment that triggered the workflow.
125
+
When the workflow is finished, we add `rocket` reaction to the comment that triggered the workflow. You may remove it or replace with other mechanisms.
126
+
127
+
### Get repo details
128
+
129
+
```yaml
130
+
131
+
- name: Get PR details
132
+
# extract PR number and branch name from issue_comment event
We use have docs in a separate repository. We also want to update the constraints for the docs build. If you have a single repository, you may skip the second step.
0 commit comments