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
Thank you for your interest in contributing to `workflow-metrics`! We welcome contributions from everyone, and we appreciate your help in making this action better.
4
+
5
+
## Getting Started
6
+
7
+
Before you start contributing, please make sure that you have read the [README.md](./README.md) file and have a basic understanding of the action.
8
+
9
+
## How to Contribute
10
+
11
+
There are many ways to contribute to `workflow-metrics`, from writing code to submitting bug reports. Here are some ways that you can contribute:
12
+
13
+
### Submitting Issues
14
+
15
+
If you find a bug or have a feature request, please submit an issue on the [GitHub issue tracker](https://github.com/kittychiu/workflow-metrics/issues). Please include as much detail as possible, including steps to reproduce the issue and any relevant error messages.
16
+
17
+
### Contributing Code
18
+
19
+
If you would like to contribute code to `workflow-metrics`, please follow these steps:
20
+
21
+
1. Fork the repository on GitHub.
22
+
2. Clone your forked repository to your local machine.
23
+
3. Create a new branch for your changes.
24
+
4. Make your changes and commit them to your branch.
25
+
5. Push your changes to your forked repository on GitHub.
26
+
6. Submit a pull request to the main repository.
27
+
28
+
Please make sure that your code follows the [PEP 8](https://www.python.org/dev/peps/pep-0008/) style guide and includes tests for any new functionality.
29
+
30
+
### Contributing Documentation
31
+
32
+
If you would like to contribute documentation to `workflow-metrics`, please follow these steps:
33
+
34
+
1. Fork the repository on GitHub.
35
+
2. Clone your forked repository to your local machine.
36
+
3. Create a new branch for your changes.
37
+
4. Make your changes and commit them to your branch.
38
+
5. Push your changes to your forked repository on GitHub.
39
+
6. Submit a pull request to the main repository.
40
+
41
+
Please make sure that your documentation follows the [Markdown syntax](https://www.markdownguide.org/basic-syntax/) and is clear and concise.
42
+
43
+
## Code of Conduct
44
+
45
+
Please note that this project is released with a [Contributor Code of Conduct](./CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
46
+
47
+
## License
48
+
49
+
`workflow-metrics` is released under the [MIT License](./LICENSE).
This GitHub Action provides a way to evaluate statistics for your GitHub Actions workflows. With this action, you can easily monitor the performance of your workflows and identify areas for improvement.
4
6
5
7
Metrics that are evaluated are:
@@ -25,7 +27,7 @@ The following options are available for configuring the action:
25
27
| --- | --- | --- | --- |
26
28
|`GH_TOKEN`| Yes | N/A | A GitHub token with access to the repository. Minimal scope is `repo`|
27
29
|`OWNER_NAME`| Yes | N/A | Name of the repository owner. |
28
-
|`REPO_NAME`| No | N/A | Name of the repository. If `REPO_NAME` is not provide, the action will analyse all the workflow runs in the organisation. |
30
+
|`REPO_NAME`| No | N/A | Name of the repository. If `REPO_NAME` is not provided, the action will analyse all the workflow runs in the organisation. |
29
31
|`START_DATE`| Yes | N/A | Start date for the workflow runs data set. This should be in the format `YYYY-MM-DD`. |
30
32
|`END_DATE`| Yes | N/A | End date for the workflow runs data set. This should be in the format `YYYY-MM-DD`. |
31
33
|`DELAY_BETWEEN_QUERY`| No | N/A | No. of seconds to wait between queries to the GitHub API. This is to prevent errors from rate limiting when analysing the whole org. |
@@ -37,6 +39,7 @@ After the action has completed, two files will be created in the root of the run
37
39
-`runs.json` or `org-runs.json` - a JSON array of all workflow runs in the specified time range for the specified repository or organization.
38
40
-`workflow-stats.csv` or `org-workflow-stats.csv` - a CSV file with workflow run statistics for the specified repository or organization.
39
41
42
+
These are data files that then can be used for further analysis or reporting in visualizer of your choice. For example, you can ingest into datastore and visualize with PowerBI. Below are some examples on generating markdown table and mermaid diagram with the data files
0 commit comments