Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a command line option that reduces attachment filenames to thei… #185

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 169 additions & 5 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,22 @@
"commitConvention": "none",
"contributors": [
{
"login": "seletskiy",
"name": "Stanislav Seletskiy",
"avatar_url": "https://avatars.githubusercontent.com/u/674812?v=4",
"profile": "https://github.com/seletskiy",
"login": "mrueg",
"name": "Manuel Rüger",
"avatar_url": "https://avatars.githubusercontent.com/u/489370?v=4",
"profile": "https://mastodon.social/@mrueg",
"contributions": [
"maintenance",
"code"
]
},
{
"login": "kovetskiy",
"name": "Egor Kovetskiy",
"avatar_url": "https://avatars.githubusercontent.com/u/8445924?v=4",
"profile": "https://github.com/kovetskiy",
"contributions": [
"maintenance",
"code"
]
},
Expand Down Expand Up @@ -241,7 +252,160 @@
"avatar_url": "https://avatars.githubusercontent.com/u/16670310?v=4",
"profile": "https://dev.to/mmiranda",
"contributions": [
"maintenance"
"code"
]
},
{
"login": "Skeeve",
"name": "Stephan Hradek",
"avatar_url": "https://avatars.githubusercontent.com/u/725404?v=4",
"profile": "https://github.com/Skeeve",
"contributions": [
"code"
]
},
{
"login": "dreampuf",
"name": "Dreampuf",
"avatar_url": "https://avatars.githubusercontent.com/u/353644?v=4",
"profile": "http://huangx.in/",
"contributions": [
"code"
]
},
{
"login": "JAndritsch",
"name": "Joel Andritsch",
"avatar_url": "https://avatars.githubusercontent.com/u/190611?v=4",
"profile": "https://github.com/JAndritsch",
"contributions": [
"code"
]
},
{
"login": "guoweis-outreach",
"name": "guoweis-outreach",
"avatar_url": "https://avatars.githubusercontent.com/u/639243?v=4",
"profile": "https://github.com/guoweis-outreach",
"contributions": [
"code"
]
},
{
"login": "klysunkin",
"name": "klysunkin",
"avatar_url": "https://avatars.githubusercontent.com/u/2611187?v=4",
"profile": "https://github.com/klysunkin",
"contributions": [
"code"
]
},
{
"login": "EppO",
"name": "Florent Monbillard",
"avatar_url": "https://avatars.githubusercontent.com/u/6111?v=4",
"profile": "https://github.com/EppO",
"contributions": [
"code"
]
},
{
"login": "jfreeland",
"name": "Joey Freeland",
"avatar_url": "https://avatars.githubusercontent.com/u/30938344?v=4",
"profile": "https://github.com/jfreeland",
"contributions": [
"code"
]
},
{
"login": "prokod",
"name": "Noam Asor",
"avatar_url": "https://avatars.githubusercontent.com/u/877414?v=4",
"profile": "https://github.com/prokod",
"contributions": [
"code"
]
},
{
"login": "PhilippReinke",
"name": "Philipp",
"avatar_url": "https://avatars.githubusercontent.com/u/81698819?v=4",
"profile": "https://github.com/PhilippReinke",
"contributions": [
"code"
]
},
{
"login": "vpommier",
"name": "Pommier Vincent",
"avatar_url": "https://avatars.githubusercontent.com/u/8139328?v=4",
"profile": "https://github.com/vpommier",
"contributions": [
"code"
]
},
{
"login": "ToruKawaguchi",
"name": "Toru Kawaguchi",
"avatar_url": "https://avatars.githubusercontent.com/u/17423222?v=4",
"profile": "https://github.com/ToruKawaguchi",
"contributions": [
"code"
]
},
{
"login": "willgorman",
"name": "Will Gorman",
"avatar_url": "https://avatars.githubusercontent.com/u/49793?v=4",
"profile": "https://coaxialflutter.com/",
"contributions": [
"code"
]
},
{
"login": "zgriesinger",
"name": "Zackery Griesinger",
"avatar_url": "https://avatars.githubusercontent.com/u/15172516?v=4",
"profile": "https://zackery.dev/",
"contributions": [
"code"
]
},
{
"login": "chrisjaimon2012",
"name": "cc-chris",
"avatar_url": "https://avatars.githubusercontent.com/u/57173930?v=4",
"profile": "https://github.com/chrisjaimon2012",
"contributions": [
"code"
]
},
{
"login": "datsickkunt",
"name": "datsickkunt",
"avatar_url": "https://avatars.githubusercontent.com/u/105289244?v=4",
"profile": "https://github.com/datsickkunt",
"contributions": [
"code"
]
},
{
"login": "recrtl",
"name": "recrtl",
"avatar_url": "https://avatars.githubusercontent.com/u/14078835?v=4",
"profile": "https://github.com/recrtl",
"contributions": [
"code"
]
},
{
"login": "seletskiy",
"name": "Stanislav Seletskiy",
"avatar_url": "https://avatars.githubusercontent.com/u/674812?v=4",
"profile": "https://github.com/seletskiy",
"contributions": [
"code"
]
}
],
Expand Down
2 changes: 0 additions & 2 deletions .github/FUNDING.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Report a bug
about: Create a bug report to help us improve mark
title: ''
labels: bug
assignees: ''

---

**What happened?**
A clear and concise description of what the bug is.

**What did you expect to happen?**
A clear and concise description of what you expected to happen.

**How can we reproduce the behavior you experienced?**
Steps to reproduce the behavior:
1. Step 1
2. Step 2
3. Step 3
4. Step 4

In case this is related to specific markdown, please provide a minimal markdown example here.

** Information (please complete the following information):**
- Mark Version (`mark --version`): [e.g. v9.1.4]
- Mark Parameters: [e.g. --drop-h1 --title-from-h1]
- Confluence Version: [e.g. v7.13]
- Environment specific Information: [e.g. running in Github Actions, or on Mac OS X, etc.]

** Logs or other output**
Please provide logs, other kind of output or observed metrics here.

**Additional context**
Add any other context about the problem here.

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for mark
title: ''
labels: feature
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is and what the feature provides.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
102 changes: 102 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: continuous-integration

on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master

env:
GO_VERSION: "~1.20.5"

jobs:
# Runs Golangci-lint on the source code
ci-go-lint:
name: ci-go-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: golangci-lint
uses: golangci/golangci-lint-action@v3

# Executes Unit Tests
ci-unit-tests:
name: ci-unit-tests
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Run unit tests
run: |
make test

# Builds mark binary
ci-build:
name: ci-build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Build mark
run: |
make build

# Build and push Dockerimage
ci-docker-build:
name: ci-docker-build
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build only (on commits)
uses: docker/build-push-action@v4
if: ${{ github.ref_type != 'tag' }}
with:
push: false
tags: kovetskiy/mark:latest

- name: Login to Docker Hub
uses: docker/login-action@v2
if: ${{ github.ref_type == 'tag' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push (on tag)
uses: docker/build-push-action@v4
if: ${{ github.ref_type == 'tag' }}
with:
push: true
tags: |
kovetskiy/mark:${{ github.ref_name }}
kovetskiy/mark:latest
10 changes: 5 additions & 5 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set Up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.17
go-version: "1.20"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GOPATH: /home/runner/work/
GITHUB_TOKEN: ${{ secrets.TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/testdata
.idea/
/mark.test
/profile.cov
mark.exe
Loading