Skip to content
Merged
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
7 changes: 4 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: manual

- name: Set up Java
uses: actions/setup-java@v4
Expand All @@ -45,9 +46,9 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn -B -f pom.xml clean install -DskipTests
run: mvn -B clean install -DskipTests

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
15 changes: 4 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<configuration>
<release>17</release>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.42</version>
</path>
</annotationProcessorPaths>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
Expand All @@ -57,8 +50,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
Expand Down
41 changes: 40 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public class Example {
.addElement(ButtonElement.builder().text("Click me").actionId("YOUR ACTION ID").build()) //Elements support 2 types of creation
.build();

// Build the Slack message
// Build the Slack message
SlackMessage message = SlackMessage.builder()
.channel(channel)
Expand Down Expand Up @@ -156,6 +155,11 @@ public class AdvancedExample {
<img src="slack-message.png" alt="N1netails slack message simple" width="500" style="display: block; margin: auto;"/>
</div>

#### Example media output
<div align="center">
<img src="slack-media-message.png" alt="N1netails slack message simple" width="500" style="display: block; margin: auto;"/>
</div>

# Develop
## Build
Build the project using the following command
Expand All @@ -177,6 +181,41 @@ Maven deploy to the maven central repository
mvn deploy -P release
```

### GPG
Generate keys
```bash
gpg --full-generate-key
```

List keys
```bash
gpg --list-secret-keys --keyid-format LONG
```

Export
### Export private key
```bash
gpg --export-secret-keys --armor YOUR_KEY_ID > private.asc
```

### Export public key

```bash
gpg --export --armor YOUR_KEY_ID > public.asc
```

Import
```bash
gpg --import private.asc
gpg --import public.asc
```

List packets (good for validating keys were exported correctly)
```bash
gpg --list-packets public.asc
```


## Support

For community users, open an issue on GitHub or Join our Discord
Expand Down
Binary file added slack-media-message.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading