Science Score: 44.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
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: actions-marketplace-validations
  • License: mit
  • Language: TypeScript
  • Default Branch: main
  • Size: 853 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 5
  • Releases: 0
Created almost 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

Mantis Bug Tracker Issue Creation

Automate issue creation on Mantis Bug Tracker with this GitHub action. It's free!

Test Code CodeQL

Usage Example

Place the following in /.github/workflows/mantisbt.yml

yml on: issues: types: [opened] name: 🚀 Open Mantis Bug Tracker Issue jobs: open-issue: name: 🎉 Open MantisBT issue runs-on: ubuntu-latest steps: - name: 📂 Open issue uses: mjorgegulab/mantis-bug-tracker-action@v1.0.0 with: base-url: 'https://bt.mantis.com' url: '/mantis/api/rest/issues' token: ${{ secrets.MANTIS_BT_API_KEY }} summary: ${{ github.event.issue.title }} description: ${{ github.event.issue.body }} project-id: '11' category-id: '4'

Setup Steps

  1. Select the repository you want to add the action to
  2. Select the Actions tab
  3. Select Blank workflow file or Set up a workflow yourself, if you don't see these options manually create a yaml file Your_Project/.github/workflows/mantisbt.yml
  4. Paste the example above into your yaml file and save
  5. Now you need to add a key to the secrets section in your project. To add a secret go to the Settings tab in your project then select Secrets. Add a new Secret for password
  6. Update your yaml file settings
  7. If you appreciate this github action give it a :star: or show off with one of the badges below.

Settings

Keys can be added directly to your .yml config file or referenced from your project Secrets storage.

To add a secret go to the Settings tab in your project then select Secrets. I strongly recommend you store your token as a secret.

HTTP client options

| Key Name | Required | Example | Default Value | Description | | ---------------- | -------- | ------------------------- | ------------- | -------------------------------------------- | | base-url | Yes | https://bt.mantis.com | null | The base url of the MantisBT instance | | url | Yes | /mantis/api/rest/issues | / | The url resource of the MantisBT API | | timeout | No | 4000 | 5000 | The http request timeout (ms) | | proxy-type | No | https | null | The proxy protocol to use: HTTP or HTTPS | | proxy-host | No | 127.0.0.1 | null | The proxy ip/address to use | | proxy-port | No | 8080 | 8080 | The proxy port to use | | proxy-username | No | root | null | The proxy username | | proxy-password | No | toor | null | The proxy password |

MantisBT issue information

| Key Name | Required | Example | Default Value | Description | | ------------------------ | -------- | ---------------------------------- | ------------- | ----------------------------------------------- | | token | Yes | s7dgs8s6a8fa8d68sdgdgi | null | The MantisBT API token | | summary | Yes | Super Issue Title ✨ | null | The MantisBT issue summary field | | description | Yes | Super Issue Description 📝 | null | The MantisBT issue description field | | additional-information | No | Some Tiny Additional Information | null | The MantisBT issue additional information field | | project-id | Yes | 11 | null | The MantisBT issue project id field | | category-id | Yes | 4 | null | The MantisBT issue category id field | | handler-name | No | me@test.com | null | The MantisBT issue handler name field | | view-state-name | No | private | null | The MantisBT issue view state name field | | priority-name | No | normal | null | The MantisBT issue priority name field | | severity-name | No | trivial | null | The MantisBT issue severity name field | | reproducibility-name | No | always | null | The MantisBT issue reproducibility name field | | tags | No | git log front api | null | The MantisBT issue tags names field |

Check Mantis Bug Tracker API documentation on This Link

Outputs

This github action returns some variables once it has finished.

| Key Name | Example | Description | | ----------- | ------------------------------------------------ | ---------------------- | | issue-id | 00645 | The MantisBT issue id | | issue-url | https://bt.mantis.com/mantis/view.php?id=00645 | The MantisBT issue url |

yml on: issues: types: [opened] name: 🚀 Open Mantis Bug Tracker Issue jobs: open-issue: name: 🎉 Open MantisBT issue runs-on: ubuntu-latest steps: - name: 📂 Open issue id: mantisbt uses: mjorgegulab/mantis-bug-tracker-action@v1.0.0 with: base-url: 'https://bt.mantis.com' url: '/mantis/api/rest/issues' token: ${{ secrets.MANTIS_BT_API_KEY }} summary: ${{ github.event.issue.title }} description: ${{ github.event.issue.body }} project-id: '11' category-id: '4' - name: 🔤 Print output vars run: echo "Issue ID ==> ${{ steps.mantisbt.outputs.issue-id }}" && \ echo "Issue URL ==> ${{ steps.mantisbt.outputs.issue-url }}"

Common Examples

Capture Github issue creation and publish it to MantisBT

