Skip to content

Commit cc88299

Browse files
DianjingLiufacebook-github-bot
authored andcommitted
Update branch name reference from 'master' to 'main'
Summary: Step 1 to update Captum OSS default branch name from 'master' to 'main'. - Context see T200490048 - Instructions see [wiki](https://www.internalfb.com/intern/wiki/Open_Source/Maintain_a_FB_OSS_Project/Default_Branch_Name_Change/#1-before-you-use-the-too) TODO: update the OSS wiki accordingly Differential Revision: D64430568
1 parent 4cb2808 commit cc88299

15 files changed

+30
-30
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
workflow_dispatch:
1010

.github/workflows/test-conda-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
workflow_dispatch:
1010

.github/workflows/test-pip-cpu-with-mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
workflow_dispatch:
1010

.github/workflows/test-pip-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
workflow_dispatch:
1010

.github/workflows/test-pip-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
workflow_dispatch:
1010

.github/workflows/website-depoy.yml renamed to .github/workflows/website-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The following command will both build the docs and serve the site locally:
109109
## Pull Requests
110110
We actively welcome your pull requests.
111111

112-
1. Fork the repo and create your branch from `master`.
112+
1. Fork the repo and create your branch from `main`.
113113
2. If you have added code that should be tested, add unit tests.
114114
In other words, add unit tests.
115115
3. If you have changed APIs, update the documentation. Make sure the

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![Conda Recipe](https://img.shields.io/static/v1?logo=conda-forge&style=flat&color=green&label=recipe&message=captum)][#conda-forge-feedstock]
1212
[![Docs - GitHub.io](https://img.shields.io/static/v1?logo=captum&style=flat&color=pink&label=docs&message=captum)][#docs-package]
1313

14-
[#github-license]: https://github.com/pytorch/captum/blob/master/LICENSE
14+
[#github-license]: https://github.com/pytorch/captum/blob/main/LICENSE
1515
[#pypi-package]: https://pypi.org/project/captum/
1616
[#conda-forge-package]: https://anaconda.org/conda-forge/captum
1717
[#conda-forge-feedstock]: https://github.com/conda-forge/captum-feedstock
@@ -82,7 +82,7 @@ pip install captum
8282

8383
If you'd like to try our bleeding edge features (and don't mind potentially
8484
running into the occasional bug here or there), you can install the latest
85-
master directly from GitHub. For a basic install, run:
85+
main directly from GitHub. For a basic install, run:
8686
```bash
8787
git clone https://github.com/pytorch/captum.git
8888
cd captum

docs/contribution_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Before contributing an algorithm to Captum, please review these guidelines and p
4545

4646
If you think that proposed algorithm/feature satisfies many of the above criteria, please open an issue on GitHub (https://github.com/pytorch/captum/issues) to discuss the method with the core Captum team members before submitting a pull request. If the method seems suitable for inclusion in Captum, we will generally request a design document or proposal, explaining the proposed API and structure for the new algorithm. An example of a design proposal for LIME and Kernel SHAP can be found here (https://github.com/pytorch/captum/issues/467).
4747

48-
If an algorithm or feature adds only marginal improvements or does not meet most the criteria described above, then we would suggest including it into our AWESOME_LIST.MD (https://github.com/pytorch/captum/blob/master/AWESOME_LIST.md) instead of adding it to the core Captum library. In the future, if the algorithm gains more popularity and acceptance in the model interpretability community, we would be happy to accept a PR to add it to the Captum core library.
48+
If an algorithm or feature adds only marginal improvements or does not meet most the criteria described above, then we would suggest including it into our AWESOME_LIST.MD (https://github.com/pytorch/captum/blob/main/AWESOME_LIST.md) instead of adding it to the core Captum library. In the future, if the algorithm gains more popularity and acceptance in the model interpretability community, we would be happy to accept a PR to add it to the Captum core library.
4949

5050
*Note that we reserve the right to decide not to include any algorithms that meet the above criteria, but we are unable to support in the long run.*
5151

0 commit comments

Comments
 (0)