code-of-conduct-initializer
Handles scenarios for missing Code of Conduct or outdated Contributor Covenant version
Science Score: 52.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
✓Institutional organization owner
Organization som-research has institutional domain (som-research.uoc.edu) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.5%) to scientific vocabulary
Repository
Handles scenarios for missing Code of Conduct or outdated Contributor Covenant version
Basic Info
- Host: GitHub
- Owner: SOM-Research
- License: cc-by-sa-4.0
- Default Branch: main
- Size: 64.5 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 2
Metadata Files
README.md
Code of Conduct Initializer GitHub Action
This GitHub Action handles scenarios for missing Code of Conduct or outdated Contributor Covenant version by creating or updating the CODE_OF_CONDUCT.md file and creating a pull request.
Features
- Checks for missing
CODE_OF_CONDUCT.mdand creates one if absent. - Updates the
CODE_OF_CONDUCT.mdto the latest Contributor Covenant version if outdated. - Creates a pull request for the changes made to the
CODE_OF_CONDUCT.md.
Inputs
USER_GITHUB_TOKEN(required): User GitHub Token for authentication and pushing changes.EVENT_ACTION(required): Event action that triggered the workflow, used to determine the appropriate response.
How It Works
- Checkout Repository: The action checks out the repository to get the latest code and context.
- Configure Git User: Sets up the Git user configuration for committing changes.
- Authenticate for Git Operations: Authenticates to GitHub for fetching and pushing branches.
- Create or Switch to Branch: Creates or switches to a branch based on the event action (
no_code_of_conductorhandle_contributor_covenant_1_4). - Add or Update
CODE_OF_CONDUCT.md: Copies the templateCODE_OF_CONDUCT.mdfile to the repository and stages it for commit. - Commit Changes: Commits the changes with an appropriate message based on the event action.
- Push Changes: Pushes the committed changes to the corresponding branch.
- Set Pull Request Environment Variables: Sets environment variables for the pull request title, body, and branch.
- Create Pull Request: Uses the
vsoch/pull-request-actionto create a pull request for the changes.
Example Scenario
- Missing Code of Conduct: The action will add a
CODE_OF_CONDUCT.mdfile and create a pull request. - Outdated Code of Conduct: The action will update the
CODE_OF_CONDUCT.mdto the latest version and create a pull request.
Permissions
This action requires the following permissions:
contents: writeissues: writepull-requests: write
Ensure these permissions are set in your workflow.
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
The CC BY-SA license allows users to distribute, remix, adapt, and build upon the material in any medium or format, so long as attribution is given to the creator. The license allows for commercial use. If you remix, adapt, or build upon the material, you must license the modified material under identical terms.
Author
Created by CobosDS. For any issues or contributions, please open an issue or submit a pull request on the GitHub repository.
Owner
- Name: SOM Research Lab
- Login: SOM-Research
- Kind: organization
- Email: rclariso@uoc.edu
- Location: Barcelona
- Website: http://som-research.uoc.edu
- Repositories: 54
- Profile: https://github.com/SOM-Research
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "FamilyNames"
given-names: "GivenNames"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "FamilyNames"
given-names: "GivenNames"
orcid: "https://orcid.org/0000-0000-0000-0000"
title: "The title of your paper"
version: 1.0.0
doi: 10.1007/s10664-021-10061-x
date-released: 2021-11-16
url: "https://github.com/SOM-Research/NonCodingRoleAnalysis-NPMPackages"
preferred-citation:
type: article
authors:
- family-names: "FamilyNames"
given-names: "GivenNames"
orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "FamilyNames"
given-names: "GivenNames"
orcid: "https://orcid.org/0000-0000-0000-0000"
doi: "10.1007/s00000-000-00000-x"
journal: "JournalName"
month: 1
start: 1 # First page number
end: 100 # Last page number
title: "The title of your paper"
issue: 1
volume: 29
year: 2022
GitHub Events
Total
- Create event: 1
Last Year
- Create event: 1
Dependencies
- actions/checkout v4 composite
- vsoch/pull-request-action master composite