```yml name: Capture Github issue and open new mantis bug tracker issue

on: issues: types: [opened]

jobs: main: runs-on: ubuntu-latest steps: - name: MantisBT Issue id: mantisbt uses: mjorgegulab/mantis-bug-tracker-action@v1.0.0 with: base-url: 'https://bt.mantis.com' url: '/mantis/api/rest/issues' token: ${{ secrets.MANTISBTAPI_KEY }} summary: ${{ github.event.issue.title }} description: ${{ github.event.issue.body }} project-id: '11' category-id: '4' ```

Capture Github issue, publish to mantis and update github issue

```yml name: Open new mantis issue and update github issue

on: issues: types: [opened]

jobs: main: runs-on: ubuntu-latest permissions: issues: write steps: - name: MantisBT Issue id: mantisbt uses: mjorgegulab/mantis-bug-tracker-action@v1.0.0 with: base-url: 'https://bt.mantis.com' url: '/mantis/api/rest/issues' token: ${{ secrets.MANTISBTAPIKEY }} summary: ${{ github.event.issue.title }} description: ${{ github.event.issue.body }} project-id: '11' category-id: '4' - name: Add Mantis URL as Issue Comment uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.issue.number }} body: | <a target="blank" href="${{ steps.mantisbt.outputs.issue-url }}">drawing ```

Full example (all options) capturing Github issue, publish to mantis and update github issue

```yml name: Open new mantis issue and update github issue

on: issues: types: [opened]

jobs: main: runs-on: ubuntu-latest permissions: issues: write steps: - name: MantisBT Issue id: mantisbt uses: mjorgegulab/mantis-bug-tracker-action@v1.0.0 with: base-url: 'https://bt.mantis.com' url: '/mantis/api/rest/issues' token: ${{ secrets.MANTISBTAPIKEY }} timeout: '5000' proxy-type: 'https' proxy-host: '127.0.0.1' proxy-port: '8080' proxy-username: 'root' proxy-password: 'toor' summary: ${{ github.event.issue.title }} description: ${{ github.event.issue.body }} additional-information: 'Super additional info 🌟🌟🌟' project-id: '11' category-id: '4' handler-name: 'hostmaster@localhost.com' view-state-name: 'public' priority-name: 'normal' severity-name: 'trivial' reproducibility-name: 'never' tags: |- issue github supertag front api back

  - name: Add Mantis URL as Issue Comment
    uses: peter-evans/create-or-update-comment@v3
    with:
      issue-number: ${{ github.event.issue.number }}
      body: |
        <a target="_blank" href="${{ steps.mantisbt.outputs.issue-url }}"><img src="https://i.imgur.com/vgIWfWf.png" alt="drawing" width="100"/></a>

```


Want another example? Let me know by creating a github issue


Badge

If you appreciate this github action give it a :star: or show off with one of the badges below. Feel free to edit the text or color.

Bug Tracked With-Mantis Bug Tracker Github ActionBug Tracked With-Mantis Bug Tracker Github ActionBug Tracked With-Mantis Bug Tracker Github Action

Owner

  • Name: actions-marketplace-validations
  • Login: actions-marketplace-validations
  • Kind: organization

Temporarily holds mirrors of GitHub Actions from the marketplace

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Jorge Gonzalez"
  given-names: "Marc"
  orcid: "https://orcid.org/0009-0000-7718-757X"
title: "Mantis Bug Tracker Action"
version: 1.0.0
date-released: 2023-07-26
url: "https://github.com/mjorgegulab/mantis-bug-tracker-action"

GitHub Events

Total
Last Year

Dependencies

.github/workflows/codeql-analysis-injected.yml actions
  • actions/checkout 93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 composite
  • github/codeql-action/analyze a669cc5936cc5e1b6a362ec1ff9e410dc570d190 composite
  • github/codeql-action/init a669cc5936cc5e1b6a362ec1ff9e410dc570d190 composite
.github/workflows/tests.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
action.yml actions
  • dist/index.js node16 javascript
package-lock.json npm
  • 550 dependencies
package.json npm
  • @types/jest ^29.5.3 development
  • @types/marked ^5.0.1 development
  • @types/node ^16.18.39 development
  • @types/sanitize-html ^2.9.0 development
  • @typescript-eslint/eslint-plugin ^6.2.0 development
  • @typescript-eslint/parser ^6.2.0 development
  • @vercel/ncc ^0.36.1 development
  • eslint ^8.45.0 development
  • eslint-plugin-github ^4.9.2 development
  • eslint-plugin-jest ^27.2.3 development
  • jest ^29.6.1 development
  • js-yaml ^4.1.0 development
  • prettier ^3.0.0 development
  • ts-jest ^29.1.1 development
  • typescript ^5.1.6 development
  • @actions/core ^1.10.0
  • @actions/github ^5.1.1
  • axios ^1.4.0
  • lodash ^4.17.21
  • markdown-to-txt ^2.0.1
  • sanitize-html ^2.11.0